/* RoadMax ELD homepage — dark/amber premium redesign.
   Isolated from styles.css (other pages keep their look during rollout).
   Built to REDESIGN_PLAN.md tokens + type scale. */

:root {
  --navy-950:#020b14; --navy-925:#04111f; --navy-900:#061827;
  --navy-850:#0a1d2e; --navy-800:#0f2538;
  --line-dark:rgba(255,255,255,.12); --line-soft:rgba(255,255,255,.08);
  --text-white:#ffffff; --text-soft:#d8e2ee; --text-muted:#94a8bd;
  --amber:#ffc22d; --amber-strong:#f5a800; --blue:#1266f1; --green:#22b86f;
  --light-bg:#f6f9fc; --light-panel:#ffffff; --light-text:#06162a; --light-muted:#52637a;
  --radius-btn:8px; --radius-card:16px; --radius-sm:12px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Sora","Segoe UI",system-ui,sans-serif;
  background:var(--navy-925); color:var(--text-white);
  -webkit-font-smoothing:antialiased; line-height:1.6; overflow-x:hidden;
}
h1,h2,h3,.display{font-family:"Space Grotesk","Sora",sans-serif;font-weight:700;line-height:1.05}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}

.container{width:min(1280px,100% - 48px);margin-inline:auto}

/* ---------- icons ---------- */
.ico{width:20px;height:20px;display:inline-block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ico-sm{width:16px;height:16px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:14px;
  height:48px;padding:0 22px;border-radius:var(--radius-btn);border:1px solid transparent;
  cursor:pointer;transition:transform .15s ease,background .15s ease,box-shadow .15s ease;white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn .ico{width:17px;height:17px;stroke-width:2.2}
.btn-gold{background:linear-gradient(180deg,#ffd25a,var(--amber) 60%,var(--amber-strong));color:#0a1322;box-shadow:0 10px 26px rgba(255,194,45,.22)}
.btn-gold:hover{filter:brightness(1.04)}
.btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.28)}
.btn-outline:hover{background:rgba(255,255,255,.07)}
.btn-blue{background:var(--blue);color:#fff;box-shadow:0 10px 26px rgba(18,102,241,.26)}
.btn-blue:hover{filter:brightness(1.06)}

/* ---------- glass panel ---------- */
.glass{
  background:linear-gradient(180deg,rgba(15,37,56,.72),rgba(6,18,27,.92));
  border:1px solid var(--line-dark);
  box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
}

/* ---------- device mock frames ---------- */
.mock-browser{border-radius:14px;overflow:hidden;border:1px solid var(--line-dark);box-shadow:0 34px 70px rgba(0,0,0,.5)}
.mock-browser .bar{height:34px;display:flex;align-items:center;gap:7px;padding:0 13px;background:rgba(255,255,255,.05);border-bottom:1px solid var(--line-soft)}
.mock-browser .bar i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.25)}
.mock-browser img{width:100%;display:block}
.mock-phone{border-radius:30px;padding:7px;background:linear-gradient(180deg,#131c29,#03070d);border:1px solid rgba(255,255,255,.18);box-shadow:0 30px 60px rgba(0,0,0,.55)}
.mock-phone img{width:100%;border-radius:24px;display:block}

/* ================= NAV ================= */
.site-nav{
  position:sticky;top:0;z-index:60;height:82px;
  background:rgba(4,17,31,.86);backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line-soft);
}
.nav-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-logo{display:flex;align-items:center;gap:11px}
.nav-logo .mark{width:42px;height:42px;border-radius:11px;background:linear-gradient(180deg,#ffd25a,var(--amber-strong));color:#0a1322;font-family:"Space Grotesk";font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center}
.nav-logo .word{font-family:"Space Grotesk";font-weight:700;line-height:1;color:#fff}
.nav-logo .word b{display:block;font-size:17px;letter-spacing:.5px}
.nav-logo .word span{display:block;font-size:11px;letter-spacing:3px;color:var(--text-muted);font-weight:600;margin-top:2px}
.nav-links{display:flex;align-items:center;gap:30px}
.nav-links a{display:inline-flex;align-items:center;gap:5px;color:var(--text-soft);font-size:14px;font-weight:600}
.nav-links a:hover{color:#fff}
.nav-links a .ico{width:14px;height:14px;stroke-width:2.4;color:var(--text-muted)}
.nav-actions{display:flex;align-items:center;gap:18px}
.nav-actions .login{color:#fff;font-size:14px;font-weight:600}
.nav-actions .login:hover{color:var(--amber)}
.hamburger{display:none;background:none;border:0;color:#fff;cursor:pointer;padding:6px}

/* ================= FOOTER ================= */
.site-footer{background:var(--navy-950);border-top:1px solid var(--line-soft);padding:54px 0 26px;color:var(--text-muted)}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:36px}
.footer-brand .nav-logo{margin-bottom:16px}
.footer-brand p{font-size:13.5px;line-height:1.6;max-width:280px}
.footer-col h4{font-family:"Space Grotesk";color:#fff;font-size:13px;font-weight:600;letter-spacing:.4px;margin-bottom:14px}
.footer-col a{display:block;font-size:13.5px;margin-bottom:10px;color:var(--text-muted)}
.footer-col a:hover{color:#fff}
.footer-news h4{font-family:"Space Grotesk";color:#fff;font-size:13px;font-weight:600;margin-bottom:6px}
.footer-news p{font-size:12.5px;margin-bottom:12px}
.news-form{display:flex;gap:8px;margin-bottom:16px}
.news-form input{flex:1;min-width:0;height:42px;border-radius:var(--radius-btn);border:1px solid var(--line-dark);background:rgba(255,255,255,.05);color:#fff;padding:0 13px;font-size:13px;font-family:inherit}
.news-form input::placeholder{color:var(--text-muted)}
.news-form button{width:46px;height:42px;border-radius:var(--radius-btn);border:0;background:linear-gradient(180deg,#ffd25a,var(--amber-strong));color:#0a1322;cursor:pointer;display:flex;align-items:center;justify-content:center}
.socials{display:flex;gap:10px}
.socials a{width:34px;height:34px;border-radius:9px;border:1px solid var(--line-dark);display:flex;align-items:center;justify-content:center;color:var(--text-muted)}
.socials a:hover{color:#fff;border-color:var(--line-dark);background:rgba(255,255,255,.05)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:40px;padding-top:20px;border-top:1px solid var(--line-soft);font-size:12.5px}
.footer-bottom .legal{display:flex;gap:22px}
.footer-bottom a:hover{color:#fff}

/* shared eyebrow */
.eyebrow{font-family:"Space Grotesk";font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--amber)}

/* ================= HERO (Layer 2) ================= */
.hero{
  position:relative;overflow:hidden;
  background:
    linear-gradient(91deg, var(--navy-925) 4%, rgba(4,17,31,.88) 34%, rgba(4,17,31,.42) 60%, rgba(4,17,31,.74) 100%),
    url('/assets/img/hero-truck.jpg') right top / cover no-repeat,
    var(--navy-925);
}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:160px;background:linear-gradient(180deg,transparent,var(--navy-925));pointer-events:none}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:.92fr 1.08fr;gap:40px;align-items:center;padding:64px 0 76px}
.hero-copy{max-width:540px}
.hero h1{font-size:66px;line-height:1.03;color:#fff;margin:18px 0 20px}
.hero .lead{font-size:20px;line-height:1.6;color:var(--text-soft);max-width:480px}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin:30px 0 32px}
.trust-row{display:flex;gap:28px;flex-wrap:wrap}
.trust-item{display:flex;align-items:center;gap:11px}
.trust-item .ic{width:34px;height:34px;border-radius:9px;background:rgba(255,194,45,.12);color:var(--amber);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.trust-item .ic .ico{width:18px;height:18px}
.trust-item b{font-family:"Space Grotesk";font-size:13px;color:#fff;line-height:1.2;display:block}
.trust-item small{font-size:11.5px;color:var(--text-muted)}
.hero-media{position:relative;min-height:440px}
.hero-laptop{width:100%;max-width:690px;margin-left:auto}
.hero-phone{position:absolute;right:-6px;bottom:-24px;width:200px}

/* ================= FEATURE BAND (Layer 3) ================= */
.features{padding:8px 0 72px;background:var(--navy-925)}
.features .panel{border-radius:var(--radius-card);padding:46px 28px 40px}
.features .head{text-align:center;max-width:640px;margin:0 auto 38px}
.features .head h2{font-size:34px;color:#fff}
.feature-grid{display:grid;grid-template-columns:repeat(6,1fr)}
.feature-cell{padding:4px 22px;border-left:1px solid var(--line-soft)}
.feature-cell:first-child{border-left:0}
.feature-cell .ic{width:42px;height:42px;border-radius:11px;background:rgba(255,194,45,.08);border:1px solid rgba(255,194,45,.3);color:var(--amber);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.feature-cell h3{font-size:15px;color:#fff;margin-bottom:7px}
.feature-cell p{font-size:13px;line-height:1.55;color:var(--text-muted)}

/* ================= FLEET MANAGEMENT (Layer 4, light) ================= */
.light-sec{background:var(--light-bg);color:var(--light-text);padding:78px 0}
.light-sec .split{display:grid;grid-template-columns:.92fr 1.08fr;gap:50px;align-items:center}
.light-sec .eyebrow{color:var(--blue)}
.light-sec h2{font-size:40px;color:var(--light-text);line-height:1.12;margin:12px 0 16px}
.light-sec .lead{color:var(--light-muted);font-size:16px;line-height:1.6;max-width:450px}
.checklist{margin:24px 0 30px;display:grid;gap:14px}
.checklist li{display:flex;align-items:center;gap:12px;color:#17243a;font-size:15px}
.checklist .ck{width:23px;height:23px;border-radius:50%;background:rgba(34,184,111,.16);color:#138a52;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.checklist .ck .ico{width:14px;height:14px;stroke-width:2.6}
.shot{border-radius:14px;border:1px solid #e2e9f1;box-shadow:0 26px 60px rgba(7,22,42,.16);overflow:hidden}
.shot img{width:100%;display:block}

/* ================= DRIVER APP (Layer 5, light) ================= */
.driver-sec{background:var(--light-bg);color:var(--light-text);padding:74px 0;border-top:1px solid #e6edf5}
.driver-grid{display:grid;grid-template-columns:.44fr .56fr;gap:44px;align-items:center}
.driver-sec .eyebrow{color:var(--blue)}
.driver-sec h2{font-size:40px;color:var(--light-text);line-height:1.12;margin:12px 0 16px}
.driver-sec .lead{color:var(--light-muted);font-size:16px;line-height:1.6;max-width:430px}
.feat-list{margin:24px 0 26px;display:grid;gap:16px}
.feat-list li{display:flex;align-items:center;gap:12px;color:#17243a;font-size:15px;font-weight:500}
.feat-list .ic{width:36px;height:36px;border-radius:10px;background:rgba(255,194,45,.12);color:var(--amber-strong);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.feat-list .ic .ico{width:18px;height:18px}
.link-arrow{display:inline-flex;align-items:center;gap:7px;color:var(--blue);font-weight:600;font-size:15px}
.link-arrow .ico{width:16px;height:16px;stroke-width:2.4}
.phones{display:flex;gap:16px;justify-content:center;align-items:flex-end}
.phones .ph{border-radius:26px;padding:5px;background:linear-gradient(180deg,#131c29,#03070d);border:1px solid rgba(0,0,0,.2);box-shadow:0 24px 50px rgba(7,22,42,.28)}
.phones .ph img{height:332px;width:auto;border-radius:22px;display:block}
.phones .ph.center img{height:366px}

/* ================= TRUST + CTA (Layer 6) ================= */
.trust-band{background:var(--navy-900);padding:58px 0;border-top:1px solid var(--line-soft)}
.trust-band .head{text-align:center;margin-bottom:38px}
.trust-band .head h2{font-size:32px;color:#fff}
.trust-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:36px;align-items:stretch}
.trust-items{display:grid;grid-template-columns:1fr 1fr;gap:26px 28px;align-content:center}
.trust-it{display:flex;gap:13px;align-items:flex-start}
.trust-it .ic{width:42px;height:42px;border-radius:11px;background:rgba(255,255,255,.05);color:var(--amber);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.trust-it b{font-family:"Space Grotesk";color:#fff;font-size:15px;display:block;margin-bottom:3px}
.trust-it small{font-size:12.5px;color:var(--text-muted);line-height:1.45}
.cta-card{position:relative;overflow:hidden;border-radius:16px;padding:34px;display:flex;flex-direction:column;justify-content:center;gap:12px;border:1px solid var(--line-dark);
  background:linear-gradient(118deg, rgba(2,11,20,.94) 30%, rgba(2,11,20,.55) 100%), url('/assets/img/cta-truck.jpg') right center/cover no-repeat}
.cta-card h3{font-family:"Space Grotesk";font-size:22px;color:#fff;line-height:1.2}
.cta-card p{font-size:13.5px;color:var(--text-soft);line-height:1.55}
.cta-card .btn{align-self:flex-start;margin-top:6px}

/* ================= section placeholders (built in later layers) ================= */
.section{padding:80px 0}

@media (max-width:1024px){
  .light-sec .split{grid-template-columns:1fr;gap:34px}
  .light-sec h2{font-size:34px}
  .driver-grid{grid-template-columns:1fr;gap:36px}
  .driver-sec h2{font-size:34px}
  .phones{margin:0 auto}
}
@media (max-width:640px){
  .phones{justify-content:flex-start;overflow-x:auto;padding-bottom:6px}
  .phones .ph img{height:300px}
  .phones .ph.center img{height:300px}
}
@media (max-width:900px){
  .trust-layout{grid-template-columns:1fr;gap:28px}
}
@media (max-width:640px){
  .trust-band .head h2{font-size:24px}
  .trust-items{grid-template-columns:1fr}
  .light-sec h2{font-size:30px}
}

@media (max-width:1024px){
  .feature-grid{grid-template-columns:repeat(3,1fr);gap:10px 0}
  .feature-cell:nth-child(3n+1){border-left:0}
}
@media (max-width:640px){
  .features .head h2{font-size:26px}
  .feature-grid{grid-template-columns:1fr 1fr}
  .feature-cell{border-left:0;padding:14px}
}

@media (max-width:1024px){
  .hero h1{font-size:54px}
  .hero-grid{grid-template-columns:1fr;gap:30px}
  .hero{background:
    linear-gradient(180deg, rgba(4,17,31,.55), rgba(4,17,31,.92) 70%, var(--navy-925)),
    url('/assets/img/hero-truck.jpg') center top / cover no-repeat, var(--navy-925)}
  .hero-media{max-width:700px}
  .hero-laptop{margin:0 auto}
  .hero-phone{right:0}
}
@media (max-width:640px){
  .hero h1{font-size:40px}
  .hero .lead{font-size:17px}
  .hero-grid{padding:40px 0 56px}
  .cta-row .btn{flex:1 1 auto}
  .trust-row{gap:16px}
  .hero-phone{width:140px;bottom:-14px}
}

/* ================= responsive ================= */
@media (max-width:900px){
  .nav-links{
    position:absolute;top:82px;left:0;right:0;flex-direction:column;align-items:flex-start;gap:0;
    background:var(--navy-900);border-bottom:1px solid var(--line-dark);padding:8px 24px 16px;display:none;
  }
  .nav-links.open{display:flex}
  .nav-links a{width:100%;padding:13px 0;font-size:15px}
  .hamburger{display:flex;order:3}
  .nav-actions{margin-left:auto}
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .footer-brand{grid-column:1/-1}
}
@media (max-width:640px){
  .container{width:min(1280px,100% - 32px)}
  .nav-actions .login{display:none}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:12px}
}
