/* LinguaMile site. Colours follow the app's roles (lib/theme/colors.ts), and the page ground is
   the app's galaxy picture (assets/images/backgrounds), drawn as an <img> because the CSP and
   the site tests keep this stylesheet free of remote references. No scripts, web fonts or remote files. */

:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --surface2: #E8ECF1;
  --text: #14181D;
  --muted: #56606C;
  --line: rgba(20, 24, 29, 0.10);
  --accent: #2F5BE0;
  --on-accent: #FFFFFF;
  --accent-soft: #E6EBFB;
  --promo-start: #29246D;
  --promo-end: #5C55B4;
  --speaker: #0E7A83;
  --star: #D99A00;
  --success: #1A7148;
  --glow: rgba(47, 91, 224, 0.20);
  --glow2: rgba(168, 50, 122, 0.12);
  --shadow: 0 1px 2px rgba(20, 24, 29, 0.06), 0 12px 32px rgba(20, 24, 29, 0.08);
  --shadow-lg: 0 30px 80px rgba(41, 36, 109, 0.25);
  --radius: 20px;
  --max: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1215;
    --surface: #181C21;
    --glass: rgba(24, 28, 33, 0.66);
    --glass-strong: rgba(24, 28, 33, 0.84);
    --surface2: #222830;
    --text: #EDF0F3;
    --muted: #9AA4AF;
    --line: rgba(237, 240, 243, 0.10);
    --accent: #7896FF;
    --on-accent: #0B1230;
    --accent-soft: #273045;
    --speaker: #56C2CA;
    --star: #F2C14E;
    --success: #5CC994;
    --glow: rgba(120, 150, 255, 0.22);
    --glow2: rgba(179, 156, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }
[hidden] { display: none !important; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Reading pages keep the site's colours while providing a quiet, narrow text column. */
.document { max-width: 52rem; margin: 0 auto; padding: 3rem 1.5rem; overflow-wrap: anywhere; }
.document h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin: 0 0 1.5rem; }
.document h2 { font-size: 1.25rem; margin: 2.5rem 0 1rem; scroll-margin-top: 6rem; }
.document-home { margin-left: auto; font-size: 0.85rem; }
.document-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.document-body ul, .document-body ol { padding-left: 1.5rem; }
/* Legal text is read, not scanned: a text face (not the UI face), a smaller size and tight leading. */
.document-body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 0.875rem; line-height: 1.5; letter-spacing: 0;
}
.document-body p { margin: 0.4rem 0; }
.document-body h2 { font-size: 1rem; margin: 1.6rem 0 0.4rem; }
.document-body li { margin: 0.15rem 0; }
.document-body .effective-date { margin-top: 2rem; text-align: right; color: var(--muted); font-size: 0.8rem; }
.document-body, .support-card { padding: clamp(1rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-strong); }
.document-body h2:first-child, .support-card h2 { margin-top: 0; }
.support-card { margin: 1.5rem 0; }
.availability { color: var(--muted); font-size: 0.9rem; }
.back-to-top { display: inline-block; margin-top: 2rem; }
.document-footer { margin-top: 2rem; padding: 2rem 1.5rem; }
.document-footer nav { max-width: 52rem; margin: 0 auto; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 20; padding: 0.5rem 1rem; background: var(--surface); }
.skip-link:focus { top: 0.5rem; }
.inquiry-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; line-height: 1.5;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 10rem; }
.field .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.field .check input { margin-top: 0.45rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.required, .optional { margin-left: 0.6rem; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: 0.1em; }
.required { background: var(--accent-soft); color: var(--accent); }
.optional { background: var(--surface2); color: var(--muted); }
.inquiry-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }

img { max-width: 100%; }

h1, h2, h3 { line-height: 1.3; letter-spacing: 0.01em; }

/* ---------- page ground ---------- */

.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

.ground img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.wordmark {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav { display: flex; gap: 1.6rem; margin-left: auto; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-small { padding: 0.4rem 1rem; font-size: 0.85rem; }

.btn-large { padding: 0.85rem 1.6rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--promo-start), var(--promo-end));
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(41, 36, 109, 0.35);
}

.btn-ghost {
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-light { background: #FFFFFF; color: var(--promo-start); }

a.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(41, 36, 109, 0.3); }

.btn-icon { width: 1.2em; height: 1.2em; fill: currentColor; }

.btn.is-pending { cursor: default; opacity: 0.8; }

.is-pending:not(.btn) { color: var(--muted); }

/* Japanese phrases wrap as a whole where the line allows. */
.phrase { display: inline-block; }

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

main { position: relative; overflow-x: clip; }

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: -10% -20% auto auto;
  width: 46rem;
  height: 46rem;
  z-index: -1;
  background:
    radial-gradient(closest-side, var(--glow), transparent),
    radial-gradient(closest-side at 30% 70%, var(--glow2), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 2.4s infinite;
}

.hero-name {
  margin: 0 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
}

.hero-name .wordmark { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }

.hero-reading { color: var(--muted); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--promo-end) 55%, #A8327A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .gradient-text { background-image: linear-gradient(100deg, #7896FF 10%, #B39CFF 55%, #F07BBE 100%); }
}

.hero-lead {
  margin: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-copy > * { animation: rise 0.8s both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-copy > :nth-child(6) { animation-delay: 0.4s; }

/* ---------- phone mock ---------- */

.hero-visual { text-align: left; display: flex; flex-direction: column; align-items: center; animation: rise 0.9s 0.2s both; }

.phone {
  width: min(20rem, 100%);
  padding: 0.6rem;
  border-radius: 2.6rem;
  background: linear-gradient(160deg, #3a3f4a, #121418);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 2.1rem;
  background: var(--bg);
  min-height: 36rem;
  padding: 0.6rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.phone-ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.phone-screen > :not(picture) { position: relative; z-index: 1; }

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem 0;
}

.phone-pill { width: 4.5rem; height: 1.2rem; border-radius: 999px; background: #000; margin-right: 35%; }

.phone-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
}

.avatar {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #FFFFFF;
  background: var(--speaker);
}

.phone-title { margin: 0; font-size: 0.85rem; font-weight: 700; line-height: 1.3; }

.phone-sub { margin: 0; font-size: 0.7rem; color: var(--muted); line-height: 1.3; }

.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
}

.live-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }

.chat { display: flex; flex-direction: column; gap: 0.5rem; }

.bubble {
  margin: 0;
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.45;
  animation: pop 0.5s both;
}

.bubble-npc {
  align-self: flex-start;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble-me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
}

.b1 { animation-delay: 0.6s; }
.b2 { animation-delay: 1.2s; }
.b3 { animation-delay: 1.8s; }
.b4 { animation-delay: 2.4s; }
.b5 { animation-delay: 3.1s; }

.finding {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  animation: pop 0.5s both;
}

.finding-label { margin: 0; font-size: 0.65rem; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; }

.finding-text { margin: 0.1rem 0 0.4rem; font-size: 0.78rem; font-weight: 700; line-height: 1.4; }

.finding-tags { margin: 0; display: flex; gap: 0.3rem; }

.finding-tags span {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.mic {
  margin-top: auto;
  align-self: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--promo-start), var(--promo-end));
  box-shadow: 0 0 0 0.5rem var(--glow), 0 10px 24px rgba(41, 36, 109, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
}

.wave { width: 0.2rem; height: 1.2rem; border-radius: 2px; background: #FFFFFF; animation: wave 1.1s ease-in-out infinite; }
.wave:nth-child(2) { animation-delay: 0.15s; }
.wave:nth-child(3) { animation-delay: 0.3s; }
.wave:nth-child(4) { animation-delay: 0.45s; }
.wave:nth-child(5) { animation-delay: 0.6s; }

.visual-caption { text-align: center; margin: 0.9rem 0 0; font-size: 0.75rem; color: var(--muted); }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.8rem;
  padding: 1rem 0;
  animation: marquee 40s linear infinite;
}

.ticker-track span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.ticker-track span::before { content: "✦"; margin-right: 0.8rem; color: var(--accent); }

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

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem 0;
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.block h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }

.section-lead { margin: 1rem 0 0; max-width: 42rem; color: var(--muted); font-size: 1.05rem; }

.about-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.about-lead { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.7; }

.about-body p { margin: 0 0 1rem; color: var(--muted); }

.about-body p:last-child { margin-bottom: 0; }

.name-note { padding-top: 1rem; border-top: 1px solid var(--line); }

.name-note strong { color: var(--text); font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* steps */

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s;
}

.step:hover { transform: translateY(-4px); border-color: var(--accent); }

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.95rem;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.6;
}

.step-no {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--line);
  -webkit-text-stroke: 1px var(--accent);
  opacity: 0.55;
}

.step-icon, .card-icon {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.6rem;
  border-radius: 14px;
  fill: var(--accent);
  background: var(--accent-soft);
}

.step h3 { margin: 1rem 0 0.4rem; font-size: 1.1rem; }

.step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* compare */

.compare {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1.6fr;
  align-items: center;
  gap: 1.2rem;
}

.compare-card { padding: 1.4rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); }

.compare-plain { background: var(--glass); color: var(--muted); }

.compare-ours {
  background: linear-gradient(135deg, var(--promo-start), var(--promo-end));
  color: #FFFFFF;
  border: 0;
  box-shadow: var(--shadow-lg);
}

.compare-label { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 700; opacity: 0.85; }

.compare-text { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.6; }

.compare-arrow { width: 2rem; height: 2rem; fill: var(--accent); }

/* feature cards */

.cards {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-wide { grid-row: span 2; display: flex; flex-direction: column; }

.card h3 { margin: 1.1rem 0 0.4rem; font-size: 1.15rem; }

.card p { margin: 0; color: var(--muted); }

.setup {
  list-style: none;
  margin: auto 0 0;
  padding: 1.4rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.setup li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

.setup span {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
}

/* audience */

.scenes {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.scenes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 0.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 700;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s;
}

.scenes li:hover { transform: translateY(-4px); }

.scenes svg { width: 2rem; height: 2rem; fill: var(--accent); }

/* call to action */

.cta { padding: 7rem 1.5rem 0; }

.cta-inner {
  position: relative;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem;
  border-radius: 28px;
  text-align: center;
  color: #FFFFFF;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(240, 123, 190, 0.35), transparent 45%),
    linear-gradient(135deg, var(--promo-start), var(--promo-end));
  box-shadow: var(--shadow-lg);
}

.cta-icon { border-radius: 18px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }

.cta h2 { margin: 1.2rem 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.cta p { margin: 0 auto 1.8rem; max-width: 34rem; opacity: 0.9; }

.cta .hero-actions { justify-content: center; }

/* footer */

.footer { margin-top: 6rem; border-top: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }

.footer-col a { color: var(--muted); text-decoration: none; }

.footer-col a:hover { color: var(--text); }

.footer-head { margin: 0 0 0.2rem; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; }

/* 404 */

.notfound { max-width: 36rem; margin: 0 auto; padding: 8rem 1.5rem; text-align: center; }

.notfound h1 { font-size: 2rem; }

.notfound .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

@keyframes blink { 50% { opacity: 0.3; } }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 113, 72, 0.5); }
  70% { box-shadow: 0 0 0 0.5rem rgba(26, 113, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 113, 72, 0); }
}

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

/* ---------- narrow screens ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; text-align: center; }
  .eyebrow { margin-inline: auto; }
  .hero-name { justify-content: center; }
  .hero-actions { justify-content: center; }
  .wide-only { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-row: auto; grid-column: span 2; }
  .scenes { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .block { padding-top: 4.5rem; }
  .steps, .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .step:not(:last-child)::after { display: none; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { justify-self: center; transform: rotate(90deg); }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .about-grid { padding: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .cta-inner { padding: 3rem 1.25rem; }
}
