/* ═══════════════════════════════════════════════
   Sparkleap 炘躍資訊 — 2026 Redesign
   Brand gradient: #E53038 → #F07838 → #F5B030
   ═══════════════════════════════════════════════ */

:root {
  --red:    #E53038;
  --orange: #F07838;
  --gold:   #F5B030;
  --grad:   linear-gradient(90deg, #E53038, #F07838, #F5B030);
  --grad-v: linear-gradient(160deg, #E53038 0%, #F07838 50%, #F5B030 100%);
  --dark:   #0C0E14;
  --dark2:  #161920;
  --light:  #F7F8FB;
  --white:  #FFFFFF;
  --text:   #1A1D26;
  --text2:  #5B606C;
  --border: #E4E6EC;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ── Gradient utilities ── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-bar {
  height: 4px;
  background: var(--grad);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,12,18,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo img { height: 36px; display: block; }

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
nav a:hover { color: var(--gold); background: rgba(240,120,56,.1); }
nav a.active { color: var(--gold); font-weight: 700; }

.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 10px; opacity: .6; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: rgba(14,16,22,.97);
  border: 1px solid rgba(240,120,56,.2);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(240,120,56,.08);
  min-width: 180px;
  padding: 6px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}

/* Gradient underline for active nav item */
nav a.active { position: relative; }

/* ═══════════════════════════════════════════════
   HERO — Full-screen
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 92vh; min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(10,12,18,.82) 0%,
    rgba(20,18,14,.70) 55%,
    rgba(229,48,56,.25) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}
.hero-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 34px;
  font-size: 30px; font-weight: 800; letter-spacing: 8px;
  color: var(--gold);
}
.hero h1 {
  font-size: 68px; font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.hero-sub {
  font-size: 20px; color: rgba(255,255,255,.82);
  line-height: 1.8;
  margin-bottom: 38px;
  max-width: 660px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(90deg, #E53038, #F07838, #F5B030, #F07838, #E53038);
  background-size: 300% 100%;
  color: var(--white); font-weight: 700; font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(240,120,56,.4);
  animation: gradientFlow 4s linear infinite;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(240,120,56,.55), 0 0 60px rgba(229,48,56,.2);
  animation-duration: 2s;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white); font-weight: 600; font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 24px;
  text-decoration: none;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero — short variant for sub-pages */
.hero-sm {
  height: 40vh; min-height: 240px;
  align-items: flex-end;
  padding-bottom: 48px;
}
.hero-sm .hero-inner { text-align: left; max-width: 760px; }
.hero-sm h1 { font-size: 52px; margin-bottom: 0; }
.hero-sm .hero-eyebrow { display: block; }

/* ═══════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════ */
.stats-bar {
  background: var(--dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
}
.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 42px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px; color: rgba(255,255,255,.55);
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 36px;
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}
.section h2 {
  font-size: 40px; font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section h2 span { /* gradient accent on part of heading */
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section > .grad-bar { width: 56px; margin-bottom: 28px; }
.section p { color: var(--text2); margin-bottom: 20px; max-width: 680px; }
.section p.wide { max-width: none; }

/* Alternating background for sections */
.section-bg { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.65); }
.section-dark .section-label { color: var(--gold); }

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════════
   VALUE CARDS (3 icons)
   ═══════════════════════════════════════════════ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--white);
  border: 1px solid rgba(240,120,56,.15);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.value-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  border-radius: var(--radius) var(--radius) 0 0;
}
.value-card:hover {
  box-shadow: 0 12px 40px rgba(240,120,56,.14), 0 0 0 1px rgba(240,120,56,.25);
  transform: translateY(-6px);
  border-color: rgba(240,120,56,.35);
}
.value-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.value-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.value-card p { font-size: 15px; color: var(--text2); margin: 0; max-width: none; }

/* ═══════════════════════════════════════════════
   REGION TAGS
   ═══════════════════════════════════════════════ */
.region-grid {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px;
}
.region-tag {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
}
.region-tag .flag { font-size: 22px; }

/* ═══════════════════════════════════════════════
   SERVICE CARDS (6-grid)
   ═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(240,120,56,.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.service-card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,.12), 0 0 0 1px rgba(240,120,56,.22), 0 0 32px rgba(240,120,56,.08);
  transform: translateY(-6px);
  border-color: rgba(240,120,56,.35);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: block;
}
.service-card-body { padding: 24px 22px; }
.service-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.service-card h3 {
  font-size: 19px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; color: var(--text2); margin: 0; max-width: none; line-height: 1.75; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 14px; font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.service-card-link:hover { text-decoration: underline; }

/* Solutions page — detailed cards */
.sol-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 36px;
}
.sol-section.reverse { direction: rtl; }
.sol-section.reverse > * { direction: ltr; }
.sol-section img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.sol-body .sol-tag {
  display: inline-block;
  background: linear-gradient(90deg,rgba(229,48,56,.12),rgba(245,176,48,.12));
  color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.sol-body h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; line-height: 1.3; }
.sol-body p { color: var(--text2); margin-bottom: 16px; max-width: none; }

/* ═══════════════════════════════════════════════
   NEWS ACCORDION
   ═══════════════════════════════════════════════ */
.news-list { max-width: 860px; margin: 0 auto; }
.news-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.news-item details summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 8px;
  transition: background .15s;
}
.news-item details summary:hover { background: var(--light); }
.news-item details summary::-webkit-details-marker { display: none; }
.news-date {
  font-size: 13px; font-weight: 700;
  color: var(--text2);
  white-space: nowrap;
  line-height: 1.4;
}
.news-title {
  font-size: 20px; font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.news-chevron {
  font-size: 14px; color: var(--text2);
  transition: transform .25s;
  flex-shrink: 0;
}
.news-item details[open] .news-chevron { transform: rotate(180deg); }
.news-body {
  padding: 4px 8px 36px 138px;
  color: var(--text2);
  line-height: 1.9;
}
.news-body p { margin-bottom: 16px; max-width: 720px; }

/* ═══════════════════════════════════════════════
   PARTNER CARDS
   ═══════════════════════════════════════════════ */
.partner-hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  transition: box-shadow .25s;
}
.partner-hero-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.12); }
.partner-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.partner-card-body { padding: 40px 36px; }
.partner-card-body .sol-tag { margin-bottom: 12px; }
.partner-card-body h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.partner-card-body p { color: var(--text2); font-size: 15px; margin-bottom: 20px; max-width: none; }

/* Product accordion (Enetek) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.product-card img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: contain; background: var(--light); padding: 12px; }
.product-card h4 { font-size: 15px; font-weight: 700; padding: 14px 12px 4px; }
.product-card span { font-size: 13px; color: var(--text2); display: block; padding-bottom: 14px; }

/* ── Product Series v2 (enetek-power redesign) ── */
.prod-category-block { margin-bottom: 56px; }
.prod-category-block + .prod-category-block { padding-top: 52px; border-top: 1px solid var(--border); }
.prod-cat-header { margin-bottom: 28px; }
.prod-cat-tag { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 8px; }
.prod-cat-name { font-size: 21px; font-weight: 800; color: var(--dark); }

.prod-feature-card {
  display: grid; grid-template-columns: 3fr 2fr;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  margin-bottom: 16px; background: #fff; transition: box-shadow .2s, border-color .2s;
}
.prod-feature-card:last-child { margin-bottom: 0; }
.prod-feature-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.08); border-color: var(--orange); }
.pfc-img {
  background: #F7F8FA; padding: 32px 40px;
  display: flex; align-items: center; justify-content: center; min-height: 220px;
}
.pfc-img img { width: 100%; max-height: 240px; object-fit: contain; }
.pfc-body {
  padding: 32px 36px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.pfc-body h4 { font-size: 21px; font-weight: 800; color: var(--dark); margin: 0; }
.pfc-model { font-size: 13px; color: var(--text2); }
.pfc-power { font-size: 16px; font-weight: 700; color: var(--orange); }
.pfc-desc { font-size: 14px; color: var(--text2); line-height: 1.8; margin-top: 4px; }

.prod-acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-acc-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.prod-acc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--orange); }
.pac-img { background: #F7F8FA; padding: 24px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.pac-img img { width: 100%; height: 100%; object-fit: contain; }
.pac-body { padding: 18px 20px 22px; }
.pac-body h4 { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.pac-spec { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.contact-info .grad-bar { width: 48px; margin-bottom: 28px; }
.contact-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: 13px; color: var(--text2); margin-bottom: 2px; letter-spacing: .5px; text-transform: uppercase; }
.contact-row a, .contact-row span { color: var(--text); text-decoration: none; font-size: 16px; }
.contact-row a:hover { color: var(--orange); text-decoration: underline; }
.contact-map iframe { width: 100%; height: 400px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ═══════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════ */
.cta-banner {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 80px 36px;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-v);
  opacity: .12;
}
.cta-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-banner h2 { font-size: 38px; font-weight: 800; color: var(--white); margin-bottom: 14px; line-height: 1.3; }
.cta-banner p { color: rgba(255,255,255,.65); font-size: 17px; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  background: var(--dark2);
  padding: 48px 36px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand .logo-footer {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand .logo-footer img { height: 32px; opacity: .9; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 200px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a {
  display: block; color: rgba(255,255,255,.65);
  font-size: 14px; text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  font-size: 14px; font-weight: 700; font-family: Arial, sans-serif;
  text-decoration: none;
  transition: background .2s;
}
.footer-social a:hover { background: #2867B2; color: #fff; }
.footer-mail {
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.footer-mail a { color: var(--orange); text-decoration: none; }
.footer-mail a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   PAGE-HEADING SECTION (inside page)
   ═══════════════════════════════════════════════ */
.page-intro {
  background: var(--light);
  padding: 64px 36px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-intro .section-label { display: block; margin-bottom: 12px; }
.page-intro h1 { font-size: 46px; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.page-intro p { color: var(--text2); max-width: 600px; margin: 0 auto; }

/* ═══════════════════════════════════════════════
   TRANSCEIVER (自有品牌)
   ═══════════════════════════════════════════════ */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px; text-align: left; }
.spec-table th { background: var(--light); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); }
.spec-table tr:hover td { background: #FFFBF5; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  header { padding: 0 20px; }
  nav { display: none; }

  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 16px; }
  .hero-sm h1 { font-size: 34px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.08); }

  .two-col,
  .sol-section,
  .partner-hero-card,
  .contact-wrap,
  .footer-top { grid-template-columns: 1fr; }
  .sol-section.reverse { direction: ltr; }
  .partner-hero-card img { min-height: 220px; }

  .section { padding: 56px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-feature-card { grid-template-columns: 1fr; }
  .pfc-body { border-left: none; border-top: 1px solid var(--border); }
  .prod-acc-grid { grid-template-columns: repeat(2, 1fr); }

  .news-body { padding-left: 8px; }
  .news-item details summary { grid-template-columns: 1fr; gap: 8px; }

  .footer-links { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .prod-acc-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   TECH LAYER — Animations & Science Fiction UI
   ═══════════════════════════════════════════════ */

/* ── Core keyframes ── */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245,176,48,.5); }
  50%       { box-shadow: 0 0 18px rgba(245,176,48,.9), 0 0 36px rgba(229,48,56,.3); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scanLine {
  0%   { top: -4px; opacity: .7; }
  100% { top: 102%; opacity: 0; }
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes eyebrowEnter {
  0%   { opacity: 0; transform: scale(.6) translateY(-16px); letter-spacing: 2px;
         box-shadow: none; }
  60%  { opacity: 1; transform: scale(1.06) translateY(2px); letter-spacing: 10px; }
  80%  { transform: scale(.97) translateY(0); letter-spacing: 7px; }
  100% { opacity: 1; transform: scale(1) translateY(0); letter-spacing: 8px;
         box-shadow: 0 0 28px rgba(245,176,48,.18), 0 0 60px rgba(229,48,56,.08),
                     inset 0 0 24px rgba(245,176,48,.06); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ── Scroll-reveal system ── */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .72s cubic-bezier(.16,1,.3,1),
              transform .72s cubic-bezier(.16,1,.3,1);
}
.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(.93); }
.reveal.visible, .reveal-left.visible,
.reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .28s; }
.d4 { transition-delay: .38s; }
.d5 { transition-delay: .48s; }
.d6 { transition-delay: .58s; }

/* ── Hero canvas layer ── */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .hero-inner  { z-index: 2; }
.hero .hero-scroll { z-index: 2; }
.hero::before      { z-index: 1; }

/* ── Scan line sweeping over hero ── */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(240,120,56,.55) 40%,
    rgba(245,176,48,.55) 60%, transparent 100%);
  animation: scanLine 5s linear infinite;
  z-index: 3;
  pointer-events: none;
}

/* ── Tech eyebrow badge ── */
.hero-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 34px;
  padding: 14px 44px;
  border: 1.5px solid rgba(245,176,48,.55);
  border-radius: 50px;
  background: rgba(8,6,2,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 30px; font-weight: 800; letter-spacing: 8px;
  color: var(--gold);
  animation: eyebrowEnter .9s cubic-bezier(.16,1,.3,1) both;
  box-shadow:
    0 0 28px rgba(245,176,48,.18),
    0 0 60px rgba(229,48,56,.08),
    inset 0 0 24px rgba(245,176,48,.06);
  text-shadow: 0 0 22px rgba(245,176,48,.6);
}
.hero-eyebrow::before { content: none; }

/* ── Hero text reveal order ── */
.hero h1     { animation: heroReveal .75s .15s ease both; }
.hero-sub    { animation: heroReveal .75s .35s ease both; }
.hero-actions{ animation: heroReveal .75s .52s ease both; }

/* ── Typewriter cursor ── */
.tw-cursor {
  display: inline-block;
  width: 3px; height: .82em;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: text-top;
  border-radius: 1px;
  animation: blink .75s step-end infinite;
}

/* ── Stats bar glow ── */
.stats-bar {
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%,
    rgba(240,120,56,.08), transparent);
  pointer-events: none;
}
.stat-item {
  position: relative;
  transition: background .3s;
}
.stat-item:hover { background: rgba(240,120,56,.05); }

/* ── Header gradient bottom line ── */
header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(229,48,56,.45) 30%,
    rgba(245,176,48,.45) 70%, transparent 100%);
  pointer-events: none;
}
header { position: sticky; }   /* ensure ::after works */

/* ── CTA banner animated gradient ── */
.cta-banner {
  background: linear-gradient(270deg, #0c0e14, #190c07, #080c16, #0c0e14);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
}
.cta-banner::before {
  background: radial-gradient(ellipse 60% 70% at 50% 50%,
    rgba(240,120,56,.1), transparent 70%);
  opacity: 1;
  animation: none;
}

/* ── Circuit dot grid for dark sections ── */
.section-dark {
  position: relative;
  overflow: hidden;
}
.section-dark::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(240,120,56,.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.section-dark .section { position: relative; z-index: 1; }

/* ── Footer gradient top line ── */
footer { position: relative; }
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}

/* ── Section label pill ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
  border-radius: 1px;
}

/* ── Region tags hover ── */
.region-tag {
  cursor: default;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.region-tag:hover {
  border-color: rgba(240,120,56,.4);
  box-shadow: 0 4px 16px rgba(240,120,56,.1);
  transform: translateY(-2px);
  background: rgba(240,120,56,.04);
}

/* ── Page-intro dark variant ── */
.page-intro {
  background: var(--dark);
  color: var(--white);
  border-bottom: none;
}
.page-intro h1 { color: var(--white); }
.page-intro p  { color: rgba(255,255,255,.62); }
.page-intro .section-label { color: var(--gold); }
