/* POWERHOME — design tokens */
:root {
  /* Eco green palette */
  --primary: #0E8F5E;
  --primary-600: #0a7449;
  --primary-700: #075a39;
  --deep: #062E20;
  --accent: #A7F3D0;
  --accent-bright: #4ADE80;
  --cream: #F7FAF8;
  --paper: #FFFFFF;
  --ink: #0A1410;
  --ink-2: #1F2A24;
  --muted: #5C6B64;
  --muted-2: #8A968F;
  --line: #E2EAE6;
  --line-2: #C9D5CF;
  --warn: #F59E0B;
  --danger: #EF4444;

  /* Surfaces */
  --bg: var(--cream);
  --surface: #FFFFFF;
  --surface-2: #F0F5F2;
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl: 44px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(6, 46, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 46, 32, 0.08);
  --shadow-lg: 0 22px 60px rgba(6, 46, 32, 0.16);
  --shadow-glow: 0 0 0 6px rgba(74, 222, 128, 0.18);

  /* Spacing */
  --container: 1240px;
}

[data-theme="dark"] {
  --bg: #0A1410;
  --surface: #101D18;
  --surface-2: #182824;
  --text: #ECF5F0;
  --text-muted: #95A39C;
  --border: #1F302A;
  --line: #1F302A;
  --line-2: #2A3F38;
  --deep: #ECF5F0;
  --cream: #0A1410;
  --paper: #101D18;
  --ink: #ECF5F0;
  --primary: #34D399;
  --primary-600: #22C896;
  --accent: #064E3B;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(44px, 6vw, 88px); font-weight: 900; }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
h3 { font-size: clamp(22px, 2vw, 30px); }
h4 { font-size: 18px; font-weight: 700; }

p { margin: 0; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-weight: 600;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(14, 143, 94, .35);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14, 143, 94, .45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
[data-theme="dark"] .btn-dark {
  background: var(--primary);
  color: #fff;
}

/* ===== Pill ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.pill-accent {
  background: rgba(74, 222, 128, .15);
  color: var(--primary-700);
  border-color: rgba(74, 222, 128, .3);
}
[data-theme="dark"] .pill-accent { color: var(--primary); }

/* ===== Section ===== */
section { padding: 110px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  h1 { font-size: clamp(34px, 9vw, 52px); }
  h2 { font-size: clamp(28px, 7vw, 40px); }
  h3 { font-size: clamp(20px, 5vw, 26px); }
  body { font-size: 16px; }
  .section-sub { font-size: 16px; margin-bottom: 40px; }
  .btn { padding: 14px 22px; font-size: 15px; }
}
@media (max-width: 480px) {
  section { padding: 56px 0; }
  .container { padding: 0 16px; }
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--primary);
  display: inline-block;
}
.section-title {
  max-width: 760px;
  margin-bottom: 18px;
}
.section-sub {
  max-width: 620px;
  font-size: 19px;
  margin-bottom: 64px;
  color: var(--text-muted);
}

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Marquee divider ===== */
.marquee {
  background: var(--deep);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
[data-theme="dark"] .marquee { background: var(--surface-2); color: var(--text); }
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; gap: 48px; align-items: center; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Placeholders ===== */
.img-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface-2),
      var(--surface-2) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Floating orbs ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== Animations utility ===== */
@keyframes float-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); }
  100% { box-shadow: 0 0 0 18px rgba(74, 222, 128, 0); }
}
@keyframes spark {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.15); }
}

/* helpers */
.hidden { display: none !important; }
