/* RailMATE public website — one stylesheet for every page.
   Brand colours are defined ONCE here, in :root. */

:root {
  /* Brand (RailMATE wordmark: R = blue, M of MATE = saffron-red) */
  --brand-blue: #2F74E0;
  --brand-saffron-red: #EC5A1C;
  --saffron: #F5A524;          /* warm accent on dark backgrounds */
  --saffron-ink: #A8430B;      /* saffron for small text on light backgrounds (AA) */

  /* Railway palette */
  --navy-950: #050E1E;
  --navy-900: #081831;
  --navy-800: #0B1F3F;
  --navy-700: #14305A;
  --navy-600: #1E4174;
  --steel-500: #5E718B;
  --steel-400: #8496AE;
  --steel-300: #AEBBCC;
  --steel-200: #CDD6E1;
  --steel-100: #E7ECF2;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #0E1A2B;
  --ink-soft: #3C4B5F;
  --ok: #1E8E5A;

  /* Logo file: the ONLY line to change when the real RM logo PNG arrives */
  --logo-url: url("../brand/rm-logo.svg");

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(8, 24, 49, .12);
  --shadow-lg: 0 24px 60px rgba(5, 14, 30, .35);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
    "Nirmala UI", Mangal, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 var(--font); text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand-blue); text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* ---------- Language: both texts are in the HTML; CSS shows one ---------- */
html:not([data-lang="hi"]) .hi { display: none !important; }
html[data-lang="hi"] .en { display: none !important; }
html[data-lang="hi"] body { line-height: 1.8; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--saffron); color: var(--navy-900); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Wordmark ---------- */
.wordmark { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.wordmark .r { color: var(--brand-blue); }
.wordmark .m { color: var(--brand-saffron-red); }
.logo-mark {
  display: inline-block; width: 38px; height: 38px; flex: none;
  background: var(--logo-url) center / contain no-repeat;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--steel-200);
}
.site-header::after { /* thin platform-edge stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--saffron) 0 14px, transparent 14px 22px);
  opacity: .55; pointer-events: none;
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.35rem; margin-right: auto; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--steel-100); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--navy-800); background: var(--steel-100); box-shadow: inset 0 -2px 0 var(--brand-saffron-red); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: 10px 16px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--steel-300); color: var(--ink); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); color: var(--white); }
.btn-saffron { background: var(--saffron); color: var(--navy-900); }
.btn-saffron:hover { background: #FFB841; color: var(--navy-900); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.lang-toggle { padding: 8px 14px; }
.lang-toggle .hi, .lang-toggle .en { font-weight: 700; }
.menu-btn { display: none; }

/* Mobile header: menu collapses only when JS is running */
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; padding: 8px 0; }
  .nav { order: 3; width: 100%; padding-bottom: 6px; }
  .js .menu-btn { display: inline-flex; width: 44px; padding: 0; }
  .js .nav { display: none; flex-direction: column; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px; border-radius: 10px; }
  .team-btn .label-long { display: none; }
}
@media (max-width: 420px) {
  .brand .wordmark { font-size: 1.15rem; }
  .header-actions .btn { padding: 8px 10px; font-size: .88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47,116,224,.35), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(245,165,36,.18), transparent 60%),
    linear-gradient(170deg, var(--navy-800), var(--navy-950));
  padding: 56px 0 0;
}
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; padding-bottom: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--saffron);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
.hero h1 { font-size: clamp(3rem, 12vw, 6.2rem); margin: .15em 0 .1em; line-height: 1; }
.hero h1 .wordmark { color: var(--white); }
.mate-line { font-size: clamp(1.05rem, 3.4vw, 1.45rem); font-weight: 600; color: var(--steel-200); margin-bottom: 1em; letter-spacing: .01em; }
.mate-line b { color: var(--saffron); font-weight: 800; }
.mate-line .dot { color: var(--steel-400); padding: 0 .3em; }
.hero-lead { font-size: 1.12rem; color: var(--steel-200); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-visual { display: flex; justify-content: center; }

/* perspective track at the bottom of the hero */
.hero-track { position: relative; height: 150px; margin-top: 20px; z-index: 1; }
.hero-track svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sleepers { animation: sleepers 2.6s linear infinite; }
@keyframes sleepers { to { stroke-dashoffset: -40; } }

/* Signal light */
.signal { display: inline-flex; flex-direction: column; gap: 5px; background: var(--navy-950); padding: 6px; border-radius: 12px; border: 1px solid var(--navy-600); }
.signal i { width: 12px; height: 12px; border-radius: 50%; background: #233; display: block; }
.signal i.on { background: #3BD27A; box-shadow: 0 0 12px #3BD27A; }

/* Play badge (own design; no store link yet) */
.play-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px;
  border-radius: 14px; background: var(--navy-950); color: var(--white);
  border: 1px solid var(--steel-500);
}
.play-badge svg { width: 30px; height: 30px; flex: none; }
.play-badge small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); font-weight: 700; }
.play-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark p { color: var(--steel-200); }
.section-white { background: var(--white); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--steel-200); }
.board { /* station-name-board style label */
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--navy-800); color: var(--white); padding: 6px 12px; border-radius: 6px;
  border-bottom: 3px solid var(--saffron); margin-bottom: 14px;
}
.section-dark .board { background: var(--saffron); color: var(--navy-900); border-bottom-color: var(--white); }

/* Track divider */
.track-divider {
  height: 22px; position: relative;
  background:
    linear-gradient(var(--steel-400), var(--steel-400)) 0 5px / 100% 3px no-repeat,
    linear-gradient(var(--steel-400), var(--steel-400)) 0 14px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--steel-200) 0 6px, transparent 6px 26px) 0 2px / 100% 18px no-repeat;
  opacity: .8;
}

/* Problem */
.scatter { display: grid; gap: 16px; }
@media (min-width: 760px) { .scatter { grid-template-columns: repeat(3, 1fr); } }
.scatter-card {
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--steel-100); position: relative;
}
.scatter-card:nth-child(1) { transform: rotate(-1.2deg); }
.scatter-card:nth-child(3) { transform: rotate(1deg); }
.scatter-card .ico { width: 44px; height: 44px; color: var(--brand-saffron-red); margin-bottom: 10px; }
.scatter-card p { color: var(--ink-soft); margin: 0; }
.solve {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--navy-800); color: var(--white); border-radius: var(--radius); padding: 20px 22px;
}
.solve p { margin: 0; color: var(--steel-200); flex: 1 1 260px; }
.solve strong { color: var(--white); }

/* Route map (3 steps) */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; counter-reset: stop; }
.route::before {
  content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--saffron) 0 18px, var(--steel-400) 18px 26px);
}
.route li { position: relative; padding-left: 70px; }
.route .stop {
  position: absolute; left: 6px; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-950); border: 4px solid var(--saffron); color: var(--white);
  display: grid; place-items: center; font-weight: 800;
}
.route .pf { font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: var(--saffron); text-transform: uppercase; }
.route h3 { color: var(--white); font-size: 1.3rem; margin: 2px 0 6px; }
@media (min-width: 860px) {
  .route { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .route::before { left: 0; right: 0; top: 17px; bottom: auto; width: auto; height: 6px;
    background: repeating-linear-gradient(90deg, var(--saffron) 0 18px, var(--steel-400) 18px 26px); }
  .route li { padding: 64px 8px 0 0; }
  .route .stop { left: 0; }
}

/* Feature cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--steel-100);
  box-shadow: 0 2px 0 var(--steel-100); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-saffron-red)); opacity: 0; transition: opacity .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--steel-200); }
.card:hover::before { opacity: 1; }
.card .ico { width: 40px; height: 40px; color: var(--brand-blue); margin-bottom: 12px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
a.card { text-decoration: none; color: inherit; display: block; }

/* Audience */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person {
  border-radius: var(--radius); padding: 22px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--white); border: 1px solid var(--navy-600);
}
.person .ico { width: 40px; height: 40px; color: var(--saffron); margin-bottom: 10px; }
.person h3 { color: var(--white); }
.person p { color: var(--steel-200); margin: 0; font-size: .97rem; }

/* CTA band */
.cta-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Phone mock-ups (CSS only) ---------- */
.phone {
  width: 260px; max-width: 78vw; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px;
  background: linear-gradient(145deg, #2A3A52, #0A1424); box-shadow: var(--shadow-lg), inset 0 0 0 2px #46597A;
  position: relative; flex: none;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: #050B16; border-radius: 10px; z-index: 3; }
.screen { height: 100%; border-radius: 29px; overflow: hidden; background: #F3F5F9; color: var(--ink); font-size: 11.5px; line-height: 1.35; display: flex; flex-direction: column; }
.app-bar { background: var(--navy-800); color: #fff; padding: 40px 14px 12px; display: flex; align-items: center; gap: 8px; }
.app-bar b { font-size: 13.5px; flex: 1; }
.demo-tag { background: var(--saffron); color: var(--navy-900); font-weight: 800; font-size: 9px; padding: 2px 6px; border-radius: 4px; letter-spacing: .06em; }
.scr-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow: hidden; }
.m-card { background: #fff; border-radius: 10px; padding: 9px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.m-card .t { font-weight: 700; display: block; }
.m-card .s { color: #5A6A80; font-size: 10.5px; }
.chip { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-top: 4px; }
.chip.open { background: #FFE9D6; color: #A8430B; }
.chip.done { background: #DDF4E7; color: #1E6E47; }
.chip.wait { background: #E3ECFB; color: #1E4FA0; }
.m-btn { background: var(--brand-blue); color: #fff; text-align: center; font-weight: 700; border-radius: 10px; padding: 9px; }
.m-btn.saffron { background: var(--brand-saffron-red); }
.m-photo { height: 74px; border-radius: 8px; background:
  linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25)),
  repeating-linear-gradient(90deg, #9FB0C6 0 18px, #8FA2BA 18px 20px),
  linear-gradient(#C9D4E2, #9FB0C6); position: relative; }
.m-photo::after { content: "PHOTO (DEMO)"; position: absolute; left: 6px; bottom: 5px; color: #fff; font-size: 9px; font-weight: 700; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--brand-saffron-red); display: block; }
.bubble { max-width: 85%; padding: 7px 9px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bubble.me { align-self: flex-end; background: var(--brand-blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { border-bottom-left-radius: 4px; }
.qr-frame { margin: 6px auto; width: 150px; height: 150px; border-radius: 16px; position: relative; background: #0D1626; display: grid; place-items: center; }
.qr-frame::before { content: ""; position: absolute; inset: 14px; border: 3px solid var(--saffron); border-radius: 10px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat;
          mask: linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat; }
.qr-frame svg { width: 84px; height: 84px; }
.scan-line { position: absolute; left: 20px; right: 20px; height: 2px; background: var(--saffron); box-shadow: 0 0 8px var(--saffron); top: 50%; animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { from { top: 22%; } to { top: 78%; } }
.m-row { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.m-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 10px; }
.m-table th, .m-table td { padding: 5px 6px; border-bottom: 1px solid #E6EAF0; text-align: left; }
.m-table th { background: #E8EEF7; font-weight: 700; }
.m-letter { background: #fff; border-radius: 6px; padding: 10px; font-size: 9.5px; line-height: 1.45; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.m-letter .ln { height: 5px; border-radius: 3px; background: #DCE3EC; margin: 5px 0; }
.m-search { background: #fff; border-radius: 999px; padding: 8px 12px; color: #6A7A90; border: 1px solid #D5DDE8; }
.m-doc { flex: 1; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); transform: rotate(-2deg); padding: 12px; margin: 4px 8px; position: relative; }
.m-doc::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--brand-blue); border-radius: 8px; }
.m-grid { flex: 1; border-radius: 8px; background-color: #fff;
  background-image: linear-gradient(#E3E9F2 1px, transparent 1px), linear-gradient(90deg, #E3E9F2 1px, transparent 1px);
  background-size: 14px 14px; display: grid; place-items: center; }
.m-grid svg { width: 85%; }
.m-tabs { display: flex; gap: 6px; }
.m-tabs span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; background: #fff; font-weight: 700; color: #5A6A80; }
.m-tabs span.on { background: var(--navy-800); color: #fff; }
.m-map { height: 92px; border-radius: 10px; background: #DCE7F3; position: relative; overflow: hidden; }
.m-map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 45%; height: 12px;
  background: repeating-linear-gradient(90deg, #8A99AE 0 3px, transparent 3px 10px), linear-gradient(#8A99AE, #8A99AE) 0 0 / 100% 2px no-repeat, linear-gradient(#8A99AE, #8A99AE) 0 10px / 100% 2px no-repeat; transform: rotate(-8deg); }
.m-map .pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand-saffron-red); left: 54%; top: 22%; }
.m-map .ring { position: absolute; left: calc(54% - 26px); top: calc(22% - 20px); width: 66px; height: 66px; border-radius: 50%; border: 2px dashed var(--brand-blue); }

/* ---------- Features page ---------- */
.feature { display: grid; gap: 32px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--steel-200); }
.feature:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 300px; gap: 56px; }
  .feature:nth-child(even) { grid-template-columns: 300px 1fr; }
  .feature:nth-child(even) .feature-visual { order: -1; }
}
.feature-visual { display: flex; justify-content: center; }
.feature .num { font-size: .8rem; font-weight: 800; letter-spacing: .16em; color: var(--saffron-ink); text-transform: uppercase; }
.feature h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-top: 4px; }
.feature p { color: var(--ink-soft); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F5A524' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { font-size: .9rem; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.jump a:hover { background: rgba(255,255,255,.16); color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(170deg, var(--navy-800), var(--navy-950)); color: var(--white); padding: 56px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page-hero p { color: var(--steel-200); font-size: 1.1rem; max-width: 40em; margin: 0; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    linear-gradient(var(--steel-500), var(--steel-500)) 0 2px / 100% 2px no-repeat,
    linear-gradient(var(--steel-500), var(--steel-500)) 0 10px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--navy-600) 0 5px, transparent 5px 22px); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--navy-800); }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .96rem; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--steel-100); vertical-align: top; }
.prose th { background: var(--steel-100); }
.table-scroll { overflow-x: auto; }
.note { border-left: 4px solid var(--saffron); padding: 4px 0 4px 14px; color: var(--ink-soft); }

/* ---------- Contact / coming soon ---------- */
.mail-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow);
  text-align: center; max-width: 560px; margin: 0 auto; border-top: 5px solid var(--brand-saffron-red);
}
.mail-card .ico { width: 56px; height: 56px; color: var(--brand-blue); }
.mail-big { display: inline-block; font-size: clamp(1.25rem, 5vw, 1.9rem); font-weight: 800; word-break: break-all; margin: 8px 0 16px; }
.soon { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.soon .signal { flex-direction: row; margin-bottom: 18px; }
.soon .signal i.amber { background: var(--saffron); box-shadow: 0 0 12px var(--saffron); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-200); padding: 0 0 32px; }
.site-footer .rail-top { height: 16px; margin-bottom: 40px;
  background:
    linear-gradient(var(--steel-500), var(--steel-500)) 0 3px / 100% 3px no-repeat,
    linear-gradient(var(--steel-500), var(--steel-500)) 0 11px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--navy-700) 0 6px, transparent 6px 24px); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .wordmark { font-size: 1.6rem; color: var(--white); }
.footer-tagline { font-weight: 700; color: var(--white); margin-top: 8px; }
.footer-tagline .bar { color: var(--saffron); padding: 0 .35em; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--steel-200); }
.site-footer a:hover { color: var(--white); }
.disclaimer {
  margin-top: 32px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--navy-600);
  background: rgba(255,255,255,.03); color: var(--steel-200); font-size: .93rem;
}
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 4px; }
.copyright { margin-top: 18px; font-size: .85rem; color: var(--steel-400); }

/* ---------- Scroll reveal (only with JS, never with reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sleepers, .scan-line { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

@media print {
  .site-header, .hero-track, .menu-btn, .lang-toggle { display: none !important; }
  body { background: #fff; }
}

.solve .ico { width: 40px; height: 40px; color: var(--saffron); flex: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* =====================================================================
   v2 — dark navy theme and the Home "story" sections.
   These rules come last, so they win over the lighter v1 styles above.
   ===================================================================== */
body { background: var(--navy-950); color: var(--steel-100); }
a { color: #8DB8FF; }
a:hover { color: var(--white); }
h1, h2, h3 { color: var(--white); }
h2 { font-size: clamp(2rem, 5.2vw, 3.2rem); letter-spacing: -.02em; }
h2.big { font-size: clamp(2.3rem, 6.4vw, 4rem); }
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-head { max-width: 50em; margin-bottom: 44px; }
.section-head p, .lead { color: var(--steel-300); font-size: 1.15rem; }
.section-white, .section-band { background: var(--navy-900); }
.section-band { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }

.site-header { background: rgba(5, 14, 30, .88); border-bottom-color: var(--navy-700); }
.brand, .brand:hover { color: var(--white); }
.nav a { color: var(--steel-200); }
.nav a:hover { background: var(--navy-800); color: var(--white); }
.nav a[aria-current="page"] { background: var(--navy-800); color: var(--white); }
.btn-ghost { border-color: var(--navy-600); color: var(--white); }
.btn-ghost:hover { background: var(--navy-800); color: var(--white); }
.btn-dark { background: var(--navy-700); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; min-height: 52px; }
.board { background: transparent; color: var(--saffron); border: 1px solid rgba(245,165,36,.5); border-bottom-width: 1px; }
.section-dark .board { background: transparent; color: var(--saffron); border-color: rgba(245,165,36,.5); }

/* Hero v2 */
.hero-h { font-size: clamp(2.5rem, 7.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.03em; margin: .35em 0 .4em; }
.hero-h .accent { display: block; color: var(--saffron); }
.hero .mate-line { margin-top: 26px; font-size: .98rem; color: var(--steel-300); }
.hero .mate-line .wordmark { color: var(--white); font-size: 1.05rem; }

/* b. The traditional way — muted, cluttered */
.old-way { background: #12171F; color: #A3ABB6;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.015) 0 2px, transparent 2px 9px); }
.old-way h2 { color: #D3D7DD; }
.old-way .lead { color: #9AA2AD; }
.board-muted { color: #9AA2AD; border-color: #4A525D; }
.old-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .old-grid { grid-template-columns: 1fr 1fr; } }
.pains { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.pains li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.06rem; color: #C2C7CE; }
.pains .ico { width: 26px; height: 26px; flex: none; color: #7A828D; margin-top: 2px; }
.clutter { position: relative; height: 380px; filter: grayscale(1) contrast(.9); opacity: .9; }
.cl { position: absolute; background: #D9D5CC; color: #3A3A3A; border-radius: 6px; padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.45); font-size: .85rem; display: flex; flex-direction: column; gap: 4px; width: 210px; }
.cl b { font-size: .92rem; }
.cl-q { color: #8A2B2B; font-weight: 700; font-style: italic; }
.cl-call { left: 2%; top: 4%; transform: rotate(-6deg); }
.cl-chat { right: 2%; top: 0; transform: rotate(4deg); background: #CFCFCF; }
.cl-chat span { background: #EDEDED; border-radius: 6px; padding: 2px 8px; }
.cl-badge { background: #555 !important; color: #fff; align-self: flex-start; font-weight: 700; }
.cl-reg { left: 14%; top: 42%; transform: rotate(3deg); width: 230px; background: #E3DCC8; }
.cl-reg i { display: block; height: 2px; background: #A79F8A; margin: 7px 0; }
.cl-reg i.x { background: repeating-linear-gradient(90deg, #6A3A3A 0 6px, transparent 6px 9px); height: 3px; }
.cl-letter { right: 4%; top: 52%; transform: rotate(-4deg); }
.cl-note { left: 38%; top: 30%; width: 150px; transform: rotate(-11deg); background: #CFC8A0; font-weight: 700; font-family: "Segoe Print", "Comic Sans MS", cursive; }
@media (max-width: 520px) { .clutter { height: 430px; } .cl { width: 180px; } .cl-reg { width: 190px; left: 4%; top: 48%; } .cl-note { left: 30%; top: 30%; } .cl-letter { top: 74%; } }

/* c. The turn */
.turn { background: linear-gradient(180deg, #12171F 0%, var(--navy-950) 70%); padding: 40px 0 96px; text-align: center; }
.turn-svg { display: block; width: 100%; height: 110px; margin-bottom: 36px; }
.turn h2 { font-size: clamp(2.2rem, 6.6vw, 4.2rem); max-width: 16em; margin: 0 auto; }
.turn h2 .wordmark { color: var(--white); }

/* d. Solution — clean and ordered */
.clean { background: var(--navy-950); }
.sol-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .sol-grid { grid-template-columns: 1.2fr .8fr; } }
.sol-list { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.sol-list li { counter-increment: s; position: relative; padding: 4px 0 4px 58px; color: var(--steel-300); font-size: 1.06rem; }
.sol-list li b { display: block; color: var(--white); font-size: 1.15rem; }
.sol-list li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: var(--navy-950); background: var(--saffron); }
.m-time { list-style: none; margin: 0; padding: 4px 0 0 14px; border-left: 2px solid #C9D3E0; display: grid; gap: 8px; }
.m-time li { position: relative; font-size: 10.5px; color: #3C4B5F; }
.m-time li::before { content: ""; position: absolute; left: -20px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-blue); }
.m-time li.ok::before { background: var(--ok); }
.m-time b { color: var(--ink); margin-right: 4px; }

/* e. Route with 4 stops */
@media (min-width: 860px) { .route-4 { grid-template-columns: repeat(4, 1fr); } }
.route p { color: var(--steel-300); }
.route h3 { color: var(--white); }

/* f. Innovation */
.innovation { background: radial-gradient(900px 500px at 85% 0%, rgba(47,116,224,.22), transparent 60%), var(--navy-950); }
.iv-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .iv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .iv-grid { grid-template-columns: repeat(3, 1fr); } }
.iv { background: linear-gradient(165deg, var(--navy-800), var(--navy-900)); border: 1px solid var(--navy-700); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.iv > div:first-child { min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: rgba(5,14,30,.55); border-bottom: 1px solid var(--navy-700); }
.iv-text { padding: 24px; }
.iv-text .ico { width: 30px; height: 30px; color: var(--saffron); margin-bottom: 10px; }
.iv-text h3 { font-size: 1.32rem; }
.iv-text p { color: var(--steel-300); margin: 0; }
.iv-say p { margin: 0; background: var(--brand-blue); color: #fff; padding: 12px 14px; border-radius: 14px 14px 14px 4px; font-size: 1.02rem; }
.iv-wave { height: 16px; background: repeating-linear-gradient(90deg, var(--saffron) 0 3px, transparent 3px 7px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); width: 60%; border-radius: 3px; }
.iv-letter { background: #F7F5F0 !important; color: var(--ink); }
.iv-letter span { font-weight: 700; font-size: .9rem; }
.iv-letter i { display: block; height: 6px; border-radius: 3px; background: #D5DCE6; }
.iv-letter i.s { width: 60%; }
.iv-reg span, .iv-bbs span { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; color: var(--steel-100);
  border-bottom: 1px dashed var(--navy-600); padding: 4px 0; }
.iv-bbs .arrow { border: 0; color: var(--saffron); font-weight: 800; }
.iv-cad svg { width: 100%; height: auto; }
.iv-net { flex-direction: row !important; align-items: center; gap: 16px !important; justify-content: flex-start !important; }
.iv-net .bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.iv-net .bars i { width: 8px; background: var(--saffron); border-radius: 2px; display: block; }
.iv-net .bars i:nth-child(1) { height: 25%; } .iv-net .bars i:nth-child(2) { height: 50%; }
.iv-net .bars i:nth-child(3) { height: 75%; } .iv-net .bars i:nth-child(4) { height: 100%; }
.iv-net .bars i.off { background: var(--navy-600); }
.chip-q { background: rgba(245,165,36,.15); color: var(--saffron); border: 1px solid rgba(245,165,36,.4); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

/* g. Modules (cards on dark) */
.card { background: var(--navy-900); border-color: var(--navy-700); box-shadow: none; }
.card:hover { border-color: var(--navy-600); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.card .ico { color: #6FA3F5; }
.card h3 { color: var(--white); }
.card p { color: var(--steel-300); }

/* h. Vision line map */
.vision { background: var(--navy-900); }
.line-map { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 22px; position: relative; }
.line-map::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; border-left: 3px dashed var(--navy-600); }
.line-map li { position: relative; padding-left: 44px; color: var(--steel-300); }
.line-map b { display: block; color: var(--white); font-size: 1.1rem; }
.line-map .dotm { position: absolute; left: 0; top: 4px; width: 25px; height: 25px; border-radius: 50%; border: 3px solid var(--steel-400); background: var(--navy-900); }
.line-map .now .dotm { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 6px rgba(245,165,36,.18); }
@media (min-width: 860px) {
  .line-map { grid-template-columns: repeat(4, 1fr); }
  .line-map::before { left: 12px; right: 12px; top: 12px; bottom: auto; border-left: 0; border-top: 3px dashed var(--navy-600); }
  .line-map li { padding: 44px 12px 0 0; }
}
.note { color: var(--steel-300); }

/* Inner pages on dark */
.feature { border-bottom-color: var(--navy-700); }
.feature p { color: var(--steel-300); }
.feature .num { color: var(--saffron); }
.ticks li { color: var(--steel-100); }
.ticks li::before { background-color: var(--navy-700); }
.prose h2 { color: var(--white); }
.prose table { background: var(--navy-900); }
.prose th { background: var(--navy-800); color: var(--white); }
.prose th, .prose td { border-bottom-color: var(--navy-700); }
.mail-card { background: var(--navy-900); border: 1px solid var(--navy-700); border-top: 5px solid var(--brand-saffron-red); }
.mail-card .ico { color: var(--saffron); }
.mail-card p { color: var(--steel-300); }
.mail-big { color: var(--white); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr .65fr; } }
.hero-h { font-size: clamp(2.5rem, 6.4vw, 4.1rem); }
.cl-reg { left: 4%; top: 40%; }
.cl-note { left: 8%; top: 80%; transform: rotate(-5deg); width: 190px; }
.cl-letter { top: 58%; }
