/* ==========================================================================
   FlashGo download — dark premium
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-elev: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --ink: #f6f8ff;
  --text: #c9d3e6;
  --muted: #8592ab;

  --primary: #2f7bff;
  --primary-2: #5b9dff;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --amber: #fbbf24;
  --emerald: #34d399;

  --grad: linear-gradient(120deg, #2f7bff 0%, #22d3ee 45%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, rgba(47, 123, 255, 0.18), rgba(139, 92, 246, 0.14));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --space-section: clamp(72px, 10vw, 128px);
  --max: 1180px;
  --nav-h: 68px;

  --font: "Be Vietnam Pro", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

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

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

/* ---------- Background layers ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora-a {
  background: radial-gradient(circle, #2f7bff 0%, transparent 65%);
  top: -30vmax;
  left: -15vmax;
}

.aurora-b {
  background: radial-gradient(circle, #8b5cf6 0%, transparent 65%);
  top: 10vmax;
  right: -25vmax;
  animation-duration: 32s;
  opacity: 0.25;
}

.aurora-c {
  background: radial-gradient(circle, #22d3ee 0%, transparent 65%);
  bottom: -35vmax;
  left: 20vmax;
  animation-duration: 38s;
  opacity: 0.16;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-4vmax, 8vmax, 0) scale(0.95);
  }
}

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

/* Camera flash on first paint */
.flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: radial-gradient(circle at 70% 35%, #fff 0%, rgba(255, 255, 255, 0.85) 30%, rgba(200, 225, 255, 0.4) 60%, transparent 85%);
  opacity: 0;
}

body.is-flashing .flash-overlay {
  animation: flash 900ms var(--ease-out) forwards;
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82ff, #2563eb);
  box-shadow: 0 10px 30px -10px rgba(47, 123, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px -10px rgba(47, 123, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.28);
}

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

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
}

@keyframes shine {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.btn-magnetic {
  transform: translate3d(var(--mx-off, 0), var(--my-off, 0), 0);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(var(--max), 100% - 40px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.nav-desktop a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--ink);
  background: var(--surface-strong);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-login:hover {
  color: var(--ink);
}

/* Language */
.lang-selector-wrap {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--border-strong);
}

.lang-flag,
.lang-opt-flag {
  display: inline-flex;
}

.flag-svg {
  border-radius: 3px;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(13, 17, 28, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: all 0.2s var(--ease-out);
}

.lang-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.lang-opt:hover,
.lang-opt.is-selected {
  background: var(--surface-strong);
  color: var(--ink);
}

/* Mobile menu */
.nav-menu {
  display: none;
  position: relative;
}

.nav-menu-btn {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-menu-btn::-webkit-details-marker {
  display: none;
}

.nav-menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  padding: 12px;
  display: grid;
  gap: 4px;
  border-radius: var(--radius-lg);
  background: rgba(13, 17, 28, 0.98);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.nav-menu-panel > a:not(.btn) {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-menu-panel > a:not(.btn):hover {
  background: var(--surface-strong);
}

.lang-mobile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 4px;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-lang-btn.is-active {
  border-color: var(--primary);
  background: rgba(47, 123, 255, 0.15);
  color: var(--ink);
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.grad-text {
  white-space: nowrap;
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-move 6s linear infinite;
}

@keyframes grad-move {
  to {
    background-position: 200% center;
  }
}

.hero-lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px 40px;
}

.stat dt {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  color: var(--cyan);
  margin-left: 2px;
}

.stat dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat + .stat {
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
}

.photostrip {
  position: absolute;
  top: 0;
  right: 6%;
  width: 150px;
  padding: 10px 10px 14px;
  border-radius: 6px;
  background: #fbfbf8;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: rotate(8deg);
  display: grid;
  gap: 6px;
  animation: strip-float 7s ease-in-out infinite;
}

.strip-head,
.strip-foot {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #111;
  text-align: center;
}

.strip-foot {
  font-weight: 600;
  color: #777;
  letter-spacing: 0.12em;
}

.strip-shot {
  height: 78px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(-8px);
  animation: shot-print 0.7s var(--ease-out) forwards;
}

.shot-1 {
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  animation-delay: 0.9s;
}
.shot-2 {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
  animation-delay: 1.3s;
}
.shot-3 {
  background: linear-gradient(135deg, #fccb90, #d57eeb);
  animation-delay: 1.7s;
}
.shot-4 {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  animation-delay: 2.1s;
}

@keyframes shot-print {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes strip-float {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(-12px);
  }
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(15, 20, 34, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  animation: chip-float 6s ease-in-out infinite;
}

.chip-a {
  top: 8%;
  left: 4%;
  color: #f9a8d4;
}
.chip-b {
  top: 36%;
  left: -2%;
  color: #6ee7b7;
  animation-delay: -2s;
}
.chip-c {
  top: 46%;
  right: 0;
  color: #93c5fd;
  animation-delay: -4s;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glass card + download box */
.glass-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.download-card {
  width: min(420px, 100%);
  padding: 26px;
  margin-top: 150px;
  background: linear-gradient(160deg, rgba(24, 32, 52, 0.94), rgba(10, 14, 24, 0.96));
}

.download-card .loading {
  color: var(--muted);
  font-size: 0.9rem;
}

.dl-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dl-version {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--emerald);
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.demo-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
}

.dl-title {
  margin-top: 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.dl-meta {
  margin: 4px 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.dl-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dl-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.sha-details {
  margin-top: 14px;
  font-size: 0.8rem;
}

.sha-details summary {
  cursor: pointer;
  color: var(--muted);
}

.sha-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sha-row code {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
  color: var(--text);
}

.sha-copy {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.75rem;
  cursor: pointer;
}

.dl-pin-title {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dl-pin-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 0.78rem;
}

.dl-pin-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.dl-pin-list strong {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Steps */
.steps {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
}

.steps li + li {
  border-left: 1px solid var(--border);
}

.step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  padding-top: 2px;
}

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

.steps p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-section) 0 0;
}

.section-tight {
  padding-top: clamp(56px, 8vw, 96px);
}

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

.section-head-left {
  margin: 0;
  text-align: left;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
}

/* Spotlight + tilt cards */
.spot {
  position: relative;
  isolation: isolate;
  --spot-x: 50%;
  --spot-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(91, 157, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.spot:hover::before {
  opacity: 1;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: border-color 0.3s, transform 0.4s var(--ease-out), opacity 0.8s var(--ease-out);
}

.tile.is-visible {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.tile:hover {
  border-color: var(--border-strong);
}

.tile h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.tile p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-head .tile-icon {
  margin-bottom: 14px;
}

.icon-pink {
  color: var(--pink);
  background: rgba(244, 114, 182, 0.12);
}
.icon-cyan {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}
.icon-amber {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.12);
}
.icon-violet {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.14);
}
.icon-emerald {
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
}

.tile-modes {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.tile-ai {
  grid-column: span 2;
}

.tile-cloud {
  grid-column: span 3;
}

.tile-cloud .check-grid {
  grid-template-columns: repeat(3, 1fr);
}

.modes-layout {
  margin-top: 20px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.mode-list {
  display: grid;
  gap: 6px;
  align-content: start;
}

.mode-chip {
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-chip:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.mode-chip.is-active {
  color: var(--ink);
  background: var(--grad-soft);
  border-color: rgba(91, 157, 255, 0.35);
}

.mode-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.mode-frame {
  flex: 1;
  min-height: 200px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #fbfbf8;
  grid-template-columns: 1fr 1fr;
  transition: all 0.4s var(--ease-out);
}

.mode-frame span {
  border-radius: 4px;
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  transition: all 0.4s var(--ease-out);
}

.mode-frame span:nth-child(2) {
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}
.mode-frame span:nth-child(3) {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
}
.mode-frame span:nth-child(4) {
  background: linear-gradient(135deg, #fccb90, #d57eeb);
}

.mode-preview[data-mode="selfbooth"] .mode-frame {
  grid-template-columns: 1fr;
}
.mode-preview[data-mode="selfbooth"] .mode-frame span:not(:first-child) {
  display: none;
}

.mode-preview[data-mode="newspaper"] .mode-frame {
  background: #ede6d6;
  grid-template-columns: 2fr 1fr;
  filter: sepia(0.5) contrast(1.05);
}
.mode-preview[data-mode="newspaper"] .mode-frame span:first-child {
  grid-row: span 3;
}

.mode-preview[data-mode="minicut"] .mode-frame {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  padding: 16px 28px;
}

.mode-preview[data-mode="chibi"] .mode-frame span {
  border-radius: 50% 50% 12px 12px;
}

.mode-preview[data-mode="makeup"] .mode-frame span {
  filter: saturate(1.4) brightness(1.08) hue-rotate(-12deg);
}

.mode-preview[data-mode="sticker"] .mode-frame {
  gap: 14px;
  padding: 18px 22px;
  background-color: #f1f3f7;
  background-image: radial-gradient(rgba(15, 23, 42, 0.12) 1px, transparent 1px);
  background-size: 10px 10px;
}
.mode-preview[data-mode="sticker"] .mode-frame span {
  border: 4px solid #fff;
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  outline: 1.5px dashed rgba(236, 72, 153, 0.55);
  outline-offset: 3px;
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.35);
  transform: rotate(-6deg);
}
.mode-preview[data-mode="sticker"] .mode-frame span:nth-child(2) {
  border-radius: 999px;
  transform: rotate(5deg) translateY(6px);
}
.mode-preview[data-mode="sticker"] .mode-frame span:nth-child(3) {
  border-radius: 28px 28px 50% 50%;
  transform: rotate(4deg);
}
.mode-preview[data-mode="sticker"] .mode-frame span:nth-child(4) {
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  transform: rotate(-4deg) translateY(4px);
}

.mode-caption strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.mode-caption span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Before / after */
.compare {
  position: relative;
  margin-top: 18px;
  height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
}

.compare-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.compare-layer span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.compare-before {
  background: linear-gradient(120deg, #8a8f99 0%, #b4a89a 50%, #6d7380 100%);
  justify-content: flex-end;
}

.compare-after {
  width: 50%;
  background: linear-gradient(120deg, #ffb3c7 0%, #ffd6a5 45%, #bdb2ff 100%);
  border-right: 2px solid #fff;
  overflow: hidden;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.compare-handle::before {
  content: "‹ ›";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.pill {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-amber {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.pill-primary {
  margin: 0;
  color: #bfdbfe;
  background: rgba(47, 123, 255, 0.18);
  border: 1px solid rgba(91, 157, 255, 0.35);
}

.check-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.check-grid li,
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
  color: var(--text);
}

.check-grid li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* Why row */
.why-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-row li {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}

.why-row strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.why-row span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Devices ---------- */

.marquee {
  overflow: hidden;
  padding: 10px 0 34px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.device-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.device-card h3 {
  font-size: 1.05rem;
}

.chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.chips li.is-soon {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}

.chips em {
  font-style: normal;
  margin-left: 4px;
  font-size: 0.7rem;
  color: var(--amber);
}

.device-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */

/*
 * 4 thẻ cùng một khuôn 5 hàng (nhãn+tên, mô tả, khối giá, phần thêm, nút) dùng subgrid
 * để tên, giá và nút của mọi thẻ thẳng hàng dù mô tả dài ngắn khác nhau.
 */
.price-grid {
  --price-gap: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--price-gap);
  row-gap: 0;
}

.price-card {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  margin-bottom: var(--price-gap);
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--border);
}

.price-card.is-featured {
  background: conic-gradient(from var(--angle, 0deg), #2f7bff, #22d3ee, #8b5cf6, #f472b6, #2f7bff);
  animation: spin-border 6s linear infinite;
  box-shadow: 0 30px 80px -30px rgba(47, 123, 255, 0.6);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}

.price-card-inner {
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 26px 24px 24px;
  border-radius: calc(var(--radius-xl) - 1px);
  background: linear-gradient(180deg, #0d1322, #090c15);
}

/* Nhãn nằm trên tên gói; column-reverse dồn tên xuống đáy hàng nên tên các thẻ luôn thẳng hàng. */
.price-top {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.price-top h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  text-wrap: balance;
}

.price-desc {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Hàng đầu luôn giữ chỗ cho chữ «Nạp từ» để số tiền 4 thẻ cùng một đường. */
.price-figure {
  container-type: inline-size;
  margin-top: 14px;
  display: grid;
  grid-template-rows: 1.4rem auto auto;
  align-content: start;
}

.price-from {
  grid-row: 1;
  align-self: end;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-amount {
  grid-row: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  color: var(--ink);
}

.price-number {
  font-size: clamp(1.35rem, 12cqi, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.price-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
}

.price-period {
  grid-row: 3;
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.price-card-inner > .btn {
  grid-row: 5;
  align-self: end;
  margin-top: 20px;
}

.stepper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

@supports not (grid-template-rows: subgrid) {
  .price-card {
    grid-row: auto;
    display: block;
  }
  .price-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .price-card-inner > .btn {
    margin-top: auto;
  }
}

.stepper-label {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}

.stepper-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-btn {
  flex-shrink: 0;
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper-btn:hover {
  background: var(--surface-strong);
}

.stepper-input {
  flex: 1;
  min-width: 0;
  width: 52px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-includes {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
}

.price-includes h3 {
  font-size: 1rem;
}

.price-includes .check-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}

.price-pill {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.price-sticker-note {
  grid-column: 1 / -1;
  margin-top: var(--price-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.price-sticker-note h3 {
  font-size: 1rem;
  color: #fde68a;
}

.price-sticker-note p {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 72ch;
}

.price-sticker-note .btn {
  flex-shrink: 0;
}

.check-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.price-trial {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.price-trial a {
  color: var(--primary-2);
  font-weight: 600;
}

.price-trial a:hover {
  text-decoration: underline;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.roadmap {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.roadmap-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.roadmap-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.roadmap-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text);
}

.roadmap-list em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.st-test {
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
}
.st-dev {
  color: #93c5fd;
  background: rgba(47, 123, 255, 0.15);
}
.st-plan {
  color: var(--muted);
  background: var(--surface-strong);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.faq-item[open] {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.faq-item summary {
  list-style: none;
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text);
}

/* ---------- CTA band ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 140% at 0% 0%, rgba(47, 123, 255, 0.35), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(139, 92, 246, 0.3), transparent 55%), var(--bg-elev);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
}

.cta-band p {
  margin-top: 6px;
  color: var(--text);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-bar {
  width: min(var(--max), 100% - 40px);
  margin: 24px auto 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.status-bar.error {
  color: #fca5a5;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 260px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-company-name {
  margin-top: 10px;
  font-weight: 700;
  color: var(--ink);
}

.footer-muted {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text);
}

.footer-meta {
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.footer-meta div {
  display: flex;
  gap: 8px;
}

.footer-meta dt {
  flex-shrink: 0;
  color: var(--muted);
}

.footer-meta dt::after {
  content: ":";
}

.footer-meta dd {
  margin: 0;
  color: var(--text);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}

.footer-contact .footer-label {
  margin-bottom: 2px;
}

.footer-contact a {
  color: var(--text);
}

.footer-contact a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Support widget ---------- */

.support-widget-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
}

.support-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 14px 30px -10px rgba(16, 185, 129, 0.8);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(52, 211, 153, 0.6);
  animation: fab-ring 2.4s ease-out infinite;
}

@keyframes fab-ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.support-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 40px));
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 27, 0.97);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: all 0.25s var(--ease-out);
}

.support-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.support-pop-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.support-pop-header h4 {
  font-size: 1rem;
}

.support-pop-header p {
  font-size: 0.8rem;
  color: var(--muted);
}

.support-pop-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.support-channels-list {
  display: grid;
  gap: 6px;
}

.support-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s;
}

a.support-channel-item:hover {
  background: var(--surface-strong);
}

.channel-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.channel-icon svg {
  width: 18px;
  height: 18px;
}

.channel-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.channel-title {
  font-size: 0.75rem;
  color: var(--muted);
}

.channel-info strong {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-modes,
  .tile-ai,
  .tile-cloud,
  .tile-upsell {
    grid-column: span 2;
  }
  .tile-modes {
    grid-row: auto;
  }
  .tile-cloud .check-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
  .price-includes .check-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-desktop,
  .nav-login,
  .nav-trial {
    display: none;
  }
  .nav-menu {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 0;
    padding-top: 0;
  }
  .photostrip,
  .float-chip {
    display: none;
  }
  .download-card {
    margin-top: 0;
    width: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .hero-cta .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat + .stat::before {
    left: -6px;
  }
  .stat dd {
    font-size: 0.75rem;
  }
  .modes-layout {
    grid-template-columns: 1fr;
  }
  .mode-list {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .mode-chip {
    flex-shrink: 0;
    border-color: var(--border);
  }
  .bento,
  .why-row,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .tile-modes,
  .tile-ai,
  .tile-cloud,
  .tile-upsell {
    grid-column: auto;
  }
  .price-includes .check-list {
    grid-template-columns: 1fr;
  }
  .price-sticker-note {
    flex-direction: column;
    align-items: stretch;
  }
  .check-grid,
  .tile-cloud .check-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .fab-text {
    display: none;
  }
  .support-fab {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .strip-shot {
    opacity: 1;
    transform: none;
  }
  .flash-overlay {
    display: none;
  }
}
