:root{
  color-scheme:dark;
  --ink:#07111f;
  --ink-2:#0a1725;
  --paper:#f2efe8;
  --paper-2:#e7e2d8;
  --white:#f8fbfd;
  --text:#d8e2ea;
  --muted:#91a2b1;
  --line:rgba(255,255,255,.16);
  --line-dark:rgba(7,17,31,.2);
  --accent:#f7941d;
  --accent-soft:#ffc06e;
  --green:#77d59d;
  --shell:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden}
a{color:inherit}
button,input,select,textarea{font:inherit}
.shell{width:min(var(--shell),calc(100% - 48px));margin:0 auto}

.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(246,247,248,.97);
  border-bottom:1px solid rgba(7,17,31,.10);
  box-shadow:0 7px 24px rgba(3,9,16,.14);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.topbar-inner{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex;align-items:center;flex:0 1 auto;min-width:0}
.brand img{display:block;width:110px;max-width:34vw;max-height:82px;height:auto;object-fit:contain}
.nav-toggle{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  flex:0 0 50px;
  border:1px solid rgba(7,17,31,.12);
  background:#fff;
  color:#08192b;
  padding:0;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:#08192b;
  margin:3px 0;
  transition:transform .18s ease,opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.nav{
  position:fixed;
  top:76px;
  left:24px;
  right:24px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:4px;
  max-height:calc(100dvh - 92px);
  overflow:auto;
  padding:14px;
  background:#f6f7f8;
  color:#0b1c30;
  font-weight:760;
  font-size:1rem;
  border:1px solid rgba(7,17,31,.12);
  box-shadow:0 22px 65px rgba(3,9,16,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s;
}
.nav.open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.nav a{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:11px 12px;
  border-bottom:1px solid rgba(7,17,31,.08);
  color:#0b1c30;
  text-decoration:none;
}
.nav a:last-child{border-bottom:0}
.nav .nav-apply{
  justify-content:center;
  margin-top:6px;
  background:#071a2f;
  color:#fff;
  border:1px solid #071a2f;
}
.nav .nav-apply:hover{background:#102943}
body.nav-open{overflow:hidden}

.hero{position:relative;min-height:760px;overflow:hidden;background:#030b13}
.hero-image{position:absolute;inset:0;background:url("../assets/train-background-desktop.webp") 66% center/cover no-repeat;filter:saturate(.82) contrast(1.04)}
.hero-shade{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(3,10,18,.99) 0%,rgba(5,15,26,.97) 36%,rgba(5,15,26,.72) 68%,rgba(3,10,18,.88) 100%),
  linear-gradient(180deg,rgba(0,0,0,.10),rgba(3,10,18,.60) 72%,#07111f 100%)}
.hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,.6fr);gap:72px;align-items:end;padding:118px 0 72px}
.hero-copy{max-width:790px}
.hero-kicker,.section-label,.apply-overline{margin:0 0 18px;color:var(--accent-soft);font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.hero h1{margin:0;max-width:900px;font-size:clamp(48px,6.5vw,88px);line-height:.94;letter-spacing:-.055em;font-weight:840;text-wrap:balance;text-shadow:0 3px 22px rgba(0,0,0,.34)}
.hero-lead{max-width:740px;margin:28px 0 0;color:#e3ebf1;font-size:clamp(17px,1.9vw,20px);line-height:1.62;text-shadow:0 1px 12px rgba(0,0,0,.24)}
.hero-actions{display:flex;align-items:center;gap:22px;margin-top:34px}
.button{min-height:48px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;text-decoration:none;font-size:13px;font-weight:840;letter-spacing:.01em}
.button.primary{background:var(--accent);color:#111820}
.button.primary:hover{background:#ffac45}
.button.disabled,.button[aria-disabled="true"]{opacity:.42;pointer-events:none}
.text-link,.account-link{color:#d5e0e8;text-decoration:none;font-size:13px;font-weight:720;border-bottom:1px solid rgba(255,255,255,.35);padding-bottom:3px}
.text-link:hover,.account-link:hover{color:#fff;border-color:#fff}

.beta-status{border-top:3px solid var(--accent);border-bottom:1px solid rgba(255,255,255,.24);padding:24px 22px 22px;align-self:end;background:rgba(4,13,23,.52);box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 18px 44px rgba(0,0,0,.16);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.status-heading{display:flex;flex-direction:column;gap:5px}
.status-heading span{color:#c4d0da;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.status-heading strong{color:#fff;font-size:17px;line-height:1.3}
.status-count{margin-top:26px}
.status-count strong{display:block;color:#fff;font-size:46px;line-height:.95;letter-spacing:-.045em;text-shadow:0 2px 14px rgba(0,0,0,.22)}
.status-count span{display:block;margin-top:7px;color:#d2dce4;font-size:12px}
.status-progress{height:2px;margin:22px 0 18px;background:rgba(255,255,255,.24)}
.status-progress span{display:block;width:0;height:100%;background:var(--accent);transition:width .35s ease}
.status-meta{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
.beta-status-badge{display:inline-block;padding:3px 6px;border:1px solid rgba(119,213,157,.48);color:#9be3b9;font-family:"SFMono-Regular",Consolas,monospace;font-size:9px;font-weight:800;letter-spacing:.08em}
.beta-status-badge.full{border-color:rgba(247,148,29,.52);color:#ffc377}
.beta-status-badge.loading{border-color:rgba(164,188,207,.38);color:#a9bac8}
.status-meta p{margin:0;color:#e0e7ed;font-size:12px;line-height:1.55}
.status-link{display:inline-block;margin-top:19px;color:#fff;text-decoration:none;font-size:12px;font-weight:820;border-bottom:2px solid var(--accent);padding-bottom:3px}
.status-link.disabled{opacity:.42;pointer-events:none}

.hero-facts{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.hero-facts>div{padding:18px 20px 20px 0}
.hero-facts>div+div{padding-left:20px;border-left:1px solid var(--line)}
.hero-facts span{display:block;color:#b9c6d0;font-family:"SFMono-Regular",Consolas,monospace;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.1em}
.hero-facts strong{display:block;margin-top:5px;color:#fff;font-size:14px;font-weight:800}

.section{padding:110px 0}
.product-section{background:var(--paper);color:var(--ink)}
.editorial-grid{display:grid;grid-template-columns:120px minmax(0,1fr);gap:52px}
.section-index{border-top:1px solid var(--line-dark);padding-top:14px;color:#687584;font-family:"SFMono-Regular",Consolas,monospace}
.section-index span{display:block;font-size:11px}
.section-index strong{display:block;margin-top:5px;font-size:10px;text-transform:uppercase;letter-spacing:.1em}
.editorial-content{max-width:930px}
.product-section .section-label{color:#a65f09}
.editorial-content h2,.screenshot-head h2,.expectation-layout h2,.questions-head h2,.apply-inner h2{margin:0;font-size:clamp(36px,5vw,64px);line-height:1.02;letter-spacing:-.05em;text-wrap:balance}
.section-intro{max-width:790px;margin:24px 0 0;color:#4b5865;font-size:17px;line-height:1.72}
.product-lines{margin-top:52px;border-top:1px solid var(--line-dark)}
.product-line{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:22px;align-items:start;padding:23px 0;border-bottom:1px solid var(--line-dark)}
.line-no{font-family:"SFMono-Regular",Consolas,monospace;font-size:10px;color:#8b6b43;padding-top:5px}
.product-line h3{margin:0;font-size:20px;letter-spacing:-.02em}
.product-line p{max-width:660px;margin:7px 0 0;color:#5b6671;font-size:14px;line-height:1.62}
.line-state{padding-top:4px;color:#98611d;font-family:"SFMono-Regular",Consolas,monospace;font-size:9px;text-transform:uppercase;letter-spacing:.1em}

.screenshot-section{background:#091522}
.screenshot-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:64px;align-items:end;margin-bottom:34px}
.screenshot-head p{margin:0;color:#95a7b5;font-size:14px;line-height:1.7}
.app-shot{margin:0}
.app-shot picture{display:block;border:1px solid rgba(255,255,255,.18);background:#02070c;box-shadow:0 26px 70px rgba(0,0,0,.28)}
.app-shot img{display:block;width:100%;height:auto}
.app-shot figcaption{margin-top:12px;color:#758a9c;font-family:"SFMono-Regular",Consolas,monospace;font-size:9px;letter-spacing:.03em;text-transform:uppercase}

.test-section{background:#06101b}
.test-section .section-label{color:#f8b054}
.test-section .section-index{border-color:rgba(255,255,255,.18);color:#718597}
.test-section .section-intro{color:#aebfcb}
.test-table{margin-top:48px;border-top:1px solid var(--line)}
.test-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;padding:20px 0;border-bottom:1px solid var(--line)}
.test-row strong{font-size:15px}
.test-row span{color:#a7b8c5;font-size:14px;line-height:1.6}
.tester-note{margin-top:36px;max-width:730px;padding-left:18px;border-left:3px solid var(--accent)}
.tester-note strong{font-size:15px}
.tester-note p{margin:6px 0 0;color:#9eafbc;font-size:14px;line-height:1.65}

.process-section{background:var(--paper-2);color:var(--ink)}
.process-section .section-label{color:#a65f09}
.process-list{margin:46px 0 0;padding:0;list-style:none;border-top:1px solid var(--line-dark)}
.process-list li{display:grid;grid-template-columns:76px minmax(0,1fr);gap:22px;padding:25px 0;border-bottom:1px solid var(--line-dark)}
.process-list>li>span{font-family:"SFMono-Regular",Consolas,monospace;font-size:11px;color:#a65f09;padding-top:4px}
.process-list h3{margin:0;font-size:20px}
.process-list p{max-width:680px;margin:7px 0 0;color:#596571;font-size:14px;line-height:1.65}

.expectations-section{background:#0b1826}
.expectation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.72fr);gap:86px;align-items:start}
.expectation-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.expectation-list li{position:relative;padding:18px 0 18px 28px;border-bottom:1px solid var(--line);color:#c5d2dc;font-size:14px;line-height:1.5}
.expectation-list li:before{content:"—";position:absolute;left:0;color:var(--accent)}

.questions-section{background:#06101b}
.questions-head{max-width:780px;margin-bottom:44px}
.questions{display:grid;grid-template-columns:1fr 1fr;column-gap:54px}
.questions details{border-top:1px solid var(--line);padding:18px 0}
.questions details:nth-last-child(-n+2){border-bottom:1px solid var(--line)}
.questions summary{cursor:pointer;list-style:none;font-size:15px;font-weight:760}
.questions summary::-webkit-details-marker{display:none}
.questions summary:after{content:"+";float:right;color:var(--accent);font-family:"SFMono-Regular",Consolas,monospace}
.questions details[open] summary:after{content:"–"}
.questions p{margin:13px 40px 0 0;color:#98aab7;font-size:13px;line-height:1.65}

.apply-section{background:var(--accent);color:#111820}
.apply-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:60px;align-items:center;padding-top:62px;padding-bottom:62px}
.apply-overline{color:#5e3706}
.apply-inner h2{max-width:760px;font-size:clamp(34px,4.6vw,58px)}
.apply-inner p{max-width:720px;margin:14px 0 0;color:#603d13;font-size:15px;line-height:1.6}
.apply-actions{display:grid;gap:12px;min-width:230px}
.apply-actions .button.primary{background:#111820;color:#fff}
.apply-actions .button.primary:hover{background:#243342}
.apply-actions .account-link{color:#3e290f;border-color:rgba(17,24,32,.42);text-align:center}

.site-footer{padding:34px 0;background:#030a11;border-top:1px solid rgba(255,255,255,.1)}
.footer-inner{display:grid;grid-template-columns:auto 1fr auto;gap:32px;align-items:center}
.footer-inner img{height:29px;width:auto}
.footer-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.footer-links a{color:#889aa9;text-decoration:none;font-size:11px}
.footer-links a:hover{color:#fff}
.footer-inner p{margin:0;color:#647989;font-size:10px}

@media(max-width:980px){
  .hero{min-height:auto}
  .hero-inner{grid-template-columns:1fr;gap:48px;padding:90px 0 52px}
  .beta-status{max-width:520px}
  .hero-facts{grid-template-columns:1fr 1fr}
  .hero-facts>div:nth-child(3){border-left:0;border-top:1px solid var(--line);padding-left:0}
  .hero-facts>div:nth-child(4){border-top:1px solid var(--line)}
  .editorial-grid{grid-template-columns:84px minmax(0,1fr);gap:34px}
  .screenshot-head{grid-template-columns:1fr;gap:20px}
  .expectation-layout{grid-template-columns:1fr;gap:38px}
  .apply-inner{grid-template-columns:1fr;gap:30px}
  .apply-actions{min-width:0;max-width:320px}
  .footer-inner{grid-template-columns:1fr;justify-items:start}
  .footer-links{justify-content:flex-start}
}
@media(max-width:680px){
  .shell{width:min(100% - 30px,var(--shell))}
  .topbar-inner{min-height:62px}
  .nav{top:70px;left:15px;right:15px;max-height:calc(100dvh - 84px)}
  .brand img{width:110px;max-width:34vw;max-height:82px;height:auto}
  .hero-image{background-image:url("../assets/train-background-mobile.webp");background-position:center}
  .hero-shade{background:linear-gradient(180deg,rgba(3,10,18,.55),rgba(3,10,18,.94) 52%,#07111f 100%)}
  .hero-inner{padding:64px 0 42px}
  .hero h1{font-size:clamp(42px,13vw,62px);line-height:.96}
  .hero-lead{font-size:16px}
  .hero-actions{align-items:flex-start;flex-direction:column}
  .hero-facts{grid-template-columns:1fr 1fr}
  .hero-facts>div{padding:14px 10px 15px 0}
  .hero-facts>div+div{padding-left:10px}
  .section{padding:78px 0}
  .editorial-grid{grid-template-columns:1fr;gap:18px}
  .section-index{display:flex;gap:8px;border-top:0;padding-top:0}
  .section-index strong{margin-top:0}
  .editorial-content h2,.screenshot-head h2,.expectation-layout h2,.questions-head h2,.apply-inner h2{font-size:clamp(34px,10vw,48px)}
  .product-line{grid-template-columns:36px minmax(0,1fr)}
  .line-state{grid-column:2;margin-top:-8px;padding:0}
  .test-row{grid-template-columns:1fr;gap:5px}
  .process-list li{grid-template-columns:46px minmax(0,1fr)}
  .questions{grid-template-columns:1fr}
  .questions details:nth-last-child(-n+2){border-bottom:0}
  .questions details:last-child{border-bottom:1px solid var(--line)}
  .apply-actions{max-width:none}
  .button{width:100%}
  .footer-inner{gap:20px}
}
@media(min-width:600px){
  .brand img{width:118px;max-width:none}
}
@media(min-width:900px){
  .topbar-inner{gap:24px}
  .brand img{width:122px;max-height:84px}
  .nav-toggle{display:none}
  .nav{
    position:static;
    order:5;
    margin-left:auto;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:4px;
    max-height:none;
    overflow:visible;
    padding:0;
    background:transparent;
    color:#0b1c30;
    border:0;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
    transition:none;
    font-size:.9rem;
  }
  .nav a{
    min-height:40px;
    padding:8px 10px;
    border:0;
    color:#0b1c30;
    font-size:12px;
    font-weight:760;
  }
  .nav a:hover{background:rgba(7,17,31,.06)}
  .nav .nav-apply{
    margin-top:0;
    margin-left:5px;
    padding:8px 13px;
    background:#071a2f;
    color:#fff;
  }
}
@media(min-width:1280px){
  .brand img{width:132px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .status-progress span{transition:none}
}


/* RCM light-header logo contrast */
.topbar .brand{
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:#030a11;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 5px 16px rgba(7,17,31,.16);
}
