/* DecentAI site styles - shared by every page except /kickstarter/ (which keeps
   its own stylesheet). Locked palette: accent #6d4aff; background #0a0a0f;
   text #ffffff and #b3b3b3; lines #2d2d3a. System fonts only: no web fonts,
   no CDN, no trackers, no external requests of any kind. */

:root {
  --purple: #6d4aff;
  --purple-bright: #8f74ff;
  --purple-soft: #b9a8ff;
  --purple-deep: #5c39ea;
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #1a1a24;
  --text: #ffffff;
  --muted: #b3b3b3;
  --line: #2d2d3a;
  --line-strong: #3d3d4e;
  --error: #ffb4b4;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--purple-soft); }
a:hover { color: var(--purple-bright); }
img { max-width: 100%; }
::selection { background: rgba(109, 74, 255, .45); }

:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 3px; border-radius: 6px; }
.input:focus-visible { outline: none; }

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--purple); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: .75rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 0; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand .wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand .brand-tag { font-size: .78rem; color: var(--purple-soft); font-weight: 600; letter-spacing: .01em; }
.site-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .3rem 0; }
.site-nav a:hover { color: var(--purple-soft); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-nav .btn { margin-left: .4rem; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: .6rem 1.2rem; }
  .brand .brand-tag { display: none; }
  .site-nav { margin-left: 0; gap: .4rem 1.1rem; }
}

/* ---------- buttons / badges ---------- */

.btn {
  display: inline-block; padding: .78rem 1.5rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .97rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--purple-deep); }
.btn.ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--purple); color: var(--purple-soft); }
.btn.small { padding: .5rem 1.05rem; font-size: .9rem; }

.badge {
  display: inline-block; padding: .14rem .55rem; border-radius: 999px;
  background: var(--surface-2); color: var(--purple-soft);
  border: 1px solid var(--line);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  vertical-align: middle;
}
.ph { color: var(--purple-soft); font-weight: 600; }
.fine { font-size: .85rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  color: var(--purple-soft); font-weight: 700; margin-bottom: .9rem;
}

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.alt { background: var(--surface); }
.section-lede { color: var(--muted); max-width: 46rem; font-size: 1.08rem; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.card .card-kicker { color: var(--purple-soft); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }

.hoverable { transition: transform .18s ease, border-color .18s ease; }
@media (prefers-reduced-motion: no-preference) {
  .hoverable:hover { transform: translateY(-3px); border-color: var(--line-strong); }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52rem 30rem at 50% -6rem, rgba(109, 74, 255, .18), transparent 70%);
}
.hero-inner { position: relative; text-align: center; }
.hero .tagline { color: var(--purple-soft); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); margin: .1em 0 .55em; }
.hero .lede { color: var(--muted); font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 44rem; margin: 0 auto 1.9rem; }
.hero .lede strong { color: var(--text); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.hero-note { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 1080px; }
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual figcaption { font-size: .82rem; color: var(--muted); margin-top: .8rem; text-align: center; }

.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; text-align: left; }
.hero-split .lede { margin-left: 0; margin-right: 0; }
.hero-split .hero-actions { justify-content: flex-start; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* ---------- media / figures ---------- */

.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.shot figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.render { margin: 0; }
.render img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.render figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }

/* ---------- feature rows ---------- */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-copy { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--purple);
}

/* ---------- services fleet ---------- */

.fleet { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: .4rem 1.5rem; }
.fleet li { position: relative; padding: .55rem 0 .55rem 1.3rem; font-size: .95rem; }
.fleet li::before { content: ""; position: absolute; left: 0; top: .95em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--purple); }
.fleet strong { display: block; font-size: .98rem; }
.fleet span { color: var(--muted); font-size: .9rem; }

/* ---------- tiers ---------- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1.1rem; margin: 2rem 0; }
.tier {
  display: flex; flex-direction: column;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 0 1.2rem; overflow: hidden;
}
.tier .tier-render { background: #0d0d13; border-bottom: 1px solid var(--line); }
.tier .tier-render img { width: 100%; height: auto; display: block; }
.tier .tier-body { padding: 1rem 1.15rem 0; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.tier h3 { margin: 0; color: var(--purple-soft); font-size: 1.05rem; }
.tier-spec { margin: 0; font-size: .9rem; }
.tier-price { margin: .3rem 0 0; font-size: 1.3rem; font-weight: 700; }
.tier-note { margin: .3rem 0 0; font-size: .84rem; color: var(--muted); flex: 1; }
.tier .tier-cta { margin-top: .9rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.tier.featured { border-color: rgba(109, 74, 255, .55); }
.tier .tier-flag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-soft); margin: 0 0 .35rem; }

.tiers-note { max-width: 46rem; }

/* ---------- facts ---------- */

.facts { margin: 1.4rem 0 0; }
.facts > div { display: grid; grid-template-columns: 12rem 1fr; gap: .5rem .9rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- compare table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 44rem; }
table.compare caption { text-align: left; padding: 1rem 1.2rem .2rem; color: var(--muted); font-size: .85rem; }
table.compare th, table.compare td { text-align: left; padding: .8rem 1.2rem; border-top: 1px solid var(--line); font-size: .93rem; }
table.compare thead th { color: var(--purple-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
table.compare tbody th { font-weight: 600; color: var(--text); }
table.compare td { color: var(--muted); }

/* ---------- callouts ---------- */

.callout {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--purple);
  border-radius: var(--radius); background: var(--surface);
}
.callout h3 { margin-bottom: .4rem; }
.callout p { margin: 0; color: var(--muted); font-size: .95rem; }
.callout p + p { margin-top: .6rem; }

/* ---------- prose (about, announcements) ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 4px solid var(--purple); color: var(--purple-soft);
  font-size: 1.15rem; font-weight: 600;
}
.prose .post-meta { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }

.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list li { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.post-list .post-date { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.post-list h3 { margin: .35rem 0 .4rem; font-size: 1.35rem; }
.post-list h3 a { color: var(--text); text-decoration: none; }
.post-list h3 a:hover { color: var(--purple-soft); }
.post-list p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
}
.cta-band .wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { color: var(--muted); max-width: 40rem; margin: 0 auto 1.6rem; }

/* ---------- forms ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem);
  max-width: 34rem;
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.input {
  width: 100%; padding: .78rem 1rem; font: inherit;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109, 74, 255, .28); }
.input:disabled { opacity: .6; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 1.1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); font-size: .95rem;
}
.form-status[hidden] { display: none; }
.form-status[data-state="info"] { border-color: var(--line-strong); }
.form-status[data-state="success"] { border-color: rgba(109, 74, 255, .6); background: rgba(109, 74, 255, .12); }
.form-status[data-state="error"] { border-color: #7a3a3a; background: rgba(255, 120, 120, .07); color: var(--error); }
.form-status strong { display: block; margin-bottom: .2rem; }
.form-status p { margin: 0; font-size: .9rem; color: var(--muted); }
.form-status[data-state="success"] p { color: var(--text); }

/* ---------- press kit ---------- */

.card .fine { font-size: .85rem; }

.swatch {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.5rem 1.4rem; margin: 0 0 1.1rem;
}
.swatch.dark { background: #0a0a0f; }
.swatch.light { background: #ffffff; }
.swatch img { width: 100%; max-width: 21rem; height: auto; display: block; }

.press-links { display: flex; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 0; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.6rem 0 2rem; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand .wordmark { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.footer-brand .tagline { color: var(--purple-soft); font-weight: 600; margin: .15rem 0 .8rem; font-size: .92rem; }
.footer-inner .fine { max-width: 26rem; margin: 0; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .92rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--purple-soft); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
