/* ──────────────────────────────────────────────────────────────────────────
   drimin.web.app — design system
   Tokens mirror the Flutter app (AppColors).
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* brand */
  --brand-aqua: #3DC2FF;
  --brand-deep: #0EA5E9;
  --brand-ice:  #67E8F9;
  --brand-foam: #BAE6FD;

  /* surface */
  --bg:           #0B132B;
  --bg-elevated:  #111B36;
  --bg-soft:      #16213F;
  --bg-glass:     rgba(17, 27, 54, 0.62);
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.16);

  /* text */
  --text:         #F8FAFC;
  --text-muted:   #B6C2D9;
  --text-faint:   #8090AE;

  /* gradients */
  --grad-water:    linear-gradient(180deg, #67E8F9 0%, #22D3EE 45%, #0EA5E9 100%);
  --grad-aurora:   radial-gradient(at 20% 0%, rgba(61,194,255,0.20) 0%, transparent 55%),
                   radial-gradient(at 90% 10%, rgba(14,165,233,0.18) 0%, transparent 55%),
                   radial-gradient(at 60% 100%, rgba(103,232,249,0.10) 0%, transparent 60%);
  --grad-text:     linear-gradient(120deg, #67E8F9 0%, #3DC2FF 50%, #0EA5E9 100%);

  /* radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.18);
  --shadow-md: 0 12px 40px rgba(2, 8, 23, 0.45);
  --shadow-glow: 0 18px 60px rgba(14, 165, 233, 0.35);

  /* type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-display: 'Manrope', var(--font-sans);

  /* spacing */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
*::selection { background: rgba(61,194,255,0.35); color: #fff; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-aqua); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--brand-ice); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p  { margin: 0 0 1em; color: var(--text-muted); }

code, pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ─── layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-aqua);
  padding: 6px 14px;
  border: 1px solid rgba(61,194,255,0.35);
  border-radius: var(--r-pill);
  background: rgba(61,194,255,0.06);
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

/* ─── nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(11, 19, 43, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--grad-water);
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(14,165,233,0.45);
}
.brand__mark svg { width: 16px; height: 16px; color: #0B132B; }

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }

.nav__cta { display: inline-flex; gap: 12px; align-items: center; }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* ─── buttons ─── */
.btn {
  --pad-y: 14px;
  --pad-x: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out),
              background .2s var(--ease-out), border-color .2s var(--ease-out);
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--grad-water);
  color: #06182C;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 70px rgba(14,165,233,0.5); color: #06182C; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 0.88rem; }

/* ─── hero ─── */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(48px, 8vw, 96px);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-aurora);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__title { margin-top: 12px; }
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--text-muted);
}
.hero__cta { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  color: var(--text-faint);
  font-size: 0.92rem;
}
.hero__meta div { display: inline-flex; gap: 8px; align-items: center; }
.hero__meta svg { width: 16px; height: 16px; color: var(--brand-aqua); }

/* ─── phone frame ─── */
.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 340 / 700;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #1A2447 0%, #0B132B 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: rotate(-2deg);
  transition: transform .6s var(--ease-out);
}
.phone:hover { transform: rotate(-2deg) translateY(-6px); }
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #06122B;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.hero__phone-stack {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__phone-stack .phone:nth-child(2) {
  position: absolute;
  right: -8%; top: 8%;
  transform: rotate(6deg) scale(0.78);
  opacity: 0.85;
  z-index: -1;
  filter: blur(0.4px);
}

/* ─── orbiting droplets (hero decoration) ─── */
.orbits {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: -1;
}
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--grad-water);
  opacity: 0.55;
  filter: blur(0.5px);
  box-shadow: 0 0 24px rgba(61,194,255,0.45);
}

/* ─── feature grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.feature {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(61,194,255,0.35);
  background: linear-gradient(180deg, rgba(61,194,255,0.07) 0%, rgba(14,165,233,0.02) 100%);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(61,194,255,0.12);
  color: var(--brand-aqua);
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; margin: 0; color: var(--text-muted); }

/* ─── alternating story rows ─── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  margin-top: 96px;
}
.story:first-of-type { margin-top: 48px; }
.story--reverse .story__media { order: 2; }
.story__media {
  display: grid; place-items: center;
  position: relative;
}
.story__phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 340 / 700;
  padding: 12px;
  background: linear-gradient(160deg, #1A2447 0%, #0B132B 100%);
  border: 1px solid var(--border-strong);
  border-radius: 38px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.story__phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 28px;
}
.story h2 { margin-bottom: 18px; }
.story ul { padding: 0; margin: 24px 0 0; list-style: none; display: grid; gap: 14px; }
.story li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  color: var(--text-muted); font-size: 0.98rem;
}
.story li::before {
  content: '';
  width: 14px; height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--grad-water);
  box-shadow: 0 0 16px rgba(61,194,255,0.45);
}

/* ─── stats strip ─── */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(61,194,255,0.08), rgba(14,165,233,0.02));
  border: 1px solid rgba(61,194,255,0.18);
}
.kpi__cell { text-align: left; }
.kpi__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--text);
  letter-spacing: -0.03em;
}
.kpi__lbl { color: var(--text-faint); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── FAQ ─── */
.faq { margin-top: 48px; display: grid; gap: 12px; max-width: 860px; margin-left: auto; margin-right: auto; }
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.faq details[open] { border-color: rgba(61,194,255,0.35); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--brand-aqua);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--text-muted); font-size: 0.96rem; }

/* ─── Feature banner ─── */
.feature-banner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 0 auto;
  max-width: 860px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 8px 48px rgba(0,0,0,0.45);
}
.feature-banner img { width: 100%; height: auto; display: block; border-radius: inherit; }

/* ─── CTA card ─── */
.cta {
  margin-top: 24px;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(61,194,255,0.12), rgba(14,165,233,0.04));
  border: 1px solid rgba(61,194,255,0.28);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute; inset: -20% -10% auto auto;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(61,194,255,0.22), transparent 60%);
  pointer-events: none;
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 620px; margin-left: auto; margin-right: auto; }
.cta__row { margin-top: 28px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ─── footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer__col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--text-muted); font-size: 0.96rem; }
.footer__col a:hover { color: var(--text); }
.footer__about { color: var(--text-muted); max-width: 320px; font-size: 0.94rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.88rem;
  flex-wrap: wrap; gap: 14px;
}

/* ─── blog ─── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .25s var(--ease-out), box-shadow .3s var(--ease-out);
  color: inherit;
}
.article-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-aqua), transparent);
  opacity: 0; transition: opacity .3s;
}
.article-card:hover { transform: translateY(-5px); border-color: rgba(61,194,255,0.4); box-shadow: 0 8px 40px rgba(0,0,0,.4); color: inherit; }
.article-card:hover::after { opacity: 1; }
.article-card__meta { color: var(--brand-aqua); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.article-card h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--text); }
.article-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; flex: 1; }
.article-card__read { margin-top: 20px; font-size: 0.84rem; font-weight: 600; color: var(--brand-aqua); display: inline-flex; align-items: center; gap: 4px; }

/* ─── Blog hero extras ─── */
.blog-hero { position: relative; }
.blog-hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 360px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(61,194,255,.10), transparent 70%);
  filter: blur(40px);
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-crumbs {
  font-size: 12px; color: var(--text-faint); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.blog-crumbs a { color: var(--text-muted); text-decoration: none; }
.blog-crumbs a:hover { color: var(--text); }
.blog-crumbs span[aria-hidden] { color: var(--text-faint); }
.eyebrow__dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-aqua); flex-shrink: 0;
}
.hl {
  background: linear-gradient(135deg, var(--brand-aqua), #22D3EE);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--gutter) 0;
}
.article__head { text-align: center; margin-bottom: 56px; }
.article__meta { color: var(--text-faint); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.article__title { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article__lede { font-size: 1.12rem; color: var(--text-muted); max-width: 600px; margin: 18px auto 0; }

.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 1.2em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.5em 0; color: var(--text-muted); }
.prose blockquote {
  border-left: 3px solid var(--brand-aqua);
  padding: 6px 0 6px 20px;
  color: var(--text);
  font-style: italic;
  background: rgba(61,194,255,0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 3em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { color: var(--text-faint); font-size: 0.86rem; text-align: center; margin-top: 10px; }

.article__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.article__back:hover { color: var(--text); }

/* ─── article byline ─── */
.byline {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
  padding: 12px 18px 12px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.byline__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-aqua), #22D3EE);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.byline__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.byline__name { color: var(--text); font-size: 0.92rem; font-weight: 600; }
.byline__name a { color: var(--text); text-decoration: none; }
.byline__name a:hover { color: var(--brand-aqua); }
.byline__dates { color: var(--text-faint); font-size: 0.78rem; margin-top: 2px; }
.byline__dates span + span { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }

/* ─── prose code ─── */
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--brand-ice, var(--text));
}
.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}

/* ─── related articles (reuses .article-grid) ─── */
.related {
  max-width: var(--container);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
}
.related h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 24px;
  text-align: center;
}

/* ─── legal page ─── */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--gutter) 0;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .article__meta { margin-bottom: 14px; }
.legal h2 { margin-top: 2.2em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.8em; font-size: 1.18rem; }
.legal ul li { color: var(--text-muted); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.94rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.legal th { color: var(--text); font-weight: 600; background: rgba(255,255,255,0.03); }

/* ─── reveal-on-scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

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

/* ─── responsive ─── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phone-stack { margin-top: 32px; }
  .story { grid-template-columns: 1fr; }
  .story--reverse .story__media { order: 0; }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(11,19,43,0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .hero__meta { gap: 16px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .kpi { grid-template-columns: 1fr 1fr; padding: 22px; }
  .phone { transform: rotate(0); max-width: 260px; }
  .hero__phone-stack .phone:nth-child(2) { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Play Store badge button
   ───────────────────────────────────────────────────────────── */
.play-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s var(--ease-out);
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.55); filter: brightness(1.05); }
.play-badge img { display: block; height: 56px; width: auto; border-radius: var(--r-sm); }
.play-badge.is-sm img { height: 44px; }

/* ─────────────────────────────────────────────────────────────
   Sister-product callout (Drimin ⇄ Trenziq)
   ───────────────────────────────────────────────────────────── */
.sister {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 18px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.sister:hover { border-color: var(--brand-aqua); transform: translateY(-2px); color: inherit; }
.sister__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.sister__mark img { width: 44px; height: 44px; display: block; border-radius: inherit; object-fit: cover; }
.sister__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sister__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
}
.sister__title { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.sister__sub { font-size: 0.92rem; color: var(--text-muted); }
.sister__arrow { margin-left: auto; color: var(--brand-aqua); font-size: 1.2rem; }

/* ─────────────────────────────────────────────────────────────
   Our Network / Partner strip
   ───────────────────────────────────────────────────────────── */
.network {
  max-width: 1360px;
  margin: 0 auto 32px;
  padding: 32px var(--gutter);
}
.network h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-faint);
  margin-bottom: 16px;
  text-align: center;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1000px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
.partner {
  display: block;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.partner:hover { border-color: var(--brand-aqua); transform: translateY(-2px); color: var(--text); }
.partner .ph {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-aqua);
  margin-bottom: 4px;
}
.partner .pn { font-size: 14px; font-weight: 600; color: var(--text); }

/* ─────────────────────────────────────────────────────────────
   Footer attribution row tweaks
   ───────────────────────────────────────────────────────────── */
.footer__bottom a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--text); }
