/* ════════════════════════════════════════════════════════
   FLEXIVE AI · PROMO SHOWCASE
   Pulse color from logo: violet #A855F7 ↔ cyan #06B6D4 ↔ magenta #D946EF
   Inspired by Tailwind utility patterns, written as plain CSS
   ════════════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --bg: #050507;
  --charcoal: #0A0A0F;
  --charcoal-2: #14141C;

  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.05);
  --line-bright: rgba(255,255,255,0.14);

  --text: #FAFAFC;
  --text-muted: rgba(250,250,252,0.62);
  --text-dim: rgba(250,250,252,0.42);

  /* Pulse — straight from the logo */
  --pulse: #A855F7;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --magenta: #D946EF;
  --violet: #7C3AED;

  /* Master gradients */
  --grad-pulse: linear-gradient(180deg, #22D3EE 0%, #A855F7 50%, #D946EF 100%);
  --grad-pulse-h: linear-gradient(110deg, #22D3EE 0%, #A855F7 50%, #D946EF 100%);
  --grad-text: linear-gradient(180deg, #FFFFFF 0%, #E9E3FF 45%, #C4B5FD 75%, #93C5FD 100%);

  --content: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--black);
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss03", "cv05", "cv11";
  font-synthesis: none;
}

.display {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

[dir="rtl"] .nav-links a svg, [dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ─── Keyframes ───────────────────────────── */
@property --aura-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --tilt-x { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --tilt-y { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes aura-spin { to { --aura-angle: 360deg; } }
@keyframes aura-breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; filter: blur(40px); }
  50%      { transform: scale(1.08); opacity: 0.85; filter: blur(56px); }
}
@keyframes liquid-shine {
  0%   { transform: translateX(-140%) skewX(-12deg); opacity: 0; }
  20%  { opacity: 0.85; }
  60%  { opacity: 0.85; }
  100% { transform: translateX(140%) skewX(-12deg); opacity: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes float-y-soft {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 0.4deg)); }
}
@keyframes orbit {
  0%   { transform: rotate(0)   translateX(var(--r, 220px)) rotate(0); opacity: var(--o, 0.6); }
  50%  { opacity: 1; }
  100% { transform: rotate(360deg) translateX(var(--r, 220px)) rotate(-360deg); opacity: var(--o, 0.6); }
}
@keyframes drift {
  0%   { transform: translate3d(var(--x, 0), 0, 0); }
  50%  { transform: translate3d(calc(var(--x, 0) + var(--dx, 80px)), var(--dy, -60px), 0); }
  100% { transform: translate3d(var(--x, 0), 0, 0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.55); }
  60%      { box-shadow: 0 0 0 8px rgba(168,85,247,0); }
}
@keyframes reveal {
  0%   { transform: translateY(28px); filter: blur(10px); }
  100% { transform: translateY(0);    filter: blur(0); }
}

/* ─── Frame ───────────────────────────── */
.frame {
  width: 100%;
  background: #000;
  color: var(--text);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Parallax bg layers — three depths drifting */
.parallax {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.parallax .layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: drift 22s ease-in-out infinite;
  will-change: transform;
}
.parallax .l1 {
  width: 720px; height: 720px;
  top: 6%; right: -10%;
  background: radial-gradient(circle, rgba(168,85,247,0.85), transparent 65%);
  --dx: 80px; --dy: -40px;
  animation-duration: 26s;
}
.parallax .l2 {
  width: 600px; height: 600px;
  top: 28%; left: -8%;
  background: radial-gradient(circle, rgba(6,182,212,0.65), transparent 65%);
  --dx: -60px; --dy: 30px;
  animation-duration: 30s;
  animation-delay: -8s;
}
.parallax .l3 {
  width: 540px; height: 540px;
  top: 60%; right: 10%;
  background: radial-gradient(circle, rgba(217,70,239,0.55), transparent 65%);
  --dx: 50px; --dy: 70px;
  animation-duration: 34s;
  animation-delay: -12s;
}
.parallax .l4 {
  width: 480px; height: 480px;
  top: 88%; left: 20%;
  background: radial-gradient(circle, rgba(124,58,237,0.55), transparent 65%);
  --dx: -40px; --dy: -60px;
  animation-duration: 28s;
  animation-delay: -4s;
}

/* fine grid mask */
.frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 60% at 50% 0%, black, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* geometric particles drifting up */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.particles .p {
  position: absolute;
  bottom: -10vh;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.95), rgba(168,85,247,0) 70%);
  animation: particle-up var(--dur, 26s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.particles .p.cyan { background: radial-gradient(circle, rgba(34,211,238,0.9), rgba(34,211,238,0) 70%); }
.particles .p.magenta { background: radial-gradient(circle, rgba(217,70,239,0.9), rgba(217,70,239,0) 70%); }
.particles .p.big { width: 5px; height: 5px; }
@keyframes particle-up {
  0%   { transform: translate3d(var(--x,0), 100vh, 0); opacity: 0; }
  10%  { opacity: var(--o, 0.55); }
  90%  { opacity: var(--o, 0.55); }
  100% { transform: translate3d(calc(var(--x,0) + var(--dx,40px)), -10vh, 0); opacity: 0; }
}

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 5;
}

/* ─── Reveal — entrance animation disabled to avoid iframe timeline freeze.
   The page has plenty of ambient motion (parallax, particles, aura, ribbons,
   tilt) — content is always rendered immediately. ─── */
.reveal { /* no-op */ }

/* ─── Navbar — glass ─── */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 13.5px; font-weight: 450;
  text-decoration: none;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* Logo with liquid metal + aura */
.logo-link { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.logo-wrap {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
}
.logo-wrap .aura {
  position: absolute; inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from var(--aura-angle), #22D3EE, #A855F7, #D946EF, #22D3EE);
  filter: blur(22px);
  opacity: 0.6;
  animation: aura-spin 9s linear infinite, aura-breathe 5s ease-in-out infinite;
  z-index: 0;
}
.logo-wrap .glass {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  z-index: 1;
  background: transparent;
  display: grid; place-items: center;
  overflow: visible;
}
.logo-wrap .glass img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgba(168,85,247,0.55)) drop-shadow(0 0 22px rgba(34,211,238,0.25));
}
.logo-wrap .shine {
  display: none;
}
.logo-name {
  font-size: 17px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, #E9E3FF 60%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-bright); }

.btn-pulse {
  background: linear-gradient(135deg, var(--cyan), var(--pulse), var(--magenta));
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: white;
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 8px 24px -6px rgba(168,85,247,0.55),
    0 0 0 1px rgba(168,85,247,0.4);
  transition: background-position .6s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-pulse:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 14px 32px -8px rgba(168,85,247,0.7),
    0 0 0 1px rgba(168,85,247,0.5);
}

/* Lang switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -16px rgba(34,211,238,0.5);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(10,10,18,0.78);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  z-index: 200;
  animation: reveal .3s cubic-bezier(.2,.8,.2,1) both;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 13px; font-family: inherit;
  text-align: start;
  cursor: pointer;
}
.lang-menu-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-menu-item.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(6,182,212,0.18));
  color: var(--text);
}
.lang-menu-item .flag { font-size: 16px; }
.lang-menu-item .code {
  margin-inline-start: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--text-dim);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  min-height: 880px;
  display: flex;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  margin: 0 auto;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pulse);
  animation: pulse-dot 1.8s ease-out infinite;
}

.hero-content { text-align: center; width: 100%; }
.hero h1 {
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 28px 0 0;
  text-wrap: balance;
}
.hero h1 .line1 {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .line2 {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  background: var(--grad-pulse-h);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.035em;
  animation: shimmer-hue 8s linear infinite;
}
@keyframes shimmer-hue { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.hero p.lede {
  max-width: 620px;
  margin: 24px auto 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-stage {
  position: relative;
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3D phone mockup */
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 9/19.5;
  border-radius: 44px;
  background:
    linear-gradient(180deg, #1A1A22, #0A0A10);
  padding: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.08),
    inset 0 0 0 4px rgba(0,0,0,0.6),
    0 50px 100px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(168,85,247,0.25),
    0 0 80px -10px rgba(168,85,247,0.5),
    0 0 120px -10px rgba(6,182,212,0.3);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: float-y 6s ease-in-out infinite;
  z-index: 5;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(217,70,239,0.7), transparent 60%),
    radial-gradient(70% 80% at 80% 70%, rgba(124,58,237,0.95), transparent 70%),
    linear-gradient(180deg, #2E1065, #0A0612);
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  border-radius: 14px;
  background: #000;
  z-index: 4;
}
.phone-status {
  position: absolute;
  top: 16px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600;
  color: white;
  z-index: 3;
}
.phone-status .right { display: inline-flex; gap: 5px; align-items: center; }

.phone-content {
  position: absolute;
  top: 64px; bottom: 24px; left: 20px; right: 20px;
  display: flex; flex-direction: column; justify-content: end; gap: 14px;
  z-index: 3;
}
.phone-content .tag {
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: white;
}
.phone-content .title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: white;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.phone-content .sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.phone-content .ctrl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.phone-content .ctrl .play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pulse), var(--magenta));
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 0 18px -2px rgba(168,85,247,0.6);
}

/* Orbiting accents around phone */
.orbit-host {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 4;
}
.orbit-host .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: orbit 18s linear infinite;
}
.orbit-host .orb-1 {
  width: 14px; height: 14px;
  background: radial-gradient(circle, var(--cyan-light), transparent 60%);
  box-shadow: 0 0 16px var(--cyan);
  --r: 240px; --o: 0.9;
  animation-duration: 16s;
}
.orbit-host .orb-2 {
  width: 18px; height: 18px;
  background: radial-gradient(circle, var(--pulse), transparent 60%);
  box-shadow: 0 0 22px var(--pulse);
  --r: 260px; --o: 0.85;
  animation-duration: 22s;
  animation-delay: -6s;
}
.orbit-host .orb-3 {
  width: 10px; height: 10px;
  background: radial-gradient(circle, var(--magenta), transparent 60%);
  box-shadow: 0 0 14px var(--magenta);
  --r: 220px; --o: 0.8;
  animation-duration: 19s;
  animation-delay: -10s;
}

/* Floating template cards around phone */
.float-card {
  position: absolute;
  width: 130px;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  z-index: 3;
  --rot: 0deg;
  animation: float-y-soft 7s ease-in-out infinite;
}
.float-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.85));
}
.float-card .lbl {
  position: absolute; left: 10px; bottom: 8px; z-index: 2;
  font-size: 10px; font-weight: 600; letter-spacing: -0.01em;
  color: white;
}
.float-card .lbl .sub {
  display: block;
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}
.fc-1 { top: 12%; left: 12%; --rot: -10deg; animation-delay: 0s; transform: rotate(-10deg); }
.fc-2 { top: 8%; right: 14%; --rot: 8deg; animation-delay: -2s; transform: rotate(8deg); }
.fc-3 { bottom: 18%; left: 8%; --rot: -6deg; animation-delay: -1s; transform: rotate(-6deg); }
.fc-4 { bottom: 12%; right: 10%; --rot: 9deg; animation-delay: -3s; transform: rotate(9deg); }

/* Cover backgrounds */
.cv-pro    { background: radial-gradient(70% 60% at 50% 50%, #D946EF, transparent 60%), linear-gradient(180deg, #2E1065, #0A0612); }
.cv-cos    { background: radial-gradient(70% 60% at 50% 40%, #F472B6, transparent 60%), linear-gradient(180deg, #500724, #1A030D); }
.cv-old    { background: radial-gradient(60% 60% at 50% 30%, #FBBF24, transparent 60%), linear-gradient(180deg, #422006, #1A0F03); }
.cv-ps2    { background: radial-gradient(60% 60% at 60% 40%, #22D3EE, transparent 60%), radial-gradient(50% 50% at 30% 80%, #A855F7, transparent 60%), linear-gradient(180deg, #0C4A6E, #050B17); }
.cv-noir   { background: radial-gradient(80% 60% at 30% 30%, #F472B6 0%, transparent 60%), radial-gradient(70% 80% at 80% 70%, #7C3AED 0%, transparent 70%), linear-gradient(180deg, #2E1065, #0A0612); }
.cv-golden { background: radial-gradient(60% 60% at 50% 30%, #FBBF24 0%, transparent 60%), radial-gradient(70% 50% at 80% 80%, #F97316 0%, transparent 60%), linear-gradient(180deg, #422006, #1A0F03); }
.cv-aurora { background: radial-gradient(60% 60% at 70% 70%, #10B981 0%, transparent 60%), radial-gradient(50% 50% at 25% 25%, #06B6D4 0%, transparent 60%), linear-gradient(180deg, #064E3B, #021A14); }
.cv-ghibli { background: radial-gradient(60% 60% at 60% 30%, #60A5FA 0%, transparent 60%), radial-gradient(50% 50% at 30% 80%, rgba(34,197,94,0.6) 0%, transparent 60%), linear-gradient(180deg, #0C4A6E, #050B17); }
.cv-velvet { background: radial-gradient(80% 60% at 30% 60%, #D946EF 0%, transparent 60%), radial-gradient(50% 50% at 80% 20%, #8B5CF6 0%, transparent 60%), linear-gradient(180deg, #2A0A4A, #0A031A); }
.cv-mid    { background: radial-gradient(70% 60% at 50% 50%, #6366F1 0%, transparent 60%), linear-gradient(180deg, #1E1B4B, #050414); }

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 8px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-bright);
  color: white;
  text-decoration: none;
  font-family: inherit;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.store-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 14px 32px -8px rgba(168,85,247,0.4);
}
.store-btn .logo-ic {
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.store-btn .copy { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-btn .copy .top { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.store-btn .copy .bot { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.hero-proof {
  margin-top: 28px;
  font-size: 12.5px; color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.hero-proof .stars { color: #FBBF24; margin-inline-end: 8px; letter-spacing: 2px; }

/* ─── WHY ─── */
section.block { padding: 140px 0; position: relative; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 0.22em; font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  justify-content: center;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ""; width: 22px; height: 1px; background: var(--text-dim);
}

.section-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.section-title .em {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  background: var(--grad-pulse-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 18px auto 0;
  max-width: 520px;
  text-wrap: pretty;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.why-tile {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20,20,28,0.6), rgba(8,8,12,0.6));
  backdrop-filter: blur(18px);
  padding: 36px 32px 32px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.why-tile::before {
  content: "";
  position: absolute;
  top: -1px; inset-inline: -1px;
  height: 2px;
  background: var(--grad-pulse-h);
  opacity: 0;
  transition: opacity .35s ease;
}
.why-tile:hover {
  border-color: rgba(168,85,247,0.35);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 50px -12px rgba(168,85,247,0.45);
}
.why-tile:hover::before { opacity: 1; }

.why-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(168,85,247,0.4), transparent 70%),
    linear-gradient(180deg, rgba(20,20,28,0.95), rgba(8,8,12,0.95));
  border: 1px solid var(--line-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 24px -8px rgba(168,85,247,0.5);
  margin-bottom: 28px;
  color: white;
  position: relative;
}
.why-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 21px;
  background: var(--grad-pulse-h);
  opacity: 0;
  filter: blur(14px);
  z-index: -1;
  transition: opacity .35s ease;
}
.why-tile:hover .why-icon::after { opacity: 0.65; }

.why-tile h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-tile p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── MAGIC WALL ─── */
.wall-section { padding: 140px 0 160px; position: relative; overflow: hidden; }
.wall-section .container { z-index: 5; }

.wall-ribbon {
  position: relative;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.wall-row {
  display: flex; gap: 18px;
  width: max-content;
  will-change: transform;
}
.wall-row.row-1 { animation: marquee 60s linear infinite; }
.wall-row.row-2 { animation: marquee 80s linear infinite reverse; }
[dir="rtl"] .wall-row.row-1 { animation: marquee-rtl 60s linear infinite; }
[dir="rtl"] .wall-row.row-2 { animation: marquee 80s linear infinite; }

/* Pause the marquee while the viewer is exploring a card. */
.wall-ribbon:hover .wall-row { animation-play-state: paused; }

/* Reduced-motion: hold the row still. */
@media (prefers-reduced-motion: reduce) {
  .wall-row { animation: none !important; transform: translateX(0) !important; }
}

.wall-card {
  position: relative;
  width: 280px;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal);
  cursor: pointer;
  flex-shrink: 0;
  transform-style: preserve-3d;
  transition: box-shadow .3s ease, border-color .3s ease, transform .15s ease;
  --tx: 0deg; --ty: 0deg;
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
}
.wall-card:hover {
  border-color: rgba(168,85,247,0.45);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.8),
    0 0 36px -8px rgba(168,85,247,0.6);
}
.wall-card .cover {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.wall-card:hover .cover { transform: scale(1.05); }
.wall-card .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85));
  z-index: 1;
  pointer-events: none;
}

/* Image-backed templates (live data from Firestore) */
.wall-card .cover.cover-img-host {
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(168, 85, 247, 0.22), transparent 60%),
    linear-gradient(180deg, #14141C, #08080C);
}
.wall-card .cover .wall-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .55s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.wall-card .cover .wall-card-img.loaded {
  opacity: 1;
  transform: scale(1);
}
.wall-card .meta {
  position: absolute; inset-inline: 18px; bottom: 18px;
  z-index: 2;
}
.wall-card .meta .cat {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  font-size: 9.5px; letter-spacing: 0.16em; font-weight: 600; text-transform: uppercase;
  color: white;
  margin-bottom: 10px;
}
.wall-card .meta .name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: white;
}
.wall-card .meta .play-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 11px; color: rgba(255,255,255,0.75);
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em;
}
.wall-card .meta .play-row .ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pulse), var(--magenta));
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 0 14px -2px rgba(168,85,247,0.65);
}

/* ─── CTA ─── */
.cta-section { padding: 140px 0; position: relative; }
.cta-card {
  position: relative;
  border-radius: 36px;
  padding: 88px 56px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(168,85,247,0.40), transparent 70%),
    radial-gradient(50% 60% at 20% 100%, rgba(6,182,212,0.30), transparent 70%),
    radial-gradient(50% 60% at 80% 100%, rgba(217,70,239,0.30), transparent 70%),
    linear-gradient(180deg, rgba(20,12,40,0.92), rgba(6,4,16,0.95));
  border: 1px solid rgba(168,85,247,0.25);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 60px 120px -30px rgba(168,85,247,0.4);
}
.cta-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 36px;
  padding: 1px;
  background: conic-gradient(from var(--aura-angle), var(--cyan), var(--pulse), var(--magenta), var(--cyan));
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aura-spin 16s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 auto 18px;
  max-width: 880px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.cta-card h2 .em {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  background: var(--grad-pulse-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-card p {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
  text-wrap: pretty;
}
.cta-stores {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.cta-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  font-family: inherit;
  transition: all .25s ease;
  min-width: 220px;
}
.cta-store-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 16px 36px -10px rgba(168,85,247,0.55);
}
.cta-store-btn .logo-ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.cta-store-btn .copy { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.cta-store-btn .copy .top { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.cta-store-btn .copy .bot { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: #000;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-links {
  display: flex; align-items: center; gap: 28px;
  justify-self: center;
}
.footer-links a {
  font-size: 13.5px; color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-end {
  justify-self: end;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-dim);
}
.footer-bottom .tagline { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   v5 — Rebalanced product website: tools, before/after, use-cases,
   premium, how-it-works, FAQ. Tighter spacing, structured composition.
   ═══════════════════════════════════════════════════════════════════ */

/* Tighter section rhythm — feels more like product, less like editorial */
section.block { padding: 104px 0; position: relative; }
.tools-section,
.ba-section,
.use-section,
.premium-section,
.how-section,
.faq-section { padding: 96px 0; }
.wall-section { padding: 96px 0 112px; }

/* ─── Hero — new headline accent + phone UI ─── */
.hero h1 .line2 .em {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  background: var(--grad-pulse-h);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  animation: shimmer-hue 8s linear infinite;
  margin-inline-end: 0.05em;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 14px;
  border-radius: 12px;
}

/* Floating feature cards — now hero capabilities, not templates */
.float-card .fc-icon {
  position: absolute;
  top: 10px; inset-inline-start: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  z-index: 2;
}

/* Updated tool-themed covers for hero & before-after */
.cv-gen { background:
  radial-gradient(80% 60% at 30% 30%, #22D3EE, transparent 60%),
  radial-gradient(70% 60% at 80% 70%, #A855F7, transparent 65%),
  linear-gradient(180deg, #1E1B4B, #050414);
}
.cv-enh {
  background: linear-gradient(90deg,
    #1A1A26 0%, #1A1A26 48%,
    #3B82F6 50%, #A855F7 75%, #D946EF 100%);
  position: relative;
}
.cv-bg { background:
  radial-gradient(60% 60% at 50% 60%, #06B6D4, transparent 70%),
  repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.04) 0deg 8deg, transparent 8deg 16deg),
  linear-gradient(180deg, #0B1426, #050608);
}
.cv-prod { background:
  radial-gradient(70% 70% at 50% 50%, #F1F5F9, transparent 75%),
  linear-gradient(180deg, #1A1A1F, #0A0A0C);
}

/* "Before" variants — desaturated, dim, slightly blurry feel */
.cv-dim-enh {
  background: linear-gradient(180deg, #1F1F26, #0F0F13);
  filter: contrast(0.85) saturate(0.5) brightness(0.7);
}
.cv-dim-enh::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.04), transparent 70%);
  filter: blur(8px);
}
.cv-dim-bg { background:
  repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px),
  radial-gradient(60% 60% at 50% 60%, rgba(180,140,90,0.4), transparent 70%),
  linear-gradient(180deg, #2A211A, #161210);
  filter: saturate(0.6);
}
.cv-bg-clean {
  background:
    radial-gradient(70% 80% at 50% 60%, rgba(255,255,255,0.16), transparent 70%),
    linear-gradient(180deg, #2A2A35, #141420);
}
.cv-dim-obj {
  background:
    radial-gradient(60% 60% at 25% 35%, rgba(160,140,120,0.45), transparent 70%),
    radial-gradient(50% 50% at 75% 40%, rgba(120,140,160,0.45), transparent 70%),
    linear-gradient(180deg, #2A2A2A, #141414);
  filter: saturate(0.5) brightness(0.85);
}
.cv-dim-prod {
  background:
    radial-gradient(60% 60% at 50% 60%, rgba(150,150,160,0.5), transparent 75%),
    linear-gradient(180deg, #1F1F23, #0A0A0C);
  filter: saturate(0.4) brightness(0.85);
}
.cv-prod-pro {
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(255,255,255,0.35), transparent 75%),
    radial-gradient(50% 50% at 50% 90%, rgba(168,85,247,0.18), transparent 70%),
    linear-gradient(180deg, #FAFAFA, #C7C7CF);
}
.cv-dim-tpl {
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(200,200,210,0.3), transparent 70%),
    linear-gradient(180deg, #2A2A30, #14141A);
  filter: saturate(0.45) brightness(0.85);
}

/* Phone screen — iOS app preview (templates grid) */
.phone-content { gap: 10px; }
.phone-app { padding-top: 4px; }
.phone-app-head { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 2px; }
.phone-app-title {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: white;
}
.phone-app-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  font-weight: 500;
}
.phone-tabs {
  align-self: stretch;
  display: flex; gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.phone-tabs .tab {
  flex: 1;
  padding: 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
}
.phone-tabs .tab.on {
  background: linear-gradient(135deg, rgba(34,211,238,0.3), rgba(168,85,247,0.3), rgba(217,70,239,0.3));
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.phone-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  isolation: isolate;
}
.phone-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.7) 100%);
  z-index: 0;
}
.phone-tile .tile-lbl {
  position: relative;
  z-index: 1;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: white;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.phone-ctrl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.phone-ctrl-top {
  font-size: 9.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.phone-ctrl-bot {
  font-size: 13px; font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}
.phone-ctrl .play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pulse), var(--magenta));
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 0 18px -2px rgba(168,85,247,0.6);
}

/* ─── TOOLS ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.tool-tile {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,18,26,0.65), rgba(8,8,12,0.65));
  backdrop-filter: blur(18px);
  padding: 28px 26px 24px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.tool-tile.span-2 {
  grid-column: span 2;
  min-height: 280px;
}
.tool-tile::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pulse), transparent);
  opacity: 0.5;
}
.tool-tile::after {
  content: "";
  position: absolute;
  bottom: -40%; inset-inline-end: -10%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.18), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.tool-tile:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 40px -12px rgba(168,85,247,0.45);
}
.tool-tile:hover::after { opacity: 1; }

.tool-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(168,85,247,0.35), transparent 70%),
    linear-gradient(180deg, rgba(20,20,28,0.95), rgba(8,8,12,0.95));
  border: 1px solid var(--line-bright);
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 22px -8px rgba(168,85,247,0.55);
}
.tool-tile.span-2 .tool-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
}
.tool-tag {
  display: inline-block;
  align-self: start;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan-light);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.08);
  margin-bottom: 14px;
}
.tool-tile h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tool-tile.span-2 h3 { font-size: 30px; max-width: 70%; }
.tool-tile p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  flex-grow: 1;
}
.tool-tile.span-2 p { font-size: 15px; max-width: 80%; }
.tool-chip {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.5;
  transition: opacity .2s, gap .2s;
}
.tool-tile:hover .tool-chip { opacity: 1; gap: 9px; }

/* ─── BEFORE / AFTER ─── */
.ba-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  margin: 56px auto 32px;
  width: fit-content;
}
.ba-tab {
  padding: 9px 16px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.ba-tab:hover { color: var(--text); }
.ba-tab.on {
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(34,211,238,0.18));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(168,85,247,0.4);
}

.ba-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7), 0 0 80px -20px rgba(168,85,247,0.35);
  animation: ba-fade .5s ease-out;
}
@keyframes ba-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-after  { clip-path: inset(0 0 0 50%); }
.ba-before .cover, .ba-after .cover { position: absolute; inset: 0; }
.ba-before::after, .ba-after::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
  pointer-events: none;
}

.ba-tag {
  position: absolute;
  top: 18px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: white;
}
.ba-tag-before { inset-inline-start: 24px; }
.ba-tag-after { inset-inline-end: 24px; background: linear-gradient(135deg, rgba(168,85,247,0.85), rgba(34,211,238,0.85)); border-color: rgba(255,255,255,0.25); }
.ba-lbl {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}
.ba-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.ba-divider {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.85) 20%, rgba(255,255,255,0.85) 80%, transparent);
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 18px rgba(168,85,247,0.6);
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  color: #0A0A0F;
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(168,85,247,0.7), 0 6px 14px rgba(0,0,0,0.5);
  animation: handle-pulse 2.4s ease-in-out infinite;
}
@keyframes handle-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(168,85,247,0.55), 0 6px 14px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 36px rgba(168,85,247,0.9), 0 6px 14px rgba(0,0,0,0.5); }
}

.ba-caption {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

/* ─── WALL — category chips above ribbon ─── */
.wall-cats {
  display: flex; gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.wall-cat {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.wall-cat:hover { color: var(--text); border-color: var(--line-bright); background: rgba(255,255,255,0.07); }
.wall-cat.on {
  background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(34,211,238,0.18));
  color: var(--text);
  border-color: rgba(168,85,247,0.4);
}

/* ─── USE CASES ─── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.use-tile {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,18,26,0.55), rgba(8,8,12,0.55));
  backdrop-filter: blur(14px);
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.use-tile:hover {
  border-color: rgba(168,85,247,0.35);
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6), 0 0 30px -10px rgba(168,85,247,0.4);
}
.use-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(168,85,247,0.35), transparent 70%),
    linear-gradient(180deg, rgba(20,20,28,0.9), rgba(8,8,12,0.9));
  border: 1px solid var(--line-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.use-tile h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
  color: var(--text);
}
.use-tile p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ─── PREMIUM ─── */
.premium-card {
  position: relative;
  border-radius: 32px;
  padding: 64px 56px;
  background:
    radial-gradient(50% 70% at 20% 30%, rgba(168,85,247,0.30), transparent 70%),
    radial-gradient(40% 60% at 90% 80%, rgba(6,182,212,0.22), transparent 70%),
    linear-gradient(180deg, rgba(20,12,40,0.85), rgba(6,4,16,0.92));
  border: 1px solid rgba(168,85,247,0.22);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 40px 100px -30px rgba(168,85,247,0.4);
}
.premium-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 32px;
  padding: 1px;
  background: conic-gradient(from var(--aura-angle), var(--cyan), var(--pulse), var(--magenta), var(--cyan));
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aura-spin 18s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}
.premium-left { position: relative; z-index: 2; }
.premium-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 14px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.premium-title .em {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic; font-weight: 700;
  background: var(--grad-pulse-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.premium-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 28px;
}
.premium-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.premium-list li {
  display: flex; align-items: start; gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}
.premium-list li .ic {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pulse));
  display: grid; place-items: center;
  color: white;
  margin-top: 1px;
  box-shadow: 0 0 14px -2px rgba(168,85,247,0.55);
}

.premium-right {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.premium-badge {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    conic-gradient(from 0deg, var(--cyan), var(--pulse), var(--magenta), var(--pulse), var(--cyan));
  display: grid; place-items: center;
  animation: badge-spin 22s linear infinite;
  box-shadow: 0 30px 60px -20px rgba(168,85,247,0.6);
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
.premium-badge-glow {
  position: absolute; inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--pulse), var(--magenta), var(--cyan));
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
  animation: badge-spin 14s linear infinite reverse;
}
.premium-badge-inner {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1A1A26, #050508);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  animation: badge-counter-spin 22s linear infinite;
}
@keyframes badge-counter-spin { to { transform: rotate(-360deg); } }
.premium-crown { display: grid; place-items: center; }
.premium-label {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.04em;
  background: var(--grad-pulse-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.premium-tagline {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.premium-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.premium-orb-1 {
  width: 12px; height: 12px;
  top: 18%; left: 10%;
  background: radial-gradient(circle, var(--cyan-light), transparent 60%);
  box-shadow: 0 0 14px var(--cyan);
  animation: float-y 5s ease-in-out infinite;
}
.premium-orb-2 {
  width: 8px; height: 8px;
  top: 70%; right: 18%;
  background: radial-gradient(circle, var(--magenta), transparent 60%);
  box-shadow: 0 0 12px var(--magenta);
  animation: float-y 6s ease-in-out infinite;
  animation-delay: -2s;
}
.premium-orb-3 {
  width: 10px; height: 10px;
  top: 35%; right: 8%;
  background: radial-gradient(circle, var(--pulse), transparent 60%);
  box-shadow: 0 0 12px var(--pulse);
  animation: float-y 7s ease-in-out infinite;
  animation-delay: -1s;
}

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
  position: relative;
}
.how-step {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,18,26,0.55), rgba(8,8,12,0.55));
  backdrop-filter: blur(16px);
  padding: 30px 26px 26px;
  overflow: hidden;
}
.how-num {
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  background: var(--grad-pulse-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.how-line {
  position: absolute;
  top: 56px; inset-inline-end: 0;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, var(--pulse), transparent);
  opacity: 0.4;
}
.how-step:last-child .how-line { display: none; }
[dir="rtl"] .how-step:last-child .how-line { display: block; }
[dir="rtl"] .how-step:first-child .how-line { display: none; }

.how-step h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.how-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ─── FAQ ─── */
.faq-container { max-width: 880px; }
.faq-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  width: 100%;
  text-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15,15,22,0.55);
  backdrop-filter: blur(14px);
  padding: 20px 24px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color .25s, background .25s;
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(168,85,247,0.3); background: rgba(20,20,28,0.7); }
.faq-item.open { border-color: rgba(168,85,247,0.4); background: rgba(22,18,38,0.75); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
}
.faq-ic {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text);
  transition: background .25s, border-color .25s;
}
.faq-item.open .faq-ic {
  background: linear-gradient(135deg, var(--cyan), var(--pulse));
  border-color: transparent;
  color: white;
}
.faq-a-wrap {
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin-top .25s ease;
  overflow: hidden;
  margin-top: 0;
}
.faq-item.open .faq-a-wrap {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}
.faq-a {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
  text-wrap: pretty;
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .tools-grid, .use-grid, .how-grid { grid-template-columns: 1fr 1fr; }
  .tool-tile.span-2 { grid-column: span 2; }
  .premium-card { grid-template-columns: 1fr; padding: 48px 32px; }
  .premium-right { display: none; }
}
@media (max-width: 720px) {
  .tools-grid, .use-grid, .how-grid { grid-template-columns: 1fr; }
  .tool-tile.span-2 { grid-column: span 1; }
}


/* SIMPLIFICATION PASS — minimal hero, uniform cards, static B/A */
.hero-simple { padding: 80px 0 56px; min-height: 0; }
.hero-simple .hero-h1 { font-size: clamp(48px, 7vw, 88px); margin-top: 18px; }
.hero-simple .lede { margin: 18px auto 28px; max-width: 560px; font-size: 17px; }
.hero-stage-simple { position: relative; margin-top: 56px; display: flex; justify-content: center; min-height: 0; }
.phone-simple { position: relative; animation: phone-float 8s ease-in-out infinite; }
.phone-glow { position: absolute; inset: -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168,85,247,0.32), transparent 65%), radial-gradient(closest-side, rgba(34,211,238,0.22), transparent 70%); filter: blur(40px); z-index: 0; pointer-events: none; animation: hero-glow-breathe 6s ease-in-out infinite; }
@keyframes hero-glow-breathe { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.phone-simple .phone-screen { position: relative; z-index: 1; }

.tools-simple { padding: 96px 0; }
.tools-grid-simple { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.tool-tile-simple { padding: 26px 22px 24px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; transition: all 0.3s ease; }
.tool-tile-simple:hover { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.tool-tile-simple .tool-icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: grid; place-items: center; margin-bottom: 4px; }
.tool-tile-simple h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text); }
.tool-tile-simple p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }
@media (max-width: 1100px) { .tools-grid-simple { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .tools-grid-simple { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tools-grid-simple { grid-template-columns: 1fr; } }

.ba-simple { padding: 96px 0; }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.ba-card { display: flex; flex-direction: column; gap: 14px; }
.ba-card-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.035); display: grid; grid-template-columns: 1fr 1fr; }
.ba-half { position: relative; overflow: hidden; }
.ba-half .cover { position: absolute; inset: 0; }
.ba-half .ba-tag { position: absolute; bottom: 12px; display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,0.62); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); font-family: "Inter", system-ui, sans-serif; line-height: 1.1; z-index: 2; }
.ba-half .ba-tag-before { left: 12px; }
.ba-half .ba-tag-after { right: 12px; }
.ba-half .ba-lbl { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); font-weight: 600; }
.ba-half .ba-meta { font-size: 12px; font-weight: 600; color: white; letter-spacing: -0.005em; }
.ba-divider-static { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent); transform: translateX(-0.5px); z-index: 3; }
.ba-card-cap { font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr; } }

/* Language switcher — re-enabled (the i18n provider has 8 real translations) */
.lang-wrap { position: relative; }
.lang-btn { gap: 6px; }
.lang-btn .flag { font-size: 15px; line-height: 1; }
.lang-btn .code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 500;
}
.lang-btn svg { color: var(--text-dim); transition: transform .25s ease; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--text); }
.lang-menu-item { gap: 10px; }
.lang-menu-item .flag { font-size: 16px; }
.lang-menu-item .code {
  margin-inline-start: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
@media (max-width: 540px) {
  /* Keep the switcher compact next to the Download CTA on mobile. */
  .lang-btn { padding: 8px 9px; }
  .lang-btn .code { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   BRAND — clean inline logo (override of legacy .logo-link/.logo-wrap)
   ═══════════════════════════════════════════════════════════════════ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  /* No background, no border, no chip. Just the logo + a soft drop-shadow. */
  filter: drop-shadow(0 2px 10px rgba(168, 85, 247, 0.28));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 2px 14px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 18px rgba(34, 211, 238, 0.25));
  transform: scale(1.03);
}
.brand-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FAFAFC;
}

/* Hide any legacy logo chrome that might still be in the DOM. */
.logo-link, .logo-wrap, .logo-wrap .aura, .logo-wrap .glass, .logo-wrap .shine, .logo-name { display: none !important; }

/* Navbar height + alignment polish */
.nav-wrap { background: rgba(7, 7, 17, 0.72); }
.nav { height: 76px; align-items: center; }
.nav-links { gap: 4px; }
.nav-links a { font-size: 14px; }


/* ═══════════════════════════════════════════════════════════════════
   PREMIUM IPHONE MOCKUP — real app screen, 3D rotation, float, glow
   ═══════════════════════════════════════════════════════════════════ */
.hero-stage-simple { margin-top: 64px; perspective: 1600px; }

.iphone-scene {
  position: relative;
  width: 320px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: iphone-rotate 12s ease-in-out infinite, iphone-float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes iphone-rotate {
  0%   { transform: rotateY(-6deg) rotateX(2deg); }
  50%  { transform: rotateY( 6deg) rotateX(2deg); }
  100% { transform: rotateY(-6deg) rotateX(2deg); }
}
@keyframes iphone-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .iphone-scene { animation: none; transform: rotateY(-3deg) rotateX(2deg); }
}

.iphone-glow {
  position: absolute;
  inset: -120px -80px -100px -80px;
  background:
    radial-gradient(closest-side at 40% 45%, rgba(168, 85, 247, 0.35), transparent 65%),
    radial-gradient(closest-side at 65% 55%, rgba(34, 211, 238, 0.28), transparent 70%),
    radial-gradient(closest-side at 50% 85%, rgba(217, 70, 239, 0.18), transparent 70%);
  filter: blur(42px);
  z-index: -1;
  pointer-events: none;
  animation: iphone-glow-breathe 6s ease-in-out infinite;
}
@keyframes iphone-glow-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

/* The frame — outer titanium ring */
.iphone-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 660;
  border-radius: 56px;
  background: linear-gradient(135deg, #2a2a32 0%, #08080c 35%, #181820 65%, #2a2a32 100%);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.06) inset,
    0 0 0 4px #0a0a10,
    0 30px 80px -20px rgba(0,0,0,0.75),
    0 12px 30px -10px rgba(168,85,247,0.35);
  padding: 8px;
  transform-style: preserve-3d;
}

/* Inner bezel — black band around the screen */
.iphone-bezel {
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: #000;
  padding: 4px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* Screen itself — clips the screenshot with rounded iOS corners */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: #f5f5f7;
}
.iphone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Dynamic Island — small, centered, no surrounding status bar */
.iphone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 26px;
  background: #050505;
  border-radius: 999px;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 4px 14px rgba(0,0,0,0.35);
}

/* Side rails — thin highlights along the titanium edge */
.iphone-side {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
.iphone-side-l { left: -1px; }
.iphone-side-r { right: -1px; }

/* Physical buttons — subtle */
.iphone-button {
  position: absolute;
  background: linear-gradient(180deg, #1a1a22, #0a0a10);
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.iphone-button-mute     { left: -3px; top: 84px;  width: 4px; height: 30px; }
.iphone-button-vol-up   { left: -3px; top: 132px; width: 4px; height: 50px; }
.iphone-button-vol-down { left: -3px; top: 196px; width: 4px; height: 50px; }
.iphone-button-power    { right: -3px; top: 162px; width: 4px; height: 80px; }

/* Mobile */
@media (max-width: 540px) {
  .iphone-scene, .iphone-frame { width: 260px; }
}
@media (max-width: 380px) {
  .iphone-scene, .iphone-frame { width: 232px; }
}

/* Defensively hide any legacy phone mockup styles from leaking */
.hero-stage-simple .phone { display: none; }


/* ═══════════════════════════════════════════════════════════════════
   LIGHTER HERO THEME — luminous radial wash behind hero, premium
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 -80px 0;
  background:
    radial-gradient(ellipse 1200px 800px at 50% 42%, rgba(235, 228, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 760px 520px at 28% 30%, rgba(34, 211, 238, 0.12), transparent 65%),
    radial-gradient(ellipse 760px 520px at 72% 58%, rgba(168, 85, 247, 0.16), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING TEMPLATE CARDS — designed for Firebase population later
   Each card is .fc-card with .fc-pos-N positioning, .fc-swatch preview,
   .fc-meta { .fc-cat, .fc-title }. Replace data via FLOATING_TEMPLATE_CARDS.
   ═══════════════════════════════════════════════════════════════════ */
.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.fc-card {
  position: absolute;
  width: 200px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 50px -16px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px -12px rgba(168, 85, 247, 0.35);
  animation: fc-float 9s ease-in-out infinite;
  will-change: transform;
}
.fc-card:hover { animation-play-state: paused; }

/* Thumbnail/preview area — full width, dominant visual element */
.fc-swatch {
  width: 100%;
  height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.fc-swatch::after {
  /* Subtle vignette to lift the title */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.32) 100%);
}

.fc-meta {
  display: flex; flex-direction: column;
  line-height: 1.2;
  gap: 4px;
  padding: 0 2px 2px;
}
.fc-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.fc-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: white;
}

/* Positioning — three on each side, varied y and rotation */
.fc-pos-1 { top: 0%;   left: -10%;  transform: rotate(-3deg); animation-delay: 0s;  }
.fc-pos-2 { top: 32%;  left: -16%;  transform: rotate(2deg);  animation-delay: -2s; }
.fc-pos-3 { top: 68%;  left: -8%;   transform: rotate(-2deg); animation-delay: -4s; }
.fc-pos-4 { top: 2%;   right: -10%; transform: rotate(3deg);  animation-delay: -1s; }
.fc-pos-5 { top: 36%;  right: -16%; transform: rotate(-2deg); animation-delay: -3s; }
.fc-pos-6 { top: 68%;  right: -8%;  transform: rotate(2deg);  animation-delay: -5s; }

@keyframes fc-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-card { animation: none; }
}

/* Tighter positioning on smaller wide screens */
@media (max-width: 1200px) {
  .fc-pos-1, .fc-pos-2, .fc-pos-3 { left: -4%; }
  .fc-pos-4, .fc-pos-5, .fc-pos-6 { right: -4%; }
}

/* Below ~1040px, drop the side floats to avoid overlap with the phone */
@media (max-width: 1040px) {
  .fc-pos-2, .fc-pos-5 { display: none; }
  .fc-pos-1, .fc-pos-3 { left: 0; }
  .fc-pos-4, .fc-pos-6 { right: 0; }
  .fc-card { width: 168px; }
  .fc-swatch { height: 72px; }
  .fc-title { font-size: 14px; }
}

/* Hide floating cards on mobile */
@media (max-width: 860px) {
  .floating-cards { display: none; }
}

/* Make hero stage tall enough to contain the floating cards beside the phone */
.hero-stage-simple {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Hide floating cards on mobile (phone takes the full width) */
@media (max-width: 860px) {
  .floating-cards { display: none; }
}


/* Floating cards removed — hide any legacy CSS that targets them */
.floating-cards, .fc-card, [class*="fc-pos-"] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON — sits next to the language switcher in the
   navbar. Matches the lang-btn aesthetic.
   ═══════════════════════════════════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 12px 28px -16px rgba(168,85,247,0.65);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.theme-toggle-icon {
  display: grid;
  place-items: center;
  transition: transform .25s ease;
}
.theme-toggle:hover .theme-toggle-icon { transform: rotate(8deg); }

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES — premium Apple-like off-white palette.
   Activated by `<html data-theme="light">` (set by ThemeProvider).
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg: #F5F5F7;
  --charcoal: #FAFAFA;
  --charcoal-2: #FFFFFF;
  --text: #1D1D1F;
  --text-muted: rgba(29, 29, 31, 0.62);
  --text-dim: rgba(29, 29, 31, 0.38);
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.04);
  --line-bright: rgba(0, 0, 0, 0.14);
}

html[data-theme="light"], html[data-theme="light"] body {
  background: #F5F5F7;
  color: #1D1D1F;
}
html[data-theme="light"] .frame { background: #F5F5F7; color: #1D1D1F; }

/* Parallax glows — tone way down on a light bg so they read as colour wash, not neon */
html[data-theme="light"] .parallax .layer {
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: blur(120px);
}

/* Subtle grid overlay flips to dark-on-light */
html[data-theme="light"] .frame::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

/* Navbar */
html[data-theme="light"] .nav-wrap {
  background: rgba(245, 245, 247, 0.78) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .nav-links a { color: rgba(29, 29, 31, 0.62); }
html[data-theme="light"] .nav-links a:hover {
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .brand-name {
  background: linear-gradient(180deg, #1D1D1F 0%, #4C1D95 70%, #6D28D9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lang switcher in light mode */
html[data-theme="light"] .lang-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
}
html[data-theme="light"] .lang-btn:hover { background: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .lang-btn .code { color: #1D1D1F; }
html[data-theme="light"] .lang-btn svg { color: rgba(29, 29, 31, 0.55); }
html[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(28px) saturate(160%);
}
html[data-theme="light"] .lang-menu-item { color: rgba(29, 29, 31, 0.7); }
html[data-theme="light"] .lang-menu-item:hover { background: rgba(0, 0, 0, 0.04); color: #1D1D1F; }
html[data-theme="light"] .lang-menu-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(14, 116, 144, 0.10));
  color: #1D1D1F;
}
html[data-theme="light"] .lang-menu-item .code { color: rgba(29, 29, 31, 0.45); }

/* Theme toggle in light mode */
html[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
}
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.16);
}

/* Hero typography — adapt the gradient text so it stays luxurious on white */
html[data-theme="light"] .hero h1 .line1 {
  background: linear-gradient(180deg, #1D1D1F 0%, #3B2B5A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero h1 .line2 .em,
html[data-theme="light"] .section-title .em,
html[data-theme="light"] .cta-card h2 .em,
html[data-theme="light"] .premium-title .em {
  background: linear-gradient(110deg, #0E7490 0%, #6D28D9 50%, #BE185D 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero p.lede,
html[data-theme="light"] .section-sub,
html[data-theme="light"] .ba-caption {
  color: rgba(29, 29, 31, 0.62);
}

/* Section titles + eyebrow */
html[data-theme="light"] .section-title,
html[data-theme="light"] .cta-card h2,
html[data-theme="light"] .premium-title {
  background: linear-gradient(180deg, #1D1D1F 0%, #3B2B5A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .section-eyebrow { color: rgba(29, 29, 31, 0.55); }
html[data-theme="light"] .section-eyebrow::before,
html[data-theme="light"] .section-eyebrow::after { background: rgba(29, 29, 31, 0.30); }

/* Cards — Tools, FAQ, How-it-works, Use-cases */
html[data-theme="light"] .tool-tile,
html[data-theme="light"] .tool-tile-simple,
html[data-theme="light"] .why-tile,
html[data-theme="light"] .use-tile,
html[data-theme="light"] .how-step,
html[data-theme="light"] .faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 250, 252, 0.92)) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .tool-tile:hover,
html[data-theme="light"] .tool-tile-simple:hover,
html[data-theme="light"] .why-tile:hover,
html[data-theme="light"] .use-tile:hover,
html[data-theme="light"] .how-step:hover {
  border-color: rgba(124, 58, 237, 0.30) !important;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.12), 0 0 30px -10px rgba(124, 58, 237, 0.25);
}
html[data-theme="light"] .tool-tile h3,
html[data-theme="light"] .tool-tile-simple h3,
html[data-theme="light"] .why-tile h3,
html[data-theme="light"] .use-tile h3,
html[data-theme="light"] .how-step h3 {
  color: #1D1D1F;
  background: none;
  -webkit-text-fill-color: initial;
}
html[data-theme="light"] .tool-tile p,
html[data-theme="light"] .tool-tile-simple p,
html[data-theme="light"] .why-tile p,
html[data-theme="light"] .use-tile p,
html[data-theme="light"] .how-step p {
  color: rgba(29, 29, 31, 0.62);
}

/* Tool icon — keep gradient stroke, but tint the host card slightly lighter */
html[data-theme="light"] .tool-icon,
html[data-theme="light"] .use-icon,
html[data-theme="light"] .why-icon {
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(124, 58, 237, 0.22), transparent 70%),
    linear-gradient(180deg, #FFFFFF, #F5F5F7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02), 0 0 18px -8px rgba(124, 58, 237, 0.35);
}

/* FAQ specifics */
html[data-theme="light"] .faq-q { color: #1D1D1F; }
html[data-theme="light"] .faq-a { color: rgba(29, 29, 31, 0.62); }
html[data-theme="light"] .faq-ic {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
}
html[data-theme="light"] .faq-item.open { border-color: rgba(124, 58, 237, 0.30) !important; }

/* Tool tag pill */
html[data-theme="light"] .tool-tag {
  color: #0E7490;
  border-color: rgba(14, 116, 144, 0.30);
  background: rgba(14, 116, 144, 0.06);
}

/* CTA card */
html[data-theme="light"] .cta-card {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(124, 58, 237, 0.14), transparent 70%),
    radial-gradient(50% 60% at 20% 100%, rgba(14, 116, 144, 0.10), transparent 70%),
    radial-gradient(50% 60% at 80% 100%, rgba(190, 24, 93, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 247, 0.96));
  border-color: rgba(124, 58, 237, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.03),
    0 30px 80px -30px rgba(124, 58, 237, 0.25);
}
html[data-theme="light"] .cta-card p { color: rgba(29, 29, 31, 0.62); }
html[data-theme="light"] .cta-store-btn {
  background: #1D1D1F;
  border-color: #1D1D1F;
  color: #FFFFFF;
}
html[data-theme="light"] .cta-store-btn:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 16px 36px -10px rgba(124, 58, 237, 0.35);
}
html[data-theme="light"] .cta-store-btn .copy .top { color: rgba(255, 255, 255, 0.7); }

/* Hero App Store + ghost buttons */
html[data-theme="light"] .store-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.10);
}
html[data-theme="light"] .store-btn:hover {
  background: #FAFAFA;
  border-color: rgba(124, 58, 237, 0.40);
  box-shadow: 0 14px 32px -8px rgba(124, 58, 237, 0.30);
}
html[data-theme="light"] .store-btn .copy .top { color: rgba(29, 29, 31, 0.55); }
html[data-theme="light"] .store-btn .copy .bot { color: #1D1D1F; }
html[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.20);
}

/* Templates / Magic Wall — cards on light bg need lighter base, but the
   image stays dominant and the bottom-fade overlay still applies. */
html[data-theme="light"] .wall-card {
  background: #FAFAFA;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 20px 50px -20px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .wall-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow:
    0 24px 50px -20px rgba(0, 0, 0, 0.18),
    0 0 30px -10px rgba(124, 58, 237, 0.30);
}
html[data-theme="light"] .wall-card .cover.cover-img-host {
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(124, 58, 237, 0.10), transparent 60%),
    linear-gradient(180deg, #E5E5EA, #F5F5F7);
}
/* image gets a slightly darker overlay so the title remains legible */
html[data-theme="light"] .wall-card .cover::after {
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55));
}
html[data-theme="light"] .wall-card .meta .cat {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.10);
  color: #1D1D1F;
}
/* the .name stays white because it overlays the image (with the dark fade above) */

/* Phone mockup glow softens on light bg */
html[data-theme="light"] .iphone-glow { opacity: 0.55; }

/* Footer */
html[data-theme="light"] .footer {
  background: #FAFAFA;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .footer-links a { color: rgba(29, 29, 31, 0.62); }
html[data-theme="light"] .footer-links a:hover { color: #1D1D1F; }
html[data-theme="light"] .footer-bottom { color: rgba(29, 29, 31, 0.42); }
html[data-theme="light"] .footer-bottom .tagline { color: rgba(29, 29, 31, 0.62); }

/* Hero eyebrow chip (if rendered) */
html[data-theme="light"] .hero-eyebrow {
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
}
html[data-theme="light"] .hero-eyebrow .dot { background: #6D28D9; }

/* Scrollbar / selection in light mode (optional polish) */
html[data-theme="light"] ::selection {
  background: rgba(124, 58, 237, 0.18);
  color: #1D1D1F;
}

/* Compact navigation and readable hero on phone-sized screens. */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .nav {
    height: 68px;
    gap: 12px;
  }
  .nav-links { display: none; }
  .nav-actions {
    margin-inline-start: auto;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .brand { gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-name { font-size: 15px; }
  .nav .btn-pulse {
    padding: 10px 12px;
    font-size: 12px;
  }
  .hero-simple { padding: 64px 0 48px; }
  .hero-simple .hero-h1 {
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: 0;
    margin-top: 10px;
  }
  .hero-simple .hero-title-full {
    font-size: 38px;
    letter-spacing: 0;
  }
  .hero-simple .lede {
    font-size: 16px;
    padding: 0 2px;
  }
  .hero h1 .line2,
  .hero h1 .line2 .em {
    letter-spacing: 0;
  }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
  .hero-simple .hero-h1 { font-size: 36px; }
  .hero-simple .hero-title-full { font-size: 32px; }
}
