:root {
  --bg: #070d0a;
  --surface: rgba(15, 25, 19, 0.86);
  --surface-strong: #0e1712;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(63, 207, 142, 0.38);
  --text: #eaf0ec;
  --muted: #9bac9f;
  --muted-dark: #657269;
  --accent: #3fcf8e;
  --accent-deep: #06210f;
  --error: #ef967f;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scrollbar-gutter: stable; overflow-x: clip; }
body { margin: 0; min-height: 100vh; background: var(--bg); overflow-x: clip; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(63, 207, 142, 0.28); }

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 50% -15%, #11251a 0%, #09130d 47%, var(--bg) 100%);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.35;
}
.ambient-one { width: 620px; height: 420px; top: 390px; left: -300px; background: #17673c; }
.ambient-two { width: 600px; height: 500px; top: 140px; right: -360px; background: #144c33; }

.topnav, main, footer { position: relative; z-index: 1; }
.topnav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font: 600 14px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
}
.brand-mark span { width: 10px; height: 10px; border-radius: 2px; background: #0c0d0e; }
.back-link {
  padding: 9px 17px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease;
}
.back-link:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

main { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.hero { max-width: 820px; margin: 66px auto 56px; text-align: center; }
.environment-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 7px 13px 7px 10px;
  border: 1px solid rgba(255, 207, 98, 0.26);
  border-radius: 999px;
  background: rgba(255, 207, 98, 0.05);
  color: #d9c68f;
  font: 500 11px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.09em;
}
.environment-pill span { width: 7px; height: 7px; border-radius: 50%; background: #e8c765; box-shadow: 0 0 10px rgba(232,199,101,0.5); }
.eyebrow, .plan-kicker, .promise-label {
  margin: 0;
  color: var(--accent);
  font: 600 11px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
}
.hero h1 {
  margin: 15px 0 21px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero-copy {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: balance;
}

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(18, 29, 22, 0.93), rgba(9, 16, 12, 0.97));
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.plan-card, .plan-card * { min-width: 0; }
.home-card { border-color: var(--line-strong); box-shadow: 0 28px 100px rgba(18, 98, 55, 0.15); }
.recommended-ribbon {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-deep);
  font: 700 10px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.11em;
}
.plan-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.plan-heading h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -0.02em; }
.plan-badge {
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 500 10px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
}
.accent-badge { border-color: rgba(63, 207, 142, 0.26); color: #85d9aa; background: rgba(63, 207, 142, 0.06); }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.price { font-size: clamp(42px, 5vw, 58px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.price-context { color: var(--muted-dark); font: 500 11px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.unit-price { min-height: 18px; margin: 9px 0 0; color: #7f9185; font: 500 12px/1.5 "IBM Plex Mono", monospace; }
.plan-summary { min-height: 48px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature-list { list-style: none; margin: 28px 0 32px; padding: 27px 0 0; border-top: 1px solid var(--line); display: grid; gap: 15px; }
.feature-list li { display: flex; align-items: flex-start; gap: 11px; color: #cbd6ce; font-size: 14.5px; line-height: 1.4; }
.check { color: var(--accent); font: 600 14px/1.4 "IBM Plex Mono", monospace; }
.secondary-button, .checkout-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.secondary-button { margin-top: auto; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.025); }
.secondary-button:hover { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.045); }

.preorder-controls { margin: 0 0 18px; }
.preorder-controls label { display: block; margin-bottom: 9px; color: #cbd6ce; font-size: 13px; font-weight: 600; }
.quantity-row { display: flex; align-items: center; gap: 12px; }
.quantity-row > span { color: var(--muted-dark); font: 500 11px/1 "IBM Plex Mono", monospace; }
.stepper { display: grid; grid-template-columns: 42px 58px 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(0,0,0,0.16); }
.stepper button, .stepper input { color: var(--text); background: transparent; border: 0; text-align: center; }
.stepper button { cursor: pointer; color: var(--muted); font-size: 20px; transition: color 150ms ease, background 150ms ease; }
.stepper button:hover { color: var(--accent); background: rgba(63,207,142,0.06); }
.stepper input { width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font: 600 14px/1 "IBM Plex Mono", monospace; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.checkout-button { border: 0; padding: 0 20px; justify-content: space-between; cursor: pointer; color: var(--accent-deep); background: var(--accent); transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease; }
.checkout-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(63,207,142,0.19); }
.checkout-button:disabled { cursor: not-allowed; opacity: 0.48; }
.checkout-note { margin: 13px 2px 0; color: var(--muted-dark); font-size: 11.5px; line-height: 1.5; }
.status-message { min-height: 18px; margin: 10px 2px 0; color: #86a28f; font: 500 11px/1.5 "IBM Plex Mono", monospace; }
.status-message.error { color: var(--error); }

.promise { margin: 80px 0 0; padding: 38px 0 6px; border-top: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 28px; }
.promise-grid > div > span { color: var(--muted-dark); font: 500 11px/1 "IBM Plex Mono", monospace; }
.promise h3 { margin: 12px 0 9px; font-size: 17px; }
.promise p:not(.promise-label) { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
footer {
  width: min(1080px, calc(100% - 48px));
  margin: 70px auto 0;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font: 500 11px/1.5 "IBM Plex Mono", monospace;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { margin-top: 45px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .home-card { order: -1; }
  .promise-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .topnav, main, footer { width: calc(100% - 32px); max-width: 1080px; }
  .topnav { padding-top: 19px; }
  .brand { flex: 0 1 auto; font-size: 11px; letter-spacing: 0.08em; }
  .brand-mark { width: 28px; height: 28px; }
  .back-link { flex: none; padding: 7px 10px; font-size: 11px; }
  .hero { margin: 38px auto 42px; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 35px); overflow-wrap: anywhere; }
  .hero-copy { font-size: 16.5px; }
  .plan-card { padding: 29px 22px 24px; border-radius: 16px; }
  .plan-heading { flex-direction: column; gap: 12px; }
  .price-block { margin-top: 29px; }
  .price { font-size: 47px; }
  .feature-list li, .plan-summary, .checkout-note, .status-message { overflow-wrap: anywhere; }
  footer { flex-direction: column; margin-top: 54px; }
}

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