/* ═══════════════════════════════════════════════
   RESON ENERGY — Premium Design System
   Apple/Stripe-inspired, zero dependencies
   Light/Dark mode with system preference detection
   ═══════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES — Light Mode (default) ─── */
:root {
  /* Colors — Light */
  --bg:            #f8fafc;
  --bg-surface:    #ffffff;
  --bg-surface-2:  #f1f5f9;
  --bg-elevated:   #ffffff;
  --text:          #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;
  --accent:        #2563eb;
  --accent-light:  #3b82f6;
  --accent-dark:   #1d4ed8;
  --accent-glow:   rgba(37,99,235,0.25);
  --accent-subtle: rgba(37,99,235,0.10);
  --border:        rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.18);
  --glass-bg:      rgba(15,23,42,0.75);
  --glass-border:  rgba(255,255,255,0.10);
  --accent-border: rgba(37,99,235,0.20);

  /* Green secondary accent (energy/sustainability) */
  --accent-green:    #059669;
  --accent-green-light: #10b981;
  --accent-gradient:  linear-gradient(135deg, var(--accent), var(--accent-green));

  /* Stronger section alternation */
  --bg-section-alt:  #eef2f7;

  /* Dark footer (dark even in light mode) */
  --bg-footer:       #0f172a;
  --bg-footer-2:     #0b1120;
  --text-on-footer:  #e2e8f0;
  --text-on-footer-muted: #94a3b8;

  /* Glassmorphism card tokens */
  --card-bg:           rgba(255,255,255,0.80);
  --card-border:       rgba(0,0,0,0.08);
  --card-border-hover: rgba(37,99,235,0.25);
  --card-shadow-hover: 0 12px 40px -8px rgba(37,99,235,0.15), 0 4px 12px rgba(0,0,0,0.06);
  --card-glow-hover:   0 0 30px rgba(37,99,235,0.12);

  /* Hero overlay & orbs */
  --hero-overlay:    linear-gradient(135deg, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.45) 50%, rgba(30,58,138,0.55) 100%);
  --hero-orb-1:      rgba(37,99,235,0.35);
  --hero-orb-2:      rgba(5,150,105,0.25);

  /* Noise texture */
  --noise-opacity: 0.03;

  /* Shadows — Light (softer) */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 25px -5px rgba(0,0,0,0.10), 0 4px 10px -3px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 50px -12px rgba(0,0,0,0.15), 0 8px 20px -8px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Semantic — On Accent */
  --on-accent:     #ffffff;

  /* Semantic — Error */
  --error:         #dc2626;
  --error-bg:      rgba(220,38,38,0.08);
  --error-border:  rgba(220,38,38,0.15);

  /* Semantic — Success */
  --success:       #16a34a;
  --success-bg:    rgba(22,163,74,0.08);
  --success-border:rgba(22,163,74,0.15);

  /* Semantic — Spinner (on accent bg) */
  --spinner-track: rgba(255,255,255,0.3);
  --spinner-head:  #ffffff;

  /* Semantic — CTA Strip (blue gradient bg) */
  --cta-text:          #ffffff;
  --cta-text-secondary:rgba(255,255,255,0.85);
  --cta-highlight-1:   rgba(255,255,255,0.15);
  --cta-highlight-2:   rgba(255,255,255,0.10);
  --cta-btn-bg:        #ffffff;
  --cta-btn-bg-hover:  #f0f4ff;
  --cta-btn-shadow:    rgba(37,99,235,0.30);
  --cta-btn-shadow-hover: rgba(37,99,235,0.40);

  /* Semantic — Hero */
  --hero-glow-1:    rgba(37,99,235,0.15);
  --hero-glow-2:    rgba(37,99,235,0.10);
  --hero-title-from:#0c1a3d;
  --hero-title-to:  #1d4ed8;
  --hero-scroll:    rgba(0,0,0,0.40);

  /* Semantic — Select Chevron */
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
  --text-xs:   clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
  --text-sm:   clamp(0.8125rem, 0.77rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.25vw, 1rem);
  --text-lg:   clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  --text-3xl:  clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  --text-5xl:  clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --text-hero-sub: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --section-gap: clamp(3rem, 2.5rem + 3vw, 6rem);

  /* Borders & Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* Layout */
  --header-height: 72px;
  --promo-height: 40px;
}

/* ─── Dark Mode Overrides ─── */
:root.dark {
  --bg:            #080c14;
  --bg-surface:    #0f1520;
  --bg-surface-2:  #141d2e;
  --bg-elevated:   #1a2436;
  --text:          #f0f4ff;
  --text-secondary:#8b9dc3;
  --text-muted:    #4a5d7a;
  --accent:        #3b82f6;
  --accent-light:  #60a5fa;
  --accent-dark:   #2563eb;
  --accent-glow:   rgba(59,130,246,0.2);
  --accent-subtle: rgba(59,130,246,0.08);
  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --glass-bg:      rgba(8,12,20,0.8);
  --glass-border:  rgba(255,255,255,0.08);
  --accent-border: rgba(59,130,246,0.20);

  --accent-green:    #10b981;
  --accent-green-light: #34d399;
  --accent-gradient:  linear-gradient(135deg, var(--accent), var(--accent-green));

  --bg-section-alt:  #111827;
  --bg-footer:       #060a12;
  --bg-footer-2:     #040710;
  --text-on-footer:  #cbd5e1;
  --text-on-footer-muted: #94a3b8;

  --card-bg:           rgba(15,21,32,0.75);
  --card-border:       rgba(255,255,255,0.06);
  --card-border-hover: rgba(59,130,246,0.30);
  --card-shadow-hover: 0 12px 40px -8px rgba(59,130,246,0.20), 0 4px 12px rgba(0,0,0,0.15);
  --card-glow-hover:   0 0 30px rgba(59,130,246,0.15);

  --hero-overlay:    linear-gradient(135deg, rgba(8,12,20,0.80) 0%, rgba(8,12,20,0.60) 50%, rgba(30,58,138,0.50) 100%);
  --hero-orb-1:      rgba(59,130,246,0.20);
  --hero-orb-2:      rgba(16,185,129,0.15);

  --noise-opacity: 0.04;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.15);
  --shadow-lg:  0 10px 25px rgba(0,0,0,0.25), 0 4px 10px rgba(0,0,0,0.15);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.15);

  --on-accent:     #ffffff;
  --error:         #ef4444;
  --error-bg:      rgba(239,68,68,0.1);
  --error-border:  rgba(239,68,68,0.2);
  --success:       #22c55e;
  --success-bg:    rgba(34,197,94,0.1);
  --success-border:rgba(34,197,94,0.2);

  --cta-btn-shadow:      rgba(0,0,0,0.2);
  --cta-btn-shadow-hover: rgba(0,0,0,0.25);

  --hero-glow-1:    rgba(59,130,246,0.15);
  --hero-glow-2:    rgba(59,130,246,0.08);
  --hero-title-from:#f0f4ff;
  --hero-title-to:  var(--accent-light);
  --hero-scroll:    rgba(255,255,255,0.4);

  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5d7a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ─── Theme transition (applied after first paint to avoid FOUC) ─── */
/* Only body/html get theme transitions — components with existing
   transition: all/transform rules are NOT overridden here. */
html.theme-ready,
html.theme-ready body {
  transition: background-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-md); }

/* ─── FOCUS ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── LAYOUT ─── */
.wrapper {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrapper { width: min(1200px, 100% - 4rem); }
}

/* ═══════════════════════════════════════════════
   PROMO BAR (fixed strip above header)
   ═══════════════════════════════════════════════ */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--promo-height);
  display: flex;
  align-items: center;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: var(--text-sm);
  line-height: 1.3;
  overflow: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}
.promo-bar__text {
  margin: 0;
  text-align: center;
}
.promo-bar__text strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.promo-bar__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  font-weight: 600;
}
.promo-bar__link:hover {
  text-decoration-thickness: 2px;
}
.promo-bar__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.promo-bar__close:hover {
  background: rgba(255,255,255,0.30);
}
.promo-bar__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Promo bar fading out */
.promo-bar.is-hiding {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* ─── :has() auto-adjustment when promo bar is present ─── */
body:has(.promo-bar) .header {
  top: var(--promo-height);
}
body:has(.promo-bar) .hero {
  padding-top: calc(var(--header-height) + var(--promo-height) + 2rem);
}
body:has(.promo-bar) .contact-page {
  padding-top: calc(var(--header-height) + var(--promo-height) + var(--space-2xl));
}
body:has(.promo-bar) .contact-page__form-wrap {
  top: calc(var(--header-height) + var(--promo-height) + var(--space-xl));
}

/* ─── Responsive promo bar sizing ─── */
@media (max-width: 767px) {
  :root { --promo-height: 56px; }
  .promo-bar { font-size: var(--text-xs); }
  .promo-bar__inner { gap: var(--space-sm); }
}
@media (max-width: 479px) {
  :root { --promo-height: 68px; }
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              backdrop-filter var(--duration-base) var(--ease-out);
}
.header[data-scrolled="true"] {
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
/* Header over dark hero — force light text in light mode (home page only) */
:root:not(.dark) .header:not([data-subpage="true"]) .header__logo-name,
:root:not(.dark) .header:not([data-subpage="true"]) .nav-link,
:root:not(.dark) .header:not([data-subpage="true"]) .theme-toggle {
  color: rgba(255,255,255,0.75);
}
:root:not(.dark) .header:not([data-subpage="true"]) .nav-link:hover,
:root:not(.dark) .header:not([data-subpage="true"]) .nav-link.active,
:root:not(.dark) .header:not([data-subpage="true"]) .theme-toggle:hover {
  color: #fff;
}
/* Sub-pages: dark text + light background in light mode */
:root:not(.dark) .header[data-subpage="true"] {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-lg);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.header__logo img {
  height: clamp(40px, 8vw, 60px);
  width: auto;
}
.header__logo-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.header__nav {
  display: none;
  margin-left: auto;
}
.nav-list {
  display: flex;
  gap: var(--space-xl);
}
.nav-link {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-sm) var(--space-xs);
  transition: color var(--duration-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--duration-base) var(--ease-out);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.header__actions {
  display: none;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}
.header__cta {
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.header__cta svg {
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: var(--space-sm) var(--space-md);
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  z-index: 1001;
}
.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
/* Disable backdrop-filter when menu is open — it creates a containing block
   for position:fixed children, trapping the mobile-menu in the 72px header */
.header.menu-open,
.header.menu-open[data-scrolled="true"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mobile-menu__list {
  text-align: center;
}
.mobile-menu__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.mobile-menu.open .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mobile-menu__item:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.open .mobile-menu__item:nth-child(2) { transition-delay: 200ms; }
.mobile-menu.open .mobile-menu__item:nth-child(3) { transition-delay: 300ms; }
.mobile-menu.open .mobile-menu__item:nth-child(4) { transition-delay: 400ms; }
.mobile-menu.open .mobile-menu__item:nth-child(5) { transition-delay: 500ms; }
.mobile-menu__link {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  padding: var(--space-lg) 0;
  color: var(--text);
  transition: color var(--duration-fast);
}
.mobile-menu__link:hover {
  color: var(--accent);
}

/* Desktop nav visible */
@media (min-width: 768px) {
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .header__nav { display: block; }
  .header__actions { display: flex; }
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep on hover */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  transition: left var(--duration-slow) var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover::after {
  left: 100%;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--sm {
  font-size: var(--text-sm);
  padding: 0.5rem 1.25rem;
}
.btn--lg {
  font-size: var(--text-lg);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   HERO — Text-only, CSS gradient background
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('pics/hero-new.jpg') center/cover no-repeat fixed;
  background: url('pics/hero-new.webp') center/cover no-repeat fixed;
  padding: calc(var(--header-height) + 2rem) 0 var(--space-3xl);
}
/* Gradient overlay on hero background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}
/* Floating orbs for depth */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.hero__orb--blue {
  width: clamp(250px, 35vw, 450px);
  height: clamp(250px, 35vw, 450px);
  background: var(--hero-orb-1);
  top: -10%;
  left: -10%;
  animation: hero-float-1 8s ease-in-out infinite;
}
.hero__orb--green {
  width: clamp(200px, 30vw, 380px);
  height: clamp(200px, 30vw, 380px);
  background: var(--hero-orb-2);
  bottom: -5%;
  right: -5%;
  animation: hero-float-2 10s ease-in-out infinite;
}
@keyframes hero-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, 20px); }
}
@keyframes hero-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, -30px); }
}
/* iOS: disable fixed attachment (breaks on mobile Safari) */
@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll; }
}
@media (max-width: 767px) {
  .hero {
    background-image: url('pics/hero-new-mobile.webp');
    background-image: image-set(url('pics/hero-new-mobile.webp') type('image/webp'), url('pics/hero-new.jpg') type('image/jpeg'));
    background-attachment: scroll;
  }
}

.hero__content {
  text-align: center;
  color: #ffffff;
  padding-bottom: var(--space-3xl);
  position: relative;
  z-index: 2;
}
.hero__kicker {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  padding: 0.4rem 1.25rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-bottom: 0.1em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-light) 70%, var(--accent-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: var(--text-hero-sub);
  color: rgba(255,255,255,0.80);
  max-width: 860px;
  margin: 0 auto var(--space-2xl);
  font-weight: 400;
  line-height: 1.6;
}
.hero__cta {
  font-size: var(--text-base);
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  animation: hero-bounce 2s ease-in-out infinite;
  animation-delay: 1.5s;
  opacity: 0;
  animation-fill-mode: forwards;
  z-index: 2;
}
@keyframes hero-bounce {
  0%   { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%  { opacity: 0.8; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════════
   SECTIONS — Base
   ═══════════════════════════════════════════════ */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}
.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}
.kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}
.section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: var(--space-xs);
}
/* Override gradient text for dark-bg sections */
.cta-strip .section__title,
.cta-strip h2 {
  background: none;
  -webkit-text-fill-color: var(--cta-text);
}
.footer .section__title {
  background: none;
  -webkit-text-fill-color: var(--text-on-footer);
}
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-md);
  line-height: 1.6;
}
.section__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  line-height: 1.7;
}

/* ─── Company Intro ─── */
.section--intro {
  background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 100%);
  text-align: center;
}
.intro__lead {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-md);
}
.intro__heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.intro__boxes {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.intro__box {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
/* Gradient accent left border */
.intro__box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
}
.intro__box:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover), var(--card-glow-hover);
  transform: translateY(-2px);
}
.intro__box-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ─── BESS Explainer ─── */
.section--bess-explain {
  background: var(--bg);
}
.bess-intro {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}
.bess-intro p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-md);
}
.bess-segments {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}
.bess-segment {
  padding: clamp(1.5rem, 1.25rem + 0.5vw, 2rem);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.bess-segment::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
}
.bess-segment:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover), var(--card-glow-hover);
}
.bess-segment__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.bess-segment__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}
.bess-segment__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}
.bess-segment__benefit {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.bess-segment__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.bess-segment__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1em;
  position: relative;
}
.bess-segment__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}
.bess-segment__list li strong {
  color: var(--text);
}

/* ─── Linyang Brand Section ─── */
.section--linyang {
  background: var(--bg-surface-2);
}
.stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  justify-content: center;
}
.stat-badge {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.stat-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-glow);
}
.linyang-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}
.linyang-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: color var(--duration-fast);
}
.linyang-link svg {
  transition: transform var(--duration-base) var(--ease-out);
}
.linyang-link:hover {
  color: var(--accent-light);
}
.linyang-link:hover svg {
  transform: translateX(4px);
}

/* Linyang logo: color in light, black (inverted to white) in dark */
.linyang-logo__light { display: inline-block !important; }
.linyang-logo__dark  { display: none !important; }
:root.dark .linyang-logo__light { display: none !important; }
:root.dark .linyang-logo__dark  { display: inline-block !important; }

/* ─── YouTube Embed ─── */
.video-embed {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Products Section ─── */
.section--products {
  background: var(--bg);
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover), var(--card-glow-hover);
}
.product-card__image {
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 40%, var(--accent-subtle), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(5,150,105,0.06), transparent 60%);
  min-height: 200px;
}
.product-card__image img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.product-card__body {
  padding: var(--space-xl);
  padding-top: 0;
}
.product-card__body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}
.product-card__body h3 sup {
  font-size: 0.6em;
  color: var(--text-muted);
}
.product-card__type {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Product Specs Table */
.product-specs {
  margin-bottom: var(--space-lg);
}
.product-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.product-specs > div:last-child {
  border-bottom: none;
}
.product-specs dt {
  color: var(--text-muted);
  flex-shrink: 0;
}
.product-specs dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: color var(--duration-fast);
}
.product-card__link svg {
  transition: transform var(--duration-base) var(--ease-out);
}
.product-card__link:hover {
  color: var(--accent-light);
}
.product-card__link:hover svg {
  transform: translateX(4px);
}

/* ─── Delivery Process ─── */
.section--process {
  background: var(--bg-surface-2);
}
.process-timeline {
  display: grid;
  gap: var(--space-xl);
  position: relative;
}
.process-timeline__line {
  display: none;
}
@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  /* Hide connecting line at 2-col — no meaningful horizontal flow */
}
@media (min-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-timeline__line {
    display: block;
    position: absolute;
    top: 36px;
    left: 12.5%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 1px;
    transition: width 1.2s var(--ease-out);
  }
  .process-timeline.animated .process-timeline__line {
    width: 75%;
  }
}
.process-card {
  padding: var(--space-xl);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
/* Gradient accent top border */
.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
.process-card:hover::before {
  opacity: 1;
}
.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover), var(--card-glow-hover);
}
.process-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  position: relative;
}
/* Pulse ring on card hover */
.process-card__number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.process-card:hover .process-card__number::after {
  opacity: 0.4;
  transform: scale(1.15);
}
.process-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}
.process-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.process-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-style: italic;
  margin-top: var(--space-xl);
}

/* ─── CTA Strip ─── */
.cta-strip {
  padding: clamp(2.5rem, 2rem + 3vw, 6rem) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-green), var(--accent), var(--accent-dark));
  background-size: 300% 300%;
  animation: cta-gradient-shift 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
@keyframes cta-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, var(--cta-highlight-1), transparent 50%),
    radial-gradient(circle at 80% 50%, var(--cta-highlight-2), transparent 50%);
  pointer-events: none;
}
.cta-strip h2 {
  font-size: var(--text-3xl);
  color: var(--cta-text);
  margin-bottom: var(--space-md);
  position: relative;
}
.cta-strip p {
  font-size: var(--text-lg);
  color: var(--cta-text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}
.cta-strip .btn--primary {
  background: var(--cta-btn-bg);
  color: var(--accent-dark);
  box-shadow: 0 4px 20px var(--cta-btn-shadow);
}
.cta-strip .btn--primary:hover {
  background: var(--cta-btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cta-btn-shadow-hover);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--bg-footer);
  border-top: none;
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}
/* Gradient accent line at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}
.footer__inner {
  display: grid;
  gap: var(--space-2xl);
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}
.footer__brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.footer__brand-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-on-footer);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: var(--text-on-footer-muted);
  max-width: 320px;
  line-height: 1.7;
  margin-top: var(--space-xs);
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-on-footer-muted);
  transition: color var(--duration-fast);
}
.footer__link:hover {
  color: #ffffff;
}
.footer__link svg {
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: 0.6;
}
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--text-on-footer-muted);
  line-height: 1.6;
}
.footer__legal strong {
  color: var(--text-on-footer);
}
.footer__legal span {
  display: block;
}
.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  color: var(--text-on-footer-muted);
}

/* Footer social links separator */
.footer__social-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--space-xs) 0;
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE — Two-Column Layout
   ═══════════════════════════════════════════════ */
.contact-page {
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
}
.contact-page__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.contact-page__subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 540px;
  margin: var(--space-md) auto 0;
  line-height: 1.6;
}
.contact-page__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-page__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}
.contact-page__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.contact-info-card {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-info-card__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-action {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: all var(--duration-base) var(--ease-out);
}
.contact-action:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-action__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-action__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-action__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-action__value {
  font-size: var(--text-base);
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Hours definition list */
.contact-hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-hours-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.contact-hours-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contact-hours-item dt {
  color: var(--text);
  font-weight: 600;
}
.contact-hours-item dd {
  color: var(--text-secondary);
  text-align: right;
}

/* Addresses */
.contact-addresses {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}
.contact-address__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.contact-address__value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Right column: Form ─── */
.contact-page__form-wrap {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}
@media (max-width: 1023px) {
  .contact-page__form-wrap {
    position: static;
  }
}
.contact-page__form-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.contact-page__form-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

/* ─── Contact Form (shared) ─── */
.contact-form {
  max-width: 100%;
}
.form-row {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.form-group:not(.form-row .form-group) {
  margin-bottom: var(--space-lg);
}
.form-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select {
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-border);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  min-height: 1.2em;
}
.form-actions {
  text-align: center;
  margin-top: var(--space-xl);
}
.contact-form__submit {
  gap: var(--space-sm);
  min-width: 220px;
}
.contact-form__submit-icon {
  flex-shrink: 0;
}
.contact-form__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.contact-form__submit.is-loading .contact-form__submit-icon {
  display: none;
}
.contact-form__submit.is-loading::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--spinner-track);
  border-top-color: var(--spinner-head);
  border-radius: 50%;
  animation: form-spin 0.6s linear infinite;
  margin-right: var(--space-sm);
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}
.form-status {
  margin-top: var(--space-lg);
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
}
.form-status:not(:empty) {
  padding: var(--space-md) var(--space-lg);
}
.form-status--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}
.form-status--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

/* ═══════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--accent-subtle);
}
.theme-toggle svg {
  transition: transform var(--duration-base) var(--ease-spring);
}
.theme-toggle:active svg {
  transform: rotate(30deg) scale(0.9);
}
/* Icon visibility: sun shown in dark, moon in light */
.theme-icon--sun  { display: none; }
.theme-icon--moon { display: block; }
:root.dark .theme-icon--sun  { display: block; }
:root.dark .theme-icon--moon { display: none; }

/* Mobile menu theme item */
.mobile-menu__theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 600;
  padding: var(--space-md) 0;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  cursor: pointer;
}
.mobile-menu__theme:hover {
  color: var(--accent);
}
.mobile-menu__theme-label--light { display: inline; }
.mobile-menu__theme-label--dark  { display: none; }
:root.dark .mobile-menu__theme-label--light { display: none; }
:root.dark .mobile-menu__theme-label--dark  { display: inline; }

/* ═══════════════════════════════════════════════
   NOISE TEXTURE & SECTION ENHANCEMENTS
   ═══════════════════════════════════════════════ */
/* Subtle analog noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Mesh gradient depth on intro section */
.section--intro {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, var(--accent-subtle), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(5,150,105,0.06), transparent 50%),
    linear-gradient(180deg, var(--accent-subtle) 0%, transparent 100%);
}

/* Dot grid on BESS explainer section */
.section--bess-explain {
  background:
    radial-gradient(circle, var(--border) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px, auto;
}

/* Linyang section tinted background */
.section--linyang {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(5,150,105,0.04), transparent),
    var(--bg-section-alt);
}

/* Process section also uses section-alt */
.section--process {
  background: var(--bg-section-alt);
}

/* Section dividers (angled transitions) */
.section-divider {
  position: relative;
  height: clamp(30px, 4vw, 60px);
  margin-top: -1px;
  overflow: hidden;
  pointer-events: none;
}
.section-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}
.section-divider--alt::before {
  background: var(--bg-section-alt);
}
.section-divider--to-alt::before {
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS — Scroll Reveals
   ═══════════════════════════════════════════════ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal {
  transform: translateY(30px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-scale {
  transform: scale(0.95);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.theme-ready,
  html.theme-ready body {
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .hero__scroll { display: none; }
  .process-timeline__line { width: 75% !important; }
}

/* ═══════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════ */
@media print {
  .promo-bar, .header, .hero__scroll, .mobile-menu,
  .burger, .btn, .cta-strip, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: auto; background: #fff !important; padding: 2rem 0; }
  .hero::before, .hero__orb { display: none !important; }
  .hero__kicker, .hero__title, .hero__subtitle { color: #000; -webkit-text-fill-color: #000; background: none; }
  .hero__kicker { border-color: #ccc; background: #f0f0f0; }
  body::after { display: none !important; }
  .section-divider { display: none !important; }
  .section { padding: 1.5rem 0; break-inside: avoid; }
  .section__title, .kicker { -webkit-text-fill-color: #000; background: none; }
  .wrapper { width: 100%; max-width: 100%; }
  .footer { background: #fff; border-top: 1px solid #ccc; padding: 1rem 0; color: #000; }
  .footer__brand-name, .footer__legal strong { color: #000; }
  .footer__brand p, .footer__link, .footer__legal, .footer__bottom { color: #333; }
  .footer::before { display: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* ═══════════════════════════════════════════════
   GALLERY & LIGHTBOX — Responsive
   ═══════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-grid img,
.gallery-grid video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.gallery-grid img:hover,
.gallery-grid video:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.90);
  padding: var(--space-lg);
}
.lightbox img,
.lightbox video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
@media (max-width: 767px) {
  .lightbox {
    padding: var(--space-sm);
  }
  .lightbox img,
  .lightbox video {
    max-width: 100vw;
    max-height: 70vh;
  }
}

/* ═══════════════════════════════════════════════
   PAGE TRANSITIONS (SPA)
   ═══════════════════════════════════════════════ */
#page-content {
  min-height: 50vh;
}
.page-loading {
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}

/* ═══════════════════════════════════════════════
   PROMO POPUP / OVERLAY
   ═══════════════════════════════════════════════ */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base);
}
.promo-popup.is-visible {
  opacity: 1;
  visibility: visible;
}
.promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.promo-popup__card {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 0 60px var(--accent-glow);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-slow) var(--ease-spring);
}
.promo-popup.is-visible .promo-popup__card {
  transform: scale(1) translateY(0);
}
.promo-popup__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.promo-popup__close:hover {
  color: var(--text);
  background: var(--accent-subtle);
}
.promo-popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--on-accent);
}
.promo-popup__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.promo-popup__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.promo-popup__cta {
  width: 100%;
  justify-content: center;
}
@media (max-width: 479px) {
  .promo-popup__card {
    padding: var(--space-2xl) var(--space-lg);
  }
}
