/* ============================================================
   Hanum Battery — Global Styles (Light theme)
   ============================================================ */

:root {
  --bg: #f5f8fd;
  --bg-2: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f3f7fd;
  --border: #e1e9f4;
  --border-2: #d3def0;
  --text: #0f1b33;
  --heading: #0a1428;
  --muted: #51607a;
  --muted-2: #8493ad;
  --brand: #e5404e;       /* Hanum red */
  --brand-2: #c4313f;     /* deep red */
  --accent: #f59e0b;      /* amber */
  --danger: #e23b54;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px -6px rgba(15, 27, 51, 0.12);
  --shadow: 0 24px 60px -24px rgba(15, 27, 51, 0.28);
  --shadow-brand: 0 16px 36px -14px rgba(229, 64, 78, 0.5);
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.14; font-weight: 800; letter-spacing: -0.022em; color: var(--heading); }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), transparent); }
.eyebrow.center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  background: transparent; color: var(--text);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(229,64,78,.6); }
.btn-ghost { border-color: var(--border-2); background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 253, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--heading); }
.logo .spark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-brand);
}
.logo .spark svg { width: 20px; height: 20px; }
.logo b { background: linear-gradient(120deg,var(--brand),var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo .wm-top { color: var(--brand); font-weight: 800; font-size: 1.42rem; letter-spacing: 0.16em; }
.logo .wm-sub { color: #3a3f4a; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.5em; text-align: center; margin-top: 5px; padding-left: 0.5em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--heading); background: rgba(229,64,78,.08); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Nav dropdown (Industries) ---------- */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: color .15s, background .15s; }
.nav-dd-btn:hover, .nav-dd-btn.active, .nav-dd.active .nav-dd-btn { color: var(--heading); background: rgba(229,64,78,.08); }
.nav-dd-btn .dd-caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd.open .nav-dd-btn .dd-caret { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; z-index: 60;
  max-height: 70vh; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* invisible bridge so the cursor can cross the gap from button to menu without it closing */
.nav-dd-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
/* open on hover (desktop / pointer devices), keep click+tap for touch */
@media (hover: hover) and (min-width: 621px) {
  .nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav-dd:hover .nav-dd-btn { color: var(--heading); background: rgba(229,64,78,.08); }
  .nav-dd:hover .nav-dd-btn .dd-caret { transform: rotate(180deg); }
}
.nav-dd-menu a { padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted);
  white-space: nowrap; transition: background .14s, color .14s; }
.nav-dd-menu a:hover { background: var(--surface-2); color: var(--brand); }
.nav-dd-menu a.dd-all { font-weight: 700; color: var(--heading); border-bottom: 1px solid var(--border); border-radius: 9px 9px 0 0; margin-bottom: 4px; padding-bottom: 11px; }

/* ---------- Industries page ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; }
.ind-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.ind-card .ind-emoji { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.ind-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ind-card p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.ind-card .ind-go { font-weight: 700; font-size: 13.5px; color: var(--brand); }
@media (max-width: 980px) { .ind-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) {
  .ind-grid { grid-template-columns: 1fr; }
  .nav-dd { width: 100%; }
  .nav-dd-btn { width: 100%; justify-content: space-between; }
  .nav-dd-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0;
    opacity: 1; visibility: visible; max-height: none; padding: 4px 0 4px 10px; }
  .nav-dd:not(.open) .nav-dd-menu { display: none; }
}
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #3a2606;
  font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center;
}
.menu-toggle { display: none; background: none; border: 0; color: var(--heading); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 80% 8%, rgba(196,49,63,.14), transparent 60%),
    radial-gradient(720px 520px at 8% 96%, rgba(229,64,78,.14), transparent 60%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: .8;
  background-image:
    linear-gradient(rgba(15,27,51,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,27,51,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 25%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.8rem; color: var(--heading); }
.hero-stats .stat span { color: var(--muted-2); font-size: 13px; letter-spacing: .03em; }

/* Hero with full-width banner image */
.hero--image { padding-top: 0; padding-bottom: 64px; }
.hero--image .wrap { display: block; }
.hero-copy.center { text-align: center; max-width: 840px; margin: 0 auto; }
.hero-copy.center .eyebrow { justify-content: center; }
.hero-copy.center p.lead { margin-left: auto; margin-right: auto; max-width: 620px; }
.hero-cta.center { justify-content: center; }
.hero-banner { margin: 6px auto 0; max-width: 1120px; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface-2);
  aspect-ratio: 3 / 2; }
.hero-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-stats.center { justify-content: center; margin-top: 38px; }

/* Full-screen, full-bleed banner (photo on top) */
.hero-banner--full {
  width: 100%; max-width: none; margin: 0 0 56px;
  border: 0; border-radius: 0; aspect-ratio: auto;
  height: calc(100svh - 72px); min-height: 460px; box-shadow: none;
}
.hero-banner--full img { object-position: center; }

/* Hero cell image */
.cell-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.cell-visual .cell-img { width: min(330px, 80%); position: relative; z-index: 2; animation: float 6.5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(15,27,51,.18)); }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-18px); } }
.cell-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,64,78,.20), rgba(196,49,63,.10) 45%, transparent 68%);
  filter: blur(6px); z-index: 1; animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:.75 } 50%{ transform: scale(1.1); opacity:1 } }
.cell-ring { position: absolute; border: 1.5px dashed rgba(229,64,78,.3); border-radius: 50%; z-index: 0; }
.cell-ring.r1 { width: 360px; height: 360px; animation: spin 28s linear infinite; }
.cell-ring.r2 { width: 460px; height: 460px; animation: spin 40s linear infinite reverse; border-color: rgba(196,49,63,.2); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--heading);
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.float-chip b { color: var(--brand); }
.float-chip.fc1 { top: 6%; right: -2%; left: auto; animation: float 5s ease-in-out infinite; }
.float-chip.fc2 { bottom: 18%; right: -4%; animation: float 5.6s ease-in-out infinite .4s; }
.float-chip.fc3 { bottom: 6%; left: 6%; animation: float 6.2s ease-in-out infinite .8s; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; padding: 22px 24px; }
.trust .t-item { color: var(--muted); font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.trust .t-item svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding-top: 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt-bg { background: var(--bg-2); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--accent-c, var(--brand)); box-shadow: var(--shadow); }
.pcard .stripe { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-c, var(--brand)); }
.pcard .badge { position: absolute; top: 20px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent-c, var(--brand)) 12%, white); color: var(--accent-c, var(--brand)); }
.pcard .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.pcard .brand-chip { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-c, var(--brand)); }
.pcard h3 { font-size: 1.4rem; margin: 6px 0 4px; }
.pcard .tag { color: var(--muted); font-size: 14px; min-height: 42px; }
.cell-svg { display: block; width: 100%; height: auto; }
.pcard .cell-mini { height: 160px; margin: 14px 0; display: grid; place-items: center; position: relative; }
.pcard .cell-mini .mini-glow { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-c,var(--brand)) 22%, transparent), transparent 65%); }
.pcard .cell-mini .cell-svg { width: auto; height: 160px; position: relative; z-index: 1; transition: transform .25s; }
.pcard:hover .cell-mini .cell-svg { transform: scale(1.05) rotate(-1deg); }
.pcard .quickspecs { list-style: none; display: grid; gap: 9px; margin: 6px 0 20px; }
.pcard .quickspecs li { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); border-bottom: 1px dashed var(--border-2); padding-bottom: 8px; }
.pcard .quickspecs li b { color: var(--heading); font-weight: 700; }
.pcard .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; margin-top: auto; }
.pcard .price-row .poa { font-size: 1.2rem; font-weight: 800; color: var(--heading); }
.pcard .price-row small { color: var(--muted-2); font-size: 12px; }
.pcard .card-actions { display: flex; gap: 10px; }
.pcard .card-actions .btn { flex: 1; }

/* ---------- Brand boxes ---------- */
.brands { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.brand-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.brand-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-box .bname { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; }
.brand-box .bdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 9px; }
.brand-box p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.brand-box .blink { font-weight: 700; font-size: 14px; color: var(--brand); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--brand); transform: translateY(-4px); }
.feature .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(229,64,78,.12), rgba(196,49,63,.12)); color: var(--brand); margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step .num { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,var(--brand),var(--brand-2)); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow-brand); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step .arrow { position: absolute; top: 46px; right: -26px; color: var(--border-2); z-index: 2; }
.steps .step:last-child .arrow { display: none; }

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.usecase { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 230px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.usecase:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usecase .uc-glow { position:absolute; inset:0; opacity:.6; background: radial-gradient(360px 200px at 82% 0%, rgba(196,49,63,.12), transparent); }
.usecase h3 { font-size: 1.25rem; margin-bottom: 8px; position: relative; }
.usecase p { color: var(--muted); font-size: 14px; position: relative; }
.usecase .uc-emoji { font-size: 2rem; margin-bottom: 14px; position: relative; }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.statband .sb { padding: 38px 24px; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.18); }
.statband .sb:last-child { border-right: 0; }
.statband .sb b { font-size: 2.4rem; display: block; letter-spacing: -.03em; }
.statband .sb span { font-size: 13.5px; opacity: .9; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-size: 1.05rem; font-weight: 700; color: var(--heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q .pm { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(229,64,78,.1); color: var(--brand); display: grid; place-items: center; font-size: 18px; transition: transform .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 280px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-radius: 24px; padding: 56px; text-align: center; color: #fff; overflow: hidden; box-shadow: var(--shadow); }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 300px at 85% -20%, rgba(255,255,255,.22), transparent); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem,3vw,2.4rem); margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 16px 36px -14px rgba(0,0,0,.4); position: relative; }
.cta-band .btn-primary:hover { color: var(--brand-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid > div > p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 14px; }
.footer-col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 13px; }

/* ---------- Page header ---------- */
.page-head { padding: 64px 0 26px; position: relative; }
.page-head h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 12px; position: relative; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 640px; position: relative; }
.breadcrumb { font-size: 13px; color: var(--muted-2); margin-bottom: 18px; position: relative; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; transition: all .15s; box-shadow: var(--shadow-sm); }
.filter-chip:hover { color: var(--heading); border-color: var(--brand); }
.filter-chip.active { background: linear-gradient(135deg,var(--brand),var(--brand-2)); color: #fff; border-color: transparent; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd-visual { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 480px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); }
.pd-visual .cell-svg { width: min(300px, 68%); height: auto; position: relative; z-index: 2; filter: drop-shadow(0 24px 34px rgba(15,27,51,.16)); }
.pd-visual .cell-glow { position: absolute; }
.pd-info .brand-chip { font-weight: 800; letter-spacing: .08em; }
.pd-info h1 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: 8px 0 10px; }
.pd-info .tagline { color: var(--muted); font-size: 1.1rem; margin-bottom: 22px; }
.pd-keyfacts { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 26px; }
.keyfact { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.keyfact b { display: block; font-size: 1.5rem; color: var(--heading); }
.keyfact span { color: var(--muted-2); font-size: 12px; }
.pd-highlights { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.pd-highlights li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pd-highlights li svg { color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 44px; background: var(--surface); border: 0; color: var(--heading); font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 56px; text-align: center; background: transparent; border: 0; color: var(--heading); font-size: 16px; font-weight: 700; }
.pd-buy { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-note { color: var(--muted-2); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.pd-note svg { width: 16px; height: 16px; color: var(--brand); }

.pd-tabs { margin-top: 64px; }
.pd-section { margin-bottom: 40px; }
.pd-section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.pd-applications { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-applications span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
.box-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.box-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); }
.box-card .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(229,64,78,.1); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.box-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.box-card p { color: var(--muted); font-size: 14px; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table caption { text-align: left; font-weight: 800; font-size: 1.5rem; margin-bottom: 16px; color: var(--heading); }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:nth-child(even) { background: var(--surface-2); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 14px 18px; font-size: 14.5px; }
.spec-table td:first-child { color: var(--muted); width: 48%; }
.spec-table td:last-child { color: var(--heading); font-weight: 700; }

/* ---------- Quote / cart ---------- */
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.quote-items { display: grid; gap: 14px; }
.qitem { display: grid; grid-template-columns: 66px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.qitem .thumb { width: 66px; height: 84px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; padding: 6px; }
.qitem .thumb .cell-svg { height: 100%; width: auto; }
.qitem h4 { font-size: 1.05rem; }
.qitem .meta { color: var(--muted); font-size: 13px; }
.qitem .qctrl { display: flex; align-items: center; gap: 12px; }
.qitem .remove { background: none; border: 0; color: var(--muted-2); cursor: pointer; font-size: 13px; }
.qitem .remove:hover { color: var(--danger); }
.empty-cart { text-align: center; padding: 70px 20px; background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty-cart svg { width: 56px; height: 56px; color: var(--muted-2); margin-bottom: 16px; }

.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; box-shadow: var(--shadow-sm); }
.quote-form h3 { margin-bottom: 6px; }
.quote-form .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 90px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-size: 14px; }
.summary-line.total { color: var(--heading); font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--heading); border: 1px solid var(--heading); color: #fff;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; z-index: 100; opacity: 0;
  transition: transform .3s ease, opacity .3s ease; font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { color: #34d399; width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info .ci-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(229,64,78,.1); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-item .ic svg { width: 20px; height: 20px; }
.contact-info .ci-item h4 { font-size: 1rem; margin-bottom: 2px; }
.contact-info .ci-item p { color: var(--muted); font-size: 14.5px; }

.success-msg { display: none; background: rgba(229,64,78,.07); border: 1px solid var(--brand); border-radius: var(--radius); padding: 30px; text-align: center; }
.success-msg.show { display: block; }
.success-msg svg { width: 54px; height: 54px; color: var(--brand); margin-bottom: 14px; }

/* ---------- About ---------- */
.about-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 40px 0; }
.about-stat { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; box-shadow: var(--shadow-sm); }
.about-stat b { font-size: 2.2rem; display: block; background: linear-gradient(120deg,var(--brand),var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat span { color: var(--muted); font-size: 13px; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.prose p strong { color: var(--heading); }
.prose h2 { margin: 40px 0 16px; font-size: 1.6rem; }

/* ---------- Compare ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.compare thead th { background: var(--surface-2); font-size: 1.05rem; color: var(--heading); }
.compare tbody td:first-child { color: var(--muted); font-weight: 600; }
.compare tbody td { color: var(--heading); }
.compare tbody tr:hover { background: var(--surface-2); }

/* ============================================================
   Solutions / BESS-as-a-Service (leasing)
   ============================================================ */

/* Lease teaser band on home */
.lease-teaser {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0a1428, #16233f);
  border-radius: 24px; padding: 48px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center;
}
.lease-teaser::after { content:""; position:absolute; inset:0;
  background: radial-gradient(560px 320px at 88% -10%, rgba(229,64,78,.32), transparent 60%); }
.lease-teaser .lt-copy { position: relative; z-index: 2; }
.lease-teaser .eyebrow { color: #ff8a93; }
.lease-teaser h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.lease-teaser p { color: rgba(255,255,255,.8); margin-bottom: 24px; max-width: 460px; }
.lease-teaser .lt-stats { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lease-teaser .lt-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 18px; backdrop-filter: blur(6px); }
.lease-teaser .lt-stat b { display: block; font-size: 1.7rem; color: #fff; letter-spacing: -.02em; }
.lease-teaser .lt-stat span { color: rgba(255,255,255,.65); font-size: 12.5px; }

/* Two-column applications split */
.appsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.appcard { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.appcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.appcard .app-glow { position: absolute; inset: 0; opacity: .7;
  background: radial-gradient(360px 220px at 90% 0%, color-mix(in srgb, var(--accent-c, var(--brand)) 14%, transparent), transparent); }
.appcard > * { position: relative; }
.appcard .app-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-c, var(--brand)); }
.appcard h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.appcard p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.appcard .app-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.appcard .am { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.appcard .am b { display: block; font-size: 1.35rem; color: var(--heading); letter-spacing: -.02em; }
.appcard .am span { color: var(--muted-2); font-size: 12px; }

/* Personas (CFO / COO / CEO) */
.personas { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.persona { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.persona:hover { transform: translateY(-4px); border-color: var(--brand); }
.persona .role { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.persona h3 { font-size: 1.2rem; margin-bottom: 16px; }
.persona ul { list-style: none; display: grid; gap: 12px; }
.persona ul li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; }
.persona ul li svg { color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.persona ul li b { color: var(--heading); font-weight: 700; }

/* Industries grid */
.industries { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ind-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.ind-tile:hover { transform: translateY(-3px); border-color: var(--brand); }
.ind-tile .ind-emoji { font-size: 1.7rem; display: block; margin-bottom: 12px; }
.ind-tile h4 { font-size: 1.08rem; margin-bottom: 6px; }
.ind-tile p { color: var(--muted); font-size: 13.5px; }

/* Process timeline */
.timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tl-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.tl-step .tl-num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; }
.tl-step h4 { font-size: 1.12rem; margin-bottom: 7px; }
.tl-step p { color: var(--muted); font-size: 14px; }

/* Compliance badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badges .cb { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--muted); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; }
.badges .cb svg { width: 16px; height: 16px; color: var(--brand); }

@media (max-width: 980px) {
  .lease-teaser, .appsplit, .personas, .industries, .timeline { grid-template-columns: 1fr; }
  .lease-teaser { padding: 32px; }
}

/* ---------- Product shot (detail pages) ---------- */
.product-shot { margin: 4px auto 40px; max-width: 640px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; }
.product-shot img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* ---------- About page flourishes ---------- */
.about-figure { margin: 36px 0 6px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface-2); }
.about-figure img { width: 100%; height: auto; display: block; }
/* Industry-page banners 25% smaller (centered) */
body[data-page="industries"] .about-figure { max-width: 75%; margin-left: auto; margin-right: auto; }
@media (max-width: 620px) { body[data-page="industries"] .about-figure { max-width: 100%; } }
.pullquote { text-align: center; max-width: 820px; margin: 6px auto 0;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose h2 { position: relative; padding-left: 18px; }
.prose h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 3px; background: linear-gradient(var(--brand), var(--brand-2)); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cell-visual { order: -1; min-height: 360px; }
  .product-grid, .features, .steps, .statband { grid-template-columns: repeat(2,1fr); }
  .statband .sb:nth-child(2) { border-right: 0; }
  .brands, .usecases, .box-grid { grid-template-columns: 1fr; }
  .pd, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .pd-visual, .quote-form { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
  .step .arrow { display: none; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; box-shadow: var(--shadow); }
  .nav-links.open a { padding: 12px; }
  .product-grid, .features, .pd-keyfacts, .statband, .box-grid { grid-template-columns: 1fr; }
  .statband .sb { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .float-chip { display: none; }
}

/* ============================================================
   Immersive layer — motion, depth & micro-interactions
   ============================================================ */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--accent));
  box-shadow: 0 0 12px rgba(229,64,78,.5); will-change: transform; }

/* Cursor-follow glow on cards */
.pcard, .box-card, .feature, .ind-card, .brand-box, .persona, .appcard, .tl-step { position: relative; }
.pcard::after, .box-card::after, .feature::after, .ind-card::after,
.brand-box::after, .persona::after, .appcard::after, .tl-step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease; z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(229,64,78,.12), transparent 65%); }
.pcard:hover::after, .box-card:hover::after, .feature:hover::after, .ind-card:hover::after,
.brand-box:hover::after, .persona:hover::after, .appcard:hover::after, .tl-step:hover::after { opacity: 1; }
.pcard > *, .box-card > *, .feature > *, .ind-card > *, .brand-box > *, .persona > *, .tl-step > * { position: relative; z-index: 1; }

/* Richer scroll-reveal + staggered cascade for grid children */
.js .reveal { transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.product-grid > .reveal, .box-grid > .reveal, .features > .reveal, .ind-grid > .reveal,
.usecases > .reveal, .brands > .reveal, .personas > .reveal, .industries > .reveal,
.timeline > .reveal, .appsplit > .reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* Animated count-up shimmer cue */
.counting { background: linear-gradient(120deg, currentColor, currentColor); }

@media (prefers-reduced-motion: no-preference) {
  /* Ken Burns drift on hero photos */
  .hero-banner img { animation: kenburns 26s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1.01); } to { transform: scale(1.07); } }
  /* Drifting hero gradient glow */
  .hero-bg { animation: heroDrift 18s ease-in-out infinite alternate; }
  @keyframes heroDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.06); } }
  /* Floating accent on cards lift */
  .pcard:hover, .box-card:hover, .ind-card:hover { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner img, .hero-bg, .cell-img, .cell-glow, .cell-ring, .float-chip { animation: none !important; }
  .scroll-progress { display: none; }
}
