/* ==========================================================================
   iMons for Android — marketing site
   Editorial page UI: hairline rules, hard edges, mono labels (radius ≤ 8px).
   The hero device mock is the deliberate exception — glass, gradients, and
   real phone geometry. Dark-first with a deliberate light scheme.
   System font stacks only — no webfonts, no frameworks.
   ========================================================================== */

:root {
  --bg: #0f1412;
  --bg-panel: #131a17;
  --text: #e8f0eb;
  --muted: #9fb2a7;
  --faint: #67796e;
  --line: #26312b;
  --line-strong: #3a4a41;

  --accent: #2ee59d;
  --accent-dim: #17d596;
  --accent-ink: #06231a;
  --accent-wash: rgba(46, 229, 157, 0.08);

  --font-sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo,
    monospace;

  --wrap: 1140px;
  --pad: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7f5;
    --bg-panel: #ffffff;
    --text: #131f19;
    --muted: #45584d;
    --faint: #718478;
    --line: #d4ddd6;
    --line-strong: #a9b8ae;

    --accent: #0b8a5c;
    --accent-dim: #0b8a5c;
    --accent-ink: #ffffff;
    --accent-wash: rgba(11, 138, 92, 0.07);
  }
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.3;
  font-feature-settings: "palt";
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

img {
  display: block;
}

.mono {
  font-family: var(--font-mono);
}

.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;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 18px 28px;
  font-size: 1rem;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand img {
  align-self: center;
}

.brand b {
  font-weight: 800;
}

.brand span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-inline: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-control {
  position: relative;
  display: inline-block;
}

.lang-control::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.6rem;
  color: var(--muted);
}

.lang-control select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.lang-control select:hover {
  border-color: var(--accent);
}

.lang-control option {
  background: var(--bg-panel);
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--pad) clamp(48px, 8vh, 96px);
}

/* aurora backdrop — the one place the page itself gets to glow */
.hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% -8%;
  background:
    radial-gradient(42% 52% at 76% 26%, rgba(46, 229, 157, 0.17), transparent 70%),
    radial-gradient(36% 46% at 60% 78%, rgba(34, 200, 216, 0.13), transparent 70%),
    radial-gradient(28% 38% at 92% 62%, rgba(78, 141, 245, 0.10), transparent 70%);
  filter: blur(44px);
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  .hero::before {
    opacity: 0.55;
  }
}

.hero > * {
  position: relative;
}

.eyebrow {
  margin-bottom: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.1rem, 3.4vw + 0.8rem, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title-accent {
    background: linear-gradient(94deg, var(--accent) 10%, #22c8d8 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-lead {
  margin-top: 26px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 30px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* ---------- hero visual: glass device mock ----------
   The mock depicts the app itself (Liquid Glass, dark theme), so it keeps
   real phone geometry and gradients regardless of the page color scheme.
   Everything inside uses fixed colors on purpose. */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

/* the app icon leads; the device sits beside and slightly behind it */
.app-mark {
  position: relative;
  z-index: 2;
  flex: none;
  width: clamp(132px, 15vw, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-right: -34px;
  transform: translateY(30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24%;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 28px 64px rgba(3, 10, 7, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-mark img {
  width: 82%;
  height: auto;
}

@media (prefers-color-scheme: light) {
  .app-mark {
    border-color: rgba(19, 31, 25, 0.18);
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    box-shadow: 0 24px 52px rgba(19, 31, 25, 0.24);
  }
}

.phone {
  position: relative;
  width: min(238px, 62vw);
  flex: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 34px 80px rgba(3, 10, 7, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(-4deg);
}

@media (prefers-color-scheme: light) {
  .phone {
    border-color: rgba(19, 31, 25, 0.22);
    box-shadow: 0 30px 64px rgba(19, 31, 25, 0.28);
  }
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 0;
  border-radius: 27px;
  overflow: hidden;
  background:
    radial-gradient(130% 70% at 85% -4%, rgba(46, 229, 157, 0.20), transparent 60%),
    radial-gradient(120% 80% at 0% 104%, rgba(34, 200, 216, 0.14), transparent 60%),
    #0b100e;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: #e8f0eb;
  font-weight: 700;
}

.phone-src-badge {
  padding: 3px 9px;
  border: 1px solid rgba(46, 229, 157, 0.55);
  border-radius: 999px;
  background: rgba(46, 229, 157, 0.12);
  color: #2ee59d;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.phone-periods {
  display: flex;
  gap: 6px;
}

.phone-periods b {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #9fb2a7;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.phone-periods b.on {
  border-color: transparent;
  background: linear-gradient(120deg, #2ee59d, #22c8d8);
  color: #06231a;
}

.pfeed {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pitem {
  display: grid;
  grid-template-columns: 14px 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.prank {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2ee59d;
  text-align: center;
}

.pthumb {
  height: 40px;
  border-radius: 8px;
}

.pthumb.t1 { background: linear-gradient(135deg, #2ee59d, #1789c8); }
.pthumb.t2 { background: linear-gradient(135deg, #4e8df5, #8b6cf0); }
.pthumb.t3 { background: linear-gradient(135deg, #ef6baa, #f0925a); }

.pmeta {
  display: block;
  min-width: 0;
}

.pmeta i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  margin: 5px 0;
}

.pmeta .w70 { width: 88%; }
.pmeta .w60 { width: 78%; }
.pmeta .w55 { width: 70%; }
.pmeta .w45 { width: 52%; }
.pmeta .w40 { width: 46%; }
.pmeta .w35 { width: 40%; }

.pdl {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46, 229, 157, 0.5);
  border-radius: 50%;
  color: #2ee59d;
  font-size: 0.72rem;
}

.ptoast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(46, 229, 157, 0.5);
  border-radius: 12px;
  background: rgba(46, 229, 157, 0.13);
  color: #e8f0eb;
  font-size: 0.68rem;
  font-weight: 600;
}

.ptoast .mono {
  color: #2ee59d;
}

.ptabs {
  display: flex;
  justify-content: space-around;
  margin: 2px -14px 0;
  padding: 11px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #67796e;
  font-size: 0.82rem;
}

.ptabs .on {
  color: #2ee59d;
}

/* floating glass chips around the phone */
.chip-float {
  position: absolute;
  z-index: 3;
  padding: 7px 13px;
  border: 1px solid rgba(46, 229, 157, 0.45);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, var(--accent) 18%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.chip-a {
  top: 4%;
  left: -4%;
}

.chip-b {
  bottom: -4%;
  right: -6%;
}

@media (prefers-reduced-motion: no-preference) {
  .chip-float {
    animation: chip-drift 7s ease-in-out infinite;
  }

  .chip-b {
    animation-delay: -3.5s;
  }

  @keyframes chip-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
}

/* ---------- sections ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(52px, 9vh, 100px) var(--pad);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 44em;
  margin-bottom: clamp(28px, 5vh, 44px);
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.4vw + 0.6rem, 2.3rem);
  font-weight: 800;
}

.section-lead {
  margin-top: 14px;
  color: var(--muted);
}

.section-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- sources: ruled index ---------- */

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.source-grid li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-panel);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.15s;
}

.source-grid li:hover {
  background: var(--accent-wash);
}

.source-grid li .mono {
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ---------- features: hairline grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.card {
  grid-column: span 2;
  padding: 26px;
  background: var(--bg-panel);
}

.card-wide {
  grid-column: span 4;
}

.card-half {
  grid-column: span 3;
}

.card-tag {
  margin-bottom: 18px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.swatch-row {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.swatch-row i {
  width: 16px;
  height: 16px;
}

.swatch-row i:nth-child(1) { background: #2ee59d; }
.swatch-row i:nth-child(2) { background: #22c8d8; }
.swatch-row i:nth-child(3) { background: #4e8df5; }
.swatch-row i:nth-child(4) { background: #8b6cf0; }
.swatch-row i:nth-child(5) { background: #ef6baa; }
.swatch-row i:nth-child(6) { background: #f0925a; }
.swatch-row i:nth-child(7) { background: #a8e05f; }

.extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 32px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.extras li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.extras li::before {
  content: "+";
  margin-right: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ---------- install ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.steps .card {
  grid-column: auto;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- download ---------- */

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--accent);
  background: var(--accent-wash);
}

.download-card h2 {
  font-size: clamp(1.6rem, 2.8vw + 0.6rem, 2.4rem);
  font-weight: 800;
}

.download-copy p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

/* the JP/ZH label is long — let it wrap instead of blowing out the card */
.download-action .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  gap: 14px;
}

.dl-spec {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.dl-support {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
  max-width: 34ch;
  text-wrap: pretty;
}

.dl-support a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.dl-support a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 60em;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line-strong);
}

.foot-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 6vh, 60px) var(--pad) 28px;
}

.foot-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 26em;
}

.foot-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 44px;
  margin: 0;
}

.foot-credits dt {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-credits dd {
  margin: 6px 0 0;
}

.foot-credits a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-strong);
}

.foot-credits a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--pad) 32px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--faint);
}

.foot-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.foot-bottom a:hover {
  color: var(--accent);
}

/* ---------- legal documents ---------- */

.doc {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(44px, 8vh, 80px) var(--pad);
}

.doc h1 {
  font-size: clamp(1.7rem, 3vw + 0.6rem, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.doc-updated {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 42px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc p,
.doc ul {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc strong {
  color: var(--text);
}

.doc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 1px 6px;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  color: var(--accent);
}

.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.doc a:hover {
  background: var(--accent-wash);
}

/* per-language visibility on legal pages */
html[lang="ja"] [data-doc-lang]:not([data-doc-lang="ja"]),
html[lang="en"] [data-doc-lang]:not([data-doc-lang="en"]),
html[lang="zh-CN"] [data-doc-lang]:not([data-doc-lang="zh-CN"]),
html[lang="ko"] [data-doc-lang]:not([data-doc-lang="ko"]) {
  display: none;
}

/* ---------- 404 ---------- */

.nf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 220px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 10vh, 110px) var(--pad);
  position: relative;
}

.nf::before {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background:
    radial-gradient(38% 46% at 72% 30%, rgba(46, 229, 157, 0.14), transparent 70%),
    radial-gradient(32% 40% at 24% 76%, rgba(34, 200, 216, 0.10), transparent 70%);
  filter: blur(44px);
  pointer-events: none;
}

.nf > * {
  position: relative;
}

.nf-code {
  margin: 0 0 10px;
  font-size: clamp(4.4rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nf-code {
    background: linear-gradient(94deg, var(--accent) 10%, #22c8d8 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.nf h1 {
  font-size: clamp(1.4rem, 2.6vw + 0.6rem, 2rem);
  font-weight: 800;
}

.nf-lead {
  margin-top: 16px;
  max-width: 36em;
  color: var(--muted);
}

.nf .hero-actions {
  margin-top: 32px;
}

.nf-path {
  margin-top: 26px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  word-break: break-all;
}

/* ---------- reveal on scroll (JS adds .rv, then .in) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .rv.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .card,
  .card-wide,
  .card-half {
    grid-column: span 6;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps .card {
    grid-column: auto;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-action {
    align-items: flex-start;
    width: 100%;
  }

  .dl-support {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding-top: clamp(40px, 7vh, 72px);
    text-align: left;
  }

  .hero-title {
    line-height: 1.24;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .app-mark {
    width: clamp(88px, 24vw, 128px);
    margin-right: -22px;
    transform: translateY(20px);
  }

  .phone {
    transform: rotate(-2deg);
    width: min(240px, 56vw);
  }

  .download-card {
    padding: 28px 20px;
  }

  .download-action .btn-lg {
    padding: 16px 20px;
    font-size: 0.94rem;
    gap: 12px;
  }

  .chip-a {
    left: 0;
  }

  .chip-b {
    right: 0;
  }

  .foot-main {
    flex-direction: column;
  }
}
