/* =========================================================================
   CipherChat — shared stylesheet
   Aesthetic: deep, calm, high-trust security product. Near-black canvas,
   restrained teal→cyan→violet accent reserved for key moments, crisp
   technical typography, subtle grid + grain depth, cryptographic motif.
   No build step. Hand-written. Mobile-first.
   ========================================================================= */

/* ---------- Design tokens ---------------------------------------------- */
:root {
  /* Canvas */
  --bg:            #0a0e14;
  --bg-elev:       #0f141b;
  --surface:       #141b24;
  --surface-2:     #1a2330;
  --hairline:      rgba(148, 168, 192, 0.14);
  --hairline-soft: rgba(148, 168, 192, 0.08);

  /* Ink */
  --ink:           #eef2f7;
  --ink-soft:      #b6c2d2;
  --ink-mute:      #7c8aa0;
  --ink-faint:     #56657c;

  /* Brand — derived from the app's Theme.swift (teal #1A759F / cyan #34A0C4) */
  --teal:          #1a759f;
  --cyan:          #34a0c4;
  --aqua:          #5fd0e0;
  --violet:        #7c6cff;
  --violet-soft:   #a99bff;

  /* Accent gradient (the one signature flourish) */
  --grad: linear-gradient(112deg, #34a0c4 0%, #5fd0e0 38%, #7c6cff 100%);
  --grad-text: linear-gradient(108deg, #6fd2e0 0%, #9fb6ff 60%, #b8a8ff 100%);

  /* Semantic */
  --ok:            #2fd07f;
  --warn:          #e8a33d;

  /* Glow tints */
  --glow-cyan:     rgba(52, 160, 196, 0.45);
  --glow-violet:   rgba(124, 108, 255, 0.40);

  /* Type */
  --font-display: "Clash Display", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;

  /* Rhythm */
  --maxw:        1140px;
  --maxw-read:   68ch;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --pad-x:       clamp(20px, 5vw, 40px);

  /* Shadow / depth */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 18px 48px -24px rgba(0,0,0,.85), 0 4px 14px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 90px -40px rgba(0,0,0,.9);
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-size: 17px;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Atmosphere: layered radial glows + faint grid + grain */
  background-image:
    radial-gradient(820px 520px at 78% -8%, rgba(124,108,255,.16), transparent 60%),
    radial-gradient(720px 560px at 6% 4%,  rgba(52,160,196,.16), transparent 58%),
    radial-gradient(900px 700px at 50% 108%, rgba(26,117,159,.10), transparent 60%);
  background-attachment: fixed;
}

/* Faint engineering grid + film grain, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  opacity: .55;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography -------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.4rem); }

p { color: var(--ink-soft); }
a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--ink); }

strong { color: var(--ink); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "cv01";
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout helpers --------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.center { text-align: center; }

/* Accessibility: skip link + focus rings */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cyan);
  color: #00121a;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(52,160,196,.06);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47,208,127,.55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,208,127,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(47,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,208,127,0); }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  --b-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--b-bg);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  position: relative;
  border-color: transparent;
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 10px 32px -12px var(--glow-cyan), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover {
  color: #04121a;
  box-shadow: 0 16px 44px -12px var(--glow-violet), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--ghost {
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: rgba(148,168,192,.35); background: rgba(255,255,255,.06); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Store badge inner layout */
.store-badge { padding: 11px 22px; }
.store-badge .lead { display: block; font-size: .66rem; letter-spacing: .04em; opacity: .85; font-weight: 500; line-height: 1.1; }
.store-badge .main { display: block; font-size: 1.12rem; font-weight: 700; line-height: 1.2; font-family: var(--font-display); }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-stuck {
  background: rgba(10,14,20,.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; }
.brand .cipher { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: .9rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile {
    display: none;
    border-top: 1px solid var(--hairline);
    background: rgba(10,14,20,.96);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    padding: 12px var(--pad-x) 22px;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile ul { list-style: none; padding: 0; display: grid; gap: 4px; }
  .nav-mobile a {
    display: block; padding: 14px 12px; color: var(--ink-soft);
    font-weight: 500; border-radius: 12px; font-size: 1.05rem;
  }
  .nav-mobile a:hover { background: rgba(255,255,255,.05); color: var(--ink); }
  .nav-mobile .btn { width: 100%; margin-top: 12px; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 116px) clamp(48px, 7vw, 96px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-top: 18px; }
.hero h1 .em { display: inline-block; }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: var(--ink-soft);
  max-width: 34ch;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .85rem;
  color: var(--ink-mute);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--aqua); flex: none; }

/* Hero device + ciphertext visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.device {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(26,35,48,.9), rgba(15,20,27,.95));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.device-top {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--hairline-soft);
}
.device-top .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); flex: none;
  display: grid; place-items: center; color: #04121a; font-weight: 700;
  font-family: var(--font-display);
}
.device-top .who { font-weight: 600; font-size: .96rem; }
.device-top .stat {
  font-size: .72rem; color: var(--ok);
  display: flex; align-items: center; gap: 5px;
}
.device-top .stat svg { width: 12px; height: 12px; }
.bubbles { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-top: 6px; }
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.4;
  position: relative;
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.bubble.out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(52,160,196,.9), rgba(124,108,255,.85));
  color: #06131c;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}
.bubble .cipher {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .02em;
  color: var(--ink-faint);
  margin-top: 6px;
  word-break: break-all;
  line-height: 1.35;
}
.bubble.out .cipher { color: rgba(6,19,28,.55); }

/* Floating "encrypted on device" chip */
.cipher-chip {
  position: absolute;
  right: -14px;
  top: 32%;
  background: rgba(15,20,27,.92);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: var(--shadow);
  font-size: .76rem;
  display: flex;
  align-items: center;
  gap: 9px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.cipher-chip svg { width: 18px; height: 18px; color: var(--aqua); }
.cipher-chip b { font-family: var(--font-display); }
.cipher-chip small { display: block; color: var(--ink-mute); font-size: .68rem; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}

/* Logo strip / platforms */
.platrow {
  margin-top: clamp(44px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  justify-content: center;
  color: var(--ink-mute);
}
.platrow .label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.platrow .os { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.platrow .os svg { width: 17px; height: 17px; color: var(--ink-mute); }

/* ---------- Section heads ---------------------------------------------- */
.shead { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 60px); }
.shead.center { margin-inline: auto; }
.shead p { margin-top: 16px; font-size: 1.08rem; }

/* ---------- Feature cards ---------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(26,35,48,.55), rgba(20,27,36,.4));
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: .6; }
.card .ic {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(52,160,196,.1);
  border: 1px solid var(--hairline);
  color: var(--aqua);
  margin-bottom: 20px;
}
.card .ic svg { width: 25px; height: 25px; }
.card h3 { color: var(--ink); }
.card p { margin-top: 11px; font-size: .98rem; }
.card .feat-os {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.02);
}

/* span full width feature */
.card.wide { grid-column: 1 / -1; }

/* ---------- How it works (flow) ---------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20,27,36,.6), rgba(15,20,27,.5));
}
.flow-step {
  padding: 32px 28px;
  position: relative;
}
.flow-step + .flow-step { border-left: 1px solid var(--hairline); }
.flow-step .num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--aqua);
}
.flow-step .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin: 16px 0 18px;
  background: rgba(124,108,255,.1);
  border: 1px solid var(--hairline);
  color: var(--violet-soft);
}
.flow-step .ic svg { width: 24px; height: 24px; }
.flow-step h3 { font-size: 1.16rem; color: var(--ink); }
.flow-step p { margin-top: 9px; font-size: .94rem; }
.flow-step .arrow {
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--aqua);
}
.flow-step .arrow svg { width: 13px; height: 13px; }
.flow-note {
  margin-top: 22px;
  font-size: .9rem;
  color: var(--ink-mute);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.flow-note svg { width: 17px; height: 17px; color: var(--aqua); flex: none; margin-top: 3px; }

/* ---------- Verify / safety number block ------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.safety-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,35,48,.6), rgba(15,20,27,.6));
  padding: 28px;
  box-shadow: var(--shadow);
}
.safety-card .sc-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; border-bottom: 1px solid var(--hairline-soft);
}
.safety-card .sc-head .ring {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(47,208,127,.12);
  border: 1px solid rgba(47,208,127,.3);
  color: var(--ok);
}
.safety-card .sc-head .ring svg { width: 22px; height: 22px; }
.safety-card .sc-head b { font-family: var(--font-display); font-size: 1.05rem; }
.safety-card .sc-head small { display: block; color: var(--ink-mute); font-size: .78rem; }
.safety-num {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: .94rem;
  letter-spacing: .06em;
  color: var(--aqua);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 14px;
}
.safety-num span {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--hairline-soft);
  border-radius: 8px;
  padding: 8px 0;
  text-align: center;
}
.safety-foot {
  margin-top: 18px; font-size: .82rem; color: var(--ink-mute);
  display: flex; align-items: center; gap: 9px;
}
.safety-foot svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- Privacy promise grid --------------------------------------- */
.promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.promise {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.015);
}
.promise .pic {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(124,108,255,.1);
  color: var(--violet-soft);
  border: 1px solid var(--hairline);
}
.promise .pic svg { width: 20px; height: 20px; }
.promise h3 { font-size: 1.05rem; color: var(--ink); }
.promise p { margin-top: 5px; font-size: .92rem; }

/* ---------- CTA band ---------------------------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(124,108,255,.18), transparent 60%),
    radial-gradient(70% 120% at 50% 120%, rgba(52,160,196,.16), transparent 60%),
    rgba(15,20,27,.7);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 46ch; margin: 16px auto 0; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 40px;
  margin-top: clamp(48px, 7vw, 96px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px 24px;
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: .92rem; max-width: 38ch; color: var(--ink-mute); }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-soft); font-size: .94rem; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-mute);
}
.foot-bottom .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .76rem; color: var(--ink-mute);
}
.foot-bottom .badge svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- Long-form / legal layout ----------------------------------- */
.legal-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hairline-soft);
}
.legal-hero .eyebrow { margin-bottom: 20px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-hero .updated {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-mute);
}
.legal-hero .lede { margin-top: 18px; max-width: var(--maxw-read); font-size: 1.08rem; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 64px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255,255,255,.015);
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; counter-reset: toc; }
.toc a {
  display: block;
  color: var(--ink-soft);
  font-size: .88rem;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.35;
}
.toc a:hover { background: rgba(255,255,255,.05); color: var(--ink); }

.prose { max-width: var(--maxw-read); }
.prose > section { scroll-margin-top: 96px; }
.prose > section + section { margin-top: 48px; }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prose h2 .sn {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--aqua);
  font-weight: 500;
}
.prose h3 { margin-top: 26px; font-size: 1.1rem; color: var(--ink); }
.prose p { margin-top: 14px; line-height: 1.72; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-top: 9px; line-height: 1.66; }
.prose li::marker { color: var(--aqua); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(95,208,224,.4); }

.callout {
  margin-top: 20px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(52,160,196,.06);
  padding: 18px 20px;
}
.callout strong { color: var(--aqua); }
.callout p { margin-top: 6px; }
.callout p:first-child { margin-top: 0; }

/* ---------- FAQ / Support ---------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: var(--maxw-read); }
details.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
details.faq-item[open] { border-color: rgba(95,208,224,.3); background: rgba(52,160,196,.04); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .plus {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--aqua);
  transition: transform .3s ease;
}
details.faq-item summary .plus svg { width: 14px; height: 14px; }
details.faq-item[open] summary .plus { transform: rotate(45deg); }
details.faq-item .ans { padding: 0 22px 22px; }
details.faq-item .ans p { margin-top: 0; }
details.faq-item .ans p + p { margin-top: 12px; }

.contact-card {
  margin-top: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(52,160,196,.12), transparent 55%),
    rgba(15,20,27,.7);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.contact-card .ic {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(124,108,255,.12);
  border: 1px solid var(--hairline);
  color: var(--violet-soft);
}
.contact-card .ic svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.3rem; color: var(--ink); }
.contact-card p { margin-top: 6px; font-size: .96rem; }
.contact-card .cc-text { flex: 1 1 300px; display: flex; gap: 18px; align-items: center; }

/* ---------- Reveal-on-load animation ----------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-ready [data-reveal] {
  animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; }
  .cipher-chip { right: 2px; }
  .features { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step + .flow-step { border-left: none; border-top: 1px solid var(--hairline); }
  .flow-step .arrow {
    right: 50%; top: auto; bottom: -11px; transform: translateX(50%) rotate(90deg);
  }
  .split { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .safety-num { grid-template-columns: repeat(3, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; }
}
