@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(46, 196, 182, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(41, 182, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, #08111c 0%, var(--bg-primary) 46%, #0a1522 100%);
  color: var(--brand-white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

strong {
  color: var(--brand-white);
}

#energy-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

#app {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--data-green));
  box-shadow: 0 0 22px rgba(46, 196, 182, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(143, 163, 177, 0.16);
  background: rgba(8, 17, 28, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1440px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--brand-white);
  border-radius: 5px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--brand-white);
}

.brand-mark::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.brand-mark::after {
  right: -2px;
  bottom: -2px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.brand strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand strong span {
  color: transparent;
  -webkit-text-stroke: 1px var(--brand-white);
}

.brand small {
  color: var(--brand-gray);
  font-size: 10px;
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 12px 0;
}

nav a {
  flex: 0 0 auto;
  border: 1px solid rgba(143, 163, 177, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(22, 32, 50, 0.72);
  color: var(--brand-gray);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 196, 182, 0.62);
  background: rgba(46, 196, 182, 0.13);
  color: var(--brand-white);
}

main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  min-height: calc(100vh - 130px);
  align-items: center;
  padding: 26px 0 44px;
}

.hero-copy,
.hero-dashboard,
.panel,
.metric,
.proof-card,
.package,
.timeline article,
.decision-band {
  border: 1px solid rgba(143, 163, 177, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 45, 61, 0.9), rgba(13, 27, 42, 0.9));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand-teal), var(--data-green));
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-meta span {
  border: 1px solid rgba(46, 196, 182, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--brand-gray);
  background: rgba(46, 196, 182, 0.09);
  font-size: 11px;
  font-weight: 800;
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero-verdict {
  max-width: 980px;
  margin: 0 0 14px;
  color: var(--data-green);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.18;
}

.hero-copy p:not(.hero-verdict) {
  max-width: 980px;
  margin: 0;
  color: var(--brand-gray);
  font-size: 16px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--brand-teal);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--brand-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--brand-teal);
  color: #06121d;
}

.button.ghost {
  background: rgba(46, 196, 182, 0.1);
}

.hero-dashboard {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.orbital-card,
.radial-gauge,
.mini-stack {
  border-radius: 8px;
  background: rgba(8, 17, 28, 0.58);
}

.orbital-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-left: 4px solid var(--brand-teal);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--data-green);
  box-shadow: 0 0 18px rgba(105, 240, 174, 0.9);
}

.orbital-card small,
.radial-gauge small,
.metric small,
.panel p,
.check-list span,
.package small,
.package li,
.package p,
.timeline small,
.timeline p {
  color: var(--brand-gray);
}

.orbital-card strong {
  color: var(--data-green);
  font-size: 23px;
  line-height: 1.12;
}

.radial-gauge {
  display: grid;
  place-items: center;
  min-height: 240px;
  text-align: center;
  background:
    radial-gradient(circle at center, var(--bg-secondary) 0 50%, transparent 51%),
    conic-gradient(var(--brand-teal) calc(var(--value) * 1%), rgba(143, 163, 177, 0.18) 0);
}

.radial-gauge span,
.radial-gauge small {
  grid-column: 1;
}

.radial-gauge strong {
  grid-column: 1;
  color: var(--data-green);
  font-size: 42px;
  line-height: 1;
}

.mini-stack {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mini-stack span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 10px;
  color: var(--brand-gray);
}

.mini-stack span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-stack b {
  color: var(--brand-white);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 64px;
}

.metric {
  min-height: 150px;
  padding: 17px;
  border-top: 4px solid var(--status-color, var(--brand-teal));
}

.metric span {
  display: block;
  color: var(--brand-gray);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--status-color, var(--data-green));
  font-size: 31px;
  line-height: 1;
}

.tone-ok {
  --status-color: var(--data-green);
}

.tone-warn {
  --status-color: var(--data-yellow);
}

.tone-bad {
  --status-color: var(--data-red);
}

.tone-info {
  --status-color: var(--stage-blue);
}

.section {
  padding: 78px 0;
  border-top: 1px solid rgba(143, 163, 177, 0.12);
}

.section-head {
  max-width: 880px;
  margin-bottom: 26px;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 0.98;
}

.section-head p {
  margin: 0;
  color: var(--brand-gray);
  font-size: 16px;
}

.proof-grid,
.chart-grid,
.finance-grid,
.split-grid,
.technical-grid,
.package-grid {
  display: grid;
  gap: 16px;
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-card {
  padding: 18px;
}

.proof-card span {
  color: var(--brand-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.proof-card h3,
.panel h3 {
  margin: 12px 0 10px;
  font-size: 19px;
  line-height: 1.15;
}

.proof-card p,
.panel p {
  margin: 0;
}

.decision-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 20px 22px;
  border-left: 5px solid var(--data-green);
}

.decision-band a {
  color: var(--brand-teal);
  font-weight: 800;
  white-space: nowrap;
}

.chart-grid,
.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.technical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  padding: 20px;
  border-top: 4px solid var(--status-color, var(--brand-teal));
}

.panel.wide,
.chart-panel.priority,
.roi-card {
  grid-column: 1 / -1;
}

.panel.mini {
  min-height: 150px;
}

.panel canvas {
  width: 100% !important;
  height: 310px !important;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12.5px;
}

th {
  padding: 10px 12px;
  background: rgba(8, 17, 28, 0.62);
  color: var(--brand-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--grid-line);
  color: #d8e6ee;
}

tr:nth-child(even) td {
  background: rgba(30, 45, 61, 0.56);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 12px;
}

.check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.check-list strong,
.check-list span {
  display: block;
}

.package {
  overflow: hidden;
  border-top: 4px solid var(--status-color, var(--brand-teal));
}

.package button {
  width: 100%;
  border: 0;
  padding: 18px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.package button span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(46, 196, 182, 0.12);
  color: var(--status-color, var(--brand-teal));
  font-size: 10px;
  font-weight: 800;
}

.package button strong,
.package button small {
  display: block;
}

.package button strong {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.package-body {
  display: none;
  border-top: 1px solid var(--grid-line);
  padding: 0 18px 18px;
}

.package.open .package-body {
  display: block;
}

.package ul {
  margin: 14px 0;
  padding-left: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.timeline article {
  padding: 18px;
}

.timeline span {
  color: var(--brand-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline strong,
.timeline small {
  display: block;
  margin-top: 8px;
}

.timeline p {
  margin: 10px 0 0;
}

.trace-section {
  padding-bottom: 20px;
}

.reveal {
  opacity: 1;
}

@media (max-width: 1120px) {
  .metric-strip,
  .technical-grid,
  .package-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid,
  .finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner,
  main {
    width: min(100% - 28px, 1440px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    padding: 0 0 2px;
  }

  .hero,
  .chart-grid,
  .split-grid,
  .metric-strip,
  .proof-grid,
  .finance-grid,
  .technical-grid,
  .package-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .decision-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
