﻿:root {
  color-scheme: dark;
  --bg: #040814;
  --bg-2: #070d1b;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(125, 211, 252, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --green: #6ee7b7;
  --yellow: #facc15;
  --red: #fb7185;
  --violet: #a78bfa;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 30rem),
    radial-gradient(circle at 78% 12%, rgba(167, 139, 250, 0.16), transparent 30rem),
    linear-gradient(145deg, #030712 0%, #07111f 48%, #020617 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.site-background {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
}

.mesh {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.42;
  animation: floatMesh 16s ease-in-out infinite;
}

.mesh-one {
  top: -130px;
  right: 7%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.48), transparent 66%);
}

.mesh-two {
  bottom: 6%;
  left: -150px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.26), transparent 66%);
  animation-delay: -6s;
}

.mesh-three {
  right: -180px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 68%);
  animation-delay: -11s;
}

.grid-plane {
  position: absolute;
  inset: auto 8% -16vh;
  height: 42vh;
  background:
    linear-gradient(to top, rgba(56, 189, 248, 0.12), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(125, 211, 252, 0.12) 0 1px,
      transparent 1px 82px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(125, 211, 252, 0.1) 0 1px,
      transparent 1px 82px
    );
  transform: perspective(780px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 84%);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 72px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand,
.topnav,
.topnav a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  padding-left: 6px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  min-width: 54px;
  min-height: 34px;
  place-items: center;
  color: #03111f;
  background: linear-gradient(135deg, var(--accent-strong), var(--green));
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 38px rgba(56, 189, 248, 0.24);
}

.topnav {
  gap: 6px;
}

.topnav a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy-block {
  display: grid;
  gap: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: clamp(3.8rem, 8.5vw, 8.1rem);
  line-height: 0.84;
  letter-spacing: -0.088em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.8;
}

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

.primary-link,
.secondary-link,
button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.primary-link {
  color: #03111f;
  background: linear-gradient(135deg, var(--accent-strong), var(--green));
  box-shadow: 0 22px 48px rgba(56, 189, 248, 0.22);
}

.secondary-link,
button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}

.primary-link:hover,
.secondary-link:hover,
button:hover {
  transform: translateY(-2px);
}

.secondary-link:hover,
button:hover {
  border-color: rgba(125, 211, 252, 0.48);
  background: rgba(56, 189, 248, 0.12);
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
}

.signal-row article,
.metric-strip article,
.card,
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.62)),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signal-row article {
  min-height: 132px;
  padding: 18px;
  border-radius: 24px;
}

.signal-row article::before,
.metric-strip article::before,
.card::before,
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%);
  pointer-events: none;
}

.signal-row span,
.metric-strip span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-row strong,
.metric-strip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.03rem;
}

.signal-row p,
.metric-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-panel {
  min-height: 520px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--accent-strong), var(--green));
}

.panel-glow,
.result-glow {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.24), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}

.panel-glow {
  top: -110px;
  right: -120px;
}

.terminal-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.62);
}

.terminal-topline span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.terminal-topline span:nth-child(2) {
  background: var(--yellow);
}

.terminal-topline span:nth-child(3) {
  background: var(--green);
}

.terminal-topline p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.architecture-map {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 32px 12px 16px;
}

.service-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.node-primary {
  transform: translateX(-10px);
  border-color: rgba(125, 211, 252, 0.28);
}

.node-accent {
  transform: translateX(12px);
  border-color: rgba(110, 231, 183, 0.28);
}

.node-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #03111f;
  background: linear-gradient(135deg, var(--accent-strong), #e0f2fe);
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.node-accent .node-icon {
  background: linear-gradient(135deg, var(--green), #dcfce7);
}

.service-node strong {
  display: block;
  margin-bottom: 4px;
}

.service-node small {
  color: var(--muted);
}

.flow-line {
  width: 2px;
  height: 22px;
  margin-left: 40px;
  background: linear-gradient(to bottom, rgba(125, 211, 252, 0.82), rgba(110, 231, 183, 0.3));
}

.code-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.58);
}

.code-preview p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.code-preview strong {
  color: var(--green);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 70px;
}

.metric-strip article {
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
}

.calculator-section {
  display: grid;
  gap: 24px;
}

.section-intro {
  max-width: 790px;
}

.section-intro h2 {
  margin: 8px 0 10px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.section-intro p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.card {
  border-radius: var(--radius-xl);
}

.form-card,
.result-card {
  padding: 28px;
}

.card-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.card-heading h3 {
  margin: 5px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.card-heading span {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--accent-strong);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.09);
  font-size: 0.75rem;
  font-weight: 900;
}

.form-section {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.form-section + .form-section {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-number {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #03111f;
  background: linear-gradient(135deg, var(--accent-strong), var(--green));
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 950;
}

.section-heading h4 {
  margin: 0;
  font-size: 1.08rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.052)),
    rgba(2, 6, 23, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

select option {
  color: #111827;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.preset-row button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--muted-strong);
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.reset-button {
  color: var(--muted-strong);
}

.result-card {
  position: sticky;
  top: 24px;
  min-height: 620px;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--accent-strong), var(--green));
}

.result-glow {
  top: -120px;
  right: -120px;
}

.result-card[data-status="over"] .result-glow {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.32), transparent 66%);
}

.result-card[data-status="over"]::after {
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.result-card[data-status="no-budget"]::after {
  background: linear-gradient(90deg, var(--violet), var(--accent-strong));
}

.total-block {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 230px;
  align-content: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 74% 28%, rgba(125, 211, 252, 0.17), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.total-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.total-value {
  margin: 0;
  font-size: clamp(4.4rem, 9vw, 6.5rem);
  font-weight: 950;
  letter-spacing: -0.095em;
  line-height: 0.86;
}

.line-items {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.line-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.line-items strong {
  color: var(--text);
}

.budget-message {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  padding: 16px 18px;
  color: var(--muted-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  font-weight: 760;
  line-height: 1.5;
}

.result-card[data-status="under"] .budget-message {
  color: var(--green);
  border: 1px solid rgba(110, 231, 183, 0.14);
  background: rgba(110, 231, 183, 0.12);
}

.result-card[data-status="over"] .budget-message {
  color: var(--red);
  border: 1px solid rgba(251, 113, 133, 0.18);
  background: rgba(251, 113, 133, 0.12);
}

.mini-dashboard {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-dashboard span {
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 850;
}

.pricing-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

@keyframes floatMesh {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -26px, 0) scale(1.06);
  }
}

@media (max-width: 980px) {
  .topbar {
    margin-bottom: 44px;
  }

  .hero,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .result-card {
    position: static;
  }

  .metric-strip {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding: 18px 0 48px;
  }

  .topbar,
  .topnav,
  .signal-row,
  .field-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 26px;
  }

  .topnav {
    gap: 8px;
  }

  .topnav a {
    justify-content: center;
    background: rgba(255, 255, 255, 0.045);
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .hero {
    gap: 24px;
  }

  .hero-panel,
  .form-card,
  .result-card {
    padding: 20px;
    border-radius: 28px;
  }

  .node-primary,
  .node-accent {
    transform: none;
  }

  .form-section {
    padding: 18px;
  }

  .card-heading {
    display: grid;
  }

  .card-heading span {
    width: fit-content;
  }

  .total-block {
    min-height: 190px;
  }
}

/* === Design pass 2 polish overrides === */

.page-shell {
  width: min(1220px, calc(100% - 48px));
  padding-top: 34px;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: center;
  margin-bottom: 38px;
}

.hero-copy-block {
  gap: 22px;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 6.65vw, 6.35rem);
  line-height: 0.88;
  letter-spacing: -0.078em;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2px;
}

.signal-row {
  max-width: 760px;
  gap: 14px;
}

.signal-row article {
  min-height: 126px;
  padding: 19px;
}

.hero-panel {
  min-height: 500px;
  max-width: 470px;
  justify-self: end;
  width: 100%;
}

.architecture-map {
  padding: 30px 10px 14px;
}

.service-node {
  min-height: 84px;
}

.code-preview {
  margin-top: 4px;
}

.metric-strip {
  gap: 18px;
  margin: 34px 0 76px;
}

.metric-strip article {
  min-height: 142px;
  padding: 24px;
}

.calculator-section {
  gap: 26px;
}

.section-intro {
  max-width: 760px;
}

.section-intro h2 {
  max-width: 720px;
  font-size: clamp(2.55rem, 4.4vw, 4.15rem);
  line-height: 0.92;
}

.section-intro p:not(.section-kicker) {
  max-width: 700px;
}

.calculator-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
}

.form-card,
.result-card {
  padding: 30px;
}

.form-section {
  padding: 24px;
}

.card-heading {
  margin-bottom: 26px;
}

.card-heading h3 {
  font-size: clamp(1.85rem, 2.55vw, 2.55rem);
}

.total-block {
  min-height: 220px;
}

.total-value {
  font-size: clamp(4.2rem, 7.8vw, 6.1rem);
}

.result-card {
  min-height: auto;
}

input,
select {
  min-height: 52px;
}

.primary-link,
.secondary-link,
button {
  min-height: 44px;
}

@media (max-width: 1120px) {
  h1 {
    font-size: clamp(3rem, 6.2vw, 5.3rem);
  }

  .hero {
    gap: 34px;
  }

  .hero-panel {
    max-width: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .result-card {
    position: static;
    justify-self: stretch;
  }

  h1 {
    max-width: 780px;
    font-size: clamp(3rem, 12vw, 5.2rem);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1220px);
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.65rem);
  }

  .metric-strip {
    margin-bottom: 56px;
  }

  .form-card,
  .result-card,
  .hero-panel {
    padding: 20px;
  }
}

/* === End design pass 2 polish overrides === */

/* === Design pass 3 premium polish overrides === */

body {
  background:
    radial-gradient(circle at 16% 6%, rgba(125, 211, 252, 0.18), transparent 27rem),
    radial-gradient(circle at 82% 16%, rgba(110, 231, 183, 0.13), transparent 25rem),
    radial-gradient(circle at 52% 64%, rgba(99, 102, 241, 0.08), transparent 34rem),
    linear-gradient(145deg, #020617 0%, #06101e 46%, #020617 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72)),
    radial-gradient(circle at center, transparent 0, rgba(2, 6, 23, 0.42) 78%);
}

.page-shell {
  padding-top: 24px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 64px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.64)),
    rgba(2, 6, 23, 0.7);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark {
  min-width: 48px;
  min-height: 30px;
  font-size: 0.7rem;
}

.brand {
  font-size: 0.82rem;
}

.topnav a {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.78rem;
}

.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -36px -22px auto;
  height: 420px;
  z-index: -1;
  border-radius: 48px;
  background:
    radial-gradient(circle at 26% 28%, rgba(125, 211, 252, 0.12), transparent 32rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 54%);
  opacity: 0.72;
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  text-shadow: 0 0 28px rgba(125, 211, 252, 0.4);
}

h1 {
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  color: #d7e3f3;
}

.hero-actions {
  gap: 10px;
}

.primary-link {
  min-width: 150px;
  box-shadow:
    0 18px 46px rgba(56, 189, 248, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.secondary-link {
  min-width: 156px;
  background: rgba(15, 23, 42, 0.76);
}

.signal-row article,
.metric-strip article,
.card,
.hero-panel {
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.signal-row article,
.metric-strip article {
  background:
    radial-gradient(circle at 84% 18%, rgba(125, 211, 252, 0.08), transparent 14rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.66));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.signal-row article:hover,
.metric-strip article:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.36);
}

.signal-row article span,
.metric-strip article span {
  margin-bottom: 10px;
}

.hero-panel {
  transform: translateY(6px);
  background:
    radial-gradient(circle at 72% 18%, rgba(125, 211, 252, 0.14), transparent 17rem),
    linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(2, 6, 23, 0.72));
}

.hero-panel::after,
.result-card::after {
  height: 6px;
  box-shadow: 0 0 26px rgba(125, 211, 252, 0.34);
}

.terminal-topline {
  background: rgba(2, 6, 23, 0.72);
}

.service-node {
  background:
    radial-gradient(circle at 86% 20%, rgba(125, 211, 252, 0.08), transparent 10rem),
    rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.node-icon {
  width: 50px;
  height: 50px;
}

.code-preview {
  background: rgba(2, 6, 23, 0.7);
}

.metric-strip {
  margin-top: 40px;
}

.section-intro h2 {
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.calculator-grid {
  align-items: start;
}

.form-card,
.result-card {
  background:
    radial-gradient(circle at 84% 0%, rgba(125, 211, 252, 0.09), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.74));
}

.form-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(125, 211, 252, 0.06), transparent 12rem),
    rgba(255, 255, 255, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.form-section:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.28);
}

.section-number {
  box-shadow:
    0 12px 26px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

input,
select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
    rgba(15, 23, 42, 0.78);
}

.preset-row button,
.reset-button {
  font-size: 0.82rem;
}

.total-block {
  background:
    radial-gradient(circle at 70% 24%, rgba(125, 211, 252, 0.24), transparent 38%),
    radial-gradient(circle at 24% 88%, rgba(110, 231, 183, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.total-value {
  text-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}

.line-items li {
  background: rgba(15, 23, 42, 0.62);
}

.budget-message {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mini-dashboard span {
  background: rgba(15, 23, 42, 0.72);
}

@media (prefers-reduced-motion: no-preference) {
  .mesh {
    animation-duration: 18s;
  }

  .hero-panel {
    animation: panelFloat 7s ease-in-out infinite;
  }

  .service-node {
    animation: nodeGlow 8s ease-in-out infinite;
  }

  .service-node:nth-child(3) {
    animation-delay: -2s;
  }

  .service-node:nth-child(5) {
    animation-delay: -4s;
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(6px);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes nodeGlow {
  0%,
  100% {
    border-color: rgba(148, 163, 184, 0.16);
  }

  50% {
    border-color: rgba(125, 211, 252, 0.34);
  }
}

@media (max-width: 920px) {
  .topbar {
    position: static;
  }

  .hero-panel {
    transform: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-panel {
      animation: none;
    }
  }
}

/* === End design pass 3 premium polish overrides === */

/* === Design pass 4 final production polish === */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-shell,
.topbar,
.hero,
.metric-strip,
.calculator-section,
.calculator-grid {
  min-width: 0;
}

.page-shell {
  width: min(1240px, calc(100% - 56px));
}

.topbar {
  border-color: rgba(125, 211, 252, 0.2);
}

.brand {
  gap: 10px;
}

.brand-mark {
  box-shadow:
    0 0 26px rgba(125, 211, 252, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero {
  margin-top: 8px;
  margin-bottom: 46px;
}

.hero-copy-block {
  max-width: 720px;
}

h1 {
  max-width: 700px;
  font-size: clamp(3.35rem, 6.1vw, 5.95rem);
  line-height: 0.9;
}

.hero-copy {
  max-width: 650px;
}

.primary-link,
.secondary-link {
  min-height: 42px;
  font-size: 0.86rem;
}

.signal-row article {
  min-height: 118px;
}

.signal-row strong,
.metric-strip strong {
  letter-spacing: -0.02em;
}

.hero-panel {
  max-width: 450px;
  min-height: 486px;
  border-color: rgba(125, 211, 252, 0.28);
}

.service-node {
  min-height: 80px;
}

.node-icon {
  width: 48px;
  height: 48px;
}

.metric-strip {
  margin-top: 46px;
}

.metric-strip article {
  min-height: 132px;
}

.calculator-section {
  position: relative;
  margin-top: 4px;
  padding-top: 8px;
}

.calculator-section::before {
  content: "";
  position: absolute;
  inset: -24px 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.22),
    rgba(110, 231, 183, 0.2),
    transparent
  );
}

.section-intro h2 {
  max-width: 650px;
  font-size: clamp(2.45rem, 4vw, 3.85rem);
}

.calculator-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.87fr);
  gap: 34px;
}

.form-card,
.result-card {
  border-color: rgba(125, 211, 252, 0.2);
}

.card-heading h3 {
  letter-spacing: -0.045em;
}

.form-section {
  border-radius: 26px;
}

.field-grid {
  gap: 14px;
}

input,
select {
  min-height: 50px;
}

.preset-row {
  gap: 9px;
}

.preset-row button {
  min-height: 38px;
  padding-inline: 14px;
}

.result-card {
  max-width: 540px;
  justify-self: end;
  width: 100%;
}

.total-block {
  min-height: 210px;
}

.line-items li {
  padding-block: 14px;
}

.budget-message {
  padding-block: 15px;
}

.pricing-note {
  max-width: 94%;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 34px, 1240px);
  }

  .hero-copy-block,
  h1,
  .hero-copy,
  .section-intro h2 {
    max-width: none;
  }

  .result-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 1240px);
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.45rem);
  }

  .hero {
    margin-bottom: 38px;
  }

  .signal-row article,
  .metric-strip article {
    min-height: auto;
  }

  .calculator-grid {
    gap: 20px;
  }
}

/* === End design pass 4 final production polish === */
