/* Midnight Messenger marketing site design system.
   Matches the product's own dark/ember theme (see apps/web) for brand
   consistency between the site and the app. */

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

:root {
  --bg: #0b0705;
  --bg-2: #120a06;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6ede3;
  --text-dim: #b9a99a;
  --text-faint: #a59484;
  --accent: #ff7a1a;
  --accent-2: #ffb347;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --green: #4ade80;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #1a0d04;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient background glow, shared by every page */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(255, 122, 26, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(255, 138, 61, 0.10), transparent 60%),
    radial-gradient(ellipse 800px 700px at 50% 120%, rgba(255, 100, 20, 0.08), transparent 60%),
    var(--bg);

}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Darkens the readable center column (and the very top/bottom, under the
   nav and footer) so the particle network stays visible at the page
   edges without fighting body text for contrast. Sits above the canvas,
   still behind all real content. */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 7, 5, 0.6) 0%, rgba(11, 7, 5, 0.15) 14%, rgba(11, 7, 5, 0.15) 86%, rgba(11, 7, 5, 0.6) 100%),
    radial-gradient(ellipse 780px 100% at 50% 50%, rgba(11, 7, 5, 0.55), transparent 72%);
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.6);
}

/* Custom cursor, desktop/fine-pointer only (JS gates this on) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-2);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 179, 71, 0.5);
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
  opacity: 1;
}

body.has-custom-cursor.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  background: rgba(255, 122, 26, 0.08);
  border-color: var(--accent);
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input {
  cursor: none;
}


/* Live demo widget */
.demo-widget {
  margin: 70px auto 0;
  max-width: 640px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: 26px 28px 22px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.demo-widget::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 122, 26, 0.14), transparent 55%);
  pointer-events: none;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);

}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.demo-col label, .demo-output-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.demo-col input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.demo-col input:focus {
  border-color: var(--accent);
}

.demo-output {
  min-height: 44px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent-2);
  word-break: break-all;
  overflow: hidden;
}

.demo-arrow {
  color: var(--text-faint);
  padding-top: 20px;
}

.demo-footer {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.demo-footer strong {
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.demo-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 7, 5, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand span.dim {
  color: var(--text-dim);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

.mobile-menu a {
  padding: 12px 4px;
  color: var(--text-dim);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d04;
  box-shadow: 0 8px 24px -8px rgba(255, 122, 26, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px -6px rgba(255, 122, 26, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 100px 0 60px;
  position: relative;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 26, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 24px;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* Trust bar */
.trust-bar {
  padding: 20px 0 40px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
}

.trust-chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.15s ease-out, border-color 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.card:hover {
  border-color: rgba(255, 122, 26, 0.35);
  background: var(--surface-hover);
}

/* [data-magnetic] elements get their transform set inline by JS on
   mousemove; this transition just smooths it out and the reset on
   mouseleave. Buttons already transition transform for :active, this
   covers the magnetic-pull case specifically. */
[data-magnetic] {
  transition: transform 0.15s ease-out, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.06rem;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid rgba(255, 122, 26, 0.35);
  background: var(--accent-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.step-connector {
  position: absolute;
  top: 17px;
  left: 100%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* Explainer split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.split p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1rem;
}

.check-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.explainer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.explainer-panel .line {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.explainer-panel .line:last-child {
  border-bottom: none;
}

.explainer-panel .k {
  color: var(--accent-2);
  flex-shrink: 0;
}

.explainer-panel .panel-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: color 0.2s ease;
}

.explainer-panel .panel-link:hover,
.explainer-panel .panel-link:focus-visible {
  color: var(--accent-2);
}

/* Platforms */
.platform-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.platform-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  min-width: 200px;
}

.platform-pill .status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: auto;
}

.status-live {
  background: rgba(74, 222, 128, 0.14);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Community / CTA band */
.cta-band {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.08), rgba(255, 122, 26, 0.02));
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 30px;
}

.community-actions {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

/* FAQ preview */
.faq-preview-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Accordion (shared with faq.html) */
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 22px;
  cursor: pointer;
}

.accordion-trigger .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
}

.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
}

.accordion-trigger .plus::before {
  width: 10px;
  height: 1.5px;
}

.accordion-trigger .plus::after {
  width: 1.5px;
  height: 10px;
  transition: opacity 0.25s ease;
}

.accordion-item.open .plus {
  transform: rotate(180deg);
}

.accordion-item.open .plus::after {
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 0 22px 22px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.accordion-panel-inner a {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(255, 122, 26, 0.35);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* Content stays visible when JavaScript is unavailable. */
.reveal { transition: opacity .45s ease, transform .45s ease; }
.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}

/* Simple page header for privacy/faq */
.page-header {
  padding: 130px 0 50px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

.updated-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Legal / doc content */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.doc-nav a {
  font-size: 0.84rem;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.doc-nav a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.doc h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p, .doc li {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.doc ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.doc strong {
  color: var(--text);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.callout strong {
  color: var(--accent-2);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .step-connector { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }

}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 40px; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-row { gap: 8px; }
  .cta-band { padding: 40px 22px; }
  .footer-inner { flex-direction: column; }


  .demo-body { grid-template-columns: 1fr; }
  .demo-arrow { display: none; }
  .demo-widget { padding: 22px 18px 18px; }
}



/* Conversation preview: illustrative interface, never an interactive chat. */
.hero { padding-top: 68px; }
.hero-inner { max-width: 1020px; }
.hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-sub { margin-bottom: 28px; }
.hero-note { max-width: 580px; margin: 0 auto; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
section[id] { scroll-margin-top: 100px; }
@media (max-width: 600px) {
  .nav-inner { gap: 10px; flex-wrap: wrap; }
  .nav-cta { margin-left: auto; gap: 6px; }
  .brand { gap: 6px; font-size: .9rem; }
  .nav .btn-sm { font-size: .74rem; padding: 8px 11px; }
  .hero { padding-top: 42px; }
  .eyebrow { font-size: .63rem; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Two-device messaging illustration. Static complete state is the default. */
.privacy-scene { max-width: 820px; margin: 48px auto 0; text-align: center; }
.identity-panel { position: relative; z-index: 1; max-width: 360px; margin: auto; padding: 22px 24px; border: 1px solid #81512c; border-radius: 20px; background: linear-gradient(145deg, #28190f, #130e0a); box-shadow: 0 0 55px -18px #ff7a1a55; }
.identity-overline { color: var(--accent-2); font: .65rem var(--font-mono); text-transform: uppercase; letter-spacing: .15em; }
.identity-panel h2 { font-size: 1.05rem; margin: 8px 0; letter-spacing: -.02em; }
.identity-panel p { font-size: .8rem; color: var(--text-dim); }
.identity-badge { display: inline-block; margin-top: 13px; font-size: .64rem; color: var(--accent-2); border: 1px solid #654126; padding: 4px 10px; border-radius: 20px; }
.identity-paths { position: relative; height: 64px; width: 66%; margin: auto; display: flex; }
.identity-paths span { width: 50%; height: 36px; margin-top: 28px; border-top: 1px dashed #735032; position: relative; }
.identity-paths span:first-child { border-left: 1px dashed #735032; border-radius: 12px 0 0 0; }
.identity-paths span:last-child { border-right: 1px dashed #735032; border-radius: 0 12px 0 0; }
.identity-paths::before { content: ''; position: absolute; height: 28px; left: 50%; border-left: 1px dashed #735032; }
.device-stage { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; max-width: 740px; margin: auto; }
.device-column { min-width: 0; }
.device-label { font-size: .83rem; margin-bottom: 12px; font-weight: 600; }
.device-label span { color: var(--text-faint); font-weight: 400; }
.phone { border: 1px solid #5a493d; padding: 9px; border-radius: 34px; background: #0f0d0b; box-shadow: 0 22px 50px -22px #000; text-align: left; overflow: hidden; }
.phone-right { border-radius: 25px; border-color: #504c47; }
.phone-system { height: 25px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; font-size: .6rem; position: relative; }
.phone-camera { position: absolute; left: 50%; transform: translateX(-50%); width: 62px; height: 16px; border-radius: 20px; background: #000; }
.phone-right .phone-camera { width: 9px; height: 9px; }
.phone-app-name { padding: 17px 9px 12px; font-size: .7rem; font-weight: 600; color: var(--accent-2); }
.phone-app-name span { color: var(--text-dim); font-weight: 400; }
.phone-contact { display: flex; gap: 9px; align-items: center; padding: 10px 9px; border-top: 1px solid var(--border); }
.phone-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #442716; color: var(--accent-2); font-size: .7rem; }
.phone-contact strong { display: block; font-size: .8rem; }
.phone-contact small { display: block; color: var(--text-faint); font-size: .62rem; }
.phone-security { margin: 4px 9px 0; color: var(--accent-2); font-size: .58rem; }
.phone-messages { display: flex; flex-direction: column; gap: 13px; height: 254px; padding: 18px 8px 8px; position: relative; }
.phone-date { color: var(--text-faint); text-align: center; font-size: .58rem; margin-bottom: 3px; }
.phone-bubble { padding: 9px 11px 5px; max-width: 90%; font-size: .74rem; line-height: 1.45; }
.phone-bubble time { display: block; font-size: .5rem; opacity: .7; text-align: right; margin-top: 5px; }
.incoming { align-self: flex-start; background: #29211b; border-radius: 12px 12px 12px 3px; }
.outgoing { align-self: flex-end; background: #f49a50; color: #251309; border-radius: 12px 12px 3px 12px; }
.phone-composer { display: flex; justify-content: space-between; align-items: center; margin: 12px 6px 15px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 16px; font-size: .66rem; color: var(--text-faint); }
.phone-composer span:last-child { color: var(--accent-2); }
.phone-home { height: 3px; width: 36%; margin: 0 auto 3px; background: #71675f; border-radius: 3px; }
.device-key { font-size: .62rem; color: var(--text-faint); margin-top: 13px; }
.message-route { color: var(--accent-2); align-self: center; padding-bottom: 20px; }
.route-title { font: .63rem/1.6 var(--font-mono); }
.route-line { height: 1px; background: #674128; margin: 22px 0; position: relative; }
.cipher-packet { position: absolute; top: 0; left: 0; transform: translateY(-50%); white-space: nowrap; padding: 6px 8px; border: 1px solid var(--accent); border-radius: 6px; background: #24150c; font: .6rem var(--font-mono); opacity: 0; }
.route-note { color: var(--text-faint); font-size: .6rem; }
.scene-footer { margin: 22px auto 12px; min-height: 76px; }
.scene-status { color: var(--text-dim); font-size: .78rem; margin-bottom: 12px; }
.scene-replay { font-size: .7rem; padding: 6px 13px; }
.scene-replay[hidden] { display: none; }
.privacy-scene figcaption { font-size: .7rem; color: var(--text-faint); line-height: 1.8; }
.phone-typing { display: flex; gap: 4px; position: absolute; left: 12px; top: 55px; opacity: 0; padding: 10px; border-radius: 12px; background: #29211b; }
.phone-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.privacy-scene.is-ready .phone-bubble { opacity: 0; }
.privacy-scene.is-playing .phone-bubble { animation: message-arrive .4s ease both; }
.privacy-scene.is-playing .first-send { animation-delay: 2.4s; }
.privacy-scene.is-playing .first-receive { animation-delay: 3.8s; }
.privacy-scene.is-playing .reply-send { animation-delay: 5.8s; }
.privacy-scene.is-playing .reply-receive { animation-delay: 7.2s; }
.privacy-scene.is-playing .last-send { animation-delay: 8.4s; }
.privacy-scene.is-playing .last-receive { animation-delay: 9.8s; }
.privacy-scene.is-playing .identity-panel { animation: identity-check 2s ease both; }
.privacy-scene.is-playing .identity-paths { animation: identity-check 2s ease both; }
.privacy-scene.is-playing .cipher-packet { animation: packet-transit 10.4s linear both; }
.privacy-scene.is-playing .phone-left .phone-typing { animation: typing-window 1.1s 1.2s both; }
.privacy-scene.is-playing .phone-right .phone-typing { top: 117px; animation: typing-window 1.4s 4.3s both; }
@keyframes message-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes identity-check { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.7); } }
@keyframes typing-window { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
@keyframes packet-transit {
  0%, 24% { opacity: 0; left: 0; transform: translate(0, -50%); }
  26% { opacity: 1; left: 0; transform: translate(0, -50%); }
  35% { opacity: 1; left: 100%; transform: translate(-100%, -50%); }
  37%, 56% { opacity: 0; left: 100%; transform: translate(-100%, -50%); }
  58% { opacity: 1; left: 100%; transform: translate(-100%, -50%); }
  68% { opacity: 1; left: 0; transform: translate(0, -50%); }
  70%, 81% { opacity: 0; left: 0; transform: translate(0, -50%); }
  83% { opacity: 1; left: 0; transform: translate(0, -50%); }
  93% { opacity: 1; left: 100%; transform: translate(-100%, -50%); }
  95%, 100% { opacity: 0; left: 100%; transform: translate(-100%, -50%); }
}
@media (max-width: 600px) {
  .device-stage { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); }
  .identity-panel { max-width: 290px; padding: 18px 14px; }
  .identity-panel h2 { font-size: .95rem; }
  .identity-paths { width: 60%; height: 54px; }
  .identity-paths span { height: 26px; }
  .phone { padding: 5px; border-radius: 22px; }
  .phone-right { border-radius: 17px; }
  .phone-system { padding: 0 6px; font-size: .48rem; }
  .phone-camera { width: 35px; height: 12px; }
  .phone-app-name { font-size: .58rem; padding: 12px 5px 10px; }
  .phone-app-name span { display: block; }
  .phone-contact { padding: 9px 4px; gap: 5px; }
  .phone-avatar { width: 23px; height: 23px; font-size: .6rem; }
  .phone-contact strong { font-size: .68rem; }
  .phone-contact small { font-size: .54rem; }
  .phone-security { font-size: .48rem; margin: 4px 3px 0; }
  .phone-messages { padding: 15px 3px 5px; height: 140px; gap: 11px; }
  .phone-bubble { font-size: .63rem; padding: 8px 7px 5px; max-width: 96%; }
  .phone-composer { margin: 10px 2px; font-size: .58rem; padding: 7px; }
  .device-label { font-size: .7rem; }
  .device-label span { display: block; font-size: .6rem; }
  .device-key { font-size: .54rem; }
  .route-title, .route-note { display: none; }
  .cipher-packet { font-size: 0; padding: 4px; width: 9px; height: 9px; }
  .scene-status { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-scene.is-ready .phone-bubble { opacity: 1; }
  .privacy-scene .phone-typing, .privacy-scene .cipher-packet { display: none; }
}

/* Hardware frames: separate metal rim, black bezel, and inset screen. */
.phone { position: relative; padding: 7px; overflow: visible; border: 1px solid #9c9892; border-radius: 43px; background: linear-gradient(110deg, #aaa7a0 0%, #393735 3%, #151515 8%, #292827 91%, #8b8780 98%, #363432 100%); box-shadow: inset 0 0 0 2px #55514c, 0 0 0 1px #161513, 0 25px 45px -20px #000, -7px 0 22px -18px #ffe3c3; }
.phone-screen { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; border: 3px solid #030303; border-radius: 35px; background: linear-gradient(160deg, #17130f, #0c0b0a 65%); }
.phone-right { border-radius: 31px; background: linear-gradient(100deg, #787e80, #23282a 5%, #101213 90%, #7f8689 98%, #282c2e); box-shadow: inset 0 0 0 2px #444b4d, 0 0 0 1px #121516, 0 25px 45px -20px #000; }
.phone-right .phone-screen { border-radius: 23px; }
.device-button { position: absolute; display: block; width: 3px; background: linear-gradient(90deg, #292725, #8d8983, #34312e); border-radius: 2px; }
.button-power { right: -4px; top: 125px; height: 52px; }
.button-volume { left: -4px; top: 122px; height: 35px; box-shadow: 0 47px 0 #625d56; }
.button-action { left: -4px; top: 78px; height: 21px; }
.phone-right .button-power { top: 165px; height: 38px; }
.phone-right .button-volume { left: auto; right: -4px; top: 85px; height: 60px; box-shadow: none; }
.phone-right .button-action { display: none; }
.phone-system { height: 40px; flex-shrink: 0; padding: 6px 15px 0; }
.phone-camera { width: 75px; height: 22px; box-shadow: inset 0 0 0 1px #151515; }
.phone-camera::after { content: ''; position: absolute; right: 8px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #253245, #080a0f 60%); }
.phone-right .phone-camera { width: 12px; height: 12px; box-shadow: 0 0 0 2px #222426; }
.phone-right .phone-camera::after { top: 3px; right: 3px; width: 6px; height: 6px; }
.phone-messages { flex: 1; min-height: 254px; }
.phone-home { flex-shrink: 0; margin: 4px auto 8px; background: #aaa5a0; }
.phone-composer { min-height: 43px; gap: 7px; }
.composer-text { min-width: 0; overflow-wrap: anywhere; font-size: .64rem; line-height: 1.35; }
.composer-send { flex-shrink: 0; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #422515; }
.phone-composer.is-typing { border-color: #996031; }
.phone-composer.is-typing .composer-text { color: var(--text); }
.phone-composer.is-typing .composer-text::after { content: ''; display: inline-block; height: .85em; border-right: 1px solid var(--accent-2); margin-left: 2px; vertical-align: -1px; animation: text-caret .65s steps(1) infinite; }
@keyframes text-caret { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .phone { padding: 4px; border-radius: 25px; }
  .phone-screen { min-height: 400px; border-width: 2px; border-radius: 20px; }
  .phone-right { border-radius: 20px; }
  .phone-right .phone-screen { border-radius: 15px; }
  .phone-system { height: 29px; padding: 3px 6px 0; }
  .phone-camera { width: 35px; height: 13px; }
  .phone-camera::after { right: 4px; top: 4px; width: 4px; height: 4px; }
  .phone-right .phone-camera { width: 8px; height: 8px; }
  .phone-right .phone-camera::after { right: 2px; top: 2px; width: 4px; height: 4px; }
  .device-status svg { width: 18px; height: 8px; }
  .button-power { top: 106px; height: 38px; }
  .button-volume { top: 95px; height: 26px; box-shadow: 0 35px 0 #625d56; }
  .button-action { top: 62px; height: 16px; }
  .phone-composer { min-height: 52px; padding: 6px; }
  .composer-text { font-size: .57rem; }
  .composer-send { width: 16px; height: 16px; }
  .phone-messages { min-height: 140px; }
}

/* Keep each letter's natural width while its decorative cipher changes. */
.decode-word { display: inline-block; white-space: nowrap; }
.decode-char { display: inline-block; position: relative; }
.decode-char.is-coded { color: transparent; }
.decode-char.is-coded::after {
  content: attr(data-code);
  position: absolute;
  inset: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.36;
  text-align: center;
}
.hero h1 .accent-text:has(.decode-char) { background: none; color: var(--accent); }
.accent-text .decode-char.is-coded::after { color: var(--accent-2); }
.decode-toggle {
  margin: 12px auto 0;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.decode-toggle:hover { color: var(--text); border-color: var(--accent); }
.decode-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.footer-credit a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credit a:hover { color: var(--text); }

/* Keep the decorative negative-z layers above the page background. */
body { isolation: isolate; }
