:root {
  /* Brand constants — taken from the logo SVGs, never change */
  --purple-deep: #3b1a53;
  --purple-ink: #1f1130;

  /* Light theme */
  --paper: #fdfcfe;
  --ink: #231f20;
  --ink-soft: #46404a;
  --surface: #ffffff;
  --band: #f4f0f8;
  --line: #e3dcea;
  --heading: #1f1130;
  --accent: #6a4a8c;
  --hero-from: #1f1130;
  --hero-to: #3b1a53;

  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15101c;
    --ink: #ece7f2;
    --ink-soft: #b9b0c6;
    --surface: #221a2f;
    --band: #1b1426;
    --line: #362b47;
    --heading: #e4d8f2;
    --accent: #b795dd;
    --hero-from: #241634;
    --hero-to: #3f1d59;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 20px; } }

/* ===== Logo SVG fills (circle mark .cl-* + wordmark .wm-*) — brand constants ===== */
.cl-st0 { fill: #fff; }
.cl-st1 { fill: none; stroke: #3b1a53; stroke-miterlimit: 10; }
.cl-st2 { fill: #1f1130; }
.cl-st3 { fill: #3b1a53; }
.wm-st0 { fill: #fff; }

/* ===== Header ===== */
header {
  background: var(--purple-ink);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  /* longhand only — shorthand here would cancel .wrap's horizontal padding */
  padding-top: 14px; padding-bottom: 14px;
  gap: 16px;
}
.nav .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .mark svg.circle { width: 40px; height: 40px; display: block; }
.nav .mark .name {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: #fff; letter-spacing: 0.01em;
}
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap;
}
.nav nav a:hover, .nav nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nav nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 660px) {
  .nav { gap: 12px; }
  .nav .mark { gap: 9px; }
  .nav .mark svg.circle { width: 32px; height: 32px; }
  .nav .mark .name { font-size: 0.95rem; }
  .nav nav { gap: 16px; }
  .nav nav a { font-size: 0.85rem; }
}
@media (max-width: 560px) {
  /* Circle mark alone carries the brand here; the full wordmark sits in the hero below */
  .nav .mark .name { display: none; }
  .nav nav { gap: 22px; }
  .nav nav a { font-size: 0.95rem; }
}

/* ===== Hero ===== */
.hero {
  background: var(--hero-from);
  background: linear-gradient(160deg, var(--hero-from) 55%, var(--hero-to) 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .watermark {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; opacity: 0.07; pointer-events: none;
}
.hero .wordmark { width: min(420px, 78vw); margin-bottom: 40px; }
.hero .wordmark svg { width: 100%; height: auto; display: block; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.22; max-width: 18ch; margin-bottom: 22px;
  letter-spacing: -0.015em;
}
.hero p {
  max-width: 54ch; font-size: 1.1rem; color: rgba(255,255,255,0.82);
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Subpage hero — same band, tighter, no wordmark */
.hero.sub { padding: 56px 0 62px; }
.hero.sub h1 { margin-bottom: 14px; max-width: 22ch; }

@media (max-width: 660px) {
  .hero { padding: 52px 0 60px; }
  .hero.sub { padding: 40px 0 46px; }
  .hero .wordmark { margin-bottom: 30px; }
  .hero h1 { max-width: 100%; }
  .hero p { font-size: 1.02rem; }
  /* Watermark shrinks and drops behind the text rather than crowding it */
  .hero .watermark { width: 340px; height: 340px; right: -130px; opacity: 0.05; }
  .hero .cta-row { margin-top: 28px; gap: 12px; }
  .btn { padding: 12px 22px; font-size: 0.94rem; }
}
@media (max-width: 400px) {
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px 999px 999px 6px;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.btn.solid { background: #fff; color: var(--purple-ink); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }

/* ===== Sections ===== */
section { padding: 84px 0; }
@media (max-width: 660px) { section { padding: 54px 0; } }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25;
  color: var(--heading); margin-bottom: 20px; max-width: 24ch;
  letter-spacing: -0.01em;
}
@media (max-width: 660px) { h2 { max-width: 100%; } }
.lede { max-width: 62ch; }
.lede + .lede { margin-top: 18px; }

/* ===== Cards / banded sections ===== */
.diff { background: var(--band); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 660px) { .cards { margin-top: 30px; gap: 16px; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  padding: 30px 28px;
}
@media (max-width: 660px) { .card { padding: 24px 22px; } }
.card h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  color: var(--heading); margin-bottom: 12px;
}
.card p { font-size: 0.99rem; color: var(--ink-soft); }
.card a { color: var(--accent); font-weight: 600; text-decoration: none; }
.card a:hover, .card a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.card .big-link { font-family: var(--display); font-size: 1.2rem; word-break: break-word; color: var(--accent); font-weight: 600; }

/* ===== Platform strip ===== */
.platform .stack-list {
  margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 48px;
  max-width: 860px;
}
@media (max-width: 700px) { .platform .stack-list { grid-template-columns: 1fr; } }
.stack-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.stack-item .dot {
  flex: none; width: 10px; height: 10px; margin-top: 8px;
  background: var(--accent); border-radius: 50% 50% 50% 0;
}
.stack-item strong { color: var(--heading); font-weight: 600; }
@media (max-width: 660px) {
  .platform .stack-list { margin-top: 26px; }
  .stack-item { padding: 14px 0; font-size: 0.95rem; gap: 12px; }
}

/* ===== Closer ===== */
.closer {
  background: var(--hero-from);
  background: linear-gradient(160deg, var(--hero-from) 55%, var(--hero-to) 100%);
  color: #fff; text-align: left;
}
.closer h2 { color: #fff; }
.closer p { color: rgba(255,255,255,0.8); max-width: 56ch; }
.closer .cta-row { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 400px) {
  .closer .cta-row { flex-direction: column; align-items: stretch; }
}

/* ===== Contact form ===== */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 40px; max-width: 720px;
}
@media (max-width: 660px) { .form-grid { grid-template-columns: 1fr; margin-top: 28px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--heading); }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn.accent { background: var(--purple-deep); color: #fff; border: none; cursor: pointer; font-family: inherit; }
.btn.accent:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { font-size: 0.95rem; }
.form-status.error { color: #b3261e; }
@media (prefers-color-scheme: dark) { .form-status.error { color: #ffb4ab; } }
.form-status.ok { color: var(--accent); font-weight: 600; }
/* Honeypot field: visually gone, still present for bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
footer {
  background: var(--purple-ink); border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
  padding: 28px 0;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 660px) {
  footer .wrap { flex-direction: column; gap: 8px; text-align: center; align-items: center; }
}
