:root{
  --bg:#FFFFFF; --bg-soft:#F4F7FB; --bg-tint:#EEF3FF;
  --blue:#1D4ED8; --blue-dark:#1E3A8A; --navy:#0F172A;
  --teal:#14B8A6; --teal-soft:#CCFBF1;
  --text:#0F172A; --muted:#475569; --line:#E2E8F0;
  --radius:14px; --shadow:0 10px 30px -12px rgba(15,23,42,.18);
  --max:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
h1,h2,h3,h4{line-height:1.2;letter-spacing:-.02em;color:var(--navy)}
h1{font-size:clamp(2.2rem,4.6vw,3.6rem);font-weight:800}
h2{font-size:clamp(1.7rem,3vw,2.4rem);font-weight:750}
h3{font-size:1.2rem;font-weight:700}
p{color:var(--muted)}
.eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:12px}
.lead{font-size:1.15rem;max-width:640px}
.center{text-align:center}.center .lead{margin:0 auto}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:70px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;color:var(--navy);letter-spacing:-.02em}
.logo:hover{text-decoration:none}
.logo-mark{width:34px;height:34px}
.logo img{height:40px;width:auto}
.logo-light{filter:brightness(0) invert(1)}
.nav-links{display:flex;align-items:center;gap:6px;list-style:none}
.nav-links a{display:block;padding:8px 14px;border-radius:8px;color:var(--navy);font-weight:550;font-size:.95rem}
.nav-links a:hover{background:var(--bg-soft);text-decoration:none}
.nav-links a.active{color:var(--blue)}
.nav-cta{display:flex;gap:10px;align-items:center}
.menu-btn{display:none;background:none;border:0;padding:8px;cursor:pointer}
.menu-btn span{display:block;width:22px;height:2px;background:var(--navy);margin:5px 0;transition:.2s}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:10px;font-weight:650;font-size:.95rem;border:1.5px solid transparent;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 20px -8px rgba(29,78,216,.6)}
.btn-primary:hover{background:var(--blue-dark)}
.btn-ghost{border-color:var(--line);color:var(--navy);background:#fff}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-sm{padding:8px 16px;font-size:.88rem}

/* Hero */
.hero{position:relative;overflow:hidden;padding:96px 0 88px;background:radial-gradient(1000px 500px at 85% -10%,var(--bg-tint),transparent 60%),radial-gradient(700px 400px at -10% 110%,#E6FBF8,transparent 60%)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.hero h1 span{color:var(--blue)}
.hero .lead{margin:20px 0 32px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-badges{display:flex;gap:22px;margin-top:36px;flex-wrap:wrap}
.hero-badges div{font-size:.88rem;color:var(--muted);display:flex;align-items:center;gap:8px}
.hero-badges svg{width:18px;height:18px;color:var(--teal)}
.page-hero{padding:72px 0 56px;background:linear-gradient(180deg,var(--bg-tint),#fff)}
.page-hero .lead{margin-top:16px}

/* Network diagram */
.diagram{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:22px}
.diagram svg{width:100%;height:auto}
.pulse{animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.25}50%{opacity:1}}
.flow{stroke-dasharray:6 6;animation:flow 1.2s linear infinite}
@keyframes flow{to{stroke-dashoffset:-12}}

/* Sections */
section{padding:88px 0}
.section-soft{background:var(--bg-soft)}
.section-dark{background:var(--navy);color:#fff}
.section-dark h2,.section-dark h3{color:#fff}
.section-dark p{color:#94A3B8}
.section-head{margin-bottom:48px}
.section-head p{margin-top:14px}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:-44px;position:relative;z-index:2}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.stat b{display:block;font-size:2rem;font-weight:800;color:var(--blue);letter-spacing:-.03em}
.stat span{font-size:.9rem;color:var(--muted)}

/* Cards */
.grid{display:grid;gap:24px}
.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;transition:border-color .2s,box-shadow .2s,transform .2s}
.card:hover{border-color:#C7D2FE;box-shadow:var(--shadow);transform:translateY(-2px)}
.card h3{margin:16px 0 8px}
.card p{font-size:.95rem}
.card .more{display:inline-block;margin-top:14px;font-weight:650;font-size:.92rem}
.icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--bg-tint);color:var(--blue)}
.icon svg{width:24px;height:24px}
.icon.teal{background:var(--teal-soft);color:#0F766E}
.section-dark .card{background:#162036;border-color:#24304A}
.section-dark .card:hover{border-color:#334155}
.section-dark .icon{background:#1E2B4A;color:#7DD3FC}

/* Stack / steps */
.stack{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff}
.stack-item{padding:28px;border-right:1px solid var(--line);position:relative}
.stack-item:last-child{border-right:0}
.stack-item .num{font-size:.8rem;font-weight:700;color:var(--teal);letter-spacing:.1em}
.stack-item h3{margin:10px 0 6px;font-size:1.08rem}
.stack-item p{font-size:.92rem}

/* Split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.split.rev>:first-child{order:2}
.checks{list-style:none;margin-top:22px;display:grid;gap:12px}
.checks li{display:flex;gap:12px;align-items:flex-start;color:var(--muted)}
.checks li::before{content:"";flex:0 0 20px;height:20px;margin-top:2px;border-radius:50%;background:var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat}
.checks li b{color:var(--navy)}
.panel{background:linear-gradient(145deg,var(--bg-tint),#fff);border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:var(--shadow)}

/* Spec table */
.specs{width:100%;border-collapse:collapse;font-size:.95rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.specs th,.specs td{text-align:left;padding:13px 18px;border-bottom:1px solid var(--line);vertical-align:top}
.specs th{width:38%;font-weight:600;color:var(--navy);background:var(--bg-soft)}
.specs td{color:var(--muted)}
.specs tr:last-child th,.specs tr:last-child td{border-bottom:0}

/* Product block */
.product{padding:72px 0;border-bottom:1px solid var(--line);scroll-margin-top:80px}
.product:last-of-type{border-bottom:0}
.tag{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--teal-soft);color:#0F766E;font-size:.78rem;font-weight:700;margin-bottom:12px}
.subnav{position:sticky;top:70px;z-index:40;background:#fff;border-bottom:1px solid var(--line)}
.subnav .wrap{display:flex;gap:6px;overflow-x:auto;padding-top:10px;padding-bottom:10px}
.subnav a{white-space:nowrap;padding:7px 14px;border-radius:999px;font-size:.88rem;font-weight:600;color:var(--muted);border:1px solid var(--line)}
.subnav a:hover{color:var(--blue);border-color:var(--blue);text-decoration:none}

/* Projects */
.projects{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.project{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.project b{font-size:1.7rem;font-weight:800;color:var(--blue)}
.project span{display:block;font-size:.85rem;color:var(--muted)}
.project .bar{height:6px;border-radius:6px;background:var(--bg-tint);margin-top:14px;overflow:hidden}
.project .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--teal))}

/* People */
.person{display:flex;gap:22px;align-items:flex-start}
.avatar{flex:0 0 84px;height:84px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--teal));color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.6rem;object-fit:cover}
.avatar{overflow:hidden;background:var(--bg-soft);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--bg-tint)}
.avatar img{width:100%;height:100%;object-fit:cover;transform:scale(1.2)}
.person .avatar{flex-basis:96px;height:96px}
.person .role{font-size:.88rem;color:var(--teal);font-weight:650;margin:2px 0 10px}

/* CTA */
.cta{background:linear-gradient(120deg,var(--blue),#1E40AF 55%,#0E7490);border-radius:24px;padding:56px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.cta h2{color:#fff}.cta p{color:#DBEAFE;margin-top:8px}
.cta .btn-primary{background:#fff;color:var(--blue)}
.cta .btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}

/* Forms */
.form{display:grid;gap:16px}
.form label{font-size:.88rem;font-weight:600;color:var(--navy);display:grid;gap:6px}
.form input,.form textarea,.form select{font:inherit;padding:12px 14px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--text)}
.form input:focus,.form textarea:focus,.form select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px var(--bg-tint)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-item{display:flex;gap:14px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.contact-item:last-child{border-bottom:0}
.contact-item small{display:block;color:var(--muted);font-size:.82rem}
.contact-item a,.contact-item strong{font-weight:650;color:var(--navy)}

/* Footer */
.site-footer{background:var(--navy);color:#94A3B8;padding:64px 0 28px;font-size:.92rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
.site-footer .logo{color:#fff}
.site-footer h4{color:#fff;font-size:.9rem;margin-bottom:14px}
.site-footer ul{list-style:none;display:grid;gap:8px}
.site-footer a{color:#94A3B8}
.site-footer a:hover{color:#fff}
.foot-bottom{border-top:1px solid #1E293B;margin-top:48px;padding-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

/* Reveal */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}.pulse,.flow{animation:none}html{scroll-behavior:auto}}

/* Responsive */
@media (max-width:980px){
  .hero-grid,.split{grid-template-columns:1fr;gap:40px}
  .split.rev>:first-child{order:0}
  .g3,.g4,.stack,.projects{grid-template-columns:repeat(2,1fr)}
  .stack-item:nth-child(2){border-right:0}
  .stack-item:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .stats{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .menu-btn{display:block}
  .nav-links{position:absolute;top:70px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:12px 24px 20px;border-bottom:1px solid var(--line);display:none}
  .nav-links.open{display:flex}
  .nav-cta .btn-ghost{display:none}
}
@media (max-width:620px){
  section{padding:64px 0}
  .g2,.g3,.g4,.stack,.projects,.stats,.form .row{grid-template-columns:1fr}
  .stack-item{border-right:0;border-bottom:1px solid var(--line)}
  .foot-grid{grid-template-columns:1fr}
  .cta{padding:36px 28px}
  .person{flex-direction:column}
}

/* Header: keep buttons on one line, collapse menu earlier now the logo is a wide wordmark */
.btn{white-space:nowrap}
@media (max-width:1120px){
  .menu-btn{display:block}
  .nav-links{position:absolute;top:70px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:12px 24px 20px;border-bottom:1px solid var(--line);display:none}
  .nav-links.open{display:flex}
}
@media (max-width:480px){.logo img{height:32px}.nav-cta .btn-primary{padding:8px 12px}}
.site-footer p{color:#94A3B8}

/* Product photos */
.shot{margin:0;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;display:grid;place-items:center;box-shadow:var(--shadow)}
.shot img{max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain}
.shot.wide{padding:16px}
.shot.wide img{width:100%;max-height:none}
.shot.tall img{max-height:480px}
.shot-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}
.shot-pair .shot{padding:18px}
.shot-pair .shot img{max-height:280px}
.shot-pair.prepaid{grid-template-columns:1fr}
.shot-pair.prepaid .shot:first-child img{max-height:none;width:100%}
.shot-pair.prepaid .shot:last-child img{max-height:240px}
.badge-wrap{position:relative;display:inline-block;line-height:0}
.shot .badge-logo{position:absolute;left:4.5%;top:65.6%;width:34%;max-height:none;background:#CFD0D2;padding:1.8% 1.5%;border-radius:2px;box-sizing:border-box}
.spec-block{margin-top:40px}
.subnav .wrap{scrollbar-width:none}.subnav .wrap::-webkit-scrollbar{display:none}

/* Datasheet download buttons */
.dl-btn svg{width:18px;height:18px}
.dl-btn small{font-weight:500;opacity:.75;font-size:.78rem}
