/* ---------- tokens ---------- */
:root {
  --bg: #06070a;
  --bg-elev: #0c0f14;
  --bg-elev-2: #10141b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f3;
  --text-dim: #9aa3ad;
  --text-dimmer: #6b7280;
  --accent: #47e0c2;
  --accent-2: #7c8cff;
  --accent-soft: rgba(71, 224, 194, 0.12);
  --danger-glow: rgba(124, 140, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* main/footer sit in their own stacking layer above the fixed shader canvas;
   their section backgrounds are translucent so it reads through the whole
   page instead of just the hero. */
main, .footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }

.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle film grain overlay for the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* fixed full-viewport flow-field "water" shader, behind the whole page */
.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* reading-progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.06);
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(71, 224, 194, 0.5);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 7, 10, 0.82);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--accent); display: flex; align-items: center; }
.brand-mark img { display: block; height: 24px; width: auto; }
.brand-sm .brand-mark img { height: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { color: var(--bg) !important; opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  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;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #04140f;
  box-shadow: 0 0 0 0 rgba(71, 224, 194, 0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px -8px rgba(71, 224, 194, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* transparent, like every other section — the fixed hero-canvas shader */
  /* behind the whole page shows through here too */
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, transparent 0%, var(--bg) 92%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 100px;
  max-width: 780px;
  will-change: transform, opacity;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.scroll-cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 24px;
}
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-dimmer);
}

/* ---------- trust bar / marquee ---------- */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 20, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track .sep { color: var(--text-dimmer); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
}

/* ---------- section shared ---------- */
section { position: relative; }
.section-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.features h2,
.how-it-works h2,
.security h2,
.preview h2,
.testimonials h2,
.pricing h2,
.faq h2,
.webapp h2,
.download h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 620;
  max-width: 640px;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 16.5px;
  color: var(--text-dim);
  max-width: 560px;
}

/* ---------- features ---------- */
.features { padding: 130px 0 120px; }
.feature-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(12, 15, 20, 0.62);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s ease-out;
  transform-style: preserve-3d;
}
.feature-card:hover {
  border-color: var(--line-strong);
  background: rgba(16, 20, 27, 0.78);
}
/* Higher specificity than the generic .js [data-reveal] rule below so the
   scroll-in offset and the pointer tilt can compose into one transform
   instead of the two rules clobbering each other. */
.js .feature-card[data-reveal] {
  transform: translateY(var(--reveal-y, 18px)) perspective(800px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 620;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- product preview (CSS-built app window mockup) ---------- */
.preview { padding: 40px 0 130px; }
.preview .content:first-child { margin-bottom: 44px; }
.preview h2 { max-width: 620px; }

.app-window {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 12, 17, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(71, 224, 194, 0.05) inset;
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.win-dot-red { background: #ff5f57; }
.win-dot-yellow { background: #febc2e; }
.win-dot-green { background: #28c840; }
.app-window-title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.app-window-lock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 999px;
}
.app-window-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 320px;
}
.app-sidebar {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.app-contact.is-active {
  background: rgba(71, 224, 194, 0.1);
  color: var(--text);
}
.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}
.app-contact .badge {
  margin-left: auto;
  font-size: 10.5px;
  background: var(--accent);
  color: #04140f;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 700;
}
.app-chat {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
}
.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg-out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #2fae97);
  color: #04140f;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.app-chat-notice {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  font-size: 12px;
  color: var(--text-dimmer);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
}

@media (max-width: 640px) {
  .app-window-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
}

/* ---------- testimonials ---------- */
.testimonials { padding: 130px 0; }
.testimonial-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  margin: 0;
  background: rgba(12, 15, 20, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
}
.t-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}
.t-meta { display: flex; flex-direction: column; }
.t-name { font-size: 13.5px; font-weight: 600; }
.t-role { font-size: 12px; color: var(--text-dimmer); }

.testimonial-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.testimonial-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }

/* ---------- pricing ---------- */
.pricing { padding: 130px 0; }
.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
}
.price-card {
  position: relative;
  background: rgba(12, 15, 20, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.price-card-highlight {
  border-color: rgba(71, 224, 194, 0.45);
  background: rgba(16, 26, 24, 0.7);
  box-shadow: 0 30px 80px -40px rgba(71, 224, 194, 0.35);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #04140f;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 16px;
  font-weight: 620;
  color: var(--text-dim);
}
.price {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 10px 0 22px;
}
.price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.price-card .btn { justify-content: center; }

.pricing-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }

/* ---------- faq ---------- */
.faq { padding: 130px 0; }
.faq-list {
  margin-top: 48px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: rgba(12, 15, 20, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 560;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 1.6px; }
.faq-icon::after { left: 8px; top: 0; width: 1.6px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- how it works: pinned scrollytelling ---------- */
.how-it-works {
  padding: 140px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how-intro { position: relative; max-width: 640px; }
.how-intro h2 { max-width: 620px; }

/* tall scroll track; the inner stage stays pinned to the viewport for its
   entire height, giving the background particle morph room to play out */
.scrolly {
  position: relative;
  height: 280vh;
}
.scrolly-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.scrolly-step {
  position: absolute;
  max-width: 460px;
  padding: 30px 34px;
  text-align: left;
  background: rgba(9, 11, 16, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.scrolly-step.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.scrolly-step.is-past {
  opacity: 0;
  transform: translateY(-24px) scale(0.98);
}
.scrolly-step .step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.scrolly-step h3 {
  font-size: 20px;
  font-weight: 640;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}
.scrolly-step p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .scrolly-step {
    transition: opacity 0.2s linear;
    transform: none !important;
  }
}

/* ---------- security ---------- */
.security { padding: 130px 0; }
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.checklist {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(71, 224, 194, 0.4);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.security-panel {
  background: rgba(9, 11, 16, 0.68);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 22px 26px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(71, 224, 194, 0.04) inset;
}
.panel-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}
.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.panel-code {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #cfd6dc;
}
.c-com { color: #5c6773; }
.c-kw { color: var(--accent-2); }
.c-fn { color: var(--accent); }
.c-str { color: #f2c98a; }

/* ---------- web app ---------- */
.webapp {
  position: relative;
  padding: 130px 0 110px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.webapp-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(71, 224, 194, 0.22) 0%, rgba(124, 140, 255, 0.12) 42%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  animation: webappGlowPulse 7s ease-in-out infinite;
}
@keyframes webappGlowPulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.webapp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.webapp-eyebrow { margin-bottom: 22px; }
.webapp h2 { max-width: 700px; margin-left: auto; margin-right: auto; }
.webapp-lead { max-width: 580px; margin: 0 auto 30px; }

.webapp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.webapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 15px;
  border-radius: 999px;
}
.webapp-badge svg { color: var(--accent); flex-shrink: 0; }

.webapp-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}
.webapp-cta .btn-primary {
  box-shadow: 0 0 0 0 rgba(71, 224, 194, 0.4);
  animation: webappBtnGlow 2.6s ease-in-out infinite;
}
@keyframes webappBtnGlow {
  0%, 100% { box-shadow: 0 8px 30px -10px rgba(71, 224, 194, 0.45); }
  50% { box-shadow: 0 10px 42px -8px rgba(71, 224, 194, 0.75); }
}
.webapp-url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dimmer);
  letter-spacing: 0.01em;
}

.webapp-window {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(71, 224, 194, 0.08) inset,
    0 0 90px -20px rgba(71, 224, 194, 0.25);
  animation: webappFloat 6s ease-in-out infinite;
}
@keyframes webappFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.webapp-address-bar {
  margin-left: 8px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  max-width: 320px;
}
.webapp-address-bar svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 640px) {
  .webapp-bar { flex-wrap: wrap; row-gap: 8px; }
  .webapp-address-bar { max-width: 100%; margin-left: 0; order: 1; flex-basis: 100%; }
}

/* ---------- download ---------- */
.download {
  padding: 130px 0 140px;
  text-align: center;
}
.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.download h2 { max-width: none; }
.download .section-lead { max-width: 520px; }

.download-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  width: 100%;
}
.download-card {
  background: rgba(12, 15, 20, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.download-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.download-card h3 {
  font-size: 16px;
  font-weight: 620;
  margin-bottom: 6px;
}
.download-meta {
  font-size: 12.5px;
  color: var(--text-dimmer);
  margin-bottom: 18px;
  min-height: 32px;
}
.download-card .btn {
  width: 100%;
  justify-content: center;
}

.download-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.download-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 760px) {
  .download-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ---------- legal pages (privacy / terms / security disclosure) ---------- */
.legal-hero { padding: 150px 0 30px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 26px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent); }
.legal-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-dimmer);
}
.legal-body {
  padding: 30px 0 120px;
  max-width: 740px;
}
.legal-body h2 {
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 38px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}
.legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-note {
  margin-top: 34px;
  padding: 16px 18px;
  background: rgba(71, 224, 194, 0.06);
  border: 1px solid rgba(71, 224, 194, 0.25);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 280px; }
.brand-sm { font-size: 14.5px; }
.footer-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.footer-copyright {
  font-size: 12.5px;
  color: var(--text-dimmer);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- reveal-on-scroll ---------- */
/* Gated behind the .js class (set by an inline script at the top of
   <body>, see index.html) so content is visible by default and only
   opts into the hidden-until-scrolled-into-view treatment once we know
   JS actually ran. Without this, any JS failure — a blocked script, a
   file:// CORS block, a flaky CDN — would leave every [data-reveal]
   section permanently invisible instead of just losing the animation. */
.js [data-reveal] {
  --reveal-y: 18px;
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-visible {
  --reveal-y: 0px;
  opacity: 1;
}
.feature-grid [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.feature-grid [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.feature-grid [data-reveal]:nth-child(4) { transition-delay: 0.18s; }
.feature-grid [data-reveal]:nth-child(5) { transition-delay: 0.24s; }
.feature-grid [data-reveal]:nth-child(6) { transition-delay: 0.3s; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .scrolly-step { max-width: 88vw; padding: 24px 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-height: 640px) {
  .scroll-cue { display: none; }
}

@media (max-width: 960px) and (min-width: 681px) {
  .nav-links { gap: 16px; font-size: 13.5px; }
  .nav-cta { padding: 7px 13px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(6, 7, 10, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }

  .feature-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 150px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
