:root {
  --bg: #08110f;
  --bg-soft: #0d1815;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef6f2;
  --muted: #b8c9c2;
  --accent: #74ffbe;
  --accent-2: #8ad8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(116, 255, 190, 0.09), transparent 30%),
    radial-gradient(circle at top right, rgba(138, 216, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #07100e 0%, #08110f 100%);
  color: var(--text);
}

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-lockup {
  gap: 10px;
}

.site-logo-icon {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-logo-icon {
  height: 30px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.brand-hydro {
  font-size: 1.55rem;
  font-weight: 800;
  color: #7CB82F;
  letter-spacing: -0.03em;
}

.brand-exchange {
  font-size: 1.55rem;
  font-weight: 800;
  color: #34B3E4;
  letter-spacing: -0.03em;
}

.footer-wordmark .brand-hydro,
.footer-wordmark .brand-exchange {
  font-size: 1.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116, 255, 190, 0.34);
  color: var(--text) !important;
  background: rgba(116, 255, 190, 0.08);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 6px auto;
  transition: 0.25s ease;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(8, 17, 15, 0.96);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
}

/* Typography */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
}

.eyebrow-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px 0 18px;
  isolation: isolate;
}

.eyebrow-flag::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  height: 58px;
  background-image: url("assets/pics/flag-SA-colour.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  filter: saturate(0.95) brightness(0.95);
  z-index: -1;
  pointer-events: none;
}

/* Hero */

.hero {
  padding: 72px 0 48px;
}

.hero-wide-title {
  position: relative;
  display: inline-block;
  margin: 0 0 30px;
  max-width: none;
}

.hero-wide-title::after {
  content: "";
  display: block;
  width: 250px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7CB82F, #34B3E4, transparent);
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.hero-text,
.section-head p,
.info-card p,
.project-box p,
.about-grid p,
.quote-section p,
.footer-copy,
.footer-bottom p,
.feature-list li {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  position: relative;
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 22px 0 0;
}

.hero-text::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124,184,47,0.9), rgba(52,179,228,0.55));
}

.hero-sublead {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.hero-sublead-large {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b6ffd9);
  color: #03130d;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.stat::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,184,47,0.9), rgba(52,179,228,0.7), transparent);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.055);
}

.stat strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-panel {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    radial-gradient(circle at 30% 20%, rgba(116,255,190,0.18), transparent 24%),
    radial-gradient(circle at 78% 74%, rgba(138,216,255,0.18), transparent 22%),
    #0a1512;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-glow {
  position: absolute;
  inset: auto -10% -25% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(116,255,190,0.28), transparent 65%);
  filter: blur(10px);
}

.hero-feature-panel {
  position: absolute;
  top: 30px;
  right: 28px;
  left: 28px;
  bottom: 28px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5, 16, 12, 0.62);
  backdrop-filter: blur(14px);
  padding: 24px;
}

.hero-feature-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124,184,47,0.95), rgba(52,179,228,0.75));
  box-shadow: 0 0 18px rgba(124,184,47,0.22);
}

.spec-label {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text);
}

.hero-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-feature-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.hero-feature-list li:last-child {
  border-bottom: 0;
}

.hero-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* Strip */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.strip-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.strip-grid div {
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Sections */

.section {
  padding: 92px 0;
}

.section-dark {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.section-head {
  max-width: 800px;
  margin-bottom: 10px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head p {
  margin: 0;
}

.section-head p:last-child {
  margin-top: 8px;
  margin-bottom: 26px;
}

/* Lighting feature */

.lighting-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin: 10px 0 26px;
}

.lighting-feature-main,
.lighting-feature-side {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.lighting-feature-main {
  min-height: 300px;
  background: linear-gradient(180deg, #cfcfcf, #bdbdbd);
}

.lighting-feature-main img,
.lighting-feature-side img {
  width: 100%;
  height: 100%;
  display: block;
}

.lighting-feature-main img {
  object-fit: contain;
  object-position: center;
  padding: 20px 24px;
}

.lighting-feature-side {
  display: grid;
  grid-template-rows: 280px auto;
}

.lighting-feature-side img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  padding: 6px 8px;
  background: linear-gradient(180deg, #cfcfcf, #bdbdbd);
  transform: scaleX(1.40);
  transform-origin: center;
}

.lighting-feature-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: rgba(7, 16, 14, 0.92);
}

.lighting-feature-copy::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,184,47,0.9), rgba(52,179,228,0.65), transparent);
}

.lighting-feature-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
}

.lighting-feature-copy h3 {
  margin-bottom: 10px;
}

.lighting-feature-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Card grids */

/* Systems feature */

.systems-feature {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
  margin: 10px 0 26px;
}

.systems-feature-main,
.systems-feature-side {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.systems-feature-main {
  min-height: 180px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.16), transparent 42%),
    linear-gradient(180deg, #1b1f23, #111417);
}

.systems-feature-main img,
.systems-feature-side img {
  width: 100%;
  display: block;
}

.systems-feature-main img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 24px;
}

.systems-feature-side {
  display: grid;
  grid-template-rows: 210px auto;
}

.systems-feature-side img {
  height: 210px;
  object-fit: cover;
  object-position: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.16), transparent 42%),
    linear-gradient(180deg, #1b1f23, #111417);
}

.systems-feature-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: rgba(7, 16, 14, 0.92);
}

.systems-feature-copy::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,184,47,0.9), rgba(52,179,228,0.65), transparent);
}

.systems-feature-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
}

.systems-feature-copy h3 {
  margin-bottom: 10px;
}

.systems-feature-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-grid {
  display: grid;
  gap: 22px;
  margin-top: -4px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.project-box {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.info-card {
  padding: 28px;
  border-radius: var(--radius);
}

.project-box {
  padding: 24px;
  border-radius: 24px;
}

.info-card::before,
.project-box::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,184,47,0.9), rgba(52,179,228,0.65), transparent);
}

.project-box::before {
  left: 24px;
}

.info-card:hover,
.project-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.055);
}

.dark-card {
  background: rgba(255,255,255,0.03);
}

/* Projects / About / Quote */

.projects-grid,
.about-grid,
.quote-grid {
  display: grid;
  gap: 24px;
}

.projects-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.feature-list li {
  margin-bottom: 12px;
}

.project-panel {
  display: grid;
  gap: 18px;
}

.project-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(116,255,190,0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.quote-section {
  border-top: 1px solid var(--line);
}

.quote-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(4, 12, 10, 0.8);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #8ca097;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(116,255,190,0.5);
  box-shadow: 0 0 0 4px rgba(116,255,190,0.08);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* Footer */

.site-footer {
  padding: 36px 0 18px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}

.footer-grid,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Reveal */

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid,
  .projects-grid,
  .about-grid,
  .quote-grid,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .lighting-feature,
  .systems-feature {
    grid-template-columns: 1fr;
  }

  .lighting-feature-main {
    min-height: 300px;
  }

  .lighting-feature-side {
    grid-template-rows: 180px auto;
  }

.systems-feature-main {
  min-height: 300px;
}

.systems-feature-side {
  grid-template-rows: 220px auto;
}

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 500px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .lighting-feature,
  .systems-feature {
    gap: 16px;
    margin: 10px 0 22px;
  }

  .lighting-feature-main {
    min-height: 180px;
  }

  .lighting-feature-side {
    grid-template-rows: 220px auto;
  }

  .lighting-feature-copy {
    padding: 20px;
  }

.systems-feature-main {
  min-height: 240px;
}

.systems-feature-side {
  grid-template-rows: 180px auto;
}

  .systems-feature-copy {
    padding: 20px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .mobile-menu.show {
    display: block;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-stats,
  .strip-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 22px;
  }

  h1 {
    max-width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .eyebrow-flag {
    min-height: 42px;
    padding-left: 14px;
  }

  .eyebrow-flag::before {
    width: 78px;
    height: 48px;
    left: 4px;
  }

  .section {
    padding: 74px 0;
  }

  .site-logo-icon {
    height: 28px;
  }

  .footer-logo-icon {
    height: 24px;
  }

  .brand-hydro,
  .brand-exchange {
    font-size: 1.2rem;
  }

  .footer-wordmark .brand-hydro,
  .footer-wordmark .brand-exchange {
    font-size: 1.05rem;
  }

  .hero-panel {
    min-height: 440px;
  }

  .hero-feature-panel {
    left: 18px;
    right: 18px;
    top: 18px;
    bottom: 18px;
    padding: 20px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}