/* ============================================================
   HALIX — Energy & Mobility | Light Design System
   Re-skin of BARREL × X-Lite DNA onto a clean light palette.
   Fonts: Rajdhani (display) · DM Sans (body) · JetBrains Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Ink & surfaces (light) ── */
  --ink:            #0b1424;   /* primary text / headings */
  --ink-2:         #324155;   /* secondary text */
  --ink-3:         #647189;   /* muted */
  --ink-4:         #93a0b5;   /* faint */
  --page:           #ffffff;
  --soft:           #f4f7fc;   /* alt section */
  --soft-2:         #eef3fb;   /* tint */
  --soft-3:         #e7eefb;
  --line:           #e4eaf3;   /* borders */
  --line-2:         #d4ddec;

  /* ── Brand accents (from source DNA) ── */
  --blue:           #1e6fff;
  --blue-600:       #1558e0;
  --blue-700:       #0f43b8;
  --blue-50:        #eef5ff;
  --blue-100:       #dbeafe;
  --amber:          #f59e0b;
  --amber-400:      #fbbf24;
  --amber-600:      #d97706;
  --amber-50:       #fff8eb;
  --green:          #16a34a;
  --green-500:      #22c55e;
  --green-50:       #ecfdf3;
  --ink-grad:       linear-gradient(135deg,#0b1424 0%,#16233e 100%);
  --blue-grad:      linear-gradient(135deg,#1e6fff 0%,#0f43b8 100%);
  --amber-grad:     linear-gradient(135deg,#fbbf24 0%,#f59e0b 100%);

  /* ── Radius / shadow ── */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16,42,90,.05);
  --sh-2: 0 6px 24px rgba(16,42,90,.07);
  --sh-3: 0 18px 48px rgba(16,42,90,.12);
  --sh-blue: 0 14px 40px rgba(30,111,255,.22);
  --sh-amber: 0 14px 40px rgba(245,158,11,.22);

  /* ── Type ── */
  --display: 'Rajdhani', 'Barlow Condensed', sans-serif;
  --body:    'DM Sans', 'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  /* ── Layout ── */
  --maxw: 1240px;
  --nav-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Headings ── */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-tight { max-width: 980px; }
.section { padding: clamp(64px, 4vw, 128px) 0; }
.section-sm { padding: clamp(48px,4vw,80px) 0; }
.soft { background: var(--soft); }
.tint { background: var(--soft-2); }
.ink-bg { background: var(--ink-grad); color: #cfd9ec; }
.ink-bg h1, .ink-bg h2, .ink-bg h3, .ink-bg h4 { color: #fff; }

.center { text-align: center; }
.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); }
.flex { display: flex; }
.items-center { align-items: center; }
.between { justify-content: space-between; }
.gap-s { gap: 10px; } .gap-m { gap: 20px; } .gap-l { gap: 40px; }
.wrap-flex { flex-wrap: wrap; }

/* ── Eyebrow / labels ── */
.eyebrow {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before { content: "◆"; font-size: 9px; color: var(--amber); }
.eyebrow.amber { color: var(--amber-600); }
.eyebrow.amber::before { color: var(--blue); }
.eyebrow.on-dark { color: var(--amber-400); }

.lead { font-size: clamp(17px,1.6vw,21px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }

/* ── Badges / pills ── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--blue-50); color: var(--blue-600);
  border: 1px solid var(--blue-100);
}
.badge.amber { background: var(--amber-50); color: var(--amber-600); border-color: #fde9c0; }
.badge.green { background: var(--green-50); color: var(--green); border-color: #c5f0d4; }
.badge.ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.badge.on-dark { background: rgba(255,255,255,.08); color: #dbe6ff; border-color: rgba(255,255,255,.16); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #16233e; transform: translateY(-2px); }
.btn-amber { background: var(--amber-grad); color: #3a2400; box-shadow: var(--sh-amber); }
.btn-amber:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color:#fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 16.5px; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--sh-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.card-pad-lg { padding: 36px; }

/* icon tile */
.itile {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  background: var(--blue-50); color: var(--blue);
  border: 1px solid var(--blue-100);
}
.itile.amber { background: var(--amber-50); color: var(--amber-600); border-color:#fde9c0; }
.itile.green { background: var(--green-50); color: var(--green); border-color:#c5f0d4; }
.itile.ink { background: var(--ink); color:#fff; border-color: var(--ink); }
.itile svg { width: 26px; height: 26px; }

/* ── Stat callout ── */
.stat-n {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px,5vw,64px); line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.stat-n .u { color: var(--blue); }
.stat-l { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; letter-spacing: .01em; }

/* spec list */
.spec-row { display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-k { font-size: 14px; color: var(--ink-3); }
.spec-v { font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 600; }

/* divider dot list */
.tick { display:flex; gap:12px; align-items:flex-start; }
.tick .dot { flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--green-50); color:var(--green); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; margin-top:2px; }

/* ── Section header ── */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left:auto; margin-right:auto; }

/* image slot default styling */
image-slot { background: var(--soft-2); border: 1px dashed var(--line-2); color: var(--ink-4); border-radius: var(--r-lg); }

/* ── NAV (injected by halix-shell.js) ── */
.hx-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hx-nav-inner { height: var(--nav-h); display:flex; align-items:center; gap: 22px; max-width: var(--maxw); margin:0 auto; padding: 0 28px; }
.hx-logo { display:flex; align-items:center; gap:11px; flex-shrink:0; }
.hx-logo .mk { width: 36px; height: 36px; }
.hx-logo .wm { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: .02em; color: var(--ink); line-height: 1; }
.hx-logo .wm b { color: var(--blue); }
.hx-logo .sub { font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; white-space: nowrap; }
.hx-logo span { line-height: 1.15; }
.hx-links { display:flex; align-items:center; gap: 2px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.hx-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 8px 11px; border-radius: var(--r-sm); transition: color .15s, background .15s; white-space: nowrap; }
.hx-links a:hover { color: var(--blue); background: var(--blue-50); }
.hx-links a.active { color: var(--blue); font-weight: 600; }
.hx-nav .cta { flex-shrink:0; }
.hx-burger { display:none; background:none; border:1px solid var(--line-2); border-radius:10px; width:42px; height:42px; cursor:pointer; align-items:center; justify-content:center; }
.hx-burger svg { width:22px;height:22px; color: var(--ink); }

/* mega dropdown */
.hx-has-menu { position: relative; }
.hx-menu { position:absolute; top:calc(100% + 10px); left:50%; transform: translateX(-50%) translateY(6px); background:#fff; border:1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); padding:10px; min-width: 280px; opacity:0; visibility:hidden; transition: all .18s ease; }
.hx-has-menu:hover .hx-menu { opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
.hx-menu a { display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:9px; }
.hx-menu a span.t { font-size:13.5px; font-weight:600; color:var(--ink); }
.hx-menu a span.d { font-size:11.5px; color:var(--ink-3); }
.hx-menu a:hover { background: var(--soft); }

@media (max-width: 1080px) {
  .hx-links, .hx-nav .cta.desk { display:none; }
  .hx-burger { display:flex; }
}
.hx-mobile { position: fixed; inset: var(--nav-h) 0 0; background:#fff; z-index:99; padding: 18px 28px 40px; overflow:auto; display:none; flex-direction:column; gap:4px; }
.hx-mobile.open { display:flex; }
.hx-mobile a { padding:14px 8px; border-bottom:1px solid var(--line); font-size:16px; font-weight:500; color:var(--ink); font-family: var(--display); }
.hx-mobile .btn { margin-top:18px; }

/* ── FOOTER ── */
.hx-foot { background: var(--ink-grad); color:#9fb0cb; padding: 80px 0 36px; }
.hx-foot a { color:#9fb0cb; transition: color .15s; }
.hx-foot a:hover { color:#fff; }
.hx-foot h5 { font-family: var(--body); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:#6f82a3; margin:0 0 16px; font-weight:700; }
.hx-foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap:40px; }
.hx-foot .wm { font-family: var(--display); font-weight:700; font-size:28px; color:#fff; letter-spacing:.02em; }
.hx-foot .wm b { color: var(--blue); }
.hx-foot .col a { display:block; font-size:14px; padding:6px 0; }
.hx-foot-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:56px; padding-top:26px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:12.5px; color:#6f82a3; }
.hx-foot .pill-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }

@media (max-width: 900px){
  .g4 { grid-template-columns: repeat(2,1fr); }
  .g3 { grid-template-columns: repeat(2,1fr); }
  .hx-foot-grid { grid-template-columns: 1fr 1fr; gap:32px; }
}
@media (max-width: 620px){
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .hx-foot-grid { grid-template-columns: 1fr 1fr; }
}

/* fade-in on scroll */
.reveal { opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } html{scroll-behavior:auto;} }

/* ── Shared inner-page components ── */
.page-hero { position:relative; overflow:hidden; padding: clamp(48px,7vw,92px) 0 clamp(40px,6vw,64px);
  background: radial-gradient(110% 90% at 88% -20%, var(--soft-3) 0%, rgba(238,243,251,0) 55%),
              radial-gradient(70% 80% at -5% 0%, var(--amber-50) 0%, rgba(255,248,235,0) 50%); }
.page-hero.dark { background: var(--ink-grad); color:#cfd9ec; }
.page-hero.dark::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 110% at 95% -10%, rgba(30,111,255,.3) 0%, rgba(30,111,255,0) 55%); }
.page-hero-inner { position:relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(36px,5.2vw,64px); margin: 18px 0 20px; }
.page-hero .lead { max-width: 640px; }
.crumb { font-size: 13px; color: var(--ink-3); font-family: var(--mono); letter-spacing:.02em; }
.crumb a:hover { color: var(--blue); }
.page-hero.dark .crumb { color:#7e90b0; }

.step-num { width:44px;height:44px;border-radius:12px;background:var(--ink);color:#fff;font-family:var(--display);font-weight:700;font-size:20px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.step-num.blue { background: var(--blue); }
.step-num.amber { background: var(--amber-grad); color:#3a2400; }

.faq-item { border-bottom:1px solid var(--line); }
.faq-q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:22px 0; display:flex; justify-content:space-between; gap:20px; align-items:center; font-family:var(--display); font-weight:600; font-size:19px; color:var(--ink); }
.faq-q .pm { flex-shrink:0; width:28px;height:28px;border-radius:50%;border:1px solid var(--line-2); display:flex;align-items:center;justify-content:center; transition: all .2s; font-size:18px; color:var(--blue); }
.faq-item.open .pm { background:var(--blue); color:#fff; border-color:var(--blue); transform: rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p { padding:0 0 22px; max-width:760px; color:var(--ink-2); margin:0; }

.kpi { display:flex; flex-direction:column; gap:4px; }
.kpi .n { font-family:var(--display); font-weight:700; font-size:clamp(28px,3vw,40px); color:var(--ink); line-height:1; }
.kpi .l { font-size:13px; color:var(--ink-3); }
.page-hero.dark .kpi .n { color:#fff; } .page-hero.dark .kpi .l{ color:#9fb0cb; }

hr.soft-rule { border:none; border-top:1px solid var(--line); margin:0; }
