/* ===================================================================
   SOLAREX — Design System
   A modern, editorial dark theme inspired by the brand's lime accent
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=DM+Mono:wght@300;400;500&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

/* ----------  ROOT TOKENS  ---------- */
:root {
  /* Brand */
  --lime: #CCFF66;            /* signature accent from logo */
  --lime-soft: #e6ffb3;
  --lime-dim: #92b347;

  /* Surfaces */
  --black: #0a0a0a;
  --ink: #111111;
  --char: #1a1a1a;
  --grey-900: #1f1f1f;
  --grey-800: #2a2a2a;
  --grey-700: #3a3a3a;
  --grey-500: #6b6b6b;
  --grey-300: #a8a8a8;
  --grey-100: #e0e0e0;
  --white: #fafafa;

  /* Type */
  --f-sans: 'Inter Tight', sans-serif;
  --f-mono: 'DM Mono', monospace;
  --f-serif: 'Fraunces', serif;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 4px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------  RESET  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ----------  BACKGROUND TEXTURE  ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(at 20% 20%, rgba(204, 255, 102, 0.04) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(204, 255, 102, 0.02) 0px, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ----------  TYPOGRAPHY  ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--lime);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
h1 {
  font-size: clamp(48px, 8vw, 144px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(36px, 5vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
}
h3 {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
}
h4 {
  font-size: clamp(18px, 1.5vw, 22px);
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.lime { color: var(--lime); }
.mono { font-family: var(--f-mono); }

/* ----------  LAYOUT  ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
section { position: relative; z-index: 2; }

/* ----------  HEADER / NAV  ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px var(--gutter);
}
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; transition: height 0.4s var(--ease); }
.header.scrolled .logo img { height: 26px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-main a {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-100);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-main a:hover { color: var(--lime); }
.nav-main a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: var(--lime);
  transition: width 0.4s var(--ease);
}
.nav-main a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang-switch button {
  padding: 6px 12px;
  border-radius: 50px;
  color: var(--grey-300);
  transition: all 0.3s var(--ease);
}
.lang-switch button.active {
  background: var(--lime);
  color: var(--black);
  font-weight: 600;
}

.btn-menu {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.btn-menu span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}
.btn-menu.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.btn-menu.open span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(204, 255, 102, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.btn-arrow {
  font-family: var(--f-mono);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 0;
  transition: gap 0.3s var(--ease);
}
.btn-arrow:hover { gap: 14px; }
.btn-arrow svg { width: 14px; height: 14px; }

/* ----------  NAV ACTIVE STATE  ---------- */
.nav-main a[aria-current="page"] {
  color: var(--lime);
}
.nav-main a[aria-current="page"]::after {
  width: 100%;
}

/* ----------  HERO  ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--gutter) 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  background-image: url('../assets/hero-house.png');
  background-size: cover;
  background-position: center 30%;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.88) 100%),
    radial-gradient(circle at 70% 30%, rgba(204, 255, 102, 0.12) 0%, transparent 60%);
}
.hero-bg::after {
  /* Geometric sun rays motif */
  content: '';
  position: absolute;
  top: 50%; right: -200px;
  width: 800px; height: 800px;
  transform: translateY(-50%);
  background:
    conic-gradient(from 0deg,
      transparent 0deg, transparent 10deg,
      rgba(204, 255, 102, 0.06) 10deg, rgba(204, 255, 102, 0.06) 12deg,
      transparent 12deg, transparent 30deg,
      rgba(204, 255, 102, 0.06) 30deg, rgba(204, 255, 102, 0.06) 32deg,
      transparent 32deg, transparent 60deg,
      rgba(204, 255, 102, 0.04) 60deg, rgba(204, 255, 102, 0.04) 62deg,
      transparent 62deg
    );
  border-radius: 50%;
  mask-image: radial-gradient(circle, transparent 30%, black 31%, black 70%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, transparent 30%, black 31%, black 70%, transparent 71%);
  animation: slow-spin 120s linear infinite;
}
@keyframes slow-spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: auto;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-300);
  text-transform: uppercase;
}
.hero-meta span:first-child { color: var(--lime); }
.hero-title {
  display: flex;
  flex-direction: column;
}
.hero-title h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: word-rise 1s var(--ease-out) forwards;
}
.hero-title h1 .word:nth-child(1) { animation-delay: 0.2s; }
.hero-title h1 .word:nth-child(2) { animation-delay: 0.35s; }
.hero-title h1 .word:nth-child(3) { animation-delay: 0.5s; }
.hero-title h1 .word:nth-child(4) { animation-delay: 0.65s; }
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0); }
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--grey-100);
  max-width: 38ch;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-stats .stat-num {
  font-family: var(--f-sans);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--lime);
  line-height: 1;
}
.hero-stats .stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-300);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--lime), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* ----------  MARQUEE  ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  background: var(--ink);
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  gap: 60px;
}
.marquee span {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  font-style: italic;
  color: var(--grey-300);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee span::after {
  content: '✦';
  color: var(--lime);
  font-style: normal;
  font-size: 0.5em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----------  SECTION GENERIC  ---------- */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .sticky-label {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ----------  ABOUT / INTRO  ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro-text h2 {
  margin-bottom: 30px;
}
.intro-text h2 .em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
.intro-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-100);
  margin-bottom: 24px;
}
.intro-meta {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 120px;
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.meta-row .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.meta-row .value {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
}
.meta-row .value .unit {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--lime);
  margin-left: 8px;
  vertical-align: top;
}

/* ----------  SOLUTIONS / SERVICES GRID  ---------- */
.solutions {
  background: var(--ink);
  position: relative;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.sol-card {
  grid-column: span 4;
  background: var(--char);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.sol-card:nth-child(1), .sol-card:nth-child(4) { grid-column: span 5; }
.sol-card:nth-child(2), .sol-card:nth-child(3) { grid-column: span 7; }
.sol-card:nth-child(5) { grid-column: span 12; min-height: 320px; }
.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(204, 255, 102, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.sol-card:hover::before { opacity: 1; }
.sol-card:hover {
  border-color: rgba(204, 255, 102, 0.3);
  transform: translateY(-4px);
}
.sol-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--lime);
  position: relative;
  z-index: 2;
}
.sol-card h3 {
  margin-top: auto;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}
.sol-card h3 .em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.sol-card p {
  margin: 20px 0 24px;
  color: var(--grey-300);
  font-size: 15px;
  line-height: 1.55;
  max-width: 50ch;
  position: relative;
  z-index: 2;
}
.sol-card .sol-link {
  color: var(--lime);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  margin-top: auto;
  transition: gap 0.3s var(--ease);
}
.sol-card:hover .sol-link { gap: 14px; }

.sol-visual {
  position: absolute;
  right: -40px; top: -40px;
  width: 280px; height: 280px;
  opacity: 0.08;
  transition: all 0.6s var(--ease);
}
.sol-card:hover .sol-visual {
  opacity: 0.18;
  transform: scale(1.1) rotate(-10deg);
}

/* Custom SVG icon styling */
.sol-icon { color: var(--lime); }

/* ----------  CALCULATOR  ---------- */
.calculator {
  padding: clamp(80px, 12vw, 160px) 0;
  background: linear-gradient(180deg, var(--black) 0%, var(--ink) 100%);
}
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.calc-intro h2 {
  margin: 24px 0 32px;
}
.calc-intro p {
  color: var(--grey-300);
  margin-bottom: 32px;
  font-size: 17px;
  max-width: 42ch;
  line-height: 1.6;
}
.calc-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.calc-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.calc-feature-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--lime);
  width: 24px;
  flex-shrink: 0;
  padding-top: 4px;
  letter-spacing: 0.1em;
}
.calc-feature-text {
  font-size: 15px;
  color: var(--grey-100);
}
.calc-feature-text strong {
  color: var(--white);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}
.calc-card {
  background: var(--char);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.5;
}
.calc-step {
  display: none;
  animation: fadeIn 0.5s var(--ease);
}
.calc-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.calc-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.calc-progress-bar.active {
  background: var(--lime);
}
.calc-step-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.calc-card h3 {
  font-size: 28px;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.calc-field {
  margin-bottom: 24px;
}
.calc-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 10px;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 16px 20px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 16px;
  color: var(--white);
  transition: border-color 0.3s var(--ease);
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--lime);
}
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.calc-option {
  padding: 16px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.calc-option:hover {
  border-color: rgba(204, 255, 102, 0.3);
}
.calc-option.selected {
  background: rgba(204, 255, 102, 0.08);
  border-color: var(--lime);
  color: var(--lime);
}
.calc-option .num {
  font-size: 28px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.calc-option .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.calc-option.selected .lbl { color: var(--lime); }
.calc-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}
.calc-result {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.calc-result.show { display: block; animation: fadeIn 0.6s var(--ease); }
.calc-result .badge {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(204, 255, 102, 0.1);
  border: 1px solid rgba(204, 255, 102, 0.3);
  color: var(--lime);
  border-radius: 50px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.calc-result h3 {
  font-size: 56px;
  color: var(--lime);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.calc-result .system-type {
  color: var(--grey-100);
  font-size: 18px;
  margin-bottom: 32px;
}
.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.calc-result-stat {
  background: var(--ink);
  padding: 24px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}
.calc-result-stat .val {
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
}
.calc-result-stat .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-top: 4px;
}

/* ----------  3D ROOF VISUALIZER  ---------- */
.roof-viz {
  background: var(--ink);
  overflow: hidden;
}
.roof-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.roof-type {
  background: var(--char);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.roof-type:hover {
  border-color: rgba(204, 255, 102, 0.4);
  transform: translateY(-4px);
}
.roof-type.active {
  border-color: var(--lime);
  background: rgba(204, 255, 102, 0.05);
}
.roof-visual-3d {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  perspective: 800px;
}
.roof-visual-3d svg {
  width: 100%;
  max-width: 200px;
  transition: transform 0.6s var(--ease);
}
.roof-type:hover .roof-visual-3d svg {
  transform: rotateY(-8deg) rotateX(2deg);
}
.roof-type h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}
.roof-type p {
  font-size: 13px;
  color: var(--grey-300);
  line-height: 1.5;
}

/* ----------  PROJECTS  ---------- */
.projects {
  position: relative;
}
.projects-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.project-card .img-wrap {
  aspect-ratio: 4 / 5;
  background: var(--char);
  position: relative;
  overflow: hidden;
}
.project-card .img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.95) 100%);
  z-index: 2;
}
.project-card .img-wrap > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lime) 0%, #6b8d28 50%, var(--char) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .img-wrap > div {
  transform: scale(1.05);
}
.project-card .img-wrap svg {
  opacity: 0.3;
  width: 60%;
  color: var(--black);
}
.project-card .info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 28px;
}
.project-card .meta {
  display: flex;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}
.project-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.project-card .arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.4s var(--ease);
}
.project-card:hover .arrow {
  background: var(--lime);
  transform: rotate(-45deg);
}
.project-card:hover .arrow svg { color: var(--black); }
.project-card .arrow svg {
  width: 16px; height: 16px;
  color: var(--white);
  transition: color 0.4s var(--ease);
}

/* ----------  FUNDING / PROCESS  ---------- */
.funding {
  background: var(--ink);
  padding: clamp(80px, 12vw, 160px) 0;
}
.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fund-card {
  padding: 40px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 0.4s var(--ease);
  cursor: default;
}
.fund-card:last-child { border-right: none; }
.fund-card:hover { background: rgba(204, 255, 102, 0.03); }
.fund-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: block;
}
.fund-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.fund-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.fund-card ul li {
  font-size: 14px;
  color: var(--grey-100);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}
.fund-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--lime);
}

/* ----------  AI CHAT  ---------- */
.chat-fab {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  box-shadow: 0 10px 40px rgba(204, 255, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.3;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0; }
}
.chat-fab svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed;
  bottom: 100px; right: 30px;
  z-index: 70;
  width: 380px;
  max-width: calc(100vw - 40px);
  max-height: 600px;
  background: var(--char);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.chat-header {
  padding: 18px 20px;
  background: rgba(204, 255, 102, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header .who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
.chat-header h4 {
  font-size: 14px;
  font-weight: 500;
}
.chat-header .sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--grey-300);
  letter-spacing: 0.05em;
}
.chat-close {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.chat-close:hover { background: rgba(255,255,255,0.1); }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 380px;
}
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: chat-in 0.4s var(--ease);
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--grey-100);
}
.chat-msg.user {
  background: var(--lime);
  color: var(--black);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.chat-quick {
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-quick button {
  padding: 6px 12px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 12px;
  color: var(--grey-100);
  transition: all 0.3s var(--ease);
}
.chat-quick button:hover {
  background: rgba(204,255,102,0.1);
  border-color: var(--lime);
  color: var(--lime);
}
.chat-input-row {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 14px;
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--lime);
}
.chat-input-row button.send {
  width: 36px; height: 36px;
  background: var(--lime);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------  CTA / CONTACT  ---------- */
.cta-band {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(204, 255, 102, 0.15) 0%, transparent 60%),
    var(--black);
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  max-width: 16ch;
  margin: 24px auto 40px;
  font-weight: 500;
}
.cta-band h2 .em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------  FOOTER  ---------- */
.footer {
  background: var(--ink);
  padding: 80px var(--gutter) 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand img { height: 32px; margin-bottom: 24px; }
.footer-brand p {
  color: var(--grey-300);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}
.footer-socials a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--black);
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--grey-100);
  transition: color 0.3s var(--ease);
}
.footer-col ul li a:hover { color: var(--lime); }
.footer-col p {
  font-size: 14px;
  color: var(--grey-100);
  line-height: 1.6;
}
.footer-bottom {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--grey-500);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 20px;
}

/* ----------  REVEAL ON SCROLL  ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------  RESPONSIVE  ---------- */
@media (max-width: 1024px) {
  .nav-main { display: none; }
  .btn-menu { display: flex; }
  .hero-row { grid-template-columns: 1fr; gap: 32px; }
  .sol-card,
  .sol-card:nth-child(1), .sol-card:nth-child(2),
  .sol-card:nth-child(3), .sol-card:nth-child(4),
  .sol-card:nth-child(5) {
    grid-column: span 12;
    min-height: 280px;
  }
  .calc-wrap, .intro {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .roof-types { grid-template-columns: repeat(2, 1fr); }
  .projects-track { grid-template-columns: 1fr; }
  .funding-grid { grid-template-columns: 1fr; }
  .fund-card { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Mobile menu */
  .nav-main.mobile-open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
    padding: 80px var(--gutter);
  }
  .nav-main.mobile-open a { font-size: 28px; font-weight: 500; }
}
@media (max-width: 640px) {
  h1 { font-size: 56px; }
  .hero { padding: 120px var(--gutter) 60px; }
  .hero-stats .stat-num { font-size: 40px; }
  .calc-card { padding: 28px 20px; }
  .calc-result h3 { font-size: 40px; }
  .roof-types { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-panel { right: 10px; bottom: 90px; width: calc(100vw - 20px); }
  .page-title { font-size: clamp(36px, 8vw, 60px); }
  .teaser-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .shop-cats-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

/* ----------  PAGE BANNER (inner pages)  ---------- */
.page-banner {
  padding: 180px var(--gutter) 80px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--black) 0%, var(--ink) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-banner .eyebrow { margin-bottom: 20px; display: flex; }
.page-title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 24px;
  max-width: 20ch;
}
.page-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--grey-300);
  max-width: 52ch;
  line-height: 1.6;
}

/* ----------  HOME TEASER GRID  ---------- */
.services-teaser { background: var(--ink); }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.teaser-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.4s var(--ease);
  cursor: pointer;
}
.teaser-card:last-child { border-right: none; }
.teaser-card:hover { background: rgba(204,255,102,0.04); }
.teaser-card .eyebrow { margin-bottom: 4px; font-size: 11px; }
.teaser-card h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; }
.teaser-card p { font-size: 14px; color: var(--grey-300); line-height: 1.6; flex: 1; }
.teaser-card .sol-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }

@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .teaser-card:nth-child(2) { border-right: none; }
  .teaser-card:nth-child(1),
  .teaser-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ----------  PROCESS STEPS  ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
}
.process-step {
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.process-step:last-child { border-right: none; }
.process-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.process-step h4 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: var(--grey-300); line-height: 1.55; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .process-step:nth-child(2n) { border-right: none; }
}

/* ----------  PROJECTS STATS BAND  ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-big {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-unit {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--lime-dim);
  vertical-align: top;
  margin-left: 4px;
}
.stat-desc { font-size: 13px; color: var(--grey-300); line-height: 1.5; }

@media (max-width: 900px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ----------  CALCULATOR CONSTANTS TABLE  ---------- */
.calc-constants {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.const-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--f-mono);
}
.const-row:last-child { border-bottom: none; }
.const-row span:first-child { color: var(--grey-300); }

/* ----------  SHOP PAGE  ---------- */
.shop-coming-soon {
  text-align: center;
  padding: clamp(60px, 8vw, 120px) 0;
  max-width: 560px;
  margin: 0 auto;
}
.coming-icon {
  color: var(--lime);
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
.shop-coming-soon h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.shop-coming-soon p { font-size: 18px; color: var(--grey-300); line-height: 1.6; }
.shop-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.shop-cat {
  background: var(--char);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  transition: all 0.4s var(--ease);
}
.shop-cat:hover {
  border-color: rgba(204,255,102,0.3);
  transform: translateY(-4px);
}
.shop-cat svg { margin: 0 auto 16px; color: var(--lime); }
.shop-cat h4 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.shop-cat p { font-size: 13px; color: var(--grey-300); line-height: 1.5; }

@media (max-width: 900px) {
  .shop-cats-grid { grid-template-columns: 1fr 1fr; }
}

/* ----------  CONTACT PAGE  ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-block .eyebrow { margin-bottom: 8px; display: flex; }
.contact-value {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
  transition: color 0.3s var(--ease);
}
a.contact-value:hover { color: var(--lime); }
.contact-socials {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}
.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
  transition: color 0.3s var(--ease);
}
.contact-socials a:hover { color: var(--lime); }

.contact-form-wrap {
  background: var(--char);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.4;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 18px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lime);
}
.form-note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--grey-500);
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 8px;
}
.form-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  gap: 16px;
  color: var(--lime);
}
.form-success h3 { font-size: 32px; color: var(--white); }
.form-success p { color: var(--grey-300); font-size: 16px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
