/* Cloudless AI site. Plain CSS, system fonts, no external requests. */
:root {
  color-scheme: dark;
  --stage: #0b0c10;
  --stage-2: #121319;
  --stage-3: #1a1b22;
  --cream: #fff8ee;
  --muted: #c4bdb2;          /* 10.6:1 on --stage */
  --faint: #9a948b;          /* 6.4:1 on --stage, small print only */
  --line: rgba(255, 248, 238, 0.12);
  --orange: #fb9239;         /* 8.5:1 on --stage */
  --orange-ink: #1a0f05;
  --radius: 14px;
  --max: 1080px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--cream);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #ffb070; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--orange-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(11, 12, 16, .92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand svg { width: 40px; height: 32px; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cream); background: var(--stage-3); }
.site-nav .nav-beta { color: var(--orange); }
@media (max-width: 520px) { .site-nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { background: #ffa65a; color: var(--orange-ink); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn .pill { background: rgba(26, 15, 5, .14); padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }

/* hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%; background: radial-gradient(closest-side, rgba(251, 146, 57, .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-mark { width: 120px; height: 96px; margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.08rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.req-line { font-size: .95rem; color: var(--muted); max-width: 42em; }
.req-line strong { color: var(--cream); }

/* sections */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 28px; }

/* films */
.films { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 760px) { .films { grid-template-columns: 0.62fr 1fr; gap: 28px; } }
figure { margin: 0; }
.film { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.film video { width: 100%; height: auto; background: #000; }
.film-tall video { aspect-ratio: 480 / 832; max-height: 78vh; margin: 0 auto; width: auto; }
.film-wide video { aspect-ratio: 832 / 480; }
.film figcaption { padding: 12px 16px 16px; font-size: .92rem; color: var(--muted); }
.film figcaption strong { color: var(--cream); display: block; font-size: 1rem; margin-bottom: 2px; }
.prompt { background: var(--stage-2); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; color: var(--cream); }
.prompt span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 4px; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.card ul { margin: 0 0 1em; padding-left: 1.2em; }
.card li { margin: 2px 0; }
.powered { display: inline-block; margin-top: 6px; font-size: .85rem; color: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

.tech { background: linear-gradient(180deg, var(--stage-2), var(--stage)); }
.claim { font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.45; border-left: 3px solid var(--orange); padding-left: 18px; margin: 0 0 22px; max-width: 34em; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 0; font-size: .97rem; }
caption { text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: .92rem; caption-side: bottom; padding-bottom: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--stage-3); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--cream); }
td { color: var(--muted); }
td strong { color: var(--cream); }
@media (max-width: 560px) {
  .stack-sm thead { display: none; }
  .stack-sm tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .stack-sm tbody tr:last-child { border-bottom: 0; }
  .stack-sm th, .stack-sm td { display: block; padding: 2px 0; border: 0; }
  .stack-sm td[data-label]::before { content: attr(data-label) ": "; color: var(--faint); font-size: .85rem; }
}

/* beta band */
.beta { background: radial-gradient(120% 140% at 50% 0%, rgba(251, 146, 57, .14), transparent 60%), var(--stage-2); text-align: left; }
.beta .box { max-width: 46em; }
.beta ol { padding-left: 1.3em; color: var(--muted); }
.beta ol li { margin: 4px 0; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--stage-2); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* prose pages */
.page-head { padding: 44px 0 8px; }
.prose { max-width: 44em; padding-bottom: 56px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.updated { color: var(--faint); font-size: .95rem; }
.callout { background: var(--stage-2); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; padding: 16px 18px; margin: 18px 0 24px; }
.callout p:last-child { margin-bottom: 0; }
.mail { font-size: 1.15rem; font-weight: 700; word-break: break-all; }
.ticket { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--stage-3); padding: 1px 7px; border-radius: 6px; color: var(--cream); white-space: nowrap; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--faint); font-size: .92rem; }
.site-foot .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--cream); }
.site-foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .btn { width: 100%; }
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 36px; }
.foot-links a { display: inline-block; padding: 6px 0; }
.hero-shot { display: none; }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: center; }
  .hero-shot { display: block; border-radius: 40px; padding: 10px; background: var(--stage-3); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .55); }
  .hero-shot img { border-radius: 31px; width: 100%; height: auto; }
}
