/* ══════════════════════════════════════════════════════════
   RagGo — Landing page specific styles
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 55% 1fr; gap: 64px; align-items: center; }
h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 17px; font-weight: 300; color: var(--text-mid); line-height: 1.72; max-width: 490px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── Terminal ─────────────────────────────────────────────── */
.terminal { background: var(--mono-bg); border-radius: 10px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.04); }
.t-bar { background: #181b24; padding: 11px 16px; display: flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.t-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #494d60; margin: 0 auto; pointer-events: none; }
.t-body { padding: 20px 22px; min-height: 295px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.75; overflow: hidden; }
.t-p    { color: #4caf7d; }
.t-cmd  { color: #e8e2d6; }
.t-dim  { color: #454960; }
.t-info { color: #6a9ecf; }
.t-rank { color: #e8a832; }
.t-path { color: #6a6878; }
.t-ok   { color: #4caf7d; }
.t-cur  { display: inline-block; width: 8px; height: 14px; background: #4caf7d; vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Problem ──────────────────────────────────────────────── */
.problem-grid { grid-template-columns: repeat(3,1fr); }
.tag-bad { display: inline-block; margin-top: 18px; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 500; background: rgba(191,66,23,.1); color: var(--accent); }
.solution-strip { margin-top: 36px; padding: 28px 36px; background: var(--navy); border-radius: 8px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.solution-strip h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: #fff; flex: 1; margin-bottom: 0; }
.solution-strip p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.55); margin-top: 4px; margin-bottom: 0; }

/* ── Features ─────────────────────────────────────────────── */
.feature-grid { grid-template-columns: repeat(3,1fr); }
.feature-icon { width: 42px; height: 42px; margin-bottom: 18px; color: var(--accent); }
.tile h3.ft { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin-bottom: 9px; }

/* ── Dark band ────────────────────────────────────────────── */
.dark-band { background: var(--dark); color: #fff; padding: 110px 0; }
.dark-band .section-label { color: var(--green); }
.dark-band .section-title { color: #fff; }
.dark-band .section-sub { color: rgba(255,255,255,.45); }
.stats-grid { grid-template-columns: repeat(3,1fr); }
.stat-tile { background: var(--dark-surf); }
.stat-val { font-family: 'Cormorant Garamond', serif; font-size: 58px; font-weight: 700; line-height: 1; margin-bottom: 8px; color: #fff; }
.stat-val span { color: var(--green); }
.stat-lbl { font-size: 14px; font-weight: 300; color: var(--dark-muted); }

/* ── Steps ────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 56px; margin-top: 56px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 34px; left: 70px; right: 70px; height: 1px; background: var(--bg-border); }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 76px; font-weight: 700; color: var(--bg-card); line-height: 1; position: relative; z-index: 1; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin: 6px 0 22px; position: relative; z-index: 1; }
.step h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.72; }
.step-code { margin-top: 14px; padding: 11px 16px; border-radius: 5px; background: var(--dark); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--green); }

/* ── Use cases tabs ───────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--bg-border); margin-top: 44px; }
.tab-btn { padding: 11px 26px; font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; transition: all .2s; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; padding: 48px 0 0; }
.tab-pane.active { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.tab-h { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; margin-bottom: 14px; }
.tab-p { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.72; margin-bottom: 26px; }
.tab-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tab-list li { font-size: 14px; color: var(--text-mid); display: flex; gap: 11px; align-items: flex-start; }
.tab-list li::before { content: '\2192'; color: var(--accent); font-weight: 600; flex-shrink: 0; margin-top: 1px; }
.tab-visual { background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: 8px; padding: 28px; overflow: hidden; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid { grid-template-columns: repeat(4,1fr); }
.p-tier { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.p-price { font-family: 'Cormorant Garamond', serif; font-size: 54px; font-weight: 700; line-height: 1; margin-bottom: 3px; }
.p-period { font-size: 13px; font-weight: 300; color: var(--text-muted); margin-bottom: 26px; }
.p-div { height: 1px; background: var(--bg-border); margin-bottom: 22px; }
.p-feat { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 30px; }
.p-feat li { font-size: 13px; font-weight: 300; color: var(--text-mid); display: flex; gap: 8px; }
.p-feat li::before { content: '\2713'; color: var(--green); font-weight: 600; flex-shrink: 0; }
.tile.featured { background: var(--navy); color: #fff; }
.tile.featured .p-tier   { color: rgba(255,255,255,.45); }
.tile.featured .p-price  { color: #fff; }
.tile.featured .p-period { color: rgba(255,255,255,.45); }
.tile.featured .p-div    { background: rgba(255,255,255,.1); }
.tile.featured .p-feat li { color: rgba(255,255,255,.7); }
.tile.featured:hover { background: #1f3d62; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { margin-top: 56px; display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--bg); border-radius: 4px; overflow: hidden; }
.faq-q { width: 100%; padding: 19px 24px; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--text); text-align: left; gap: 16px; }
.faq-icon { font-size: 22px; color: var(--text-muted); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.8; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner { background: var(--dark); padding: 100px 0; text-align: center; }
.cta-banner h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(42px, 4.2vw, 68px); font-weight: 600; color: #fff; line-height: 1.08; margin-bottom: 16px; }
.cta-banner p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.45); margin-bottom: 36px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .steps-grid, .tab-pane.active { grid-template-columns: 1fr !important; }
  .feature-grid, .problem-grid, .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr 1fr !important; }
  .hero { padding: 64px 0 48px; }
  .steps-grid::before { display: none; }
}
@media (max-width: 600px) {
  .feature-grid, .problem-grid, .stats-grid, .pricing-grid { grid-template-columns: 1fr !important; }
  .tab-pane.active { grid-template-columns: 1fr !important; }
}
