/* === Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === Variables — Brief preset hardcoded === */
:root {
  --bg:            #1B2A45;
  --bg-elevated:   #16233A;
  --bg-elevated-2: #22334F;
  --ink-900:       #1B2A45;
  --ink-800:       #16233A;
  --ink-700:       #22334F;
  --ink-600:       #263148;

  --steel-500: #6B7A94;
  --steel-400: #8A99B0;
  --steel-300: #A8B3C5;
  --steel-200: #C9D2E0;
  --steel-100: #E4E8F0;

  --teal-500:  #4ECDC4;
  --teal-400:  #5BC5C2;
  --teal-300:  #7FD4D1;
  --teal-200:  #A9E2E0;

  --signal-green: #2FA37C;
  --signal-amber: #C89B3A;
  --signal-red:   #C9524B;

  --accent:      #4ECDC4;
  --accent-line: rgba(78, 205, 196, 0.35);

  --line:        rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --fg:       #F4F6FA;
  --fg-muted: #C9D2E0;
  --fg-quiet: #8A99B0;

  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  --content-max: 1200px;
  --pad-x:       48px;
  --brand-logo-width: 132px;
  --brand-logo-device-width: 82px;

  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-micro: 140ms;
  --dur-macro: 220ms;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
img { display: block; }
svg { display: inline-block; }
input { box-sizing: border-box; }
ul { list-style: none; }
main,
section,
header,
footer,
.section-inner,
.hero-inner,
.privacy-inner,
.platforms-header,
.integration-strip,
.code-block,
.cta-grid,
.footer-grid {
  min-width: 0;
}
a {
  color: var(--teal-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out);
}
a:hover { color: var(--teal-300); border-bottom-color: var(--teal-300); }
::selection { background: rgba(78, 205, 196, 0.35); color: var(--fg); }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* === Typography === */
.display {
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  font-family: var(--font-sans);
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes _nav-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes _nav-border-in {
  from { border-bottom-color: transparent; }
  to   { border-bottom-color: var(--line); }
}

section { animation: fadeUp 500ms var(--ease-out) both; }
section:nth-of-type(2) { animation-delay:  80ms; }
section:nth-of-type(3) { animation-delay: 120ms; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: all var(--dur-micro) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-bottom-color: transparent; text-decoration: none; }

.btn-sm { padding: 8px 16px;  font-size: 13px; }
.btn-md { padding: 12px 22px; font-size: 15px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.btn-primary { background: var(--teal-500); color: var(--ink-900); border-color: transparent; }
.btn-primary:hover { background: #4BBFBC; color: var(--ink-900); }

.btn-secondary { background: transparent; color: var(--fg); border-color: var(--steel-200); }
.btn-secondary:hover { border-color: var(--teal-400); color: var(--teal-300); }

.btn-ghost { background: transparent; color: var(--steel-200); border-color: transparent; }
.btn-ghost:hover { color: var(--teal-300); }

/* === Pills === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--ink-700);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--steel-200);
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.pill-outline { background: transparent; border-color: var(--line-strong); }
.pill-sm { padding: 4px 10px; font-size: 11px; }
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.pill-green .pill-dot  { background: #2FA37C; box-shadow: 0 0 0 3px rgba(47,163,124,0.19); }
.pill-teal .pill-dot   { background: #7FD4D1; box-shadow: 0 0 0 3px rgba(127,212,209,0.19); }
.pill-amber .pill-dot  { background: #C89B3A; box-shadow: 0 0 0 3px rgba(200,155,58,0.19); }
.pill-red .pill-dot    { background: #C9524B; box-shadow: 0 0 0 3px rgba(201,82,75,0.19); }

/* === NAVBAR === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 200ms var(--ease-out);
}
/* Glass background lives on a pseudo-element so opacity can animate via scroll */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 40, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
/* CSS scroll-driven animation — Chrome 115+, Firefox 110+, Safari 18+ */
@supports (animation-timeline: scroll()) {
  .site-header::before {
    animation: _nav-bg-in linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 9px;
  }
  .site-header {
    animation: _nav-border-in linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 9px;
  }
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: var(--brand-logo-width);
  max-height: 30px;
  height: auto;
}
.nav-logo:hover { border-bottom: none; }
.nav-logo-text { font-weight: 700; font-size: 17px; color: var(--fg); letter-spacing: -0.01em; }
.nav-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--steel-200);
  font-size: 14px;
  font-weight: 500;
  border-bottom: none;
}
.nav-links a:hover { color: var(--accent); border-bottom: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--line);
  margin-top: -76px;
  padding-top: 76px;
}
.hero-shield {
  position: absolute; inset: 0;
  background-image: url('../patterns/shield-grid.svg');
  background-size: 320px;
  opacity: 0.55;
  pointer-events: none;
}
.hero-glow-tr {
  position: absolute;
  top: -180px; right: -140px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(78,205,196,0.13) 0%, transparent 62%);
  pointer-events: none;
}
.hero-glow-bl {
  position: absolute;
  bottom: -200px; left: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(78,205,196,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: 80px var(--pad-x);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-version { display: flex; gap: 10px; margin-bottom: 28px; align-items: center; }
.hero-headline { margin-bottom: 24px; }
.hero-accent { color: var(--accent); }
.hero-lead {
  max-width: 560px;
  margin-bottom: 40px;
  font-size: 19px;
  color: var(--steel-200);
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--fg-quiet);
  font-size: 13px;
  align-items: flex-start;
}
.hero-stat-val { color: var(--fg); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.hero-stat-div { width: 1px; background: var(--line); align-self: stretch; }

/* Hero artifact */
.hero-artifact {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-ring-sm { width: 440px; height: 440px; border: 1px solid rgba(78,205,196,0.08); }
.hero-ring-lg { width: 560px; height: 560px; border: 1px solid rgba(78,205,196,0.04); }

/* Floating labels */
.floating-tag {
  position: absolute;
  background: rgba(18,27,44,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: floatTag 5s ease-in-out infinite;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  z-index: 2;
}
.floating-tag-1 { top: 10%; left: -8%; animation-delay: 0s; }
.floating-tag-2 { top: 50%; left: -14%; animation-delay: 0.3s; }
.floating-tag-3 { top: 84%; left: 58%; animation-delay: 0.6s; }
.ft-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}
.ft-caption { font-size: 11px; color: var(--steel-300); }

/* Device mockup */
.device-mockup {
  position: relative;
  width: 304px; height: 560px;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--ink-700) 0%, var(--bg) 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.04);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.device-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  color: var(--steel-300);
  font-size: 11px;
  font-family: var(--font-mono);
}
.device-status-right { display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--signal-green);
  display: inline-block;
}
.device-card {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.device-card-header { display: flex; align-items: center; gap: 10px; }
.device-card-header img {
  width: var(--brand-logo-device-width);
  max-height: 20px;
  height: auto;
  flex-shrink: 0;
}
.device-card-title { font-size: 13px; color: var(--fg); font-weight: 600; }
.device-card-sub { font-size: 11px; color: var(--steel-400); font-family: var(--font-mono); }
.device-divider { height: 1px; background: var(--line); }
.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--steel-300);
}
.device-birthdate { font-family: var(--font-mono); color: var(--steel-500); }
.device-share-card {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid rgba(78,205,196,0.32);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(78,205,196,0.08), 0 0 40px rgba(78,205,196,0.06);
}
.device-share-header { display: flex; gap: 8px; align-items: center; color: var(--accent); }
.device-share-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.device-share-target { font-size: 14px; color: var(--fg); font-weight: 600; font-family: var(--font-mono); }
.device-proof-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--steel-200);
}
.device-proof-check { color: var(--accent); display: flex; }
.device-note { font-size: 10.5px; color: var(--steel-500); font-family: var(--font-mono); line-height: 1.5; }
.device-btn-area { margin-top: auto; padding: 0 4px; }
.device-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--teal-500);
  color: var(--ink-900);
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: default;
}

/* === HOW IT WORKS === */
.how-section {
  padding: 112px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.how-header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 64px; max-width: 720px; }
.how-header h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.how-connector-wrap { position: relative; }
.how-connector {
  position: absolute;
  top: 88px; left: 16.66%; right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 20%, var(--accent-line) 80%, transparent);
  opacity: 0.4;
  pointer-events: none;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: all 220ms var(--ease-out);
}
.step-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.step-number { font-family: var(--font-mono); font-size: 12px; color: var(--steel-400); letter-spacing: 0.1em; }
.step-detail-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(78,205,196,0.08);
  border-radius: var(--r-full);
  border: 1px solid rgba(78,205,196,0.18);
}
.step-icon-box {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(78,205,196,0.18), rgba(78,205,196,0.06));
  color: var(--accent);
  border: 1px solid rgba(78,205,196,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.step-card h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 12px; }
.step-card p { font-size: 14.5px; line-height: 1.6; color: var(--steel-400); }

/* === PRIVACY DIFFERENCE === */
.privacy-section {
  padding: 112px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.privacy-shield {
  position: absolute; inset: 0;
  background-image: url('../patterns/shield-grid.svg');
  background-size: 320px;
  opacity: 0.45;
  pointer-events: none;
}
.privacy-glow {
  position: absolute;
  top: 20%; left: 40%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(78,205,196,0.08), transparent 70%);
  pointer-events: none;
}
.privacy-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.privacy-content h2 {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 16px 0 28px;
}
.privacy-lead { margin-bottom: 20px; color: var(--steel-200); font-size: 18px; line-height: 1.55; }
.privacy-lead-last { margin-bottom: 36px; }
.privacy-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.privacy-feature {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(18,27,44,0.4);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.privacy-feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.privacy-feature-sub { font-size: 12px; color: var(--steel-400); padding-left: 22px; font-family: var(--font-mono); }

/* Architecture Diagram */
.arch-diagram {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
}
.arch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--steel-400);
}
.arch-header-label { font-size: 12px; font-family: var(--font-mono); color: var(--steel-300); letter-spacing: 0.06em; }
.arch-flow { display: flex; flex-direction: column; gap: 14px; }
.arch-party {
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
}
.arch-party-muted { background: rgba(18,27,44,0.6); }
.arch-party-user  { background: rgba(78,205,196,0.06); border-color: rgba(78,205,196,0.32); }
.arch-party-op    { background: rgba(18,27,44,0.6); }
.arch-party-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arch-party-body { flex: 1; min-width: 0; }
.arch-party-role-line { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.arch-party-role { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.arch-party-host { font-size: 11px; font-family: var(--font-mono); color: var(--steel-500); }
.arch-party-note { font-size: 12px; color: var(--steel-400); }
.arch-party-status { font-size: 10.5px; font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.arch-arrow { display: flex; align-items: center; gap: 12px; padding-left: 26px; }
.arch-arrow-line { width: 1px; height: 18px; background: var(--line-strong); }
.arch-arrow-line-accent { background: var(--accent-line); }
.arch-arrow-label { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--steel-500); }
.arch-arrow-label-accent { color: var(--accent); }
.arch-alert {
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(78,205,196,0.05);
  border: 1px dashed rgba(78,205,196,0.28);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--steel-200);
}
.arch-alert-infra { color: var(--accent); font-family: var(--font-mono); }
.arch-alert-green { color: var(--signal-green); }

/* === FOR PLATFORMS === */
.platforms-section {
  padding: 112px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}
.platforms-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.platforms-header h2 { margin: 16px 0 0; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; }
.platforms-header > p { font-size: 16px; max-width: 460px; color: var(--steel-200); line-height: 1.55; }
.platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.platform-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 220ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.platform-card:hover { border-color: var(--accent-line); }
.platform-card-top { display: flex; align-items: center; justify-content: space-between; }
.platform-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(78,205,196,0.1);
  color: var(--accent);
  border: 1px solid rgba(78,205,196,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-index { font-family: var(--font-mono); font-size: 11px; color: var(--steel-500); letter-spacing: 0.08em; }
.platform-card-title { font-size: 17px; color: var(--fg); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.platform-card-copy { font-size: 14px; color: var(--steel-400); line-height: 1.55; }

.integration-strip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.integration-left h3 { margin-top: 12px; margin-bottom: 12px; font-size: 24px; }
.integration-left > p { font-size: 14.5px; margin-bottom: 20px; max-width: 360px; color: var(--steel-400); line-height: 1.55; }
.integration-btns { display: flex; gap: 10px; }

/* Code Block — CSS-only tabs via :checked */
.code-block {
  background: var(--ink-900);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* Hide radio inputs but keep them interactive via labels */
.code-block > input[type="radio"] { display: none; }

.code-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.code-tab-label {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--dur-micro) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.code-tab-label:hover { color: var(--steel-200); }
.code-tab-pane { display: none; padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; }

/* Show active pane and highlight active tab label */
#tab-request:checked  ~ .code-tab-bar label[for="tab-request"],
#tab-response:checked ~ .code-tab-bar label[for="tab-response"],
#tab-compose:checked  ~ .code-tab-bar label[for="tab-compose"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#tab-request:checked  ~ #pane-request  { display: block; }
#tab-response:checked ~ #pane-response { display: block; }
#tab-compose:checked  ~ #pane-compose  { display: block; }

/* Code token colors */
.co-comment { color: var(--steel-500); }
.co-keyword { color: var(--accent); }
.co-string  { color: var(--teal-200); }
.co-plain   { color: var(--steel-200); }
.co-success { color: var(--signal-green); }
.co-bool    { color: var(--accent); }
.ci-1 { padding-left: 16px; }
.ci-2 { padding-left: 12px; }
.ci-3 { padding-left: 24px; }

/* === STANDARDS === */
.standards-section { padding: 112px var(--pad-x); border-bottom: 1px solid var(--line); }
.standards-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 960px;
  margin-bottom: 56px;
  align-items: end;
}
.standards-header h2 { margin-top: 14px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.standards-header > p { color: var(--steel-300); line-height: 1.55; }
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.standards-item {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--dur-micro) var(--ease-out);
}
.standards-item:hover { background: var(--bg-elevated); }
.standards-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.standards-item-top svg { color: var(--accent); }
.standards-tag { font-family: var(--font-mono); font-size: 10px; color: var(--steel-500); letter-spacing: 0.08em; text-transform: uppercase; }
.standards-item-title { font-size: 14.5px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; margin-top: 4px; }
.standards-item-sub { font-size: 12.5px; color: var(--steel-400); line-height: 1.5; }

/* === DUAL CTA === */
.cta-section { padding: 112px var(--pad-x); }
.cta-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cta-card {
  border-radius: var(--r-xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.cta-card-users { background: var(--bg-elevated); border: 1px solid var(--line); }
.cta-card-platforms {
  background: linear-gradient(160deg, rgba(78,205,196,0.1) 0%, var(--bg-elevated) 55%, var(--bg) 100%);
  border: 1px solid var(--accent-line);
}
.cta-bg-icon {
  position: absolute;
  top: -40px; right: -40px;
  color: rgba(78,205,196,0.08);
  pointer-events: none;
}
.cta-bg-icon-plat { top: -60px; right: -60px; color: rgba(78,205,196,0.1); }
.cta-glow {
  position: absolute;
  top: -110px; right: -110px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(78,205,196,0.22), transparent 70%);
  pointer-events: none;
}
.cta-card h3 { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; position: relative; }
.cta-card p { font-size: 15px; max-width: 420px; color: var(--steel-200); line-height: 1.55; position: relative; }
.cta-card-row { display: flex; align-items: center; gap: 10px; position: relative; }
.cta-card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.cta-email-area { margin-top: auto; position: relative; }
.cta-email-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px 4px 4px 20px;
  min-width: 200px;
}
.cta-email-wrap input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 0;
}
.cta-email-wrap input[type="email"]::placeholder { color: var(--steel-500); }
.cta-disclaimer { font-size: 11.5px; color: var(--steel-500); font-family: var(--font-mono); margin-top: 12px; position: relative; }

/* === FOOTER === */
.site-footer { border-top: 1px solid var(--line); padding: 64px var(--pad-x) 40px; background: var(--bg); }
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; border-bottom: none; }
.footer-brand-logo img {
  width: var(--brand-logo-width);
  max-height: 30px;
  height: auto;
  flex-shrink: 0;
}
.footer-brand-logo:hover { border-bottom: none; }
.footer-brand-name { font-weight: 700; font-size: 16px; color: var(--fg); letter-spacing: -0.01em; }
.footer-tagline { font-size: 13px; max-width: 320px; color: var(--steel-400); margin-bottom: 16px; line-height: 1.5; }
.footer-license { font-size: 12px; max-width: 320px; color: var(--steel-500); font-family: var(--font-mono); line-height: 1.5; }
.footer-col-header { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-200); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--steel-400); border-bottom: none; }
.footer-links a:hover { color: var(--teal-300); border-bottom: none; }
.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--steel-500);
  font-family: var(--font-mono);
}

/* ======================================================
   RESPONSIVE — index3 / style3 additions
   Desktop rules above are untouched.
   ====================================================== */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
    --brand-logo-width: 124px;
  }

  /* Nav: tighten link spacing */
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }

  /* Hero: single column, preserve left-align */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 60px var(--pad-x);
  }
  .hero-artifact { min-height: 480px; }
  /* outer ring clips at narrower viewports */
  .hero-ring-lg { display: none; }
  /* pull floating tag back from far-left overflow */
  .floating-tag-2 { left: -2%; }

  /* Steps: 2-col */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .how-connector { display: none; }

  /* Privacy: stack */
  .privacy-inner { grid-template-columns: 1fr; gap: 48px; }
  .privacy-content h2 { font-size: 36px; }

  /* Platforms: stack header, 2-col cards */
  .platforms-header { grid-template-columns: 1fr; gap: 24px; }
  .platforms-header h2 { font-size: 36px; }
  .platform-cards { grid-template-columns: repeat(2, 1fr); }
  .integration-strip { grid-template-columns: 1fr; gap: 28px; }

  /* Standards: stack header, 2-col grid */
  .standards-header { grid-template-columns: 1fr; gap: 24px; }
  .standards-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA: stack */
  .cta-grid { grid-template-columns: 1fr; }

  /* Footer: 3-col */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  /* last two footer cols drop to a second row via normal flow */
}

/* --- Mobile (≤ 680px) --- */
@media (max-width: 680px) {
  :root {
    --pad-x: 20px;
    --brand-logo-width: 126px;
    --brand-logo-device-width: 74px;
  }

  /* Nav: hide links and ghost button, keep logo + primary CTA */
  .nav-inner { padding: 14px var(--pad-x); gap: 12px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions { min-width: 0; }
  .nav-actions .btn-primary {
    max-width: calc(100vw - (var(--pad-x) * 2) - var(--brand-logo-width) - 12px);
    padding: 7px 9px;
    font-size: 11.5px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  /* Hero */
  .hero { min-height: auto; }
  .display { font-size: 38px; }
  .hero-inner { padding: 48px var(--pad-x) 56px; gap: 40px; }
  .hero-ring-sm { display: none; }
  /* decorative floating labels clip on small screens */
  .floating-tag { display: none; }
  /* center the phone mockup in its column */
  .hero-artifact { justify-content: center; min-height: auto; }
  .device-mockup {
    width: min(304px, calc(100vw - (var(--pad-x) * 2)));
    height: auto;
    min-height: 540px;
    padding: 16px;
  }
  .device-card-header,
  .device-row,
  .device-proof-row {
    min-width: 0;
  }
  .device-card-sub,
  .device-share-target,
  .device-proof-row span,
  .device-note {
    overflow-wrap: anywhere;
  }
  /* hero stats: remove vertical dividers, wrap naturally */
  .hero-stat-div { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stats > div { min-width: 0; }

  /* Section vertical rhythm */
  .how-section,
  .privacy-section,
  .platforms-section,
  .standards-section,
  .cta-section { padding: 64px var(--pad-x); }
  .site-footer { padding: 48px var(--pad-x) 32px; }

  /* How it works: single column */
  .how-header { margin-bottom: 40px; }
  .how-header h2 { font-size: 28px; }
  .steps-grid { grid-template-columns: 1fr; }

  /* Privacy */
  .privacy-content h2 { font-size: 28px; }
  .privacy-features { grid-template-columns: 1fr; }
  /* arch diagram: wrap role + host on tight widths */
  .arch-diagram { padding: 24px 18px; }
  .arch-header { align-items: flex-start; flex-wrap: wrap; }
  .arch-party { flex-wrap: wrap; min-width: 0; }
  .arch-party-role-line { flex-wrap: wrap; gap: 4px; }
  .arch-party-role,
  .arch-party-host,
  .arch-party-note,
  .arch-party-status,
  .arch-arrow-label,
  .arch-alert {
    overflow-wrap: anywhere;
  }
  .arch-party-status {
    width: 100%;
    margin-top: 4px;
    padding-left: 50px;
    white-space: normal;
  }

  /* Platforms */
  .platforms-header h2 { font-size: 28px; }
  .platform-cards { grid-template-columns: 1fr; }
  .integration-strip { padding: 24px 20px; overflow: hidden; }
  .integration-btns { flex-direction: column; align-items: flex-start; }
  .integration-btns .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  /* allow code tabs to scroll horizontally rather than break */
  .code-tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .code-tab-pane {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .code-tab-pane > div {
    min-width: max-content;
  }

  /* Standards */
  .standards-header h2 { font-size: 26px; }
  /* keep 2-col for standards items — they're short enough */

  /* CTA cards */
  .cta-card { padding: 28px 20px; min-height: auto; }
  .cta-card h3 { font-size: 22px; }
  .cta-card-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .pill {
    max-width: 100%;
    white-space: normal;
  }
  /* stack action buttons vertically */
  .cta-card-actions { flex-direction: column; }
  .cta-card-actions .btn { width: 100%; justify-content: center; }
  /* email input doesn't need a minimum width */
  .cta-email-wrap { min-width: unset; width: 100%; }
  .cta-email-wrap input[type="email"] { min-width: 0; }

  /* Footer: 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* --- Small phones (≤ 400px) --- */
@media (max-width: 400px) {
  :root {
    --brand-logo-width: 112px;
    --brand-logo-device-width: 68px;
  }
  .display { font-size: 34px; }
  /* hero CTAs stack on very narrow screens */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  /* standards and footer go single column */
  .standards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
