:root {
  --ink: #111820;
  --graphite: #24313a;
  --muted: #61707a;
  --line: rgba(17, 24, 32, 0.12);
  --paper: #f7f8f4;
  --white: #ffffff;
  --teal: #0b6f75;
  --teal-dark: #084b55;
  --cyan: #3fd7e8;
  --gold: #f5b743;
  --coral: #e86f4d;
  --green: #61a85a;
  --shadow: 0 18px 60px rgba(17, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::selection {
  color: var(--ink);
  background: rgba(245, 183, 67, 0.55);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 248, 244, 0.92);
  box-shadow: 0 8px 30px rgba(17, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 183, 67, 0.95), rgba(63, 215, 232, 0.82));
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.72);
}

.brand-mark::before {
  width: 2px;
  height: 24px;
  left: 15px;
  top: 4px;
  transform: rotate(35deg);
}

.brand-mark::after {
  width: 22px;
  height: 2px;
  left: 5px;
  top: 16px;
  transform: rotate(35deg);
}

.nav-links {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.86;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  color: var(--gold);
}

.nav-action {
  justify-self: end;
  width: max-content;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-shade,
.energy-canvas {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -4;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 32, 40, 0.82) 0%, rgba(8, 32, 40, 0.58) 42%, rgba(8, 32, 40, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 13, 18, 0.28), rgba(5, 13, 18, 0.34));
}

.energy-canvas {
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.hero-content {
  align-self: center;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(4.2rem, 11vw, 9.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
  border: 1px solid rgba(245, 183, 67, 0.8);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.hero-status {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: clamp(22px, 7vw, 70px);
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 1px;
  width: min(520px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 28, 35, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-status > div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-status strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 142px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--paper);
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(70px, 10vw, 136px) clamp(18px, 5vw, 72px);
}

.section-head {
  width: min(900px, 100%);
  margin-bottom: 40px;
}

.section-head p:not(.eyebrow),
.intelligence-copy p:not(.eyebrow),
.estimator-copy p:not(.eyebrow),
.contact-inner p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.impact-story,
.dashboard-panel,
.estimator-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 42px rgba(17, 24, 32, 0.06);
}

.feature-card {
  min-height: 285px;
  padding: clamp(24px, 4vw, 38px);
  transition: transform 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 111, 117, 0.36);
}

.feature-index {
  display: block;
  margin-bottom: 54px;
  color: var(--coral);
  font-weight: 900;
}

.feature-card p,
.impact-story p,
.panel-list p {
  color: var(--muted);
}

.intelligence {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  background: #10242a;
  color: var(--white);
}

.intelligence-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-panel {
  position: relative;
  min-height: 470px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(16, 55, 62, 0.96), rgba(7, 30, 36, 0.98)),
    var(--teal-dark);
  overflow: hidden;
}

.dashboard-panel::before {
  position: absolute;
  inset: 44px 28px auto auto;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(63, 215, 232, 0.36);
  border-radius: 50%;
  animation: rotateSlow 16s linear infinite;
}

.panel-topline,
.estimate-output {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.panel-topline {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

.power-ring {
  display: grid;
  place-items: center;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(63, 215, 232, 0.14) 0 38%, transparent 39%),
    conic-gradient(from 12deg, var(--gold) 0 36%, var(--cyan) 36% 76%, rgba(255, 255, 255, 0.16) 76% 100%);
  animation: floatPanel 4.6s ease-in-out infinite;
}

.power-ring span {
  display: block;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #10242a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 94px;
  margin-bottom: 26px;
}

.mini-bars span {
  display: block;
  height: var(--bar);
  min-height: 20px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  animation: bars 2.8s ease-in-out infinite;
  animation-delay: calc(var(--bar) * -0.02);
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-list p {
  display: flex;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.panel-list span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(245, 183, 67, 0.7);
}

.impact {
  background: #fffaf0;
}

.impact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.impact-story {
  min-height: 245px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.72);
}

.impact-story:nth-child(1) {
  border-top: 6px solid var(--gold);
}

.impact-story:nth-child(2) {
  border-top: 6px solid var(--teal);
}

.impact-story:nth-child(3) {
  border-top: 6px solid var(--coral);
}

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(30px, 7vw, 96px);
}

.estimator-panel {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 4vw, 36px);
}

.estimator-panel label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  font-weight: 900;
}

.estimator-panel input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--teal);
}

.estimate-output {
  min-height: 96px;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
}

.estimate-output span {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.75);
}

.estimate-output strong {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.contact-section {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 75, 85, 0.98), rgba(17, 24, 32, 0.98)),
    var(--teal-dark);
}

.contact-inner {
  width: min(850px, 100%);
}

.contact-inner p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin: 26px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.contact-details a {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.88);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-content {
    align-self: start;
    margin-top: 118px;
  }

  .hero-status {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .metrics-band,
  .feature-grid,
  .impact-layout,
  .intelligence,
  .estimator {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand span:last-child {
    font-size: 0.94rem;
  }

  .nav-action {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 28, 35, 0.88), rgba(7, 28, 35, 0.62)),
      linear-gradient(180deg, rgba(4, 11, 15, 0.12), rgba(4, 11, 15, 0.54));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 98px 16px 0;
    padding-top: 0;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(3.3rem, 19vw, 5.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-status {
    grid-template-columns: 1fr 1fr;
    bottom: 16px;
  }

  .hero-status > div {
    padding: 13px;
  }

  .hero-status > div:last-child {
    grid-column: 1 / -1;
  }

  .metrics-band {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-height: 118px;
  }

  .feature-card,
  .impact-story {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 34px;
  }

  .estimator-panel label,
  .estimate-output {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
