/* =========================================================
   CleanAI Landing
   Structure based on the Coin Scanner landing (dark, glow, store badges,
   contact form). Brand recoloured to CleanAI blue (App Icon + App Store
   screenshots).
   ========================================================= */

:root {
  color-scheme: dark;
  --bg-base: #070A12;
  --bg-surface: #0B0F1A;
  --bg-elevated: #10151F;
  --bg-card: #131A28;
  --bg-card-2: #182133;
  --line: #222C40;
  --line-strong: #2E3A54;

  --text: #E9EEF8;
  --text-strong: #FFFFFF;
  --text-muted: #94A0B8;
  --text-dim: #5A6680;

  --blue: #3A8BFF;          /* App Store screenshots blue */
  --blue-strong: #5FA1FF;
  --blue-deep: #1F4FD1;     /* App Icon background */
  --cyan: #5CCBFF;          /* App Icon sound waves */
  --green: #34C759;
  --red: #EF4444;
  --star: #FFC83A;

  --font: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 18px;
  --radius-pill: 999px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   Background glow (blue / cyan, from the App Icon)
   ========================================================= */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-glow > div {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.bg-glow__a {
  width: 900px; height: 900px;
  left: 50%; top: 36%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31, 79, 209, 0.55), transparent 65%);
  animation: glow-drift-a 28s ease-in-out infinite, glow-pulse-a 14s ease-in-out infinite;
}
.bg-glow__b {
  width: 720px; height: 720px;
  right: -140px; top: 4%;
  background: radial-gradient(circle, rgba(92, 203, 255, 0.28), transparent 65%);
  animation: glow-drift-b 34s ease-in-out infinite, glow-pulse-b 18s ease-in-out infinite;
}
.bg-glow__c {
  width: 820px; height: 820px;
  left: -160px; bottom: -180px;
  background: radial-gradient(circle, rgba(58, 139, 255, 0.35), transparent 65%);
  animation: glow-drift-c 30s ease-in-out infinite, glow-pulse-c 16s ease-in-out infinite;
}
@keyframes glow-drift-a { 0%,100% { translate: 0 0; } 33% { translate: 90px -70px; } 66% { translate: -70px 60px; } }
@keyframes glow-drift-b { 0%,100% { translate: 0 0; } 50% { translate: -120px 90px; } }
@keyframes glow-drift-c { 0%,100% { translate: 0 0; } 40% { translate: 80px -60px; } 75% { translate: -60px -90px; } }
@keyframes glow-pulse-a { 0%,100% { opacity: .85; } 50% { opacity: .55; } }
@keyframes glow-pulse-b { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes glow-pulse-c { 0%,100% { opacity: .8; } 50% { opacity: .55; } }

main { position: relative; z-index: 1; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  transition: transform .15s ease, box-shadow .25s ease, background-color .2s ease;
}
.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px rgba(58,139,255,0.30);
}
.btn--blue:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(58,139,255,0.42);
}
.btn:disabled { opacity: .7; cursor: default; transform: none; }

.round-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--bg-card-2); border-color: var(--line-strong); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* =========================================================
   Navigation
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px; }
.nav::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(100% + 60px);
  background: linear-gradient(to bottom,
    rgba(7,10,18,0.96) 0%, rgba(7,10,18,0.72) 40%, rgba(7,10,18,0.32) 75%, rgba(7,10,18,0) 100%);
  pointer-events: none;
  z-index: -1;
}
.nav__inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: var(--text-strong);
}
.nav__brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-weight: 700; font-size: 14px;
  position: relative; padding: 6px 2px;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--blue-strong); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 10px 22px; font-size: 14px; }

.nav__burger {
  position: relative; display: none;
  width: 36px; height: 36px;
  background: transparent; border: 0; padding: 0;
  color: var(--text);
}
.nav__burger-bar {
  position: absolute; left: 7px; right: 7px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s ease, top .3s ease, opacity .2s ease;
}
.nav__burger-bar:nth-child(1) { top: 11px; }
.nav__burger-bar:nth-child(2) { top: 17px; }
.nav__burger-bar:nth-child(3) { top: 23px; }
.nav.is-open .nav__burger-bar:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav.is-open .nav__burger-bar:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav.is-open .nav__burger-bar:nth-child(3) { top: 17px; transform: rotate(-45deg); }
.nav.is-open::before { display: none; }

.nav__mobile {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg-base);
  padding: calc(var(--header-h) + 32px) var(--gutter) 56px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  z-index: 1;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s .35s;
  pointer-events: none; visibility: hidden;
  border-bottom: 1px solid var(--line);
}
.nav.is-open .nav__mobile {
  transform: translateY(0);
  pointer-events: auto; visibility: visible;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}
.nav__mobile a { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text-strong); }
.nav__mobile a.btn--blue { margin-top: 8px; padding: 14px 32px; font-size: 16px; }

/* =========================================================
   Section utilities
   ========================================================= */
section { padding: 80px 0; position: relative; }
.section-title {
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 18px;
  color: var(--text-strong);
}
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 0 var(--gutter);
}
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* Pill: small rounded label */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill);
  background: rgba(58,139,255,0.10);
  border: 1px solid rgba(58,139,255,0.30);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  transition: background-color .2s ease, border-color .2s ease;
}
.pill:hover { background: rgba(58,139,255,0.18); border-color: rgba(58,139,255,0.5); }
.pill__tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  font-size: 12px; font-weight: 700;
}

/* =========================================================
   Phone frame (wraps exported Figma screens)
   ========================================================= */
.phone {
  position: absolute;
  width: 280px;
  aspect-ratio: 375 / 812;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(160deg, #2A3348, #11151F 45%, #1B2234);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 40px 90px rgba(0,0,0,0.6),
    0 0 80px rgba(58,139,255,0.18);
  transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg));
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 41px;
  background: #F4F5F7;
}

/* =========================================================
   HERO
   ========================================================= */
.hero, .email { overflow-x: clip; }
.hero {
  padding: calc(var(--header-h) + 72px) var(--gutter) 40px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__content { max-width: 920px; text-align: center; position: relative; z-index: 2; }
.hero__title {
  font-weight: 800;
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--text-strong);
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero__stores { display: flex; justify-content: center; gap: 14px; }
.store-badge { transition: transform .2s ease; }
.store-badge:hover { transform: translateY(-2px) scale(1.02); }
.hero__rating {
  margin: 18px 0 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 760px;
  margin-top: 40px;
  pointer-events: none;
}
.hero__visual::before {
  content: "";
  position: absolute; left: 50%; top: 55%;
  width: 520px; height: 520px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,139,255,0.45), transparent 65%);
  filter: blur(40px);
}
.mock3d {
  position: absolute;
  width: 310px;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6));
  transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg));
}
.mock3d--home  { --rot: -8deg; left: calc(50% - 330px); top: 0; }
.mock3d--right { --rot: 10deg; left: calc(50% + 24px);  top: 110px; z-index: 2; width: 274px; }
@keyframes bob { 0%,100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* =========================================================
   FEATURES (App Store screenshots carousel)
   ========================================================= */
.features__wrap { position: relative; }
.features__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
  cursor: grab;
}
.features__track::-webkit-scrollbar { display: none; }
.features__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.features__track.is-dragging .shot { pointer-events: none; }
.shot {
  flex: 0 0 auto;
  width: 250px;
  aspect-ratio: 1290 / 2796;
  border-radius: 24px;
  object-fit: cover;
  scroll-snap-align: start;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  user-select: none;
  -webkit-user-drag: none;
}
/* Screens 1-3 are one App Store panorama: keep them joined */
.shot-group {
  flex: 0 0 auto;
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.shot-group .shot { border-radius: 0; box-shadow: none; scroll-snap-align: none; }
.features__nav {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 32px;
}

/* =========================================================
   EMAIL CLEANER
   ========================================================= */
.email { padding-left: var(--gutter); padding-right: var(--gutter); }
.email__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.email__title {
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--text-strong);
}
.email__lead { font-size: 18px; color: var(--text-muted); margin: 0 0 36px; max-width: 520px; }
.email__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.email__list li { display: flex; gap: 16px; align-items: flex-start; }
.email__list strong { display: block; font-size: 17px; color: var(--text-strong); margin-bottom: 4px; }
.email__list p { margin: 0; font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.email__ic {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-strong);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-elevated));
  border: 1px solid var(--line);
}
.email__ic svg { width: 22px; height: 22px; }

.email__visual { position: relative; height: 740px; }
.email__visual::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,139,255,0.35), transparent 65%);
  filter: blur(40px);
}
.email__visual .mock3d { width: 290px; }
.mock3d--cat  { --rot: -8deg; left: 4%;  top: 0; }
.mock3d--subs { --rot: 10deg; left: 48%; top: 90px; z-index: 2; }
.email__envelope {
  position: absolute;
  width: 240px;
  left: 0; bottom: 40px;
  z-index: 3;
  transform: rotate(-10deg);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5));
  animation: bob 8s ease-in-out infinite;
}

/* Google data use card */
.privacy-card {
  max-width: var(--container);
  margin: 72px auto 0;
  padding: 36px;
  border-radius: 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.privacy-card__title {
  margin: 0 0 28px;
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-strong);
}
.privacy-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.privacy-item strong { display: block; font-size: 15px; color: var(--text-strong); margin-bottom: 8px; }
.privacy-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.privacy-card a { color: var(--blue-strong); text-decoration: underline; text-underline-offset: 2px; }
.privacy-card__note {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.6;
  color: var(--text-muted);
}

/* =========================================================
   FEATURES (icon + title + description grid)
   ========================================================= */
.feats { padding-left: var(--gutter); padding-right: var(--gutter); }
.feats__head { text-align: center; }
.feats__grid {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.feat { display: flex; gap: 18px; align-items: flex-start; }
.feat > div { min-width: 0; }
.feat strong { display: block; font-size: 18px; color: var(--text-strong); margin: 2px 0 6px; letter-spacing: -0.01em; }
.feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.feat__ic {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-strong);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-elevated));
  border: 1px solid var(--line);
}
.feat__ic svg { width: 24px; height: 24px; }
@media (max-width: 1024px) {
  .feats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; }
}
@media (max-width: 640px) {
  .feats__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feat strong { font-size: 17px; }
  .feat__ic { width: 48px; height: 48px; border-radius: 14px; }
}

/* =========================================================
   CONTACT (form from Coin Scanner)
   ========================================================= */
.contact { padding-left: var(--gutter); padding-right: var(--gutter); }
.contact__sub {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}
.contact__form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px;
}
.contact__form-full { grid-column: 1 / -1; }
.contact__form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.contact__form sup { color: var(--blue-strong); }
.contact__form input,
.contact__form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-strong);
  caret-color: var(--text-strong);
  font: 400 15px/1.4 var(--font);
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
  resize: vertical;
  width: 100%;
  min-width: 0;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--text-dim); }
.contact__form input:not(:placeholder-shown),
.contact__form textarea:not(:placeholder-shown) { background: var(--bg-card-2); border-color: var(--line-strong); }
.contact__form input:focus,
.contact__form textarea:focus { border-color: var(--blue); background: var(--bg-card-2); }
.contact__form input:-webkit-autofill,
.contact__form input:-webkit-autofill:hover,
.contact__form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #182133 inset;
  -webkit-text-fill-color: #E9EEF8;
  transition: background-color 5000s ease-in-out 0s;
}
.contact__form input:not(:placeholder-shown):invalid,
.contact__form textarea:not(:placeholder-shown):invalid,
.contact__form input:user-invalid,
.contact__form textarea:user-invalid { border-color: var(--red); background: rgba(239,68,68,0.06); }
.contact__form label:has(input:user-invalid) sup,
.contact__form label:has(textarea:user-invalid) sup,
.contact__form label:has(input:not(:placeholder-shown):invalid) sup { color: var(--red); }
.contact__form button { grid-column: 1 / -1; justify-self: center; min-width: 140px; }
.contact__form-msg {
  grid-column: 1 / -1;
  display: none;
  margin: 0;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 14px; line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}
.contact__form-msg:not(:empty) { display: block; }
.contact__form-msg--success { background: rgba(52,199,89,0.08); border-color: rgba(52,199,89,0.3); color: #6EE08F; }
.contact__form-msg--error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #F87171; }
.contact__form-msg a { text-decoration: underline; }
.contact__alt { text-align: center; margin: 28px 0 0; font-size: 15px; color: var(--text-muted); }
.contact__alt a { color: var(--blue-strong); font-weight: 600; }
.contact__alt a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; z-index: 1; padding: 72px var(--gutter); }
.footer__inner {
  max-width: 1024px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 48px;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 800; font-size: 22px; color: var(--text-strong); }
.footer__brand img { width: 64px; height: 64px; border-radius: 15px; }
.footer__stores a { display: inline-flex; transition: opacity .12s ease-out; }
.footer__stores a:hover { opacity: .9; }
.footer__links { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.footer__links a { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text-strong); transition: color .15s ease; }
.footer__links a:hover { color: var(--blue-strong); }
.footer__top {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .12s ease-out;
}
.footer__top svg { width: 24px; height: 24px; }
.footer__top:hover { background: var(--bg-card-2); }
.footer__divider { width: 100%; height: 1px; border: 0; background: var(--line); margin: 0; }
.footer__legal { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__legal-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer__legal-row a { font-size: 16px; letter-spacing: -0.02em; color: var(--text-strong); transition: color .15s ease; }
.footer__legal-row a:hover { color: var(--blue-strong); }
.footer__legal-sep { width: 1px; height: 16px; background: var(--line-strong); }
.footer__copy { font-size: 14px; color: var(--text-dim); margin: 0; }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }

  .email__grid { grid-template-columns: 1fr; gap: 24px; }
  .email__text { text-align: center; max-width: 640px; margin: 0 auto; }
  .email__lead { margin-left: auto; margin-right: auto; }
  .email__list { text-align: left; max-width: 520px; margin: 0 auto; }
  .email__visual { max-width: 600px; width: 100%; margin: 0 auto; }

  .privacy-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }

  section { padding: 56px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 8px; }
  .pill { font-size: 13px; margin-bottom: 22px; }
  .hero__sub { font-size: 15px; margin-bottom: 28px; }

  .hero__visual { height: 470px; margin-top: 28px; }
  .hero__visual::before { width: 360px; height: 360px; }
  .phone { width: 200px; padding: 7px; border-radius: 36px; }
  .phone img { border-radius: 30px; }
  .mock3d { width: 176px; }
  .mock3d--home  { left: calc(50% - 176px); top: 8px; }
  .mock3d--right { left: calc(50% + 2px); top: 72px; width: 156px; }
  
  .section-sub { font-size: 15px; margin-bottom: 32px; }
  .shot { width: 210px; border-radius: 20px; }
  .shot-group { border-radius: 20px; }
  .features__track { gap: 12px; }
  .features__nav { display: none; }

  .email__title { font-size: 36px; }
  .email__lead { font-size: 16px; }
  .email__visual { height: 470px; }
  .email__visual::before { width: 340px; height: 340px; }
  .email__visual .mock3d { width: 176px; }
  .mock3d--cat  { left: calc(50% - 176px); top: 8px; }
  .mock3d--subs { left: calc(50% - 6px); top: 72px; }
  .email__envelope { width: 140px; left: calc(50% - 186px); bottom: 10px; }

  .privacy-card { margin-top: 48px; padding: 24px; border-radius: 22px; }
  .privacy-card__title { font-size: 20px; margin-bottom: 20px; }
  .privacy-card__grid { grid-template-columns: 1fr; gap: 18px; }

  .contact__sub { font-size: 15px; margin-bottom: 32px; }
  .contact__sub br { display: none; }
  .contact__form { grid-template-columns: minmax(0,1fr); padding: 22px; gap: 14px; }
  .contact__form button { width: 100%; }

  .bg-glow { opacity: .5; }
  .bg-glow > div { filter: blur(110px); }
  .bg-glow__a { width: 560px; height: 560px; }
  .bg-glow__b { width: 460px; height: 460px; }
  .bg-glow__c { width: 520px; height: 520px; }

  .footer { padding: 56px var(--gutter); }
  .footer__inner { gap: 36px; }
  .footer__links { gap: 18px; flex-direction: column; }
  .footer__legal-row { gap: 16px; }
  .footer__legal-row a { font-size: 15px; }
  .footer__top { width: 60px; height: 60px; }
}
