:root {
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --bg: #FFFFFF;
  --bg-sub: #FAFAFA;
  --ink: #1D1D1D;
  --ink-2: #4A4A4A;
  --ink-3: #7A7A7A;
  --line: #E4E4E4;
  --line-2: #CFCFCF;
  --dark: #0E0E0E;

  --brand: #F6821F;
  --brand-hover: #E0720F;
  --brand-active: #C9650C;

  --r: 6px;
  --max-w: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 64px;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

.frame { width: 100%; max-width: var(--max-w); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; flex-shrink: 0; }
.logo-img { width: 26px; height: 26px; border-radius: 4px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { text-decoration: none; color: var(--ink); font-size: 0.875rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font-size: 0.875rem; font-weight: 500; line-height: 1; font-family: inherit;
  border-radius: var(--r); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }
.btn-outline { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: 14px 24px; font-size: 0.95rem; }
.btn-icon { width: 15px; height: 15px; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-canvas { position: absolute; top: 0; right: 0; width: 62%; height: 100%; display: block; }
.hero-inner { position: relative; padding: 112px 32px 104px; }
.hero-text { max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand); display: block; }
.hero-title {
  font-size: 4.4rem; line-height: 1.04; font-weight: 500;
  letter-spacing: -0.045em; color: var(--ink); margin-bottom: 28px;
}
.hero-sub { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); max-width: 500px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.trust-row { display: flex; align-items: center; gap: 22px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); flex-wrap: wrap; }
.trust-item::before { content: "+"; color: var(--brand); margin-right: 8px; font-weight: 600; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat-item { padding: 36px 32px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.stat-value { font-size: 2.8rem; font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding: 112px 0 120px; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-sub); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
.section-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand); display: block; }
.section-title { font-size: 2.9rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 18px; }
.section-sub { font-size: 1.05rem; color: var(--ink-2); line-height: 1.65; max-width: 600px; }

/* Ruled cell grids */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--bg); }
.cells > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells-2 { grid-template-columns: repeat(2, 1fr); }
.cells-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card { padding: 44px 40px 48px; position: relative; transition: background 0.2s ease; }
.feature-card:hover { background: var(--bg-sub); }
.feature-card::after { content: ""; position: absolute; left: -1px; top: -1px; width: 2px; height: 0; background: var(--brand); transition: height 0.35s var(--ease); }
.feature-card:hover::after { height: calc(100% + 2px); }
.feature-icon { color: var(--ink); margin-bottom: 56px; display: block; }
.feature-icon svg { width: 30px; height: 30px; stroke-width: 1.2; }
.feature-card h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.65; max-width: 480px; }

/* Steps */
.step-card { padding: 40px 36px 44px; }
.step-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand); margin-bottom: 64px; display: block; letter-spacing: 0.04em; }
.step-card h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.65; }

/* Models table */
.table-wrap { border: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.models-table { width: 100%; border-collapse: collapse; text-align: left; }
.models-table th, .models-table td { padding: 20px 28px; border-bottom: 1px solid var(--line); }
.models-table thead th { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-sub); }
.models-table tbody th { font-weight: 400; }
.models-table tr:last-child th, .models-table tr:last-child td { border-bottom: none; }
.models-table tbody tr:hover { background: var(--bg-sub); }
.model-name { font-weight: 500; font-size: 0.98rem; }
.model-id { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 3px; }
.tier-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-2); }
.tier-badge.turbo { border-color: var(--brand); color: var(--brand); }
.rate { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.pricing-meta { margin-top: 32px; max-width: 820px; }
.pricing-status { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); margin-bottom: 14px; }
.pricing-note { font-size: 0.84rem; color: var(--ink-3); line-height: 1.7; margin-bottom: 10px; }

/* Pricing */
.pricing-card { padding: 44px 36px 40px; display: flex; flex-direction: column; position: relative; }
.pricing-card.featured::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--brand); }
.card-ribbon { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); border: 1px solid var(--brand); padding: 3px 8px; border-radius: 3px; }
.plan-name { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.plan-desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 36px; min-height: 44px; }
.plan-price-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.plan-currency { font-size: 1.5rem; font-weight: 500; color: var(--ink-2); }
.plan-price { font-size: 4rem; font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.plan-unit { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); margin-left: 6px; }
.plan-credits { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); padding: 12px 0; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; margin-bottom: 36px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.plan-features li svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--brand); margin-top: 4px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; padding: 26px 0; background: none; border: none; text-align: left; font-family: inherit; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.faq-q:hover { color: var(--brand); }
.faq-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 48px 28px 0; font-size: 0.95rem; color: var(--ink-2); line-height: 1.75; max-width: 760px; }
.faq-a[hidden] { display: none; }

/* Footer */
.footer { background: var(--dark); color: #8A8A8A; font-size: 0.85rem; padding: 72px 0 32px; }
.footer-mor { border: 1px solid #262626; padding: 18px 22px; margin-bottom: 56px; font-size: 0.8rem; line-height: 1.7; color: #7A7A7A; }
.footer-mor a { color: #BDBDBD; text-decoration: underline; text-underline-offset: 2px; }
.footer-mor a:hover { color: #fff; }
.footer-body { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 1.02rem; margin-bottom: 16px; }
.footer-logo img { width: 24px; height: 24px; border-radius: 4px; }
.footer-tagline { line-height: 1.65; margin-bottom: 14px; max-width: 360px; }
.footer-contact a { color: #BDBDBD; text-decoration: underline; text-underline-offset: 2px; }
.footer-payment-note { margin-top: 10px; font-size: 0.77rem; color: #5E5E5E; }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; margin-bottom: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #8A8A8A; text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #262626; padding-top: 28px; font-size: 0.78rem; }
.footer-disclaimer { color: #5E5E5E; max-width: 560px; line-height: 1.55; }

/* Animations */
.animate-in { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .hero-title { font-size: 3.5rem; }
  .hero-canvas { width: 100%; opacity: 0.5; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .cells-2, .cells-3 { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .section { padding: 72px 0 80px; }
  .section-title { font-size: 2.1rem; }
  .hero-inner { padding: 72px 20px 64px; }
  .hero-title { font-size: 2.5rem; }
  .container { padding: 0 20px; }
  .footer-body { grid-template-columns: 1fr; }
  .feature-card, .step-card, .pricing-card { padding: 32px 24px; }
  .models-table th, .models-table td { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .btn-lg { padding: 13px 20px; }
  .stat-value { font-size: 2.1rem; }
  .stat-item { padding: 24px 20px; }
}

/* Legal pages */
.legal-main { flex: 1; padding: 48px 0 64px; }
.legal-page { width: calc(100% - 48px); max-width: 860px; padding: clamp(24px, 5vw, 48px); line-height: 1.8; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); margin: 0 auto; }
.legal-heading { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal-page h2 { margin: 28px 0 10px; font-size: 1.1rem; font-weight: 500; line-height: 1.45; }
.legal-page p, .legal-page ul { margin-bottom: 14px; color: var(--ink-2); }
.legal-page ul { padding-left: 22px; }
.legal-page li + li { margin-top: 6px; }
.legal-page a { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: var(--brand-active); }
.legal-date { margin-bottom: 0 !important; color: var(--ink-3); font-size: 0.9rem; }
@media (max-width: 480px) {
  .legal-page { width: calc(100% - 32px); padding: 24px 18px; }
  .legal-main { padding: 24px 0 32px; }
}
