:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --paper: #ffffff;
  --ink: #0a0d11;
  --muted: #6b6f76;
  --soft: #e8edf3;
  --line: #dfe1e4;
  --accent: #2e6ea6;
  --highlight: #f3d978;
  --shell: 1200px;
  font-family: "Geist", "Inter", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(10, 13, 17, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 13, 17, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 245, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  min-height: 64px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  min-width: 46px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cfd2d6;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease;
}

.language-toggle:hover {
  border-color: var(--ink);
  background: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
}

.brand img {
  display: block;
}

.top-nav {
  display: flex;
  align-self: stretch;
  justify-content: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #74777c;
  font-size: 14px;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
}

.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  gap: 10px;
  color: white;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(46, 110, 166, 0.28);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.official-link:hover {
  background: #272b30;
  transform: translateY(-1px);
}

.official-link svg,
.boost-cta svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.hero {
  padding: 86px 0 50px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #64686e;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #3d7db3;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(61, 125, 179, 0.12);
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero h1 .muted-line {
  color: #91959b;
}

.hero h1 .ink-line {
  color: var(--ink);
}

.hero-copy {
  max-width: 530px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.creator-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 94px;
  padding: 18px;
  gap: 14px;
  border: 1px solid #cfd2d6;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 26px rgba(10, 13, 17, 0.07);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.creator-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(10, 13, 17, 0.12);
}

.creator-x {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--ink);
  font-size: 18px;
}

.creator-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.creator-copy small,
.creator-copy > span {
  color: #7c8187;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.creator-copy strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.creator-arrow {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.boost-wrap {
  margin-bottom: 64px;
}

.boost-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  gap: 28px;
  padding: 24px 30px;
  color: white;
  background:
    linear-gradient(105deg, rgba(46, 110, 166, 0) 55%, rgba(46, 110, 166, 0.44)),
    #0a0d11;
  box-shadow: 0 10px 38px rgba(10, 13, 17, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.boost-banner::before {
  position: absolute;
  top: -120%;
  left: 55%;
  width: 1px;
  height: 340%;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 58px 0 rgba(255, 255, 255, 0.08), 116px 0 rgba(255, 255, 255, 0.04);
  content: "";
  transform: rotate(32deg);
}

.boost-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 46px rgba(10, 13, 17, 0.22);
}

.boost-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--ink);
  background: var(--highlight);
  font-family: "Geist Mono", monospace;
  font-size: 21px;
  font-weight: 700;
}

.boost-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.boost-kicker {
  color: #a7b9ca;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.boost-copy strong {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.boost-copy > span:last-child {
  color: #b8bcc1;
  font-size: 13px;
}

.boost-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  gap: 8px;
  color: var(--ink);
  background: white;
  font-size: 14px;
  font-weight: 600;
}

.calculator-section {
  scroll-margin-top: 90px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
}

.section-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.section-index {
  color: #8a8e94;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
}

.section-heading h2,
.method h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.data-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666a70;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #c69533;
  border-radius: 50%;
}

.data-status.ready .status-dot {
  background: #4f8b68;
}

.data-status.stale .status-dot {
  background: #b07e35;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  border: 1px solid var(--line);
  background: var(--paper);
}

.panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

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

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.panel-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.reset-button {
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  color: #74787e;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.reset-button:hover {
  color: var(--ink);
}

.field {
  display: block;
}

.field-primary {
  margin-bottom: 24px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #3f4348;
  font-size: 13px;
  font-weight: 500;
}

.field-hint {
  color: #989ca2;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 72px;
  border: 1px solid #cfd2d6;
  background: #fafafa;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border-color: var(--ink);
  background: white;
  box-shadow: inset 3px 0 var(--accent);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 70px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Geist Mono", monospace;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.04em;
  appearance: textfield;
}

.input-shell input::-webkit-outer-spin-button,
.input-shell input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.input-prefix,
.input-suffix {
  flex: none;
  color: #8b8f95;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.input-prefix {
  padding-left: 16px;
  font-size: 16px;
}

.input-suffix {
  padding-right: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.input-shell.compact {
  min-height: 54px;
}

.input-shell.compact input {
  height: 52px;
  padding: 0 16px;
  font-size: 21px;
}

.boost-toggle {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  min-height: 54px;
  padding: 0 14px 0 16px;
  border: 1px solid #cfd2d6;
  background: #eef3f8;
  cursor: pointer;
}

.date-shell input {
  min-width: 0;
  color-scheme: light;
  font-size: 16px !important;
  letter-spacing: -0.02em !important;
}

.boost-toggle > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boost-toggle strong {
  font-size: 13px;
  font-weight: 600;
}

.boost-toggle small {
  color: #737981;
  font-size: 10px;
}

.boost-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-track {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  background: #a9adb2;
  transition: background 160ms ease;
}

.toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  transition: transform 160ms ease;
}

.boost-toggle input:checked + .toggle-track {
  background: var(--accent);
}

.boost-toggle input:checked + .toggle-track span {
  transform: translateX(18px);
}

.boost-toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.input-note {
  margin: 18px 0 0;
  color: #898d92;
  font-size: 11px;
  line-height: 1.5;
}

.results-panel {
  display: flex;
  flex-direction: column;
  color: white;
  background:
    radial-gradient(circle at 84% 10%, rgba(65, 126, 180, 0.28), transparent 30%),
    #0a0d11;
}

.result-label {
  color: #b7bbc0;
  font-size: 13px;
}

.result-value {
  display: flex;
  align-items: flex-start;
  margin-top: 14px;
  font-family: "Geist Mono", monospace;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.result-value span {
  margin: 5px 8px 0 0;
  color: #8faeca;
  font-size: 23px;
  letter-spacing: 0;
}

.result-caption {
  margin-top: 10px;
  color: #777d84;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 42px 0 0;
  border-top: 1px solid #30343a;
  border-left: 1px solid #30343a;
}

.result-breakdown div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #30343a;
  border-bottom: 1px solid #30343a;
}

.result-breakdown dt {
  margin-bottom: 8px;
  color: #7f858c;
  font-size: 10px;
}

.result-breakdown dd {
  margin: 0;
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.formula-box {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 28px;
  gap: 7px;
}

.formula-box span {
  color: #777d84;
  font-size: 10px;
}

.formula-box code {
  color: #b8c7d4;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
}

.market-strip {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.3fr 0.8fr 1.1fr;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper);
}

.market-strip > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 92px;
  justify-content: center;
  padding: 18px 22px;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.market-strip > div:last-child {
  border-right: 0;
}

.market-strip span {
  color: #85898f;
  font-size: 10px;
}

.market-strip strong {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.method {
  display: grid;
  grid-template-columns: 40px minmax(250px, 1fr) minmax(300px, 0.9fr);
  align-items: start;
  margin-top: 96px;
  padding: 42px 0 110px;
  gap: 28px;
  border-top: 1px solid #cfd2d6;
}

.method h2 {
  margin-bottom: 17px;
}

.method p {
  max-width: 580px;
  margin: 0;
  color: #6f7379;
  font-size: 14px;
  line-height: 1.75;
}

.method .disclaimer {
  padding-left: 28px;
  border-left: 1px solid #cfd2d6;
  font-size: 12px;
}

.site-footer {
  color: #c2c5c9;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-inner a {
  color: white;
}

.footer-maker {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer-maker span {
  color: #777d84;
  font-size: 9px;
  font-weight: 500;
}

.footer-maker strong {
  transition: transform 160ms ease;
}

.footer-maker:hover strong {
  transform: translate(2px, -2px);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

  .creator-card {
    width: min(100%, 360px);
  }

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

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

  .market-strip {
    grid-template-columns: 1fr 1fr;
  }

  .market-strip > div:nth-child(2),
  .market-strip > div:nth-child(4) {
    border-right: 0;
  }

  .market-strip > div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .market-strip > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .method {
    grid-template-columns: 34px 1fr;
  }

  .method .disclaimer {
    grid-column: 2;
    padding: 20px 0 0;
    border-top: 1px solid #cfd2d6;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .official-link {
    min-height: 40px;
    padding: 0 14px;
  }

  .language-toggle {
    min-width: 42px;
    min-height: 40px;
  }

  .hero {
    padding: 58px 0 36px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-copy {
    margin-top: 24px;
    font-size: 15px;
  }

  .creator-card {
    width: 100%;
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(41px, 11.5vw, 54px);
    letter-spacing: -0.055em;
  }

  .boost-wrap {
    margin-bottom: 54px;
  }

  .boost-banner {
    grid-template-columns: auto 1fr;
    min-height: 0;
    padding: 22px;
    gap: 16px;
  }

  .boost-mark {
    width: 66px;
    height: 66px;
    font-size: 17px;
  }

  .boost-copy > span:last-child {
    display: none;
  }

  .boost-cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .panel {
    padding: 24px 20px;
  }

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

  .results-panel {
    min-height: 530px;
  }

  .market-strip {
    grid-template-columns: 1fr;
  }

  .market-strip > div,
  .market-strip > div:nth-child(2),
  .market-strip > div:nth-child(4) {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-strip > div:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .method {
    grid-template-columns: 1fr;
    margin-top: 72px;
    padding-bottom: 80px;
    gap: 18px;
  }

  .method .disclaimer {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
