:root {
  color-scheme: dark;
  --bg: #07111c;
  --bg-2: #0b1624;
  --panel: rgba(12, 20, 33, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #edf2ff;
  --muted: #9aabca;
  --soft: #172033;
  --accent: #ffb224;
  --accent-2: #6bd4ff;
  --good: #56f0a6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 178, 36, 0.18), transparent 30%),
    radial-gradient(circle at 15% 75%, rgba(107, 212, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #07111c 0%, #050a12 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 80%);
  opacity: 0.25;
}

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

.hero {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 62ch;
}

.hero-chip,
.badge,
.notice,
.panel,
.stack-row,
.field-control input {
  backdrop-filter: blur(18px);
}

.hero-chip {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-chip span,
.panel-head p,
.stack-row span,
.field > span,
.highlight span,
.footer-note {
  color: var(--muted);
}

.hero-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.inputs,
.results {
  padding: 24px;
}

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

.panel-head h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.panel-head p {
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.field > span {
  font-size: 14px;
  font-weight: 600;
}

.field-control {
  position: relative;
}

.field-control input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 13, 22, 0.82);
  color: var(--text);
  padding: 18px 18px;
  padding-right: 132px;
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.field-control input:focus {
  border-color: rgba(255, 178, 36, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 178, 36, 0.12);
  transform: translateY(-1px);
}

.suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: rgba(9, 14, 24, 0.72);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(107, 212, 255, 0.16);
  background: rgba(7, 13, 22, 0.72);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: #dff6ff;
}

.notice p {
  line-height: 1.6;
  color: var(--muted);
}

.results-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.badge {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 13, 22, 0.72);
  color: #e6ecfb;
  font-size: 13px;
  font-weight: 700;
}

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

.highlight > div {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(7, 13, 22, 0.92), rgba(10, 17, 27, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.highlight strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.04em;
}

.breakdown {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 13, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.row strong {
  font-size: 18px;
  white-space: nowrap;
}

.row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.stack {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stack-row strong {
  font-size: 16px;
}

.footer-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  padding: 0 4px;
}

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

  .hero {
    display: grid;
    align-items: start;
  }

  .hero-chip {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1180px);
    padding-top: 18px;
  }

  .inputs,
  .results {
    padding: 18px;
  }

  .highlight {
    grid-template-columns: 1fr;
  }

  .field-control input {
    padding-right: 18px;
  }

  .suffix {
    position: static;
    display: inline-flex;
    margin-top: 8px;
    transform: none;
  }
}
