/* ============================================================
   Emovo — overview landing page
   Palette: Material-3 seed #6750A4 (matches the actual app)
   ============================================================ */

:root {
  --bg: #0b0612;
  --bg-2: #110a1c;
  --bg-3: #1a1129;
  --surface: #1c1430;
  --surface-2: #251a3d;
  --line: rgba(207, 188, 255, 0.12);
  --text: #ece6f5;
  --muted: #aea6c1;
  --primary: #cfbcff;        /* lighter purple — like the app cards */
  --primary-2: #b69dff;
  --seed: #6750a4;            /* MUI seed */
  --seed-deep: #4a3880;
  --accent: #ffb4a9;
  --accent-2: #a6d49f;
  --accent-3: #82b1ff;
  --firebase: #ffa000;
  --firebase-2: #ffca28;
  --hume: #c084fc;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --max: 1200px;
  --gap: 28px;
  --shadow-soft: 0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 10px 30px -10px rgba(103, 80, 164, 0.25);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

code {
  font-family: var(--font-mono);
  background: rgba(207, 188, 255, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--primary);
}

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

/* =========================
   Background — aurora blobs
   ========================= */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora.a1 {
  top: -20vmax;
  left: -10vmax;
  background: radial-gradient(circle, #6750a4 0%, transparent 60%);
}
.aurora.a2 {
  top: 20vmax;
  right: -20vmax;
  background: radial-gradient(circle, #ffa000 0%, transparent 60%);
  opacity: 0.25;
  animation-delay: -7s;
  animation-duration: 28s;
}
.aurora.a3 {
  bottom: -25vmax;
  left: 30%;
  background: radial-gradient(circle, #c084fc 0%, transparent 60%);
  opacity: 0.35;
  animation-delay: -14s;
  animation-duration: 26s;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-3vw, 4vh, 0) scale(0.96);
  }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 0%,
    #000 30%,
    transparent 75%
  );
}

/* =========================
   Nav
   ========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 6, 18, 0.55);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}
.brand-text {
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(160deg, var(--seed), var(--primary));
  border-radius: 8px;
  padding: 6px 5px;
  box-shadow: 0 6px 20px -6px rgba(103, 80, 164, 0.6);
}
.brand-mark .bar {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: barAnim 1.4s ease-in-out infinite;
}
.brand-mark .bar:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}
.brand-mark .bar:nth-child(2) {
  height: 12px;
  animation-delay: 0.15s;
}
.brand-mark .bar:nth-child(3) {
  height: 16px;
  animation-delay: 0.3s;
}
.brand-mark .bar:nth-child(4) {
  height: 12px;
  animation-delay: 0.45s;
}
.brand-mark .bar:nth-child(5) {
  height: 6px;
  animation-delay: 0.6s;
}
@keyframes barAnim {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1.4);
  }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  padding: 80px 32px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(207, 188, 255, 0.06);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-transform: uppercase;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6cf28b;
  box-shadow: 0 0 0 0 rgba(108, 242, 139, 0.6);
  animation: dotPulse 1.6s infinite;
}
@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 242, 139, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(108, 242, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 242, 139, 0);
  }
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  margin: 18px 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(120deg, #cfbcff 0%, #ffd07a 50%, #82b1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 9s ease-in-out infinite;
}
@keyframes gradShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-sub {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary-2), var(--seed));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(103, 80, 164, 0.55);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -8px rgba(103, 80, 164, 0.7);
}
.btn.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn.ghost:hover {
  background: rgba(207, 188, 255, 0.08);
}

/* hero visual: mic + bars + emotion card */
.hero-visual {
  position: relative;
  height: 460px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(207, 188, 255, 0.4),
    transparent 40%,
    rgba(255, 160, 0, 0.25) 80%
  );
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
}

.mic-wrap {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--primary), var(--seed));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 10px 30px -8px rgba(103, 80, 164, 0.6);
}
.mic svg {
  width: 38px;
  height: 38px;
}
.mic-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: micPulse 2.6s ease-out infinite;
}
.mic-pulse.p1 {
  width: 110px;
  height: 110px;
  animation-delay: 0s;
}
.mic-pulse.p2 {
  width: 110px;
  height: 110px;
  animation-delay: 0.9s;
}
.mic-pulse.p3 {
  width: 110px;
  height: 110px;
  animation-delay: 1.8s;
}
@keyframes micPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.bars {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 50px;
  height: 70px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}
.bars span {
  width: 6px;
  background: linear-gradient(to top, var(--seed), var(--primary));
  border-radius: 3px;
  height: 12px;
  transform-origin: bottom;
  transition: height 0.18s ease;
}

.emotion-card {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  background: linear-gradient(120deg, var(--primary), #d8c5ff);
  color: #1f1133;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 12px 30px -10px rgba(207, 188, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  opacity: 0.7;
}
.ec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ec-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ec-pct {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ec-pct small {
  font-size: 18px;
  font-weight: 700;
  margin-left: 2px;
}
.ec-delta {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 17, 51, 0.65);
}

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 70px;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(207, 188, 255, 0.06),
    rgba(207, 188, 255, 0.02)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat .num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat .lbl {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* =========================
   Section base
   ========================= */
.section {
  padding: 110px 32px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.section.dark {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section.dark > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.section.dark {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(207, 188, 255, 0.04) 20%,
    rgba(207, 188, 255, 0.04) 80%,
    transparent
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(207, 188, 255, 0.08);
  border: 1px solid rgba(207, 188, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.1;
}
.lede {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* =========================
   Cards (3-up)
   ========================= */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 880px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 188, 255, 0.28);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c, var(--primary));
  margin-bottom: 18px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* =========================
   Architecture
   ========================= */
.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.tier {
  width: 100%;
  max-width: 920px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1200px 80px at 50% -20px,
    rgba(207, 188, 255, 0.3),
    transparent
  );
  pointer-events: none;
}
.tier-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tier-label .inline-logo {
  width: 16px;
  height: 16px;
}
.firebase-label {
  color: var(--firebase);
}

.tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .tier-cards {
    grid-template-columns: 1fr;
  }
}
.tier-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tier-card .logo {
  width: 32px;
  height: 32px;
}
.tc-title {
  font-weight: 700;
  font-size: 15.5px;
}
.tc-sub {
  color: var(--muted);
  font-size: 13px;
}

/* Firebase grid */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .fb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .fb-grid {
    grid-template-columns: 1fr;
  }
}
.fb-cell {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fb-cell:hover {
  border-color: rgba(255, 160, 0, 0.4);
  transform: translateY(-2px);
}
.fb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--firebase), var(--firebase-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.fb-name {
  font-weight: 700;
  font-size: 14.5px;
}
.fb-sub {
  font-size: 12.5px;
  color: var(--muted);
}

/* Wires */
.wires {
  position: relative;
  height: 50px;
  width: 4px;
  display: flex;
  justify-content: center;
}
.wire {
  position: relative;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(207, 188, 255, 0.5),
    rgba(207, 188, 255, 0)
  );
}
.wire.hume-wire {
  background: linear-gradient(
    to bottom,
    rgba(192, 132, 252, 0.7),
    rgba(192, 132, 252, 0)
  );
  width: 3px;
}
.pkt {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pktDown 2.2s linear infinite;
}
.pkt.d {
  animation-delay: 1.1s;
  background: var(--firebase);
  box-shadow: 0 0 12px var(--firebase);
}
.hume-wire .pkt {
  background: var(--hume);
  box-shadow: 0 0 12px var(--hume);
}
@keyframes pktDown {
  0% {
    top: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* Hume tier */
.tier-hume {
  display: flex;
  justify-content: center;
}
.hume-card {
  position: relative;
  background: linear-gradient(135deg, #2a163d 0%, #3a1f5b 100%);
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: center;
  width: 100%;
  max-width: 920px;
  overflow: hidden;
}
.hume-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(192, 132, 252, 0.25),
    transparent 60%
  );
  animation: humePulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes humePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.hume-title {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hume-sub {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.hume-meta {
  position: relative;
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hume-meta span {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  color: #e9d5ff;
}

.arrow-legend {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .arrow-legend {
    grid-template-columns: 1fr;
  }
}
.leg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--muted);
}
.dash {
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex: 0 0 auto;
  border-radius: 2px;
}
.dash.dashed {
  background: repeating-linear-gradient(
    to right,
    var(--firebase) 0 6px,
    transparent 6px 12px
  );
}
.dash.thick {
  height: 4px;
  background: var(--hume);
}

/* =========================
   Stack grid
   ========================= */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.logo-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.logo-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(207, 188, 255, 0.3);
}
.logo-pill img {
  width: 24px;
  height: 24px;
}
.emoji-logo {
  font-size: 20px;
  line-height: 1;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Features (text + phone)
   ========================= */
.features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 90px;
}
.features-row:first-of-type {
  margin-top: 30px;
}
.features-row.reverse {
  direction: rtl;
}
.features-row.reverse > * {
  direction: ltr;
}
@media (max-width: 880px) {
  .features-row,
  .features-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
}
.feature-text .fnum {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 2px;
}
.feature-text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}
.feature-text p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticks li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--text);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line);
}
.ticks li:last-child {
  border-bottom: 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 6px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* phone frame */
.phone {
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  border: 10px solid #110a1c;
  border-radius: 36px;
  background: #000;
  box-shadow: 0 50px 90px -20px rgba(0, 0, 0, 0.7),
    0 20px 40px -20px rgba(103, 80, 164, 0.4);
  overflow: hidden;
  width: 280px;
  aspect-ratio: 9 / 19;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.features-row.reverse .phone-frame {
  transform: rotate(2deg);
}
.phone-frame:hover {
  transform: rotate(0deg) scale(1.02);
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone-frame::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* =========================
   Data flow steps
   ========================= */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  counter-reset: flow;
}
@media (max-width: 980px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .flow {
    grid-template-columns: 1fr;
  }
}
.flow-step {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.flow-step:hover {
  transform: translateY(-3px);
  border-color: rgba(207, 188, 255, 0.3);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--seed));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.flow-step h4 {
  font-size: 16px;
  margin: 0 0 6px;
}
.flow-step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* =========================
   Challenges grid
   ========================= */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media (max-width: 720px) {
  .challenge-grid {
    grid-template-columns: 1fr;
  }
}
.ch {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ch::before {
  content: "";
  position: absolute;
  width: 4px;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, var(--primary), var(--seed));
}
.ch-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(207, 188, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ch h4 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ch p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* =========================
   Results
   ========================= */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}
.result {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.result:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 188, 255, 0.3);
}
.result::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(207, 188, 255, 0.18),
    transparent 70%
  );
  filter: blur(10px);
  pointer-events: none;
}
.r-num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.r-title {
  margin-top: 12px;
  font-weight: 700;
  font-size: 15.5px;
}
.r-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

/* =========================
   Future Work
   ========================= */
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 980px) {
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .future-grid {
    grid-template-columns: 1fr;
  }
}
.fut {
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fut:hover {
  transform: translateY(-3px);
  border-color: rgba(207, 188, 255, 0.3);
}
.fut-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.fut h4 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.fut p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Try it / QR
   ========================= */
.try {
  text-align: center;
}
.qr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .qr-row {
    grid-template-columns: 1fr;
  }
}
.qr-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.qr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 188, 255, 0.35);
}
.qr-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.qr-logo {
  width: 36px;
  height: 36px;
}
.qr-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.qr-sub {
  color: var(--muted);
  font-size: 13px;
}
.qr-slot {
  background: #fff;
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.qr-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.qr-placeholder {
  display: none;
  text-align: center;
  color: #6750a4;
  font-size: 13px;
  line-height: 1.5;
}
.qr-placeholder code {
  background: rgba(103, 80, 164, 0.1);
  color: #4a3880;
}
.qr-slot.placeholder {
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 10px,
    #f5f0ff 10px,
    #f5f0ff 20px
  );
}
.qr-slot.placeholder .qr-placeholder {
  display: block;
}
.qr-foot {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* =========================
   Footer
   ========================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 32px 70px;
  text-align: center;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.foot-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 18px;
}
.foot-brand .brand-text {
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-text {
  color: var(--muted);
  max-width: 60ch;
  font-size: 14px;
}
.foot-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   Reveal animation
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
