*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

:root {
  --bg: #0c1117;
  --bg2: #0d1823;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hov: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hov: rgba(77, 184, 133, 0.4);
  --primary: #4db885;
  --primary-dim: rgba(77, 184, 133, 0.12);
  --primary-glo: rgba(77, 184, 133, 0.22);
  --text: #e2e8f0;
  --muted: #7a909f;
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* Lucide icon sizing contexts */
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.step-icon svg.lucide {
  width: 22px;
  height: 22px;
}
.format-icon svg.lucide {
  width: 22px;
  height: 22px;
}
.tool-icon svg.lucide {
  width: 24px;
  height: 24px;
}
.privacy-icon svg.lucide {
  width: 24px;
  height: 24px;
}
.mock-tool svg.lucide {
  width: 12px;
  height: 12px;
}
.mock-drag-handle svg.lucide {
  width: 16px;
  height: 16px;
}
.mock-badge svg.lucide {
  width: 14px;
  height: 14px;
}
.mock-device-chip svg.lucide {
  width: 14px;
  height: 14px;
}
.trust-chip svg.lucide {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(12, 17, 23, 0.9);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
nav.nav-open {
  background: var(--bg);
  border-color: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
/* underline comes in from the left and leaves to the right, a little crooked —
   like someone underlining with a pen, not a progress bar */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -2px;
  right: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0) rotate(-1.5deg);
  transform-origin: right center;
  transition: transform 0.32s cubic-bezier(0.55, 0, 0.25, 1);
}
.nav-links li:nth-child(even) a::after {
  transform: scaleX(0) rotate(1deg);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1) rotate(-1.5deg);
  transform-origin: left center;
  transition-duration: 0.22s;
}
.nav-links li:nth-child(even) a:hover::after {
  transform: scaleX(1) rotate(1deg);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s;
  transform-origin: center;
}
nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
nav.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu panel */
.nav-mobile-menu {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  max-height: calc(100dvh - 58px);
  overflow-y: auto;
  /* fully out of view (incl. the 58px it starts below the top) and hidden,
     so its bottom border never peeks through the transparent nav */
  transform: translateY(calc(-100% - 58px));
  visibility: hidden;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.32s;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s;
}
@media (min-width: 901px) {
  .nav-mobile-menu {
    display: none;
  }
}
.nav-mobile-inner {
  padding: 8px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links li {
  border-bottom: 1px solid var(--border);
}
.nav-mobile-links li:last-child {
  border-bottom: none;
}
.nav-mobile-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition:
    color 0.18s,
    padding-left 0.18s;
}
.nav-mobile-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}
.nav-mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.nav-mobile-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-mobile-status:hover {
  color: var(--text);
}
.nav-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-beta-tag {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 3px;
  padding: 1px 4px;
  vertical-align: middle;
  margin-left: 3px;
}

/* ── Beta warning modal ──────────────────────────────────── */
#beta-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
#beta-modal.open {
  opacity: 1;
  pointer-events: all;
}
.beta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.78);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.beta-card {
  position: relative;
  background: #0c1520;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 14px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
#beta-modal.open .beta-card {
  transform: translateY(0) scale(1);
}
.beta-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  margin-bottom: 20px;
}
.beta-card-icon svg.lucide {
  width: 22px;
  height: 22px;
}
.beta-card h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.beta-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 10px;
}
.beta-card p:last-of-type {
  margin-bottom: 0;
}
.beta-card-warn {
  margin-top: 14px !important;
  padding: 12px 14px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 7px;
  color: rgba(251, 191, 36, 0.85) !important;
  font-size: 0.82rem !important;
}
.beta-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.beta-btn-cancel {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.beta-btn-cancel:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.beta-btn-go {
  flex: 1;
  padding: 10px 16px;
  border-radius: 7px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.beta-btn-go:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}
.nav-cta {
  background: var(--primary);
  color: #0c1117;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 20px;
  border-radius: 10px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.nav-mobile-cta {
  display: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.nav-status:hover {
  color: var(--text);
  border-color: rgba(77, 184, 133, 0.3);
}
.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 45% at 46% -8%,
      rgba(77, 184, 133, 0.07) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #0c1117 0%, #0d1823 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(77, 184, 133, 0.06) 1px,
    transparent 1px
  );
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dim);
  border: 1px solid rgba(77, 184, 133, 0.25);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  transition: box-shadow 0.3s;
}
.hero-badge:hover {
  box-shadow: 0 0 0 4px rgba(77, 184, 133, 0.12);
}
.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* The mascot doesn't float or glow. It just stands there, and every now and
   then it shifts its weight (JS adds .fidget at irregular intervals). */
.hero-mascot {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 28px;
  image-rendering: pixelated;
  transform-origin: 50% 100%;
  cursor: pointer;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.hero-mascot.fidget,
.cta-mascot.fidget {
  animation: fidget 0.9s steps(6, end);
}
.hero-mascot:hover,
.hero-mascot.hop {
  animation: hop 0.55s cubic-bezier(0.3, 0, 0.4, 1);
}
@keyframes fidget {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  45% { transform: rotate(3deg); }
  70% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(2px) scale(1.06, 0.92); }
  50% { transform: translateY(-16px) scale(0.96, 1.05); }
  80% { transform: translateY(1px) scale(1.04, 0.95); }
  100% { transform: translateY(0) scale(1, 1); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 30px;
}
/* words arrive one by one, at the pace someone would say them */
.hero-title .hw {
  display: inline-block;
}
.js .hero-title .hw {
  opacity: 0;
  transform: translateY(0.12em);
  transition:
    opacity 0.35s ease-out,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .hero-title .hw.said {
  opacity: 1;
  transform: none;
}
.hero-title .accent {
  color: var(--primary);
  position: relative;
}
.accent-scribble {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
  pointer-events: none;
}
.accent-scribble path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.85;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.6, 0, 0.3, 1);
}
.accent-scribble path + path {
  stroke-width: 2.5;
  opacity: 0.5;
  transition-delay: 0.55s;
  transition-duration: 0.45s;
}
.hero-title .accent.said .accent-scribble path,
html:not(.js) .accent-scribble path {
  stroke-dashoffset: 0;
}
.js .accent-scribble path {
  transition-delay: 0.45s;
}
.js .accent-scribble path + path {
  transition-delay: 1s;
}
.hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #0c1117;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  /* a physical key: it has a side you can see, and you can push it down */
  box-shadow: 0 3px 0 #2c7a55;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background-color 0.2s;
}
.btn-primary svg {
  transition: transform 0.25s cubic-bezier(0.3, 0, 0.3, 1.4);
}
.btn-primary:hover {
  background: #56c491;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #2c7a55;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #2c7a55;
  transition-duration: 0.05s;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out;
}
.btn-secondary:hover {
  background: var(--surface-hov);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.08);
}
.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 transparent;
  transition-duration: 0.05s;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.6s;
}
.js .hero-scroll:not(.shown) {
  opacity: 0;
}
/* no endless bouncing: the arrow only nudges if you've been sitting still a while */
.hero-scroll.nudge .scroll-arrow {
  animation: nudge 1.4s ease-in-out 2;
}
.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
@keyframes nudge {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  30% { transform: translateY(6px) rotate(45deg); }
  45% { transform: translateY(2px) rotate(45deg); }
  60% { transform: translateY(5px) rotate(45deg); }
}

/* Trust bar */
#trust {
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
#trust::before,
#trust::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
#trust::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 30%, transparent);
}
#trust::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 30%, transparent);
}
/* the ticker drifts slowly on its own and gets pushed along by your scrolling
   (transform is set in script.js) */
.trust-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  padding: 18px 28px;
  transition: color 0.2s;
  cursor: default;
}
.trust-chip:hover {
  color: var(--text);
}
.trust-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

/* Section base */
section {
  padding: 96px 24px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.8;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 60px;
}
.section-center {
  text-align: center;
}
.section-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Step flow */
#how {
  background: linear-gradient(180deg, #0c1117 0%, #0a1220 100%);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  position: relative;
  cursor: default;
}
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid rgba(77, 184, 133, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.step-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Format grid */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: default;
}
.format-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.format-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.format-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row.reverse {
  direction: rtl;
}
.feature-row.reverse > * {
  direction: ltr;
}
.feature-text .section-desc {
  margin-bottom: 28px;
}
/* a plain checklist: no pill per line, just a quick hand-made tick and a
   dashed rule, like notes on paper */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 10px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  line-height: 1.5;
  transition:
    color 0.2s,
    transform 0.3s cubic-bezier(0.3, 0, 0.3, 1);
}
.feature-list li:last-child {
  border-bottom: 0;
}
.feature-list li:hover {
  color: var(--text);
  transform: translateX(3px);
}
.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}
.feature-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.6c1.1.7 2.1 1.8 3 3.2C7.4 8 9.9 4.9 13.6 2.7' stroke='%234db885' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: rotate(-4deg);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.feature-list li:nth-child(3n + 2)::before {
  transform: rotate(5deg) scale(0.94);
}
.feature-list li:nth-child(3n)::before {
  transform: rotate(-1deg) scale(1.04);
}
.feature-list li:hover::before {
  transform: rotate(-10deg) scale(1.15);
}

/* Visual mock */
.feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s ease;
}
.feature-visual:hover {
  border-color: rgba(255, 255, 255, 0.13);
}
.mock-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-slide {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  min-height: 80px;
  transition: background 0.25s;
}
.mock-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.mock-line.primary {
  background: rgba(77, 184, 133, 0.35);
}
.mock-line.short {
  width: 55%;
}
.mock-line.med {
  width: 75%;
}
.mock-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mock-tool {
  background: var(--surface-hov);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.mock-tool:hover {
  background: rgba(77, 184, 133, 0.08);
  border-color: rgba(77, 184, 133, 0.25);
  color: var(--text);
}
.mock-tool.active {
  background: var(--primary-dim);
  border-color: rgba(77, 184, 133, 0.35);
  color: var(--primary);
}

.mock-drag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-drag-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.2s;
}
.mock-drag-handle {
  color: var(--muted);
  cursor: grab;
  display: flex;
  align-items: center;
}
.mock-drag-handle:active {
  cursor: grabbing;
}
.mock-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mock-qr {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 10px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 2px;
  padding: 8px;
}
.mock-qr-cell {
  background: #1a1a1a;
  border-radius: 1px;
}
.mock-qr-cell.w {
  background: transparent;
}
.mock-qr-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #f87171;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
.mock-device-chip {
  background: rgba(77, 184, 133, 0.12);
  border: 1px solid rgba(77, 184, 133, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.mock-device-chip:hover {
  background: rgba(77, 184, 133, 0.2);
}
.mock-device-chip.active {
  background: rgba(77, 184, 133, 0.25);
  border-color: rgba(77, 184, 133, 0.5);
  box-shadow: 0 0 0 2px rgba(77, 184, 133, 0.15);
}

/* Tools grid */
#tools {
  background: linear-gradient(180deg, #0a1220 0%, #0c1117 100%);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  cursor: default;
}
.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tool-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.tool-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.tool-tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(77, 184, 133, 0.2);
}

/* Privacy */
#privacy {
  background: var(--bg);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

/* ── Card hover (step / format / tool / privacy) ──────────
   No glow, no 3D tilt. A card gets picked up a little, at its own slight
   angle (--tilt is set per card in script.js), and casts a real shadow.
   Its icon reacts on its own, a beat later. */
.step-card,
.format-card,
.tool-card,
.privacy-card {
  --tilt: 0.6deg;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.4s cubic-bezier(0.25, 0.8, 0.35, 1),
    box-shadow 0.4s ease;
}
.step-card:hover,
.format-card:hover,
.tool-card:hover,
.privacy-card:hover {
  background: var(--surface-hov);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px) rotate(var(--tilt));
  box-shadow: 0 14px 22px -14px rgba(0, 0, 0, 0.85);
  transition-duration: 0.3s, 0.3s, 0.25s, 0.25s;
}
.step-icon,
.format-icon,
.tool-icon,
.privacy-icon {
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.06s;
}
.step-card:hover .step-icon,
.format-card:hover .format-icon,
.tool-card:hover .tool-icon,
.privacy-card:hover .privacy-icon {
  transform: rotate(calc(var(--tilt) * -9)) scale(1.06);
}
.tool-tag {
  transition: transform 0.3s ease 0.1s;
}
.tool-card:hover .tool-tag {
  transform: rotate(-2deg);
}
.privacy-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--primary-dim);
  border: 1px solid rgba(77, 184, 133, 0.2);
  color: var(--primary);
}
.privacy-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.privacy-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CTA */
#cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 60%,
    rgba(77, 184, 133, 0.05) 0%,
    transparent 70%
  );
}
#cta .section-inner {
  position: relative;
  z-index: 1;
}
#cta .section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
#cta .hero-actions {
  margin-top: 40px;
}
.cta-mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 24px;
  image-rendering: pixelated;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
}
/* it waves once when you arrive at the end */
.cta-mascot.wave {
  animation: wave 1.1s cubic-bezier(0.4, 0, 0.4, 1);
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-9deg); }
  35% { transform: rotate(7deg); }
  55% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Priority Access */
.priority-visual {
  background: var(--surface);
  border: 1px solid rgba(77, 184, 133, 0.22);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-dim);
  border: 1px solid rgba(77, 184, 133, 0.3);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.priority-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 2s infinite;
}
.priority-console {
  background: #060c12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: "Courier New", monospace;
  font-size: 0.79rem;
  margin-bottom: 20px;
  line-height: 1.8;
}
.priority-console-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
}
.priority-console-line.active {
  color: var(--text);
}
.priority-console-line.success {
  color: var(--primary);
}
.priority-console-prompt {
  color: rgba(77, 184, 133, 0.5);
  flex-shrink: 0;
}
.priority-ig-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e1306c 0%, #833ab4 100%);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: 12px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  margin-bottom: 12px;
}
.priority-ig-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.priority-ig-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Converter mock */
.conv-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.conv-fmt-chip {
  background: var(--surface-hov);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.conv-fmt-chip:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.conv-fmt-chip.active {
  background: var(--primary-dim);
  border-color: rgba(77, 184, 133, 0.3);
  color: var(--primary);
}
.conv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.conv-file {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    border-color 0.25s,
    background 0.25s,
    color 0.25s;
}
.conv-file.out {
  border-color: rgba(77, 184, 133, 0.3);
  background: var(--primary-dim);
  color: var(--primary);
}
.conv-arrow {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.conv-bar-wrap {
  margin-bottom: 16px;
}
.conv-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.conv-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
/* progress is driven by script.js: it stalls, jumps, finishes — like a real
   conversion — instead of sliding back and forth forever */
.conv-bar-fill {
  height: 100%;
  width: 68%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.35s ease-out;
}
.conv-bar-fill.reset {
  transition: none;
}
.conv-status.done .conv-spinner {
  border-color: var(--primary);
  animation: none;
  background: var(--primary);
  transform: scale(0.6);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.conv-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--primary);
  transition: color 0.25s;
}
.conv-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(77, 184, 133, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 3D viewer badge */
.viewer3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 14px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  z-index: 300;
  pointer-events: none;
  transition: width 0.15s ease-out;
}

/* ── Interactive: Director's View Drag-and-Drop ─────── */
#directors-list .mock-drag-item {
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.2s,
    transform 0.15s;
}
#directors-list .mock-drag-item.dragging {
  opacity: 0.35;
  border-style: dashed;
  transform: scale(0.97);
}
#directors-list .mock-drag-item.director-active {
  border-color: rgba(77, 184, 133, 0.3);
  background: rgba(77, 184, 133, 0.04);
}
#directors-list .mock-drag-item.director-active .mock-drag-handle {
  color: var(--primary);
}
#directors-list .mock-drag-item.drag-over {
  border-color: rgba(77, 184, 133, 0.6);
  background: rgba(77, 184, 133, 0.08);
  transform: scale(1.02);
}
.drag-item-name {
  font-size: 0.82rem;
  color: var(--text);
  cursor: text;
  flex: 1;
  transition: color 0.18s;
  outline: none;
}
.drag-item-name:hover {
  color: #fff;
}
.drag-item-name[contenteditable="true"] {
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 1px;
  color: #fff;
}

/* ── Interactive: Design Preview ────────────────────── */
.design-tool-label {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
#design-preview {
  min-height: 90px;
  overflow: hidden;
  position: relative;
}

@keyframes dp-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.dp-cursor {
  width: 2px;
  height: 15px;
  background: var(--primary);
  display: inline-block;
  animation: dp-cursor-blink 1s step-end infinite;
  vertical-align: middle;
  margin-top: 5px;
}

@keyframes dp-bounce-anim {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}
@keyframes dp-shadow-anim {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0.1;
  }
}
.dp-bounce-elem {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 8px;
  animation: dp-bounce-anim 1.1s ease-in-out infinite;
}
.dp-shadow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 22px;
  height: 5px;
  background: rgba(77, 184, 133, 0.35);
  border-radius: 50%;
  animation: dp-shadow-anim 1.1s ease-in-out infinite;
}

/* ── Interactive: QR code ───────────────────────────── */
#qr-canvas {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#qr-canvas svg {
  width: 90px !important;
  height: 90px !important;
  display: block;
}
#design-qr-canvas {
  width: 70px;
  height: 70px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
#design-qr-canvas svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Interactive: Collab clickable items ─────────────── */
#collab-list .mock-drag-item {
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
#collab-list .mock-drag-item:hover:not(.collab-active) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
#collab-list .mock-drag-item.collab-active {
  border-color: rgba(77, 184, 133, 0.55);
  background: rgba(77, 184, 133, 0.04);
}
.collab-avatar-dot {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #0a1220;
  overflow: hidden;
  transition: opacity 0.25s;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-row.reverse {
    direction: ltr;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .nav-links,
  .nav-right {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}
/* ── Arriving on screen ────────────────────────────────────
   Instead of everything fading up the same 32px with the same easing:
   - .settle: cards and mockups are *put down* — each from its own small
     angle and height, with an uneven delay (vars set in script.js)
   - .quiet: text just becomes visible, barely moving
   The classes are removed once the element has landed, so hover
   transitions aren't slowed down by reveal delays. */
.js .settle {
  opacity: 0;
  transform: translateY(var(--y0, 14px)) rotate(var(--r0, 0deg));
  transition:
    opacity 0.45s ease-out var(--d, 0s),
    transform 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) var(--d, 0s);
}
.js .quiet {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.6s ease-out var(--d, 0s),
    transform 0.8s ease-out var(--d, 0s);
}
.js .settle.in,
.js .quiet.in {
  opacity: 1;
  transform: none;
}

/* the little dash in front of section labels gets drawn, not faded */
.js .section-label::before {
  width: 0;
  transition: width 0.45s cubic-bezier(0.6, 0, 0.3, 1) 0.15s;
}
.js .section-label.drawn::before {
  width: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .settle,
  .js .quiet,
  .js .hero-title .hw {
    opacity: 1;
    transform: none;
  }
  .accent-scribble path {
    stroke-dashoffset: 0;
  }
  .js .section-label::before {
    width: 20px;
  }
}

@media (max-width: 580px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .format-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
