/* =============================================
   RAYO LITHIUM ION BATTERIES — THEME
   ============================================= */
:root {
  --primary: #8bd61f;
  --primary-dark: #6fb012;
  --accent: #2fb4ff;
  --navy: #0b2a5b;
  --bg-dark: #050b14;
  --bg-mid: #081321;
  --bg-card: #0d1b2e;
  --bg-card-hover: #11233b;
  --text: #eaf2f8;
  --muted: #9db0c2;
  --border: rgba(139, 214, 31, 0.28);
  --border-soft: rgba(255, 255, 255, 0.08);
  --glow: 0 0 20px rgba(139, 214, 31, 0.45);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --header-h: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.accent { color: var(--primary); }
.accent-glow { color: var(--primary); text-shadow: 0 0 30px rgba(139, 214, 31, 0.6); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: var(--bg-dark);
  padding: 0.6rem 1rem; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { background: rgba(5, 11, 20, 0.98); box-shadow: var(--glow); }
.navbar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0 4%;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { font-size: 1.4rem; filter: drop-shadow(0 0 8px var(--primary)); }
.logo-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.08em; }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-weight: 600; font-size: 0.92rem; color: var(--muted);
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  border: 1.5px solid var(--primary); color: var(--primary);
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; transition: var(--transition); white-space: nowrap;
}
.btn-nav:hover { background: var(--primary); color: var(--bg-dark); box-shadow: var(--glow); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem; border-radius: 50px;
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; transition: var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--bg-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 214, 31, 0.45); }
.btn-secondary { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--bg-dark); transform: translateY(-2px); }
.btn-dark { background: var(--bg-dark); color: var(--primary); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

/* ===== SECTION COMMONS ===== */
section { padding: 6rem 4%; scroll-margin-top: var(--header-h); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  background: rgba(47, 180, 255, 0.1); border: 1px solid rgba(47, 180, 255, 0.3);
  padding: 0.3rem 1rem; border-radius: 50px;
}
.section-header h2 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 0.8rem;
}
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; gap: 3rem;
  padding-top: calc(var(--header-h) + 3rem);
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(139, 214, 31, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(47, 180, 255, 0.08) 0%, transparent 50%);
}
.hero-content { flex: 1; max-width: 620px; }
.hero-badge {
  display: inline-block; margin-bottom: 1.5rem;
  background: rgba(139, 214, 31, 0.1); border: 1px solid var(--border);
  color: var(--primary); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
}
.hero-title { font-family: var(--font-heading); font-weight: 900; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-title .line1 { display: block; font-size: clamp(2rem, 5vw, 3.8rem); }
.hero-title .line2 { display: block; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-heading); font-weight: 900; font-size: 1.4rem; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-visual {
  flex: 1; position: relative; min-height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid; animation: spin 20s linear infinite; }
.ring1 { width: 420px; height: 420px; border-color: rgba(139, 214, 31, 0.2); }
.ring2 { width: 320px; height: 320px; border-color: rgba(47, 180, 255, 0.18); animation-direction: reverse; animation-duration: 15s; }
.hero-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 214, 31, 0.3) 0%, transparent 70%);
}
.hero-img {
  position: relative; z-index: 2; width: min(340px, 80%);
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow);
  animation: float 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== MARQUEE ===== */
.marquee-strip {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  padding: 0.7rem 0; overflow: hidden;
}
.marquee-inner { display: flex; gap: 3rem; width: max-content; white-space: nowrap; animation: marquee 25s linear infinite; }
.marquee-inner span { font-family: var(--font-heading); font-size: 0.76rem; font-weight: 700; color: var(--bg-dark); letter-spacing: 0.1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== GALLERY ===== */
.batteries-section { background: var(--bg-mid); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.gallery-card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.gallery-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: 0 20px 50px rgba(139, 214, 31, 0.12); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card figcaption { padding: 1.3rem 1.4rem 1.5rem; }
.gallery-card h3 { font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--primary); }
.gallery-card p { color: var(--muted); font-size: 0.92rem; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid rgba(47, 180, 255, 0.12);
  border-radius: var(--radius); padding: 2rem 1.6rem; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(47, 180, 255, 0.35); background: var(--bg-card-hover); }
.feature-icon { font-size: 2.3rem; margin-bottom: 0.9rem; }
.feature-card h3 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--accent); margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

/* ===== POUCH CELLS ===== */
.pouch-section { background: var(--bg-mid); }
.pouch-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; max-width: 1150px; margin: 0 auto; }
.pouch-media {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.pouch-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pouch-media figcaption { padding: 0.8rem 1rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
.pouch-intro { font-size: 1.05rem; margin-bottom: 1.8rem; }
.pouch-intro strong { color: var(--primary); }
.advantage-list { display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
.advantage-list li {
  background: var(--bg-card); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.advantage-list h3 { font-family: var(--font-heading); font-size: 0.92rem; margin-bottom: 0.35rem; }
.advantage-list p { color: var(--muted); font-size: 0.93rem; }
.pouch-note { color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* ===== SPECIFICATIONS TABLE ===== */
.table-card {
  max-width: 820px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.table-wrap { overflow-x: auto; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.specs-table thead th {
  background: var(--navy); color: #fff;
  font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0.04em;
  padding: 1rem 1.5rem;
}
.specs-table th:first-child, .specs-table td:first-child { text-align: left; border-right: 1px solid var(--border-soft); }
.specs-table th:last-child, .specs-table td:last-child { text-align: right; }
.specs-table td { padding: 0.7rem 1.5rem; border-bottom: 1px solid var(--border-soft); }
.specs-table td:first-child { font-weight: 600; }
.specs-table td:last-child { color: var(--primary); font-weight: 600; }
.specs-table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.specs-table tbody tr:hover { background: rgba(139, 214, 31, 0.08); }
.specs-table tbody + tbody tr:first-child td { border-top: 2px solid var(--accent); }
.table-note { padding: 1rem 1.5rem 1.3rem; color: var(--muted); font-size: 0.85rem; }

/* ===== DELIVERY BAND ===== */
.delivery-section { padding-top: 0; }
.delivery-band {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-dark); border-radius: var(--radius); padding: 2rem 2.5rem;
}
.delivery-icon { font-size: 2.8rem; }
.delivery-text { flex: 1; min-width: 220px; }
.delivery-text h2 { font-family: var(--font-heading); font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 900; }
.delivery-text p { font-weight: 600; }

/* ===== CONTACT ===== */
.contact-section { background: linear-gradient(180deg, var(--bg-mid), var(--bg-dark)); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; text-align: center; transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.contact-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.contact-card h3 { font-family: var(--font-heading); font-size: 0.85rem; color: var(--primary); margin-bottom: 0.4rem; letter-spacing: 0.06em; }
.contact-card a { color: var(--muted); word-break: break-word; }
.contact-card a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 4rem 4% 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { display: block; font-size: 1.05rem; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 340px; }
.footer h2 { font-family: var(--font-heading); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links ul, .footer-contact ul { display: grid; gap: 0.55rem; }
.footer-links a, .footer-contact a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-soft); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  color: var(--muted); font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { gap: 1.2rem; }
  .btn-nav { display: none; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-bottom: 4rem; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { min-height: 360px; width: 100%; }
  .ring1 { width: 320px; height: 320px; }
  .ring2 { width: 240px; height: 240px; }
  .pouch-grid { grid-template-columns: 1fr; }
  .pouch-media { position: static; max-width: 480px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 1.3rem; padding: 2rem 6%;
    background: rgba(5, 11, 20, 0.98); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  section { padding: 4.5rem 5%; }
  .delivery-section { padding-top: 0; }
  .delivery-band { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .specs-table td, .specs-table thead th { padding: 0.65rem 1rem; }
}
@media (max-width: 480px) {
  .stat-divider { display: none; }
  .hero-stats { gap: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.load-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem 0; }
