/* ═══ HOME VARIABLES ═══ */
:root {
  --green: #34C759;
  --green-soft: rgba(52, 199, 89, 0.10);
  --orange: #FF9500;
  --orange-soft: rgba(255, 149, 0, 0.10);
  --red: #FF3B30;
  --red-soft: rgba(255, 59, 48, 0.10);
  --tgv-body-1: #f0f0f0; --tgv-body-2: #dcdcdc; --tgv-body-3: #c8c8c8;
  --tgv-dark-1: #2c3036; --tgv-dark-2: #1a1e22;
  --tgv-stripe: #5856D6; --tgv-inoui: #5856D6;
  --tgv-window-1: #b8d8f0; --tgv-window-2: #7ab0d4;
  --tgv-door-window: #e8f0f8; --tgv-line-white: #fff; --tgv-link: #24282e; --tgv-bogie: #1a1d20;
}

[data-theme="dark"] {
  --glow: rgba(88,86,214,0.15); --shadow-card: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-phone: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.12);
  --phone-bg: #000; --phone-surface: #1c1c1e;
  --phone-screen-bg: linear-gradient(180deg, #0a0a0c, #000);
  --phone-border: rgba(255,255,255,0.14); --phone-sep: rgba(255,255,255,0.06);
  --phone-t1: #f5f5f7; --phone-t2: rgba(255,255,255,0.55); --phone-t3: rgba(255,255,255,0.30);
}

[data-theme="light"] {
  --glow: rgba(88,86,214,0.08); --shadow-card: 0 1px 12px rgba(0,0,0,0.06);
  --shadow-phone: 0 30px 60px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.08);
  --phone-bg: #f2f2f7; --phone-surface: #fff;
  --phone-screen-bg: linear-gradient(180deg, #f2f2f7, #e8e8ed);
  --phone-border: rgba(0,0,0,0.08); --phone-sep: rgba(0,0,0,0.06);
  --phone-t1: #1d1d1f; --phone-t2: rgba(0,0,0,0.45); --phone-t3: rgba(0,0,0,0.25);
  --tgv-body-1: #f6f6f6; --tgv-body-2: #e8e8e8; --tgv-body-3: #d4d4d4;
}

/* ═══ NAV ═══
   Nav styles live in common.css. Home-only icons stay here. */
.nicon { display: inline-flex; align-items: center; color: var(--fg-3); transition: color .2s; }
.nicon:hover { color: var(--fg); }

/* Floating theme toggle - pulled out of the nav to keep the masthead light */
.thm-float {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--fg-2);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: color .2s, background .2s, transform .25s var(--ease-out);
}
[data-theme="dark"] .thm-float { box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.thm-float:hover { color: var(--fg); background: var(--surface-2); transform: rotate(12deg); }
.thm-float:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 720px) { .ntag { display: none; } }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px max(5vw, 20px) 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 500px at 25% 30%, var(--glow), transparent 60%),
              radial-gradient(600px 400px at 75% 70%, rgba(88,86,214,0.05), transparent 50%);
}
.hi { max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.ht { display: flex; flex-direction: column; gap: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 5px 14px 5px 9px; border-radius: 980px;
  border: 1px solid var(--border-2); background: var(--accent-soft);
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-light);
}
.cd {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}
.hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, var(--accent-light), #9b8fe8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hdesc { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--fg-2); max-width: 44ch; }
.hbtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; border: none; cursor: pointer;
  transition: all .3s var(--ease-out);
}
.ba {
  padding: 13px 26px; border-radius: 13px; background: var(--accent); color: #fff; font-size: 15px;
  box-shadow: 0 4px 20px rgba(88,86,214,.3), 0 1px 2px rgba(0,0,0,.15);
}
.ba:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(88,86,214,.35), 0 2px 6px rgba(0,0,0,.15); }
.bg {
  padding: 12px 22px; border-radius: 13px; background: transparent; color: var(--fg);
  font-size: 15px; border: 1px solid var(--border-3);
}
.bg:hover { background: var(--surface); }
.hsocial { display: flex; align-items: center; gap: 10px; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.hsocial a { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-3); transition: color .2s; }
.hsocial a:hover { color: var(--fg); }
.hsocial-label { font-weight: 500; }
.hsocial-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); opacity: .4; }
.hprf { display: flex; align-items: center; gap: 18px; margin-top: 6px; font-size: 12.5px; color: var(--fg-3); }
.hprf span { display: flex; align-items: center; gap: 5px; }
.pdot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); opacity: .5; }

/* ═══ iPHONE MOCKUP ═══ */
.phs { justify-self: center; perspective: 1200px; }
.phone {
  width: 272px; aspect-ratio: 272/572; border-radius: 40px;
  background: var(--phone-bg); border: 1px solid var(--border-3);
  box-shadow: var(--shadow-phone); padding: 10px; position: relative;
  animation: flt 7s ease-in-out infinite;
  transform: rotateY(-3deg) rotateX(1deg);
  transition: box-shadow .4s, background .4s, border-color .3s;
}
@keyframes flt { 0%,100% { transform: rotateY(-3deg) rotateX(1deg) translateY(0); } 50% { transform: rotateY(-3deg) rotateX(1deg) translateY(-12px); } }
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 20px; background: #000; z-index: 10;
}
.scr {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--phone-screen-bg); display: flex; flex-direction: column;
  transition: background .4s;
}
.sb { padding: 14px 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--phone-t1); flex-shrink: 0; }
.sbr { display: flex; align-items: center; gap: 4px; }
.sc { flex: 1; padding: 20px 14px 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.slt { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; color: var(--phone-t1); line-height: 1.1; }
.ssl { font-size: 10px; font-weight: 600; color: var(--phone-t3); text-transform: uppercase; letter-spacing: .05em; padding: 0 2px; }

/* TrainCard */
.mc { background: var(--phone-surface); border-radius: 14px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; transition: background .4s; }
.mct { display: flex; justify-content: space-between; align-items: center; }
.mcc { font-size: 9.5px; font-weight: 600; color: var(--phone-t3); letter-spacing: .02em; }
.mcr { font-size: 13px; font-weight: 700; color: var(--phone-t1); letter-spacing: -0.01em; }
.mctm { display: flex; align-items: flex-end; justify-content: space-between; }
.mtb { display: flex; flex-direction: column; gap: 1px; }
.mtb.r { align-items: flex-end; }
.mt { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--phone-t1); line-height: 1; }
.mt.dl { color: var(--orange); }
.ms { font-size: 9px; font-weight: 500; color: var(--phone-t2); }
.mar { font-size: 14px; color: var(--phone-t3); margin-bottom: 8px; }
.mcf { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px solid var(--phone-sep); }
.mst { font-size: 11px; font-weight: 700; }
.mst.on { color: var(--green); }
.mst.dl { color: var(--orange); }
.mv { font-size: 9.5px; color: var(--phone-t3); font-weight: 500; }

/* Tab bar */
.mtb-bar { display: flex; justify-content: space-around; padding: 8px 0 6px; border-top: 1px solid var(--phone-sep); flex-shrink: 0; }
.mtab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8.5px; font-weight: 500; color: var(--phone-t3); }
.mtab.act { color: var(--accent); }
.mtab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mtab.act svg { stroke-width: 2.2; }

/* ═══ FEATURES ═══ */
.features {
  padding: 100px max(5vw, 20px); background: var(--bg-warm);
  border-top: 1px solid var(--border); transition: background .4s, border-color .3s;
}
.sh { max-width: 600px; margin: 0 auto 60px; text-align: center; }
.sc2 {
  display: inline-flex; padding: 4px 12px; border-radius: 980px;
  background: var(--accent-soft); font-size: 11px; font-weight: 700;
  color: var(--accent-light); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.sh h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px;
}
.sh h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.sh p { font-size: clamp(14px, 1.5vw, 17px); color: var(--fg-2); line-height: 1.6; }
.fg { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ft {
  border-radius: 20px; border: 1px solid var(--border); background: var(--bg);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: all .35s var(--ease-out); position: relative; overflow: hidden;
}
.ft::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0; transition: opacity .35s;
}
.ft:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-2); }
.ft:hover::after { opacity: .5; }
.fi2 { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.fi2 svg { width: 20px; height: 20px; }
.fi2-green   { background: var(--green-soft);  border: 1px solid rgba(52,199,89,.18);  color: var(--green); }
.fi2-accent  { background: var(--accent-soft); border: 1px solid rgba(88,86,214,.18);  color: var(--accent-light); }
.fi2-orange  { background: var(--orange-soft); border: 1px solid rgba(255,149,0,.18);  color: var(--orange); }
.fi2-red     { background: var(--red-soft);    border: 1px solid rgba(255,59,48,.18);  color: var(--red); }
.fi2-neutral { background: var(--tag-bg, rgba(255,255,255,.04)); border: 1px solid var(--border-2); color: var(--fg-2); }
.ft h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.ft p { font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }

/* ═══ TRAIN ANIM ═══ */
.ts {
  position: relative; min-height: 60vh; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg); transition: background .4s, border-color .3s;
}
.tsh { text-align: center; padding: 60px max(5vw, 20px) 0; position: relative; z-index: 2; }
.tsw { height: 48vh; margin-top: 2vh; width: 100vw; }
.scene { position: sticky; top: calc(100vh - 300px); height: 300px; width: 100%; overflow: hidden; display: grid; place-items: center; }
.gg { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; pointer-events: none; }
[data-theme="dark"] .gg { background: linear-gradient(180deg, transparent 0%, rgba(88,86,214,.03) 60%, rgba(88,86,214,.06) 100%); }
[data-theme="light"] .gg { background: linear-gradient(180deg, transparent 0%, rgba(88,86,214,.02) 60%, rgba(88,86,214,.04) 100%); }
.rails {
  position: absolute; left: 3%; right: 3%; bottom: 2vh; height: 120px; opacity: .35; pointer-events: none;
  mask: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
[data-theme="light"] .rails { opacity: .25; }
.rl { position: absolute; left: 0; right: 0; height: 3px; background: var(--fg-3); top: 44px; border-radius: 2px; }
.rl.s { top: 74px; }
.ties {
  position: absolute; left: 0; right: 0; top: 40px; height: 50px;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 30px, var(--fg-3) 30px, var(--fg-3) 34px);
  opacity: .3;
}
.ball {
  position: absolute; left: 0; right: 0; top: 78px; height: 24px;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 5px, var(--fg-3) 5px, var(--fg-3) 6px);
  opacity: .08;
}
.tw { position: absolute; bottom: 2vh; left: 0; width: 100%; height: 160px; pointer-events: none; }
.train {
  position: absolute; right: calc(100% - var(--trainX, 10%));
  transform: translateY(var(--bob, 0px)) rotate(var(--sway, 0deg));
  width: 1860px; height: 130px; will-change: transform, right;
}
[data-theme="dark"] .train { filter: drop-shadow(0 12px 32px rgba(0,0,0,.5)); }
[data-theme="light"] .train { filter: drop-shadow(0 8px 24px rgba(0,0,0,.12)); }
.tgv-h, .tgv-t { position: absolute; bottom: 16px; width: 360px; height: 76px; z-index: 2; }
.tgv-h { left: 1654px; }
.tgv-t { left: 6px; }
.tsvg { width: 100%; height: 100%; display: block; }
.tgv-t .tsvg { transform: scaleX(-1); }
.wag { position: absolute; bottom: 16px; height: 70px; width: 320px; border-radius: 4px 4px 2px 2px; overflow: hidden; z-index: 2; }
.wag.w1 { left: 364px; } .wag.w2 { left: 688px; } .wag.w3 { left: 1012px; } .wag.w4 { left: 1336px; }
.wi { position: absolute; inset: 0; }
.jt {
  position: absolute; bottom: 30px; width: 4px; height: 44px; border-radius: 3px;
  background: var(--tgv-link); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  opacity: .85; z-index: 4;
}
.j1 { left: 360px; } .j2 { left: 683px; } .j3 { left: 1007px; } .j4 { left: 1331px; } .j5 { left: 1655px; }
.bog {
  position: absolute; bottom: 4px; width: 52px; height: 18px; border-radius: 3px;
  background: var(--tgv-bogie); z-index: 1;
}
.bog::before, .bog::after {
  content: ""; position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #3a3f44, #0e1012 70%);
  border: 1.5px solid rgba(0,0,0,.7); box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.bog::before { left: 4px; } .bog::after { right: 4px; }
.b1 { left: 72px; } .b2 { left: 250px; } .b3 { left: 394px; } .b4 { left: 612px; }
.b5 { left: 718px; } .b6 { left: 936px; } .b7 { left: 1042px; } .b8 { left: 1260px; }
.b9 { left: 1368px; } .b10 { left: 1588px; } .b11 { left: 1682px; } .b12 { left: 1868px; }

/* ═══ HOW ═══ */
.how { padding: 100px max(5vw, 20px); }
.steps { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.step { background: var(--surface); padding: 36px 28px; display: flex; flex-direction: column; gap: 12px; transition: background .4s; }
.step:first-child { border-radius: 18px 0 0 18px; }
.step:last-child { border-radius: 0 18px 18px 0; }
.sn {
  font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: .7;
}
.step h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }

/* ═══ STATS ═══ */
.stats { padding: 80px max(5vw, 20px); border-top: 1px solid var(--border); transition: border-color .3s; }
.sr { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.st { display: flex; flex-direction: column; gap: 2px; }
.sv { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; letter-spacing: -0.04em; }
.slb { font-size: 13px; color: var(--fg-3); font-weight: 500; }

/* ═══ HOME FAQ ═══ */
.home-faq {
  padding: 80px max(5vw, 20px);
  border-top: 1px solid var(--border);
  transition: border-color .3s;
}
.home-faq .faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.home-faq .faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background .3s, border-color .3s;
}
.home-faq .faq-item[open] { border-color: var(--accent-ring-soft); }
.home-faq .faq-q {
  padding: 16px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--fg);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; transition: color .2s;
}
.home-faq .faq-q::-webkit-details-marker { display: none; }
.home-faq .faq-q::marker { display: none; content: ""; }
.home-faq .faq-q::after {
  content: "+"; font-size: 18px; font-weight: 400;
  color: var(--fg-3); flex-shrink: 0; transition: transform .2s;
}
.home-faq .faq-item[open] .faq-q::after { content: "\2212"; }
.home-faq .faq-q:hover { color: var(--accent-light); }
.home-faq .faq-q:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px;
}
.home-faq .faq-a {
  padding: 0 20px 16px;
  font-size: 13.5px; color: var(--fg-2); line-height: 1.65;
}
.home-faq .faq-a a {
  color: var(--accent-light);
  text-decoration: underline; text-underline-offset: 2px;
}
.home-faq .faq-a a:hover { color: var(--accent); }

/* CTA title line break - CSS-driven, wraps cleanly on narrow viewports */
.cta-break { display: inline-block; }
@media (min-width: 520px) {
  .cta-break { display: block; }
}

/* ═══ CTA ═══ */
.cta { padding: 120px max(5vw, 20px); text-align: center; position: relative; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 350px at 50% 50%, var(--glow), transparent 60%);
}
.ci { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; }
.cta h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cta h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.ctd { font-size: 16px; color: var(--fg-2); line-height: 1.6; }
.er { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.ei {
  flex: 1; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--border-3); background: var(--surface);
  color: var(--fg); font-size: 14px; font-family: var(--font-body);
  outline: none; transition: border-color .2s, background .4s;
}
.ei::placeholder { color: var(--fg-3); }
.ei:focus { border-color: var(--accent); }
.eb {
  padding: 13px 22px; border-radius: 12px; background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 700; border: none;
  cursor: pointer; white-space: nowrap; font-family: var(--font-body); transition: all .2s;
}
.eb:hover { opacity: .85; transform: scale(1.02); }
.eb:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.eb.ok { animation: pop .4s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
.wl-success { display: flex; flex-direction: column; align-items: center; gap: 16px; animation: successIn .6s var(--ease-out) both; }
.wl-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  animation: checkPop .5s .2s var(--ease-out) both;
}
.wl-check svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.5; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .4s .5s ease forwards; }
.wl-title { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; letter-spacing: -0.02em; opacity: 0; animation: fadeUp .5s .4s var(--ease-out) forwards; }
.wl-sub { font-size: 15px; color: var(--fg-3); line-height: 1.5; opacity: 0; animation: fadeUp .5s .55s var(--ease-out) forwards; }
@keyframes successIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes checkPop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ ANIMATIONS ═══ */
.fi { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease-out) forwards; }
.fi.d1 { animation-delay: .05s; } .fi.d2 { animation-delay: .15s; } .fi.d3 { animation-delay: .25s; }
.fi.d4 { animation-delay: .35s; } .fi.d5 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.rv { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.rv.vis { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  .hi { grid-template-columns: 1fr; text-align: center; }
  .ht { align-items: center; }
  .hdesc { margin: 0 auto; }
  .hbtns { justify-content: center; }
  .hprf { justify-content: center; }
  .fg { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1px; }
  .step { border-radius: 0 !important; }
  .step:first-child { border-radius: 18px 18px 0 0 !important; }
  .step:last-child { border-radius: 0 0 18px 18px !important; }
  .sr { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 600px) {
  .fg { grid-template-columns: 1fr; }
  .er { flex-direction: column; }
  .phone { width: 230px; }
  .tsw { height: 38vh; }
  .scene { height: 200px; top: calc(100vh - 200px); }
  .train { transform: scale(.7); transform-origin: right center; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .ts { min-height: auto; padding-bottom: env(safe-area-inset-bottom, 20px); }
  .tsw { height: 60vh; }
  .scene { height: 180px; top: auto; }
  .tw { bottom: calc(2vh + env(safe-area-inset-bottom, 20px)); }
  .train { width: 900px; }
}
