@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-tight-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/inter-tight-700.ttf") format("truetype");
}

@layer reset, base, components, layout, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: hidden; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    color-scheme: dark;
    --bg: #05070c;
    --panel: #0d0d11;
    --white: #ffffff;
    --text: #f2f4f8;
    --muted: #a0a8b8;
    --dim: #5d6474;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.2);
    --blue: #2232b4;
    --blue-bright: #2232b4;
    --blue-press: #1b278f;
    --blue-light: #4a59d3;
    --blue-deep: #1b278f;
    --navy: #07172e;
    --max-width: 1180px;
    --gutter: 24px;
    --font-display: "Inter Tight", Arial, Helvetica, sans-serif;
    --font-mono: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
  }

  body {
    min-width: 320px;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
  }

  a { color: inherit; text-decoration: none; }
  .container { width: min(var(--max-width), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  :focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
  ::selection { color: var(--white); background: var(--blue-bright); }

  .skip-link {
    position: fixed;
    z-index: 300;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--blue-bright);
    transform: translateY(-150%);
  }
  .skip-link:focus { transform: translateY(0); }
}

@layer components {
  .star { width: 15px; height: 15px; fill: none; stroke: var(--blue-light); stroke-width: 1.3; stroke-linejoin: round; flex: 0 0 auto; }

  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--white);
    text-transform: uppercase;
  }
  .wordmark-glyph {
    display: inline-block;
    width: 0.92em;
    height: 0.92em;
    margin: 0 0.01em;
    flex: 0 0 auto;
    object-fit: contain;
    transform: translateY(-0.03em);
  }
  .wordmark-cursor {
    display: inline-block;
    width: 0.12em;
    height: 0.86em;
    margin-left: 0.04em;
    background: var(--blue-bright);
    transform: translateY(0);
    animation: cursor-blink 1.05s steps(1, end) infinite;
  }
  @keyframes cursor-blink { 50% { opacity: 0; } }

  .button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  }
  .button-primary { color: var(--white); border-color: var(--blue-bright); background: var(--blue-bright); }
  .button-primary:hover { border-color: var(--blue-press); background: var(--blue-press); }
  .button-secondary { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
  .button-secondary:hover { border-color: var(--white); }

  .eyebrow, .section-kicker, .model-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .plan-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 0.4px #ffffff;
    text-stroke: 0.4px #ffffff;
  }
  .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-light); }
  .section-kicker { color: var(--blue-light); }

  /* Pricing */
  .pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .plan {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 28px 26px 26px;
    border: 1.5px solid var(--line-strong);
    border-radius: 20px;
    background: var(--panel);
    transition: border-color 160ms ease;
  }
  .plan:hover { border-color: var(--blue); }
  .plan-featured { border-color: var(--blue); background: #082533; }
  .plan-featured:hover { border-color: var(--blue-light); }
  .plan-ultra { border-color: var(--blue); }
  .plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .plan-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(37, 150, 190, 0.08);
  }
  .plan-mark img { width: 18px; height: 18px; object-fit: contain; }
  .plan-featured .plan-mark { border-color: var(--blue); }
  .popular {
    position: absolute;
    top: -13px;
    left: 24px;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .plan h3 { margin-top: 24px; font-size: 32px; font-weight: 700; letter-spacing: -0.04em; color: var(--white); }
  .price { display: flex; flex-wrap: wrap; align-items: baseline; margin-top: 16px; font-size: 50px; font-weight: 700; letter-spacing: -0.055em; line-height: 1; color: var(--white); }
  .price > span { margin-right: 2px; color: var(--blue-light); font-family: var(--font-mono); font-size: 19px; }
  .price small { margin-left: 7px; color: var(--dim); font-size: 12px; font-weight: 500; letter-spacing: 0; }
  .plan-list { display: grid; gap: 14px; margin-top: 28px; margin-bottom: 28px; color: var(--text); font-size: 14px; line-height: 1.5; }
  .plan-list li { position: relative; padding-left: 22px; }
  .plan-list li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 4px;
    content: "";
    border-left: 1.5px solid var(--blue);
    border-bottom: 1.5px solid var(--blue);
    transform: rotate(-45deg);
  }
  .plan-channel {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  /* Try for free CTA (pricing page) */
  .cta-try { padding: 64px 0 80px; }
  .cta-try-inner {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    border: 1.5px solid var(--line-strong);
    border-radius: 22px;
    background: var(--panel);
  }
  .cta-try-mark {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1.5px solid var(--blue);
    border-radius: 16px;
    color: var(--blue-light);
  }
  .cta-try-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .cta-try h1 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
  .cta-try p { margin-top: 8px; color: var(--muted); font-size: 15px; }
  .cta-try-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 26px;
    border: 1.5px solid var(--blue);
    border-radius: 14px;
    color: var(--white);
    background: var(--blue);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease;
  }
  .cta-try-button:hover { background: var(--blue-press); border-color: var(--blue-press); }
  .cta-try-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

  /* Plan CTAs */
  .plan-cta {
    display: block;
    margin-top: auto;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: border-color 120ms ease, background-color 120ms ease;
  }
  .plan-cta:hover { border-color: var(--blue-bright); background: rgba(10, 99, 255, 0.12); }
  .plan-cta-primary { color: var(--white); border-color: var(--blue-bright); background: var(--blue-bright); }
  .plan-cta-primary:hover { background: var(--blue-press); border-color: var(--blue-press); color: var(--white); }
  .pricing-note { margin-top: 22px; color: var(--dim); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }

  /* CTA band */
  .cta-band { margin: 90px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
  .cta-inner { padding: 90px 0 96px; text-align: center; }
  .cta-inner h2 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--white); }
  .cta-inner h2 em { color: var(--blue-light); font-style: normal; }
  .cta-inner p { max-width: 540px; margin: 22px auto 0; color: var(--muted); font-size: 16.5px; }
  .cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

  /* FAQ */
  .faq-main .faq-section { padding: 0; }
  .faq-inner { max-width: 820px; margin-inline: auto; }
  .faq-head { text-align: center; margin-bottom: 44px; }
  .faq-head .section-kicker { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
  .faq-head h1 { margin-top: 14px; font-size: clamp(36px, 4.8vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
  .faq-list { display: grid; gap: 12px; }
  .faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color 120ms ease; }
  .faq-item[open] { border-color: var(--line-strong); }
  .faq-item summary {
    position: relative;
    padding: 20px 56px 20px 24px;
    cursor: pointer;
    font-weight: 650;
    font-size: 16px;
    list-style: none;
    color: var(--white);
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 24px;
    height: 24px;
    content: "+";
    transform: translateY(-50%);
    color: var(--blue-light);
    background: rgba(10, 99, 255, 0.14);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    transition: transform 120ms ease;
  }
  .faq-item[open] summary::after { content: "−"; }
  .faq-answer { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
  .faq-answer a { color: var(--blue-light); font-weight: 600; }

  /* Footer */
  .site-footer { border-top: 1px solid var(--line); margin-top: 90px; }
  .footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 56px;
    padding-block: 56px 44px;
  }
  .footer-brand .wordmark { margin-bottom: 16px; }
  .footer-brand p { max-width: 320px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .footer-heading { margin-bottom: 16px; color: var(--white); font-weight: 700; font-size: 14px; }
  .footer-col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
  .footer-col a:hover { color: var(--white); }
  .footer-col .footer-heading { margin-bottom: 8px; }
  .footer-social { display: flex; gap: 10px; }
  .footer-social a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--muted);
    transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
  }
  .footer-social a:hover { color: var(--white); border-color: var(--blue-bright); background: rgba(10, 99, 255, 0.12); }
  .footer-social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .footer-reach { color: var(--muted); font-size: 13px; line-height: 1.55; }
  .footer-reach a { color: var(--blue-light); font-weight: 600; }
  .footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .footer-base p:nth-child(2) { text-align: right; }
  .wordmark-footer { color: var(--muted); font-size: 11px; }
  .wordmark-footer .wordmark-logo { width: 20px; height: 20px; }
  .wordmark-footer .wordmark-cursor { width: 6px; height: 12px; }

  .error-page { display: grid; min-height: 100vh; place-items: center; padding: 40px 0; }
  .error-inner { max-width: 760px; }
  .error-code { margin-top: 70px; color: var(--blue-light); font: 700 12px/1.4 var(--font-mono); letter-spacing: 0.12em; }
  .error-inner h1 { max-width: 700px; margin-top: 16px; font-size: clamp(46px, 9vw, 90px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.98; }
  .error-inner > p:not(.error-code) { max-width: 520px; margin: 24px 0 34px; color: var(--muted); font-size: 18px; }
}

@layer layout {
  .site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(5, 7, 12, 0.94); }
  .header-grid { display: grid; min-height: 64px; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
  .site-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-family: var(--font-display); font-size: 14px; font-weight: 600; }
  .site-nav > a:not(.button):hover { color: var(--white); }
  .site-nav > a[aria-disabled="true"] { color: var(--dim); cursor: default; pointer-events: none; }
  .nav-cta { min-height: 40px; padding: 0 20px; color: var(--white); font-size: 13px; }
  .menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--white); background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; }

  /* One-screen page shells */
  .home-main { display: block; padding: 0; }
  .pricing-main, .faq-main { padding: 56px 0 0; }

  /* Home hero with ghosted emblem */
  .hero { position: relative; width: 100%; overflow: hidden; padding: 80px 0 110px; text-align: center; }
  .hero-emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(820px, 130vw);
    transform: translate(-50%, -50%);
    opacity: 0.12;
    pointer-events: none;
  }
  .hero-emblem img { display: block; width: 100%; height: auto; }
  .hero-inner { position: relative; }
  .hero-inner .eyebrow { justify-content: center; }

  .hero-title {
    display: inline-flex;
    align-items: flex-end;
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-size: clamp(72px, 13vw, 184px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.06em;
    color: var(--white);
    text-transform: uppercase;
  }
  .hero-letter { display: inline-block; transform: translateY(0); }
  .hero-letter-a { position: relative; display: inline-block; width: 0.78em; height: 1em; }
  .hero-a-text { position: absolute; inset: 0; opacity: 0.05; }
  .hero-a-glyph { position: absolute; inset: 0; display: grid; place-items: center; }
  .hero-a-glyph img { display: block; width: 95%; height: 95%; object-fit: contain; filter: drop-shadow(0 0 20px rgba(34, 50, 180, 0.45)); }
  .hero-cursor {
    display: inline-block;
    width: 0.09em;
    height: 0.72em;
    margin-left: 0.04em;
    background: var(--blue-bright);
    transform: translateY(-0.04em);
    animation: cursor-blink 1.05s steps(1, end) infinite;
  }
  .hero-copy { max-width: 620px; margin: 30px auto 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }
  .hero-copy em { color: var(--blue-light); font-style: normal; }
  .hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

  /* Home models */
  .models { padding: 80px 0 100px; border-top: 1px solid var(--line); }
  .models-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
  .models-head .section-kicker { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
  .models-head h2 { margin-top: 12px; font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--white); }
  .models-head p { max-width: 520px; margin: 18px auto 0; color: var(--muted); font-size: 16px; }
  .models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .model-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px 24px;
    border: 1.5px solid var(--line-strong);
    border-radius: 20px;
    background: var(--panel);
    transition: border-color 160ms ease, transform 200ms ease;
  }
  .model-card:hover { border-color: var(--blue); transform: translateY(-3px); }
  .model-card-apex { border-color: var(--blue); background: #08153a; }
  .model-card-apex:hover { border-color: var(--blue-light); }
  .model-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
  .model-mark { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(34, 50, 180, 0.12); }
  .model-mark img { width: 18px; height: 18px; object-fit: contain; }
  .model-card h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; color: var(--white); }
  .model-line { margin-top: 12px; padding: 16px 16px; border-left: 2px solid var(--blue); background: rgba(34, 50, 180, 0.08); color: var(--text); font-size: 15px; font-style: italic; line-height: 1.5; }
  .model-spec { display: grid; gap: 10px; margin-top: 22px; }
  .model-spec li { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
  .models-foot { margin-top: 48px; color: var(--muted); text-align: center; font-size: 15px; }
  .models-foot a { color: var(--blue-light); font-weight: 600; }

  /* Pricing page */
  .pricing-page { width: 100%; }
  .pricing-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
  .pricing-head .section-kicker { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
  .pricing-head h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
  .pricing-head > p:last-child { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 16px; }

  .site-footer { padding: 0; }
  .site-footer .wordmark-footer { display: none; }
}

@layer responsive {
  @media (max-width: 1050px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-try-inner { grid-template-columns: 1fr; gap: 18px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 820px) {
    :root { --gutter: 20px; }
    .header-grid { min-height: 60px; }
    .js .menu-toggle { display: block; justify-self: end; }
    .js .site-nav {
      position: absolute;
      top: 60px;
      right: 0;
      left: 0;
      display: none;
      align-items: stretch;
      gap: 0;
      padding: 0 var(--gutter) 18px;
      border-bottom: 1px solid var(--line-strong);
      background: #0a0a0e;
    }
    .js .site-nav[data-open="true"] { display: grid; }
    .js .site-nav > a { display: flex; min-height: 50px; align-items: center; border-bottom: 1px solid var(--line); }
    .js .site-nav > a[aria-disabled="true"] { display: flex; pointer-events: auto; }
    .js .site-nav .nav-cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
    .pricing-main, .faq-main { padding-top: 40px; }
    .hero { padding: 60px 0 80px; }
    .models-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 620px) {
    .hero { padding: 48px 0 60px; }
    .hero-title { font-size: clamp(48px, 16vw, 86px); }
    .hero-copy { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .models { padding: 56px 0 64px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 28px; }
    .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-base p:nth-child(2) { text-align: left; }
    .cta-try { padding: 48px 0 56px; }
    .cta-inner { padding: 64px 0 72px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .button { width: 100%; }
    .cta-try-button { width: 100%; justify-content: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wordmark-cursor, .hero-cursor { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
  }
}
