/* LLMaaS landing. No framework, no external fonts; one script, the theme switch (theme.js). */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6ea;
  --text: #16191d;
  --muted: #5b6470;
  --accent: #d52b1e;
  --accent-ink: #ffffff;
  --code-bg: #14171b;
  --code-text: #e8ecf1;
  --code-kw: #ff8b7b;
  --code-str: #9fd6a6;
  --code-cm: #7d8794;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  color-scheme: light;      /* the browser's own controls and scrollbars follow the page's theme, not the system's alone */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --bg-alt: #151a20;
    --surface: #181d24;
    --border: #2a323c;
    --text: #eef1f4;
    --muted: #9aa5b1;
    --code-bg: #0a0c0f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216;
  --bg-alt: #151a20;
  --surface: #181d24;
  --border: #2a323c;
  --text: #eef1f4;
  --muted: #9aa5b1;
  --code-bg: #0a0c0f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 3.8vw, 2.75rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; scroll-margin-top: 4.5rem; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }
.note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.plan-notice { max-width: 70ch; margin: -1rem 0 2rem; padding: .75rem 1rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; text-decoration: none; font-size: 1.1rem; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.1rem; }
.nav-links .btn { color: var(--text); padding: .5rem 1rem; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem); background: radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 650; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .4rem; }

/* Code */
.code { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.code figcaption { padding: .6rem 1rem; font-size: .8rem; color: var(--code-cm); border-bottom: 1px solid rgba(255,255,255,.08); }
.code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-size: .82rem; line-height: 1.55; }
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* The agent page's hero: an exchange with the agent, in the code block's clothes */
.talk p { margin: 0; padding: .8rem 1.1rem; font-size: .95rem; line-height: 1.5; display: grid; grid-template-columns: 3.6rem 1fr; gap: .6rem; align-items: baseline; }
.talk p + p { border-top: 1px solid rgba(255,255,255,.08); }
.talk p span { font: 600 .78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .04em; }
.talk .later { border-top-style: dashed; }
.plan-single { max-width: 34rem; }
.code .k { color: var(--code-kw); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-cm); font-style: italic; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { position: relative; }
.step-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 750; margin-bottom: .9rem; }
.steps p { color: var(--muted); margin: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45rem; }

/* Models */
.model header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.model header h3 { margin: 0; }
.tag { font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.model dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.model dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.model dd { margin: .15rem 0 0; font-weight: 600; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.price { font-size: 1rem; color: var(--muted); margin: .2rem 0 .1rem; }
.price span { font-size: 2.1rem; font-weight: 750; color: var(--text); letter-spacing: -.02em; }
.plan-gpu { font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.addon { margin-top: 1.25rem; flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
.addon .plan-gpu { font-weight: 500; color: var(--muted); }
.addon ul { margin-bottom: 0; }
.addon .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 720px) { .addon { flex-direction: column; align-items: stretch; } }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; color: var(--muted); display: grid; gap: .45rem; flex: 1; }
.plan ul li::before { content: "•"; color: var(--accent); margin-right: .5rem; }
.plan .btn { align-self: flex-start; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: .9rem 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* CTA + footer */
.section-cta { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer { border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.2rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .model dl { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links { gap: .9rem; font-size: .95rem; }
  .model dl { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { width: 100%; }
}

/* Theme switch: the moon while the page is light, the sun while it is dark */
.theme-btn { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.theme-btn:hover { background: var(--bg-alt); color: var(--text); }
.theme-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* Language switcher */
.lang { display: inline-flex; gap: .35rem; font-size: .85rem; letter-spacing: .04em; }
.lang a { color: var(--muted); text-decoration: none; padding: .15rem .3rem; border-radius: 6px; }
.lang a[aria-current="page"] { color: var(--text); font-weight: 700; background: var(--bg-alt); }
