:root {
  color-scheme: dark;
  --ink: #f4f2ed;
  --muted: #aaa4b7;
  --panel: rgba(20, 17, 31, 0.82);
  --line: rgba(255, 255, 255, 0.11);
  --lime: #c7ff5c;
  --violet: #8d61ff;
}

* {
  box-sizing: border-box;
}

html {
  background: #0c0a12;
}

body {
  margin: 0;
  background: #0c0a12;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

main {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 54px max(24px, calc((100vw - 1180px) / 2)) 38px;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.58;
  pointer-events: none;
}

.orb-one {
  width: 520px;
  height: 520px;
  right: -150px;
  top: -180px;
  background: radial-gradient(circle at 35% 35%, #aa8bff, transparent 65%);
}

.orb-two {
  width: 360px;
  height: 360px;
  left: -210px;
  bottom: 40px;
  background: radial-gradient(circle, #a8ff63, transparent 70%);
  opacity: 0.22;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 36px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eyebrow i {
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--lime);
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 850;
}

.lead {
  margin: 0;
  max-width: 600px;
  font-size: clamp(18px, 2.2vw, 25px);
  color: #c9c5d0;
  line-height: 1.35;
}

.calculator {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

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

.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.field {
  display: grid;
  gap: 8px;
  color: #bdb8c7;
  font-size: 13px;
}

.input-shell {
  display: flex;
  align-items: center;
  background: #100e18;
  border: 1px solid #34303e;
  border-radius: 14px;
  transition: 0.2s ease;
}

.input-shell:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(141, 97, 255, 0.18);
}

input {
  min-width: 0;
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 15px 8px 15px 15px;
  font-size: 20px;
  font-weight: 760;
}

.input-shell b {
  color: #7f788b;
  padding-right: 14px;
  font-size: 13px;
}

.hint {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #777181;
  font-size: 12px;
  line-height: 1.45;
}

.results {
  display: grid;
  gap: 22px;
}

.verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.verdict span {
  color: #9f98aa;
  font-size: 13px;
}

.verdict strong {
  color: var(--lime);
  font-size: 18px;
  text-align: right;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metrics article {
  min-width: 0;
  padding: 15px 13px;
  background: #13101d;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.metrics span {
  display: block;
  color: #928b9d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metrics strong {
  display: block;
  margin: 8px 0 5px;
  font-size: clamp(21px, 2.2vw, 31px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.metrics small {
  display: block;
  color: #6f6978;
  font-size: 10px;
  line-height: 1.25;
}

.revenue {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #9f98aa;
  font-size: 13px;
}

.revenue b {
  color: white;
}

button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: var(--lime);
  color: #10120b;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  background: #d5ff83;
}

button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-top: 28px;
  color: #8d8794;
}

footer p {
  max-width: 700px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

footer b {
  color: #cbc7d1;
}

footer span {
  font-size: 11px;
  white-space: nowrap;
}

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

  .inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .orb-one {
    right: -300px;
  }
}

@media (max-width: 540px) {
  main {
    padding-top: 34px;
  }

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

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

  .hint {
    grid-column: 1;
  }

  .calculator {
    border-radius: 22px;
  }

  .metrics strong {
    font-size: 24px;
  }

  h1 {
    font-size: 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
