/* Stolonic.com — matches stolonic_ui (marketing.html + main.css tokens). */

:root {
  --bg-primary: #0b1220;
  --bg-secondary: #111a2e;
  --bg-elev: #16223a;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-soft: rgba(6, 182, 212, 0.12);
  --accent-violet: #a855f7;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --shadow-lg: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-ui: "Share Tech Mono", monospace;
  --max: 1100px;
  --pad: clamp(20px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 1100px 600px at 50% -100px, rgba(6, 182, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 30%, rgba(168, 85, 247, 0.06), transparent 60%);
  pointer-events: none;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #67e8f9; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; color: var(--text-secondary); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 0.5em;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #041016; padding: 8px 12px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Nav (platform marketing) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad);
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav::after {
  content: "";
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-violet) 70%, transparent);
  opacity: 0.35;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.brand img, .brand-mark {
  height: 30px; width: auto;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.25));
}
.brand .wordmark { color: #fff; }
.nav-links {
  display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a:not(.btn) {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.30);
}
.btn-ghost {
  background: transparent; color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.btn-icon { width: 18px; height: 18px; }

/* ── Home hero (text only — demo in preview frame below) ── */
.hero {
  position: relative;
  text-align: center;
  padding: 80px var(--pad) 40px;
  max-width: 980px;
  margin: 0 auto;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  margin: 0 0 22px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-sub strong { color: var(--text-primary); font-weight: 600; }
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fadeUp 0.7s ease both; }
.hero .badge { animation-delay: 0s; }
.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
  .badge::before { animation: none; }
}

/* ── Browser preview frame ── */
.preview {
  max-width: 1100px;
  margin: 28px auto 80px;
  padding: 0 var(--pad);
  animation: fadeUp 0.9s ease 0.35s both;
}
.preview-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(6, 182, 212, 0.25);
}
.preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--accent-rose); opacity: 0.7; }
.dot.amber { background: var(--accent-amber); opacity: 0.7; }
.dot.green { background: var(--accent-emerald); opacity: 0.7; }
.preview-url {
  margin-left: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.preview-video, .preview-frame video, .preview-frame img {
  display: block; width: 100%; height: auto; background: #000;
}
.preview-caption {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 18px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: 1.5;
}
.sound-btn {
  margin: 16px auto 0;
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.sound-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Sections ── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--pad);
}
.section-label {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.section h2, .section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  max-width: 20ch;
}
.section h2 em, .section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-lead, .section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head { text-align: center; margin: 0 auto 48px; max-width: 720px; }
.section-head .section-desc,
.section-head .section-lead { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .section-head .section-title { max-width: none; margin-left: auto; margin-right: auto; }

.define {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.03), transparent);
}
.define p { color: var(--text-secondary); max-width: 68ch; }
.define strong { color: var(--text-primary); font-weight: 600; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.fact {
  padding: 24px 22px;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.fact h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}
.fact p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* How steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step h3 { font-size: 20px; margin: 0 0 10px; color: #fff; }
.step p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* Units strip */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px var(--pad);
  text-align: center;
}
.band .eyebrow {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  color: var(--text-secondary); font-size: 15px;
}
.chips strong { color: #fff; font-weight: 600; }

/* Relationship / demo clips */
.rel { scroll-margin-top: 80px; }
.rel-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}
.rel-head .num {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.rel-head h2 { margin: 0; max-width: none; }
.rel-head p { margin: 0; color: var(--text-secondary); }
.clips {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.clips .stack { display: grid; gap: 18px; }
.clip {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}
.clip-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.clip-bar .dot { width: 9px; height: 9px; }
.clip-bar .url {
  margin-left: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.clip video, .clip img { width: 100%; background: #05080e; }
.clip-cap {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.guar, .trio, .rec3 {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.guar { grid-template-columns: repeat(4, 1fr); }
.trio, .rec3 { grid-template-columns: repeat(3, 1fr); }
.guar > div, .trio > div, .rec3 > div {
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.guar .k, .trio .k, .rec3 .k {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.guar .t, .trio .t, .rec3 .t {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}
.rec3 .clip { margin-top: 14px; }

.sov {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.sov ul { color: var(--text-secondary); }
.sov svg { width: 100%; height: auto; }
.sov-note { color: var(--text-tertiary); font-size: 14px; margin-top: 12px; }

/* Guarantee matrix (home legacy — restyled dark) */
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.matrix th, .matrix td {
  border: 1px solid var(--border);
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
  color: var(--text-secondary);
}
.matrix th {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.06);
  font-weight: 400;
}
.matrix td.row {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: rgba(6, 182, 212, 0.04);
  white-space: nowrap;
}
.matrix td.row small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 4px;
}
.matrix a { text-decoration: none; color: inherit; }
.matrix a:hover { color: var(--accent); }

/* CTA */
.cta {
  text-align: center;
  padding: 100px var(--pad);
  position: relative;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 50%, rgba(6, 182, 212, 0.08), transparent 60%);
  pointer-events: none; z-index: -1;
}
.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  color: #fff;
  margin: 0 auto 16px;
  max-width: 18ch;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cta-mailto {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
}
.cta-mailto a { color: var(--text-secondary); }
.cta-mailto a:hover { color: var(--accent); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--pad);
}
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text-secondary);
}
.footer-mark img {
  height: 22px; width: auto; border-radius: 4px;
  filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.2));
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

/* Inner pages */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--pad) 24px;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 16px;
  max-width: 18ch;
  color: #fff;
}
.page-hero .lede {
  font-size: 1.15em;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--pad) 80px;
}
.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 2.2em 0 0.6em;
  max-width: none;
  color: #fff;
}
.prose h3 {
  font-size: 1.1em;
  margin: 1.6em 0 0.4em;
  color: #fff;
  font-weight: 700;
}
.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text-primary); }
.prose code, .prose pre { font-family: var(--font-mono); font-size: 0.9em; }
.prose pre {
  background: #0a101c;
  color: #e2e8f0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.prose .callout {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 1.4em 0;
  color: var(--text-secondary);
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
  cursor: pointer;
  list-style: none;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--font-ui);
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 4px; color: var(--text-secondary); }

.trust-anchor {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0 24px;
}
.trust-anchor .label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.trust-anchor .sha {
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-all;
  color: var(--text-primary);
}
.meta-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 16px;
  font-size: 14px;
  margin: 14px 0 24px;
}
.meta-grid dt { color: var(--text-tertiary); }
.meta-grid dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.warn {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-left: 4px solid var(--accent-rose);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
  color: var(--text-secondary);
}
.warn strong { color: #fda4af; }

.arch-flow { display: grid; gap: 12px; margin: 28px 0; }
.arch-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.arch-box h3 { margin: 0 0 8px; font-size: 1.05em; color: #fff; }
.arch-box p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.arch-arrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.diff-list {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.2em;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.diff-list li { margin-bottom: 14px; }
.diff-list strong { color: var(--text-primary); }

.footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 60ch;
  line-height: 1.6;
}
.footnote em { font-style: normal; color: var(--text-secondary); }

@media (max-width: 900px) {
  .facts, .steps, .guar, .trio, .rec3 { grid-template-columns: 1fr; }
  .rel-head, .clips, .sov { grid-template-columns: 1fr; }
  .matrix, .matrix thead, .matrix tbody, .matrix th, .matrix td, .matrix tr { display: block; }
  .matrix thead { display: none; }
  .matrix tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .matrix td { border: none; border-top: 1px solid var(--border); }
  .matrix td.row { border-top: none; }
  .matrix td[data-k]::before {
    content: attr(data-k);
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }
}
@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 56px 20px 24px; }
  .preview { margin-bottom: 48px; }
}
