:root {
  --void: #0b1211;
  --panel: #121a19;
  --line: #24302e;
  --foam: #e7f2ee;
  --mist: #9bb0aa;
  --sea: #5ee0b5;
  --sea-deep: #1faf84;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.35s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  background: var(--void);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.5;
}
body.is-loading .hero-in {
  opacity: 0;
  transform: translateY(18px);
}

.atmosphere {
  position: fixed;
  inset: -8%;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(94, 224, 181, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(31, 175, 132, 0.12), transparent 50%),
    linear-gradient(180deg, #0e1615 0%, var(--void) 45%, #0a1010 100%);
  animation: atmosphere-drift 22s ease-in-out infinite alternate;
}
@keyframes atmosphere-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.03); }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 17, 0.7);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--t) ease;
}
.brand:hover { opacity: 0.88; }

.mark-img {
  display: block;
  border-radius: 0.48rem;
  transition: transform 0.45s var(--ease);
}
.brand:hover .mark-img { transform: rotate(-8deg) scale(1.04); }

.word {
  font-family: Sora, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.word b { font-weight: 600; }
.word em {
  font-style: normal;
  color: var(--sea);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 0.82em;
  margin-left: 0.2rem;
}

nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--t) ease, opacity var(--t) ease;
}
nav a:hover { color: var(--foam); }

.hero {
  min-height: calc(100vh - 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 920px;
}
.hero-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
body:not(.is-loading) .hero-in {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-family: Sora, sans-serif;
  color: var(--sea);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 11ch;
}

.lede {
  color: var(--mist);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 36rem;
  margin: 0 0 1.8rem;
}

.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-family: Sora, sans-serif;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition:
    transform 0.28s var(--ease),
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    opacity 0.28s ease,
    box-shadow 0.28s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn.primary {
  background: var(--sea);
  color: var(--void);
}
.btn.primary:hover {
  background: #79ebc4;
  box-shadow: 0 10px 28px rgba(94, 224, 181, 0.18);
}
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--foam);
  background: transparent;
}
.btn.ghost:hover { border-color: var(--sea); }
.buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.buy-row .btn {
  width: 100%;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  max-width: 1100px;
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
}

.section-lede {
  color: var(--mist);
  margin: 0 0 1.8rem;
  max-width: 40rem;
}

.guide-grid, .plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.guide-grid article, .plans article {
  background: rgba(18, 26, 25, 0.9);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.2rem 1.4rem;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    background 0.35s ease,
    opacity 0.45s var(--ease);
}
.guide-grid article:hover, .plans article:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 224, 181, 0.35);
  background: rgba(20, 30, 28, 0.95);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.plans {
  transition: opacity 0.28s ease, transform 0.35s var(--ease);
}
.plans.is-swap {
  opacity: 0;
  transform: translateY(8px);
}
.plans article.plan-in {
  animation: plan-in 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes plan-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h3 {
  font-family: Sora, sans-serif;
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--mist);
}
ol li { margin: 0.35rem 0; }

.price {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  color: var(--sea);
  margin: 0.2rem 0 0.4rem;
}
.plan-meta {
  margin: 0;
  color: var(--mist);
  font-size: 0.92rem;
}

.account-bar, .pay-method-bar {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem 1.25rem;
  margin-bottom: 1.4rem;
  background: rgba(18, 26, 25, 0.65);
  animation: soft-in 0.5s var(--ease) both;
}
@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.account-bar p, .pay-method-bar p { margin: 0 0 0.9rem; color: var(--mist); }
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.login-hint {
  margin-top: 0.9rem;
  color: var(--foam);
  font-size: 0.95rem;
}
.login-hint a { color: var(--sea); }

.logged-mini {
  display: flex;
  justify-content: flex-end;
  margin: -0.4rem 0 0.9rem;
}

.linkish {
  background: none;
  border: none;
  color: var(--mist);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.linkish:hover { color: var(--foam); }

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 10, 9, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pay-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pay-modal-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.35rem 1.3rem 1.2rem;
  background: rgba(14, 20, 19, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.pay-modal.is-open .pay-modal-card {
  transform: translateY(0) scale(1);
}
.pay-modal-kicker {
  margin: 0 0 0.4rem;
  color: var(--sea);
  font-family: Sora, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-modal-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}
.pay-modal-lede {
  margin: 0 0 1.15rem;
  color: var(--mist);
  font-size: 0.95rem;
}
.pay-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}
.pay-modal-close {
  display: block;
  margin: 0 auto;
}

.plans article .btn.buy {
  width: 100%;
  margin-top: 0.9rem;
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.plan-tabs button {
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.28s var(--ease);
}
.plan-tabs button:hover { transform: translateY(-1px); }
.plan-tabs button.active {
  color: var(--void);
  background: var(--sea);
  border-color: var(--sea);
}

.crypto-box {
  margin-top: 1.2rem;
  border: 1px solid var(--sea);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  background: rgba(18, 26, 25, 0.9);
}
.crypto-box h3 { margin-bottom: 0.5rem; }
.wallet-line {
  margin: 0.8rem 0;
  word-break: break-all;
}
.wallet-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--sea);
  font-size: 0.95rem;
}

.pay-note {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--mist);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.hidden { display: none !important; }

.cookie-banner {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  left: auto;
  z-index: 50;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(12, 18, 17, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate3d(18px, 22px, 0);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}
.cookie-banner.is-hiding {
  opacity: 0;
  transform: translate3d(14px, 18px, 0);
  pointer-events: none;
}
.cookie-banner p {
  margin: 0 0 0.9rem;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
@media (max-width: 480px) {
  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.92rem;
}
footer a { color: var(--sea); text-decoration: none; }

@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere { animation: none; }
  .hero-in,
  .reveal,
  .plans,
  .plans article.plan-in,
  .account-bar,
  .cookie-banner,
  .pay-modal,
  .pay-modal-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.is-loading .hero-in { opacity: 1; transform: none; }
}
