/* ===== Design tokens — Ascrollbox brand (tricolor cube) ===== */
:root {
  /* Primary = brand blue (top face of the cube) */
  --purple-50:  #eaf2ff;
  --purple-100: #d4e4ff;
  --purple-300: #93c0ff;
  --purple-500: #2d6fe8;
  --purple-600: #1f5fd6;
  --purple-700: #154bb0;

  /* Brand accents (right + left faces) */
  --red-500:   #e64d4d;
  --red-600:   #bf2020;
  --green-500: #2dc76a;
  --green-600: #0fa84a;

  /* Signature tricolor gradient — the soul of the brand */
  --grad-brand: linear-gradient(100deg, #2d6fe8 0%, #2d6fe8 30%, #e64d4d 65%, #2dc76a 100%);
  --grad-brand-soft: linear-gradient(100deg, #5b9ef7, #e64d4d 60%, #2dc76a);

  --ink-900: #131722;
  --ink-700: #2a3142;
  --ink-500: #586074;
  --ink-400: #828a9c;

  --bg:        #ffffff;
  --bg-soft:   #f4f6fb;
  --bg-alt:    #f7f9fd;
  --border:    #e6eaf2;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 40px -12px rgba(20, 60, 140, .18);
  --shadow-lg: 0 30px 80px -24px rgba(20, 60, 140, .35);

  --maxw: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 14px;
}

/* Gradient brand text */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pill badge (hero eyebrow) */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(20,60,140,.25);
  font-size: .82rem; font-weight: 600; color: var(--ink-700);
  margin-bottom: 22px;
}
.badge-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(45,199,106,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 4px rgba(45,199,106,.18) } 50%{ box-shadow: 0 0 0 7px rgba(45,199,106,.06) } }

/* Social proof under hero CTA */
.hero__proof {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 30px;
  font-size: .9rem; font-weight: 500; color: var(--ink-500);
}
.stars { color: #ffb400; letter-spacing: 2px; font-size: 1rem; }
.btn__play { font-size: .7rem; }

/* ===== Buttons ===== */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --pad-y: 9px; --pad-x: 18px; font-size: .9rem; }
.btn--lg { --pad-y: 15px; --pad-x: 30px; font-size: 1.05rem; }

.btn--primary {
  background: var(--purple-500);
  color: #fff;
  box-shadow: 0 8px 22px -8px var(--purple-500);
}
.btn--primary:hover { background: var(--purple-600); transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--purple-500); }

.btn--ghost {
  background: var(--bg);
  color: var(--ink-900);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--purple-300); color: var(--purple-700); transform: translateY(-2px); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -16px rgba(60,30,120,.5);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(20,60,140,.18));
}
.brand--footer .brand__mark { width: 34px; height: 34px; filter: none; }
.brand__name { letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav > a:not(.btn) {
  padding: 8px 14px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-500);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav > a:not(.btn):hover { color: var(--ink-900); background: var(--bg-soft); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem; font-weight: 700;
  cursor: pointer;
  color: var(--ink-400);
}
.lang-toggle__opt { transition: color .2s; }
.lang-toggle__opt.is-active { color: var(--purple-600); }
.lang-toggle__sep { opacity: .4; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero__glow {
  position: absolute; inset: -220px 0 auto 0;
  height: 680px;
  background:
    radial-gradient(560px 380px at 78% 8%, rgba(45,111,232,.22), transparent 60%),
    radial-gradient(440px 360px at 92% 38%, rgba(230,77,77,.16), transparent 62%),
    radial-gradient(520px 380px at 12% 26%, rgba(45,199,106,.18), transparent 62%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.12rem;
  color: var(--ink-500);
  max-width: 32em;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__platforms {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  list-style: none;
  font-size: .82rem; font-weight: 600;
  color: var(--ink-400);
}
.hero__platforms li {
  padding: 5px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Phone mockup */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px; height: 590px;
  background: #0e0b1a;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #241d3d;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #0e0b1a; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-alt), #fff 40%);
  border-radius: 32px;
  overflow: hidden;
  padding: 38px 14px 14px;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-bar__title { font-weight: 800; font-size: 1.05rem; color: var(--purple-700); }
.app-bar__search { width: 28px; height: 28px; border-radius: 8px; background: var(--purple-50); }
.chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 12px; }
.chip {
  font-size: .68rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-500);
  white-space: nowrap;
}
.chip--on { background: var(--purple-500); color: #fff; }
.grid-mock { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--purple-100);
  overflow: hidden;
}
.thumb--yt { background: linear-gradient(135deg,#ffd2d2,#ff8a8a); }
.thumb--tk { background: linear-gradient(135deg,#cffaf2,#7defd5); }
.thumb--ig { background: linear-gradient(135deg,#ffe0c2,#ffb6e1); }
.thumb--fb { background: linear-gradient(135deg,#cfe0ff,#9cc0ff); }
.thumb .badge {
  position: absolute; top: 7px; left: 7px;
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: .65rem; color: #fff;
  background: rgba(20,17,31,.55);
  backdrop-filter: blur(2px);
}

.share-sheet {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px 14px 14px;
  box-shadow: 0 -10px 40px -12px rgba(60,30,120,.4);
  animation: slideUp 1.1s var(--ease) .4s both;
}
@keyframes slideUp { from { transform: translateY(120%); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.share-sheet__grabber { width: 38px; height: 4px; border-radius: 4px; background: var(--border); margin: 0 auto 12px; }
.share-sheet__row { display: flex; gap: 10px; margin-bottom: 12px; }
.share-sheet__thumb { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg,#ffd2d2,#ff8a8a); flex-shrink: 0; }
.share-sheet__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.share-sheet__title { font-size: .8rem; font-weight: 700; }
.share-sheet__tags { display: flex; gap: 5px; }
.mini-chip { font-size: .62rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--purple-50); color: var(--purple-700); }
.share-sheet__actions { display: flex; align-items: center; justify-content: space-between; }
.share-sheet__priv { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--ink-500); }
.switch { width: 30px; height: 18px; border-radius: 999px; background: var(--purple-100); position: relative; display: inline-block; }
.switch__dot { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.share-sheet__save { font-size: .78rem; font-weight: 700; color: #fff; background: var(--purple-500); padding: 7px 18px; border-radius: 999px; }

/* ===== Strip ===== */
.strip { border-block: 1px solid var(--border); background: var(--bg-soft); }
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 24px;
}
.strip__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.strip__item strong { font-size: 2rem; font-weight: 800; color: var(--purple-600); letter-spacing: -.02em; }
.strip__item:nth-child(1) strong { color: var(--purple-600); }
.strip__item:nth-child(2) strong { color: var(--red-600); }
.strip__item:nth-child(3) strong { color: var(--green-600); }
.strip__item:nth-child(4) strong { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip__item span { font-size: .85rem; color: var(--ink-500); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 38em; margin: 0 auto 56px; }
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--purple-100); }
.feature__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--purple-50);
  margin-bottom: 16px;
  transition: transform .25s var(--ease);
}
.feature:hover .feature__icon { transform: scale(1.08) rotate(-3deg); }
/* Tricolor cycle to echo the cube faces */
.feature:nth-child(3n+1) .feature__icon { background: var(--purple-50); }
.feature:nth-child(3n+2) .feature__icon { background: #fdeaea; }
.feature:nth-child(3n+3) .feature__icon { background: #e7f8ee; }
.feature:nth-child(3n+1) { --accent: var(--purple-500); }
.feature:nth-child(3n+2) { --accent: var(--red-500); }
.feature:nth-child(3n+3) { --accent: var(--green-500); }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feature::before {
  content: ""; display: block;
  width: 28px; height: 3px; border-radius: 3px;
  background: var(--accent, var(--purple-500));
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  margin-bottom: 18px;
}
.feature:hover::before { opacity: 1; transform: none; }
.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { font-size: .92rem; color: var(--ink-500); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-weight: 800; font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--ink-500); }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.privacy__lead { font-size: 1.1rem; color: var(--ink-500); margin-bottom: 22px; }
.ticklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticklist li { position: relative; padding-left: 32px; color: var(--ink-700); }
.ticklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; color: #fff;
  background: var(--purple-500);
  border-radius: 7px;
}
.privacy__visual { display: flex; justify-content: center; }
.pin-pad {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  width: 280px;
}
.pin-pad__dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 30px; }
.pin-pad__dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--purple-300); }
.pin-pad__dots span.is-on { background: var(--purple-500); border-color: var(--purple-500); }
.pin-pad__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-pad__keys span {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 600;
  color: var(--ink-700);
  background: var(--bg-soft);
  border-radius: 50%;
}
.pin-pad__keys span:empty { background: transparent; }

/* Download CTA */
.section--cta {
  position: relative;
  background: linear-gradient(135deg, #154bb0 0%, #1f5fd6 45%, #2d6fe8 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.section--cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 300px at 12% 120%, rgba(45,199,106,.45), transparent 60%),
    radial-gradient(420px 300px at 88% -20%, rgba(230,77,77,.40), transparent 60%);
  pointer-events: none;
}
.section--cta .container { position: relative; z-index: 1; }
.download__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.download__sub { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #14111f;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  transition: transform .2s var(--ease), box-shadow .2s;
  border: 1px solid rgba(255,255,255,.12);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); }
.store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn small { font-size: .68rem; opacity: .75; }
.store-btn strong { font-size: 1.1rem; }
.download__note { margin-top: 22px; font-size: .82rem; color: rgba(255,255,255,.6); }

/* Footer */
.footer { background: var(--ink-900); color: rgba(255,255,255,.7); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { background: rgba(255,255,255,.12); }
.footer__copy { font-size: .9rem; }
.footer__links { display: flex; gap: 18px; font-size: .9rem; }
.footer__links a:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__device { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .privacy { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .hero { padding: 40px 0 70px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
