@import url('./fonts.css');

/* ============================================================================
   Swipix — design tokens (mirrors the app's 2.0 design system)
   ========================================================================= */
:root {
  --accent: #F5384E;
  --accent-deep: #C21B33;
  --accent-soft: #FF7A6B;
  --keep: #2FD27D;
  --violet: #6C5CE7;
  --violet-ink: #9B8CFF;
  --orange: #E5894B;
  --orange-ink: #EDA063;
  --blue: #3FA7E0;
  --blue-ink: #5EC1F0;

  --ink: #FAF8F6;
  --ink2: #9B9591;
  --ink3: #615C59;          /* decorative only: separators, mouse outline */
  --ink3-text: #8A837F;     /* readable muted text — 5.2:1 on --bg, 4.7:1 on --surface */
  --bg: #0A0909;
  --surface: #171514;
  --surface2: #211D1C;
  --line: rgba(255, 255, 255, .08);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --text: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --gutter: 48px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(245, 56, 78, .4); color: #fff; }

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

.icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.icon svg { display: block; width: 100%; height: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--accent); color: #fff; font: 700 14px var(--text);
  padding: 12px 18px; border-radius: 0 0 12px 12px; transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================================
   Motion primitives
   ========================================================================= */
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); } }
@keyframes glowPulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wiggleHint { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes ringfill { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--o); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

[data-reveal] { will-change: opacity, transform; }
[data-reveal].is-hidden { opacity: 0; transform: translateY(30px); }
[data-reveal].is-ready {
  transition: opacity .8s var(--ease) var(--reveal-delay, 0ms),
              transform .8s var(--ease) var(--reveal-delay, 0ms);
}

/* ============================================================================
   Progress bar
   ========================================================================= */
.progressbar {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 100; pointer-events: none;
}

/* ============================================================================
   Logo mark (pure CSS — no image request)
   ========================================================================= */
.mark {
  position: relative; flex: 0 0 auto;
  border-radius: calc(var(--mark-size) * .29);
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  width: var(--mark-size); height: var(--mark-size);
  box-shadow: 0 6px 16px -4px rgba(245, 56, 78, .5);
}
.mark span {
  position: absolute; top: 50%; left: 50%;
  width: calc(var(--mark-size) * .41); height: calc(var(--mark-size) * .56);
  border-radius: calc(var(--mark-size) * .12); background: #fff;
}
.mark span:first-child {
  background: rgba(255, 255, 255, .34);
  transform: translate(-50%, -50%) rotate(11deg) translateX(calc(var(--mark-size) * .06));
}
.mark span:last-child {
  transform: translate(-50%, -50%) rotate(-9deg) translateX(calc(var(--mark-size) * -.05));
}

/* ============================================================================
   Nav
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(10, 9, 9, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 11px; --mark-size: 34px; }
.nav__brand span.name { font: 600 19px var(--display); letter-spacing: -.01em; }
.nav__brand:hover { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 30px; font: 500 14px var(--text); }
.nav__links a { color: var(--ink2); }
.nav__links a:hover { color: var(--accent); }

.nav__lang {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink2); font: 500 14px var(--text);
}
.nav__lang .icon { width: 15px; height: 15px; }

.btn-store-sm {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff; font: 700 14px var(--text);
  border-radius: 12px; padding: 10px 18px;
  box-shadow: 0 10px 24px -8px rgba(245, 56, 78, .6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-store-sm:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 14px 28px -8px rgba(245, 56, 78, .7); }
.btn-store-sm .icon { width: 16px; height: 16px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; }
.nav__burger .icon { width: 20px; height: 20px; color: var(--ink); }

/* ============================================================================
   Buttons
   ========================================================================= */
.btn-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-radius: 16px; padding: 15px 26px;
  box-shadow: 0 18px 40px -12px rgba(245, 56, 78, .65);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-store:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 24px 48px -12px rgba(245, 56, 78, .75); }
.btn-store .icon { width: 24px; height: 24px; color: #fff; }
.btn-store__labels { text-align: left; line-height: 1.1; }
.btn-store__top { display: block; font: 500 10px var(--text); color: rgba(255, 255, 255, .8); letter-spacing: .04em; }
.btn-store__main { display: block; font: 700 17px var(--text); color: #fff; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px var(--text); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 17px 24px;
  transition: border-color .25s ease, color .25s ease;
}
.btn-ghost:hover { border-color: rgba(245, 56, 78, .5); color: var(--ink); }
.btn-ghost .icon { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; min-height: 100vh;
  padding: 150px var(--gutter) 80px;
  display: flex; align-items: center; justify-content: center;
  gap: 70px; flex-wrap: wrap; overflow: hidden;
}
.hero__glow, .hero__glow2 { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow {
  top: -220px; left: 50%; margin-left: -450px; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(245, 56, 78, .34), transparent 62%);
  animation: glowPulse 6s ease-in-out infinite;
}
.hero__glow2 {
  bottom: -300px; left: -200px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108, 92, 231, .14), transparent 60%);
}
.hero__copy { position: relative; max-width: 600px; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; padding: 8px 16px; margin-bottom: 26px;
}
.badge__stars { display: flex; gap: 2px; color: var(--accent); }
.badge__stars .icon { width: 13px; height: 13px; }
.badge__stars svg { fill: currentColor; }
.badge__text { font: 600 13px var(--text); color: var(--ink2); }

.hero h1 {
  font: 600 clamp(54px, 6.4vw, 92px)/0.98 var(--display);
  letter-spacing: -.035em; color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 26px; font: 400 19px/1.55 var(--text); color: var(--ink2); max-width: 480px; }
.hero__ctas { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero__trust {
  display: flex; align-items: center; gap: 22px; margin-top: 34px;
  font: 500 13px var(--text); color: var(--ink3-text); flex-wrap: wrap;
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.hero__trust .icon { width: 15px; height: 15px; color: var(--keep); }

.hero__stage { position: relative; z-index: 2; }
.hero__float {
  position: absolute; border-radius: 18px; opacity: .5;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8);
  object-fit: cover;
}
.hero__float--a { top: 30px; left: -70px; width: 120px; height: 160px; --rot: -9deg; transform: rotate(-9deg); animation: floaty 5.5s ease-in-out infinite; }
.hero__float--b { bottom: 60px; right: -64px; width: 110px; height: 148px; --rot: 11deg; transform: rotate(11deg); animation: floaty 6.5s ease-in-out infinite; }

.scrollhint {
  position: absolute; bottom: -46px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scrollhint__mouse {
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--ink3);
  display: flex; justify-content: center; padding-top: 6px;
}
.scrollhint__dot { width: 3px; height: 7px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }

/* ============================================================================
   Phone shell
   ========================================================================= */
.phone {
  border-radius: 56px; background: #080808; padding: 11px;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  width: 320px; height: 652px;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--bg); }
.phone__island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 14px; z-index: 9; }
.phone__time { position: absolute; top: 20px; left: 24px; font: 600 13px var(--display); color: var(--ink); z-index: 8; }
.phone__status { position: absolute; top: 21px; right: 20px; display: flex; align-items: center; gap: 5px; z-index: 8; color: var(--ink); }
.phone__status .icon { width: 13px; height: 13px; }
.phone__status .icon--battery { width: 18px; height: 18px; }

/* --- interactive demo ---------------------------------------------------- */
.demo__tint {
  position: absolute; inset: 0; z-index: 1; opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(120% 85% at 50% 60%, rgba(47, 210, 125, .4), transparent 70%);
}
.demo__tint.is-del { background: radial-gradient(120% 85% at 50% 60%, rgba(245, 56, 78, .42), transparent 70%); }
.demo__tint.is-on { opacity: 1; }

.demo__bar { position: absolute; top: 58px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.demo__round {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.demo__round .icon { width: 18px; height: 18px; color: var(--ink); }
.demo__round--trash { position: relative; background: rgba(245, 56, 78, .16); border-color: rgba(245, 56, 78, .35); }
.demo__round--trash .icon { width: 17px; height: 17px; color: var(--accent); }
.demo__badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font: 700 10px var(--display); display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.demo__title { text-align: center; }
.demo__title strong { display: block; font: 600 14px var(--display); color: var(--ink); }
.demo__title span { display: block; font: 500 11px var(--text); color: var(--ink2); }

.demo__stack { position: absolute; top: 110px; left: 20px; right: 20px; bottom: 120px; z-index: 3; }
.demo__card, .demo__next { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #191716; }
.demo__next { transform: rotate(3deg) scale(.95); opacity: .6; }
.demo__next img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.demo__card {
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .8);
  touch-action: pan-y; cursor: grab;
}
.demo__card.is-dragging { cursor: grabbing; }
.demo__card.is-flying { transition: transform .42s cubic-bezier(.4, .1, .6, 1); }
.demo__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.demo__meta {
  position: absolute; top: 14px; left: 14px;
  font: 500 11px var(--display); color: #fff;
  background: rgba(0, 0, 0, .36); backdrop-filter: blur(6px);
  border-radius: 9px; padding: 5px 10px;
}
.demo__stamp {
  position: absolute; top: 16px; right: 14px; opacity: 0; transition: opacity .18s;
  display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 6px 11px;
  font: 800 12px var(--text); letter-spacing: .06em;
}
.demo__stamp .icon { width: 14px; height: 14px; }
.demo__stamp--keep { background: rgba(47, 210, 125, .9); color: #06301C; }
.demo__stamp--del { background: rgba(245, 56, 78, .92); color: #fff; }
.demo__stamp.is-on { opacity: 1; }

.demo__actions { position: absolute; left: 20px; right: 20px; bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 26px; z-index: 5; }
.demo__btn {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.demo__btn .icon { width: 26px; height: 26px; }
.demo__btn--del { background: rgba(245, 56, 78, .14); border: 1.5px solid var(--accent); box-shadow: 0 10px 26px -8px rgba(245, 56, 78, .5); }
.demo__btn--del .icon { color: var(--accent); }
.demo__btn--del:hover { transform: scale(1.08); background: rgba(245, 56, 78, .28); }
.demo__btn--keep { background: rgba(47, 210, 125, .14); border: 1.5px solid var(--keep); box-shadow: 0 10px 26px -8px rgba(47, 210, 125, .45); }
.demo__btn--keep .icon { color: var(--keep); }
.demo__btn--keep:hover { transform: scale(1.08); background: rgba(47, 210, 125, .28); }
.demo__hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 500 10px var(--text); color: var(--ink3-text); z-index: 5; }

/* ============================================================================
   Marquee
   ========================================================================= */
.marquee {
  position: relative; overflow: hidden; padding: 18px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__item { font: 600 15px var(--display); color: var(--ink); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee__item .icon { width: 16px; height: 16px; color: var(--accent); }
.marquee__item--star svg { fill: currentColor; }
.marquee__sep { color: var(--ink3); }

/* ============================================================================
   Section furniture
   ========================================================================= */
.eyebrow { font: 700 13px var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.h2 { font: 600 clamp(38px, 4vw, 56px)/1.02 var(--display); color: var(--ink); letter-spacing: -.03em; }
.h2--sm { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.025em; }

/* ============================================================================
   How it works (sticky)
   ========================================================================= */
.hiw { position: relative; height: 300vh; }
.hiw__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  gap: 90px; padding: 0 var(--gutter); overflow: hidden;
}
.hiw__glow { position: absolute; top: 10%; right: -260px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 56, 78, .16), transparent 62%); pointer-events: none; }
.hiw__copy { max-width: 480px; z-index: 2; }
.hiw__copy .h2 { margin-bottom: 44px; }
.hiw__steps { display: flex; flex-direction: column; gap: 8px; }
.hiw__step {
  display: flex; gap: 18px; padding: 18px 20px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s ease, background .4s ease;
}
/* The inactive state dims the icon and the border, never the body copy — blanket
   opacity took the text to 1.8:1, far below the 4.5:1 an AA reader needs. */
.hiw__step .hiw__step-icon { transition: opacity .4s ease; opacity: .45; }
.hiw__step h3 { transition: color .4s ease; color: var(--ink2); }
.hiw__step.is-active { background: var(--surface2); border-color: rgba(245, 56, 78, .28); }
.hiw__step.is-active .hiw__step-icon { opacity: 1; }
.hiw__step.is-active h3 { color: var(--ink); }
.hiw__step-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hiw__step-icon .icon { width: 20px; height: 20px; }
.hiw__step h3 { font: 700 17px var(--text); color: var(--ink); }
.hiw__step p { font: 400 14px/1.5 var(--text); color: var(--ink2); margin-top: 3px; }
.hiw__bar { width: 3px; height: 18px; border-radius: 2px; background: var(--surface2); margin-left: 39px; transition: background .4s ease; }
.hiw__bar.is-active { background: var(--accent); }

.tone-accent { background: rgba(245, 56, 78, .14); } .tone-accent .icon { color: var(--accent); }
.tone-keep { background: rgba(47, 210, 125, .14); } .tone-keep .icon { color: var(--keep); }
.tone-orange { background: rgba(229, 137, 75, .16); } .tone-orange .icon { color: var(--orange-ink); }
.tone-violet { background: rgba(108, 92, 231, .16); } .tone-violet .icon { color: var(--violet-ink); }
.tone-blue { background: rgba(63, 167, 224, .16); } .tone-blue .icon { color: var(--blue-ink); }

.hiw__phone { position: relative; width: 300px; height: 614px; z-index: 2; flex: 0 0 auto; }
.hiw__phone .phone { position: absolute; inset: 0; width: auto; height: auto; border-radius: 52px; padding: 10px; box-shadow: 0 50px 100px -36px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); }
.hiw__phone .phone__screen { border-radius: 43px; }
.hiw__phone .phone__island { top: 10px; width: 86px; height: 24px; border-radius: 13px; }

.hiw__screen { position: absolute; inset: 0; transition: opacity .5s ease, transform .5s ease; opacity: 0; transform: translateY(26px) scale(.96); }
.hiw__screen.is-active { opacity: 1; transform: translateY(0) scale(1); }
.hiw__screen.is-past { transform: translateY(-26px) scale(.96); }

.hiwp { position: absolute; top: 52px; left: 20px; right: 20px; z-index: 3; }
.hiwp__greet { font: 400 12px var(--text); color: var(--ink2); }
.hiwp__head { font: 600 19px var(--display); color: var(--ink); letter-spacing: -.01em; }
.hiwp__streak { margin-top: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 12px 13px; }
.hiwp__streak-row { display: flex; align-items: center; gap: 9px; }
.hiwp__streak-row .icon { width: 15px; height: 15px; color: var(--accent); }
.hiwp__streak-row b { font: 700 15px var(--display); color: var(--ink); }
.hiwp__div { width: 1px; height: 20px; background: var(--line); }
.hiwp__gb { font: 600 14px var(--display); color: var(--ink); }
.hiwp__gb small { font: 500 11px var(--text); color: var(--ink2); }
.hiwp__title { margin-top: 15px; font: 600 14px var(--display); color: var(--ink); }
.hiwp__grid { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hiwp__tile { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px; height: 74px; display: flex; flex-direction: column; justify-content: space-between; }
.hiwp__tile-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hiwp__tile-icon .icon { width: 15px; height: 15px; }
.hiwp__tile span { font: 600 12px var(--text); color: var(--ink); }

.hiw2__wash { position: absolute; inset: 0; background: radial-gradient(120% 85% at 14% 72%, rgba(47, 210, 125, .5), rgba(47, 210, 125, .12) 46%, transparent 72%); }
.hiw2__bar { position: absolute; top: 52px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.hiw2__bar .demo__round { width: 32px; height: 32px; }
.hiw2__bar .demo__round .icon { width: 16px; height: 16px; }
.hiw2__label { font: 600 13px var(--display); color: var(--ink); }
.hiw2__photo { position: absolute; top: 100px; left: 66px; right: -40px; bottom: -20px; transform: rotate(12deg); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 56px -14px rgba(0, 0, 0, .78); }
.hiw2__photo img { width: 100%; height: 100%; object-fit: cover; }
.hiw2__keep { position: absolute; top: 44%; left: 16px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hiw2__keep-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(47, 210, 125, .22); border: 1.5px solid var(--keep); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -4px rgba(0, 0, 0, .55); }
.hiw2__keep-circle .icon { width: 24px; height: 24px; color: var(--keep); }
.hiw2__keep span { font: 800 15px var(--text); color: var(--keep); letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

.hiw3__glow { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 56, 78, .28), transparent 65%); }
.hiw3__body { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.hiw3__ring { position: relative; width: 132px; height: 132px; }
.hiw3__ring svg { transform: rotate(-90deg); }
.hiw3__ring-fill { animation: ringfill 1.2s var(--ease) forwards; }
.hiw3__ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hiw3__ring-center b { font: 600 36px var(--display); color: var(--ink); line-height: 1; }
.hiw3__ring-center span { font: 500 11px var(--text); color: var(--ink2); }
.hiw3__streak { display: flex; align-items: center; gap: 6px; margin-top: 12px; background: rgba(245, 56, 78, .14); border: 1px solid rgba(245, 56, 78, .3); border-radius: 30px; padding: 6px 13px; }
.hiw3__streak .icon { width: 14px; height: 14px; color: var(--accent); }
.hiw3__streak span { font: 700 12px var(--text); color: var(--accent); }
.hiw3__card { margin-top: 16px; width: calc(100% - 40px); background: linear-gradient(150deg, #241012, #160C0C); border: 1px solid rgba(245, 56, 78, .22); border-radius: 15px; padding: 13px 15px; display: flex; align-items: center; gap: 11px; }
.hiw3__card-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(245, 56, 78, .16); display: flex; align-items: center; justify-content: center; }
.hiw3__card-icon .icon { width: 18px; height: 18px; color: var(--accent); }
.hiw3__card small { display: block; font: 500 10px var(--text); color: var(--ink2); }
.hiw3__card b { display: block; font: 600 19px var(--display); color: var(--ink); line-height: 1.1; }

/* ============================================================================
   Features
   ========================================================================= */
.features { position: relative; padding: 130px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.features .h2 { max-width: 640px; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 56, 78, .4); }
.card__icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card__icon .icon { width: 23px; height: 23px; }
.card h3 { font: 700 19px var(--text); color: var(--ink); }
.card p { font: 400 14.5px/1.55 var(--text); color: var(--ink2); margin-top: 8px; }

/* ============================================================================
   Privacy
   ========================================================================= */
.privacy { position: relative; padding: 40px var(--gutter) 130px; }
.privacy__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; border-radius: 32px; overflow: hidden;
  background: linear-gradient(150deg, #241012, #120B0B); border: 1px solid rgba(245, 56, 78, .24);
  padding: 72px 64px; display: flex; align-items: center; gap: 64px; flex-wrap: wrap;
}
.privacy__glow { position: absolute; top: -160px; right: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 56, 78, .3), transparent 62%); pointer-events: none; }
.privacy__shield {
  flex: 0 0 auto; width: 150px; height: 150px; border-radius: 42px;
  background: rgba(245, 56, 78, .12); border: 1px solid rgba(245, 56, 78, .3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px -16px rgba(245, 56, 78, .5); animation: floaty 5s ease-in-out infinite;
}
.privacy__shield .icon { width: 74px; height: 74px; color: var(--accent); }
.privacy__body { flex: 1; min-width: 300px; position: relative; z-index: 2; }
.privacy__body h2 { font: 600 clamp(32px, 3.6vw, 48px)/1.05 var(--display); color: var(--ink); letter-spacing: -.025em; }
.privacy__body p { font: 400 17px/1.55 var(--text); color: var(--ink2); margin-top: 16px; max-width: 520px; }
.privacy__points { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.privacy__points li { display: flex; align-items: center; gap: 8px; font: 600 14px var(--text); color: var(--ink); }
.privacy__points .icon { width: 17px; height: 17px; color: var(--keep); }

/* ============================================================================
   Stats
   ========================================================================= */
.stats { position: relative; padding: 40px var(--gutter) 120px; max-width: var(--maxw); margin: 0 auto; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 36px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.stat__value { font: 600 54px var(--display); color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.stat__value--accent { color: var(--accent); }
.stat__label { font: 500 14px var(--text); color: var(--ink2); margin-top: 10px; }

/* ============================================================================
   Pricing
   ========================================================================= */
.pricing { position: relative; padding: 40px var(--gutter) 130px; max-width: 1080px; margin: 0 auto; }
.pricing .eyebrow, .pricing .h2 { text-align: center; }
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 60px; align-items: stretch; }
.plan { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; }
.plan--pro { position: relative; background: linear-gradient(160deg, #2A1013, #150C0C); border: 1.5px solid var(--accent); box-shadow: 0 30px 70px -30px rgba(245, 56, 78, .45); }
.plan__badge { position: absolute; top: -13px; left: 36px; font: 700 11px var(--text); letter-spacing: .08em; color: #fff; background: var(--accent); border-radius: 30px; padding: 5px 12px; }
.plan__name { font: 700 20px var(--text); color: var(--ink); display: flex; align-items: center; gap: 9px; }
.plan__name .icon { width: 19px; height: 19px; color: var(--accent); }
.plan__price { font: 600 46px var(--display); color: var(--ink); margin-top: 10px; }
.plan__price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.plan__price-row .plan__price { margin-top: 0; }
.plan__per { font: 500 15px var(--text); color: var(--ink2); }
.plan__note { font: 500 13px var(--text); color: var(--ink3-text); margin-top: 2px; }
.plan__note--pro { color: var(--ink2); }
.plan__features { display: flex; flex-direction: column; gap: 13px; margin-top: 28px; flex: 1; }
.plan__features li { display: flex; align-items: center; gap: 10px; font: 500 14.5px var(--text); color: var(--ink); }
.plan__features .icon { width: 17px; height: 17px; color: var(--keep); }
.plan--pro .plan__features .icon { color: var(--accent); }
.plan__cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; border-radius: 15px; background: var(--surface2); border: 1px solid var(--line);
  font: 700 15px var(--text); color: var(--ink); transition: border-color .25s ease, transform .2s ease;
}
.plan__cta:hover { border-color: rgba(245, 56, 78, .5); color: var(--ink); }
.plan__cta--pro {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border: 0; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(245, 56, 78, .6);
}
.plan__cta--pro:hover { transform: translateY(-2px); color: #fff; }
.plan__cta--pro .icon { width: 16px; height: 16px; color: #fff; }
.pricing__note { margin-top: 26px; text-align: center; font: 400 12.5px/1.6 var(--text); color: var(--ink3-text); max-width: 620px; margin-inline: auto; }

/* ============================================================================
   FAQ
   ========================================================================= */
.faq { position: relative; padding: 40px var(--gutter) 130px; max-width: 760px; margin: 0 auto; }
.faq .eyebrow, .faq .h2 { text-align: center; }
.faq .h2 { margin-bottom: 48px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; }
.faq__item summary {
  font: 700 16px var(--text); color: var(--ink); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 18px; height: 18px; color: var(--accent); transition: transform .25s ease; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { font: 400 15px/1.6 var(--text); color: var(--ink2); margin-top: 12px; }

/* ============================================================================
   Final CTA + footer
   ========================================================================= */
.final { position: relative; padding: 60px var(--gutter) 140px; overflow: hidden; }
.final__glow { position: absolute; bottom: -380px; left: 50%; margin-left: -450px; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 56, 78, .32), transparent 62%); pointer-events: none; }
.final__inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; z-index: 2; }
.final__mark { display: flex; justify-content: center; margin-bottom: 34px; }
.final__mark .mark { --mark-size: 96px; border-radius: 26px; box-shadow: 0 26px 60px -14px rgba(245, 56, 78, .65); animation: wiggleHint 4s ease-in-out infinite; }
.final h2 { font: 600 clamp(42px, 5vw, 68px)/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.final__sub { font: 400 18px/1.55 var(--text); color: var(--ink2); margin-top: 18px; }
.final__cta { display: flex; justify-content: center; margin-top: 36px; }
.final__cta .btn-store { border-radius: 18px; padding: 17px 30px; gap: 12px; box-shadow: 0 22px 50px -14px rgba(245, 56, 78, .7); }
.final__cta .btn-store .icon { width: 27px; height: 27px; }
.final__cta .btn-store__main { font-size: 19px; }
.final__cta .btn-store__top { font-size: 11px; }
.final__trust { display: flex; justify-content: center; gap: 22px; margin-top: 26px; font: 500 13px var(--text); color: var(--ink3-text); flex-wrap: wrap; }
.final__trust li { display: flex; align-items: center; gap: 7px; }
.final__trust .icon { width: 14px; height: 14px; color: var(--accent); }
.final__trust li:first-child svg { fill: currentColor; }
.final__trust li:last-child .icon { color: var(--keep); }

.footer {
  border-top: 1px solid var(--line); padding: 44px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto;
}
.footer__brand { display: flex; align-items: center; gap: 10px; --mark-size: 28px; }
.footer__brand .mark { border-radius: 8px; box-shadow: none; }
.footer__brand .name { font: 600 16px var(--display); color: var(--ink); }
.footer__tagline { font: 400 13px var(--text); color: var(--ink3-text); margin-left: 8px; }
.footer__links { display: flex; gap: 26px; font: 500 13px var(--text); flex-wrap: wrap; }
.footer__links a { color: var(--ink2); }

/* ============================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .hiw__sticky { gap: 48px; }
  .privacy__inner { padding: 56px 44px; gap: 44px; }
}

/* Hero and how-it-works stack below 1080px */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 128px; gap: 56px; flex-direction: column; text-align: center; }
  .hero__copy { max-width: 640px; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__float { display: none; }
  .scrollhint { display: none; }

  .hiw { height: 260vh; }
  .hiw__sticky { flex-direction: column; justify-content: center; gap: 28px; padding-top: 90px; padding-bottom: 40px; }
  .hiw__copy { max-width: 560px; text-align: center; }
  .hiw__copy .h2 { margin-bottom: 24px; }
  .hiw__steps { text-align: left; }
  .hiw__phone { transform: scale(.78); transform-origin: top center; margin-top: -40px; }
}

/* Burger nav below 760px */
@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .nav { padding: 12px var(--gutter); }
  .nav__burger { display: flex; }
  /* `position: absolute`, not `fixed`: .nav carries a backdrop-filter, which makes it
     the containing block for fixed descendants — a fixed panel would be sized against
     the 58px-tall bar instead of the viewport and collapse to a sliver. */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - 100%);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--bg);
    padding: 8px var(--gutter) 28px;
    transform: translateY(-10px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  /* Scarlet wash so the panel reads as part of the brand, not a flat black sheet */
  .nav__links::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 60% at 50% 0%, rgba(245, 56, 78, .16), transparent 60%);
  }
  .nav__links > * { position: relative; }
  body:has(.nav__links.is-open) { overflow: hidden; }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links .nav__lang { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .nav__links .btn-store-sm { margin-top: 16px; justify-content: center; padding: 14px 18px; font-size: 15px; border-bottom: 0; }

  .hero { min-height: auto; padding: 108px var(--gutter) 64px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 58px); }
  .hero__sub { font-size: 17px; }
  .hero__ctas { gap: 12px; }
  .hero__ctas .btn-store, .hero__ctas .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .hero__trust { gap: 14px; font-size: 12.5px; justify-content: center; }

  .phone { width: min(300px, 82vw); height: min(612px, 167vw); border-radius: 46px; padding: 9px; }
  .phone__screen { border-radius: 38px; }

  .marquee__group { gap: 28px; padding-right: 28px; }
  .marquee__item { font-size: 13.5px; }

  .hiw { height: 300vh; }
  .hiw__sticky { padding-top: 76px; gap: 18px; }
  .hiw__copy .h2 { margin-bottom: 18px; }
  .hiw__step { padding: 13px 15px; gap: 13px; }
  .hiw__step-icon { width: 34px; height: 34px; border-radius: 10px; }
  .hiw__step-icon .icon { width: 17px; height: 17px; }
  .hiw__step h3 { font-size: 15px; }
  .hiw__step p { font-size: 12.5px; }
  .hiw__bar { margin-left: 31px; height: 12px; }
  .hiw__phone { transform: scale(.62); margin-top: -78px; }

  .features { padding: 84px var(--gutter); }
  .features__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .card { padding: 22px; border-radius: 18px; }
  .card__icon { width: 40px; height: 40px; margin-bottom: 15px; }

  .privacy { padding-bottom: 84px; }
  .privacy__inner { padding: 40px 26px; gap: 28px; border-radius: 24px; text-align: center; flex-direction: column; }
  .privacy__shield { width: 104px; height: 104px; border-radius: 30px; }
  .privacy__shield .icon { width: 50px; height: 50px; }
  .privacy__body { min-width: 0; }
  .privacy__body p { margin-inline: auto; }
  .privacy__points { justify-content: center; gap: 14px; }

  .stats { padding-bottom: 84px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 12px; border-radius: 18px; }
  .stat__value { font-size: 38px; }
  .stat__label { font-size: 12.5px; margin-top: 7px; }

  .pricing { padding-bottom: 84px; }
  .pricing__grid { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  .plan { padding: 26px; }
  .plan--pro { margin-top: 8px; }

  .faq { padding-bottom: 84px; }
  .faq .h2 { margin-bottom: 30px; }
  .faq__item { padding: 18px 20px; }
  .faq__item summary { font-size: 15px; }

  .final { padding: 40px var(--gutter) 90px; }
  .final__mark .mark { --mark-size: 76px; border-radius: 21px; }
  .final__cta .btn-store { width: 100%; justify-content: center; }

  .footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px var(--gutter) 40px; }
  .footer__links { gap: 14px 22px; }
}

@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hiw__phone { transform: scale(.55); margin-top: -96px; }
}

/* Touch devices: hover transforms just cause sticky states */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--line); }
  .btn-store:hover, .btn-store-sm:hover, .plan__cta--pro:hover { transform: none; }
}

/* ============================================================================
   Reduced motion — kill decorative animation, keep the site fully usable
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none; transform: none; }
  .marquee { overflow-x: auto; }
  .hero__float, .hero__glow, .hero__glow2, .privacy__shield, .final__mark .mark, .scrollhint { animation: none; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
  .hiw__screen { transform: none; }
  .demo__card.is-flying { transition: none; }
}
