@import url("https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@500;700&family=Fraunces:opsz,wght@9..144,600;9..144,750&display=swap");

:root {
  --ink: #e9f2e6;
  --muted: #9eaa9d;
  --panel: rgba(14, 22, 18, 0.82);
  --panel-2: rgba(25, 36, 30, 0.76);
  --line: rgba(202, 231, 193, 0.18);
  --lime: #b4ff63;
  --green: #38d782;
  --copper: #e79345;
  --red: #ff6f59;
  --graphite: #080c0a;
  --water: #6bb9d7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Azeret Mono", monospace;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 215, 130, 0.2), transparent 32rem),
    radial-gradient(circle at 80% 22%, rgba(231, 147, 69, 0.18), transparent 28rem),
    linear-gradient(145deg, #050706, #101a14 42%, #070908);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 255, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 255, 99, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

button,
select,
input {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  min-height: 44px;
}

.shell {
  padding: 22px;
}

.console {
  width: min(1500px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18rem),
    rgba(4, 8, 6, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.topbar,
.pitch-band,
.roadmap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.field-panel h2,
.pitch-band h2,
.roadmap h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(2.4rem, 6vw, 7rem);
  line-height: 0.8;
}

.eyebrow,
.section-title span,
label,
.metric-strip span,
.result-box span {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  min-height: 690px;
}

.dam-list,
.analysis-panel {
  padding: 24px;
  background: var(--panel);
}

.dam-list {
  border-right: 1px solid var(--line);
}

.analysis-panel {
  border-left: 1px solid var(--line);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title strong {
  color: var(--lime);
  font-size: 0.76rem;
}

.dam-button {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 14px 0;
  cursor: pointer;
}

.dam-button + .dam-button {
  border-top-color: var(--line);
}

.dam-button span {
  overflow-wrap: anywhere;
}

.dam-button strong {
  color: var(--muted);
  white-space: nowrap;
}

.dam-button.active {
  border-color: rgba(180, 255, 99, 0.6);
  background: rgba(180, 255, 99, 0.08);
  padding-inline: 14px;
}

.dam-button.active strong {
  color: var(--lime);
}

.field-panel {
  position: relative;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(107, 185, 215, 0.08), transparent),
    rgba(5, 10, 8, 0.55);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.field-panel h2 {
  font-size: clamp(1.8rem, 3.4vw, 4.2rem);
  overflow-wrap: anywhere;
}

.status-pill {
  border: 1px solid rgba(231, 147, 69, 0.65);
  color: #ffd3a7;
  background: rgba(231, 147, 69, 0.14);
  padding: 10px 12px;
  white-space: nowrap;
}

canvas {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  min-height: 260px;
  display: block;
  border: 1px solid var(--line);
  background: #07100c;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.metric-strip div {
  padding: 18px;
  min-width: 0;
}

.metric-strip div + div {
  border-left: 1px solid var(--line);
}

.metric-strip strong {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  color: var(--lime);
}

.analysis-panel label {
  display: block;
  margin: 20px 0;
}

select,
input[type="range"] {
  width: 100%;
  margin-top: 10px;
}

select {
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #101812;
  padding: 8px 10px;
}

input[type="range"] {
  accent-color: var(--lime);
}

.primary-action {
  width: 100%;
  min-height: 52px;
  color: #061007;
  background: var(--lime);
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.result-box {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.result-box strong {
  display: block;
  line-height: 1.4;
}

.mini-chart {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-chart i {
  display: block;
  background: linear-gradient(to top, var(--green), var(--copper));
}

.pitch-band {
  background: linear-gradient(90deg, rgba(180, 255, 99, 0.14), rgba(107, 185, 215, 0.09));
}

.pitch-band h2,
.roadmap h2 {
  font-size: clamp(1.8rem, 3.3vw, 4rem);
  max-width: 760px;
}

.pitch-band p:last-child {
  max-width: 620px;
  line-height: 1.65;
  color: #d3dfcf;
}

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

.method-grid article {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
}

.method-grid article + article {
  border-left: 1px solid var(--line);
}

.method-grid span {
  color: var(--lime);
}

.method-grid h3 {
  margin: 42px 0 12px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.method-grid p,
.roadmap li {
  color: #c9d7c6;
  line-height: 1.6;
}

.roadmap {
  align-items: flex-start;
  border-bottom: 0;
}

.roadmap ol {
  width: min(620px, 100%);
  margin: 0;
  padding-left: 22px;
}

.roadmap li + li {
  margin-top: 14px;
}

@media (max-width: 1150px) {
  .hero-grid {
    grid-template-columns: 220px 1fr;
  }

  .analysis-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  .shell {
    padding: 0;
  }

  .console {
    border-inline: 0;
  }

  .topbar,
  .pitch-band,
  .roadmap,
  .panel-head {
    display: block;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    gap: 8px;
  }

  nav a {
    padding-inline: 8px;
  }

  .hero-grid,
  .method-grid,
  .pitch-band,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .topbar,
  .pitch-band,
  .roadmap,
  .field-panel,
  .dam-list,
  .analysis-panel {
    padding: 20px;
  }

  .topbar h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
    line-height: 0.86;
  }

  .eyebrow,
  .section-title span,
  label,
  .metric-strip span,
  .result-box span {
    font-size: 0.68rem;
  }

  .dam-list .section-title {
    margin-bottom: 12px;
  }

  .dam-button {
    min-height: 56px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
  }

  .dam-button span {
    overflow-wrap: normal;
    word-break: normal;
  }

  .dam-button + .dam-button {
    border-top-color: var(--line);
  }

  .dam-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dam-list .section-title {
    grid-column: 1 / -1;
  }

  .dam-button {
    width: 100%;
  }

  .panel-head {
    margin-bottom: 14px;
  }

  .field-panel h2,
  .pitch-band h2,
  .roadmap h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 0.98;
  }

  canvas {
    aspect-ratio: 1.18 / 1;
    min-height: 300px;
  }

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

  .metric-strip div {
    padding: 14px;
  }

  .dam-list,
  .analysis-panel {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-strip div + div {
    border-left: 0;
  }

  .metric-strip div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .metric-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .status-pill {
    display: inline-block;
    margin-top: 14px;
  }

  .analysis-panel {
    display: grid;
    gap: 16px;
  }

  .analysis-panel label,
  .result-box,
  .mini-chart {
    margin: 0;
  }

  .mini-chart {
    height: 88px;
  }

  .method-grid article {
    min-height: 0;
    padding: 22px 20px;
  }

  .method-grid h3 {
    margin-top: 24px;
  }

  .roadmap ol {
    margin-top: 20px;
  }
}

@media (max-width: 430px) {
  .topbar,
  .pitch-band,
  .roadmap,
  .field-panel,
  .dam-list,
  .analysis-panel {
    padding-inline: 16px;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }

  .dam-list {
    grid-template-columns: 1fr;
  }

  .dam-button {
    min-height: 50px;
  }

  nav a,
  .primary-action {
    font-size: 0.92rem;
  }

  .field-panel h2,
  .pitch-band h2,
  .roadmap h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .metric-strip strong {
    font-size: 1.25rem;
  }
}
