:root {
  --bg-1: #0f1724;
  --bg-2: #1a2336;
  --ink: #f3f7ff;
  --muted: #9bb0d1;
  --accent: #4be3ac;
  --accent-2: #7dd3fc;
  --panel: rgba(14, 22, 37, 0.68);
  --panel-soft: rgba(6, 11, 21, 0.58);
  --panel-strong: rgba(3, 8, 17, 0.52);
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --select: #4be3ac;
  --essential: #7dd3fc;
  --chart-grid: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #203454 0%, transparent 35%),
    radial-gradient(circle at 80% 10%, #1f4058 0%, transparent 40%),
    radial-gradient(circle at 20% 90%, #25321c 0%, transparent 35%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  animation: drift 14s linear infinite;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-120px, -80px);
  }
}

.shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(7, 13, 23, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  text-decoration: none;
}

.brand {
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.subtle-pill {
  align-self: flex-start;
}

.explorer-main {
  padding: 8vh 0 10vh;
}

.hero-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy {
  padding-top: 0.4rem;
}

.tag {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1rem;
  background: rgba(20, 29, 46, 0.55);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(75, 227, 172, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(75, 227, 172, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(75, 227, 172, 0);
  }
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.glitch::before {
  color: #6ee7ff;
  transform: translate(1px, -1px);
  clip-path: inset(0 0 55% 0);
  animation: glitch-a 2.8s infinite ease-in-out alternate;
}

.glitch::after {
  color: #9dfcbf;
  transform: translate(-1px, 1px);
  clip-path: inset(55% 0 0 0);
  animation: glitch-b 2.2s infinite ease-in-out alternate;
}

@keyframes glitch-a {
  0% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, -2px);
  }

  100% {
    transform: translate(2px, 0);
  }
}

@keyframes glitch-b {
  0% {
    transform: translate(-1px, 1px);
  }

  50% {
    transform: translate(1px, 3px);
  }

  100% {
    transform: translate(-2px, 1px);
  }
}

.lead,
p {
  color: var(--muted);
}

.lead {
  margin-top: 1.3rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
}

.terminal {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(6, 11, 21, 0.58);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: #c4d9fb;
}

.terminal .prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.hero-actions,
.page-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn,
.secondary-btn {
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.83rem;
  text-transform: uppercase;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn {
  border: 0;
  text-decoration: none;
}

.btn-primary {
  color: #052014;
  background: linear-gradient(135deg, var(--accent), #97f4d2);
  box-shadow: 0 12px 30px rgba(75, 227, 172, 0.25);
}

.btn-secondary,
.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
}

.btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.card,
.plan-box,
.results-section,
.slider-block,
.metric,
.chart-wrap {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card::after,
.plan-box::after,
.results-section::after,
.slider-block::after,
.metric::after,
.chart-wrap::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01));
  opacity: 0.3;
  pointer-events: none;
}

.card {
  padding: 1.2rem;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.status-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 8, 17, 0.35);
}

.status span {
  color: var(--muted);
  font-size: 0.88rem;
}

.status strong {
  font-size: 0.96rem;
}

.tool-card {
  margin-top: 2rem;
  padding: 1.3rem;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

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

.header-row h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 0.7rem 0 0;
  max-width: 62ch;
}

.controls,
.plan-name-params,
.plan-params,
.cost-params {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

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

.plan-name-params,
.plan-params,
.cost-params {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.section-head h2 {
  font-size: 1.04rem;
}

.cost-wide {
  grid-column: 1 / -1;
}

.plan-box {
  padding: 0.9rem;
  background: var(--panel-soft);
}

.plan-box h2 {
  font-size: 1.02rem;
}

.param-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #dbe7ff;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  font: inherit;
  color: var(--ink);
  background: rgba(7, 12, 21, 0.74);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: rgba(75, 227, 172, 0.55);
  box-shadow: 0 0 0 3px rgba(75, 227, 172, 0.12);
  background: rgba(9, 15, 27, 0.88);
}

option {
  color: #08111e;
}

.results-section {
  margin-top: 1rem;
  padding: 0.95rem;
  background: rgba(8, 14, 27, 0.62);
}

.slider-block {
  margin-top: 1rem;
  padding: 0.9rem;
  background: var(--panel-soft);
}

.slider-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#claimsValue {
  font-weight: 800;
  color: var(--accent-2);
}

input[type="range"] {
  margin-top: 0.8rem;
  width: 100%;
  accent-color: var(--accent);
}

.metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric {
  padding: 1rem;
  background: rgba(7, 12, 21, 0.58);
}

.metric .label {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric .value {
  margin-top: 0.3rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.03em;
}

.chart-wrap {
  margin-top: 1rem;
  padding: 0.9rem;
  background: rgba(5, 10, 19, 0.68);
  height: 560px;
}

.breakeven {
  margin-top: 1rem;
  border: 1px dashed var(--stroke);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: rgba(7, 12, 21, 0.54);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-block,
  .controls,
  .plan-name-params,
  .cost-params,
  .plan-params,
  .metrics {
    grid-template-columns: 1fr;
  }

  .header-row,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .subtle-pill {
    align-self: auto;
  }

  .chart-wrap {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .explorer-main {
    padding-top: 2.5rem;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .secondary-btn,
  .pill {
    text-align: center;
    justify-content: center;
  }

  .param-grid-two {
    grid-template-columns: 1fr;
  }

  .chart-wrap {
    height: 360px;
  }
}
