:root {
  --black: #000000;
  --black-soft: #070707;
  --surface: #0c0c0c;
  --surface-2: #111111;
  --lime: #c4ff00;
  --lime-bright: #7cff00;
  --white: #ffffff;
  --muted: #858585;
  --muted-light: #b5b5b5;
  --border: rgba(255, 255, 255, 0.09);
  --border-lime: rgba(196, 255, 0, 0.2);
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(196, 255, 0, 0.055),
      transparent 32%
    ),
    var(--black);
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  position: fixed;
  pointer-events: none;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.035;
  z-index: -1;
}

.page-glow-one {
  background: var(--lime);
  top: 8%;
  left: -280px;
}

.page-glow-two {
  background: #ffffff;
  right: -300px;
  bottom: 8%;
}


/* HEADER */

.site-header {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
  width: min(1120px, calc(100% - 40px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #bcbcbc;
  text-decoration: none;
  font-size: 13px;
  transition: color .25s ease;
}

.back-link:hover {
  color: var(--lime);
}

.back-icon {
  font-size: 18px;
  line-height: 1;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #777;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.brand-mini img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}


/* MAIN */

.main-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 50px;
}


/* HERO */

.hero {
  width: min(680px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 7px 11px;
  border: 1px solid rgba(196, 255, 0, .16);
  border-radius: 999px;
  color: #999;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  background: rgba(196, 255, 0, .025);
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px var(--lime);
  vertical-align: 1px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 25px;
  text-align: left;
}

.hero-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 12px;
  letter-spacing: .08em;
}

.brand-copy span {
  color: #777;
  font-size: 10px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: #757575;
}

.hero-description {
  max-width: 540px;
  margin: 20px auto 0;
  color: #858585;
  font-size: 14px;
  line-height: 1.7;
}


/* CALCULATOR */

.calculator-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(10, 10, 10, .92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.tool-header {
  min-height: 108px;
  padding: 25px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.tool-kicker {
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}

.tool-header h2 {
  font-size: 22px;
  letter-spacing: -.035em;
}

.tool-header p {
  margin-top: 3px;
  color: #6d6d6d;
  font-size: 11px;
}

.tool-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #8d8d8d;
  font-size: 9px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}


/* BODY */

.calculator-body {
  padding: 28px;
}


/* MODE */

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.mode-button {
  min-height: 66px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #090909;
  color: #fff;
  cursor: pointer;
  transition:
    border-color .25s var(--ease),
    background .25s var(--ease),
    transform .25s var(--ease);
}

.mode-button:hover {
  border-color: rgba(196, 255, 0, .22);
  transform: translateY(-1px);
}

.mode-button.active {
  border-color: rgba(196, 255, 0, .45);
  background:
    linear-gradient(
      135deg,
      rgba(196, 255, 0, .08),
      rgba(196, 255, 0, .025)
    );
}

.mode-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: #151515;
  color: #777;
  font-size: 16px;
}

.mode-button.active .mode-icon {
  background: var(--lime);
  color: #000;
}

.mode-button strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.mode-button small {
  display: block;
  margin-top: 3px;
  color: #666;
  font-size: 9px;
  font-weight: 500;
}


/* INPUT */

.input-section {
  margin-bottom: 18px;
}

.input-section label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #d2d2d2;
  font-size: 11px;
  font-weight: 700;
}

.input-section label small {
  color: #555;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  border: 1px solid #242424;
  border-radius: 13px;
  background: #050505;
  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

.input-wrap:focus-within {
  border-color: rgba(196, 255, 0, .5);
  box-shadow: 0 0 0 3px rgba(196, 255, 0, .055);
}

.input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 45px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.input-wrap input::placeholder {
  color: #373737;
}

.currency-symbol,
.percentage-symbol {
  position: absolute;
  color: #777;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.currency-symbol {
  left: 15px;
}

.amount-wrap input {
  padding-left: 37px;
}

.percentage-symbol {
  right: 16px;
  color: var(--lime);
}

.rate-note {
  margin-top: 7px;
  color: #505050;
  font-size: 9px;
}


/* CALCULATE BUTTON */

.calculate-button {
  width: 100%;
  height: 56px;
  margin-top: 7px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  background: var(--lime);
  color: #000;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform .25s var(--ease),
    box-shadow .25s ease,
    background .25s ease;
}

.calculate-button:hover {
  background: #d0ff28;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(196, 255, 0, .12);
}

.calculate-button:active {
  transform: translateY(0);
}

.button-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, .1);
  font-size: 16px;
}


/* PAYWALL */

.paywall {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(196, 255, 0, .22);
  border-radius: 17px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(196, 255, 0, .07),
      transparent 38%
    ),
    #0b0b0b;
  animation: reveal .4s var(--ease);
}

.paywall.visible {
  display: block;
}

.paywall-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(196, 255, 0, .09);
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.close-paywall {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #171717;
  color: #777;
  cursor: pointer;
  transition: color .2s ease;
}

.close-paywall:hover {
  color: #fff;
}

.paywall-icon {
  width: 38px;
  height: 38px;
  margin: 18px 0 12px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--lime);
  color: #000;
  font-size: 17px;
}

.paywall h3 {
  font-size: 19px;
  letter-spacing: -.03em;
}

.paywall > p {
  max-width: 500px;
  margin-top: 7px;
  color: #777;
  font-size: 11px;
  line-height: 1.6;
}

.pro-features {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}

.pro-features div {
  color: #aaa;
  font-size: 10px;
}

.pro-features span {
  margin-right: 7px;
  color: var(--lime);
}

.paywall-action {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
}

.price {
  display: flex;
  flex-direction: column;
}

.price small {
  color: #505050;
  font-size: 8px;
  letter-spacing: .1em;
}

.price strong {
  margin-top: 2px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -.04em;
}

.unlock-button {
  height: 43px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #000;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.unlock-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(196, 255, 0, .12);
}

.secure-note {
  margin-top: 12px;
  color: #444;
  text-align: center;
  font-size: 8px;
}

.secure-note span {
  color: var(--lime);
  margin-right: 4px;
}


/* RESULT */

.result-box {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 17px;
  background: #080808;
  animation: reveal .45s var(--ease);
}

.result-box.show {
  display: block;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.result-kicker {
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.result-header h3 {
  margin-top: 5px;
  font-size: 16px;
  letter-spacing: -.025em;
}

.result-check {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(196, 255, 0, .09);
  color: var(--lime);
  font-size: 12px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.result-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  background: #050505;
}

.result-item.total-item {
  border-color: rgba(196, 255, 0, .28);
  background:
    linear-gradient(
      135deg,
      rgba(196, 255, 0, .075),
      transparent
    ),
    #050505;
}

.result-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #666;
  font-size: 9px;
}

.result-number {
  color: #333;
  font-size: 8px;
}

.result-item strong {
  display: block;
  margin-top: 11px;
  overflow: hidden;
  color: #ddd;
  font-size: clamp(15px, 2.8vw, 20px);
  font-weight: 600;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.total-item strong {
  color: var(--lime);
}

.result-footer {
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  color: #555;
  font-size: 9px;
}

.result-footer strong {
  color: #999;
}

.copy-button {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d0d0d;
  color: #999;
  cursor: pointer;
  font-size: 9px;
  transition:
    color .2s ease,
    border-color .2s ease;
}

.copy-button:hover {
  color: var(--lime);
  border-color: rgba(196, 255, 0, .25);
}


/* TOOL FOOTER */

.tool-footer {
  min-height: 47px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--border);
  color: #444;
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lime);
}


/* ECOSYSTEM */

.ecosystem-card {
  width: min(720px, 100%);
  margin: 18px auto 0;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #080808;
}

.ecosystem-label {
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.ecosystem-copy h2 {
  max-width: 470px;
  margin-top: 7px;
  font-size: 17px;
  letter-spacing: -.035em;
}

.ecosystem-copy h2 span {
  color: #666;
}

.ecosystem-copy p {
  max-width: 470px;
  margin-top: 6px;
  color: #555;
  font-size: 10px;
  line-height: 1.6;
}

.explore-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #aaa;
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
  transition:
    border-color .2s ease,
    color .2s ease;
}

.explore-button:hover {
  border-color: rgba(196, 255, 0, .3);
  color: var(--lime);
}

.explore-button span {
  font-size: 13px;
}


/* FOOTER */

.site-footer {
  width: min(720px, 100%);
  margin: 35px auto 0;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-footer p {
  color: #3d3d3d;
  font-size: 8px;
}


/* TOAST */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(196, 255, 0, .2);
  border-radius: 10px;
  background: #101010;
  color: #bbb;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .4);
  font-size: 10px;
  transform: translate(-50%, 80px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .35s var(--ease),
    opacity .35s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-icon {
  color: var(--lime);
}


/* ANIMATION */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* TABLET */

@media (max-width: 700px) {

  .main-container {
    padding-top: 50px;
  }

  .hero {
    margin-bottom: 35px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 50px);
  }

  .calculator-body {
    padding: 22px;
  }

  .tool-header {
    padding: 21px 22px;
  }

  .ecosystem-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .explore-button {
    width: 100%;
    justify-content: space-between;
  }
}


/* MOBILE */

@media (max-width: 520px) {

  .nav-container,
  .main-container {
    width: min(100% - 28px, 720px);
  }

  .nav-container {
    height: 62px;
  }

  .brand-mini span {
    display: none;
  }

  .main-container {
    padding-top: 38px;
    padding-bottom: 35px;
  }

  .hero {
    margin-bottom: 27px;
  }

  .brand-lockup {
    margin-bottom: 20px;
  }

  .hero-logo {
    width: 37px;
    height: 37px;
  }

  .hero h1 {
    font-size: 35px;
    line-height: 1.01;
  }

  .hero-description {
    margin-top: 15px;
    font-size: 11px;
    line-height: 1.65;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .calculator-shell {
    border-radius: 19px;
  }

  .tool-header {
    min-height: 88px;
    padding: 18px;
  }

  .tool-header h2 {
    font-size: 19px;
  }

  .tool-badge {
    padding: 6px 8px;
    font-size: 8px;
  }

  .calculator-body {
    padding: 18px;
  }

  .mode-selector {
    gap: 7px;
    margin-bottom: 19px;
  }

  .mode-button {
    min-height: 61px;
    padding: 9px;
    gap: 8px;
  }

  .mode-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .mode-button strong {
    font-size: 10px;
  }

  .mode-button small {
    display: none;
  }

  .input-section {
    margin-bottom: 15px;
  }

  .input-wrap {
    height: 53px;
  }

  .input-wrap input {
    font-size: 17px;
  }

  .calculate-button {
    height: 52px;
    font-size: 12px;
  }

  .paywall,
  .result-box {
    padding: 17px;
  }

  .paywall h3 {
    font-size: 17px;
  }

  .paywall > p {
    font-size: 10px;
  }

  .paywall-action {
    align-items: flex-end;
  }

  .price strong {
    font-size: 19px;
  }

  .unlock-button {
    height: 40px;
    padding: 0 12px;
    gap: 10px;
    font-size: 10px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .result-item {
    padding: 12px;
  }

  .result-item strong {
    margin-top: 8px;
    font-size: 17px;
  }

  .result-footer {
    align-items: center;
  }

  .tool-footer {
    min-height: 43px;
    padding: 0 18px;
    font-size: 7px;
  }

  .ecosystem-card {
    padding: 18px;
    border-radius: 15px;
  }

  .ecosystem-copy h2 {
    font-size: 15px;
  }

  .ecosystem-copy p {
    font-size: 9px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

}