/* ---------------------------------------------------------
   fiveorban — a minimal crypto checkout
   --------------------------------------------------------- */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/frank-ruhl-libre-hebrew.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/frank-ruhl-libre-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08090b;
  --text: #ffffff;
  --muted: #ffffff;
  --dim: #ffffff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --accent: #f2b45c;
  --accent-2: #ffd9a0;
  --accent-ink: #1b1205;
  --accent-glow: rgba(242, 180, 92, 0.15);
  --glow-2: rgba(247, 147, 26, 0.08);

  --serif: "Instrument Serif", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Heebo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 26px;
}

html[data-asset="SOL"] {
  --accent: #6fe7c0;
  --accent-2: #c2ffe9;
  --accent-ink: #04150f;
  --accent-glow: rgba(111, 231, 192, 0.14);
  --glow-2: rgba(153, 69, 255, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.55) saturate(0.9);
  transform: scale(1.03);
}

body::before {
  content: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Background ------------------------------------------------- */

.glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(700px 520px at 10% 70%, var(--accent-glow), transparent 70%),
    radial-gradient(820px 580px at 92% 58%, var(--glow-2), transparent 72%),
    radial-gradient(1000px 620px at 50% -14%, rgba(255, 255, 255, 0.055), transparent 66%);
}

.page {
  position: relative;
  z-index: 3;
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 26px 0 40px;
}

/* Top bar ---------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: rise 0.6s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 10px;
}

.brand-word {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  -webkit-text-stroke: 1.5px #000000;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 3.2s ease-in-out infinite;
}

/* Hero ------------------------------------------------------- */

.hero {
  padding: clamp(40px, 6vw, 62px) 0 clamp(26px, 3.4vw, 36px);
  text-align: center;
  animation: rise 0.7s 0.05s ease both;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--dim);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.8vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 34px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Payment tiers ---------------------------------------------- */

.tiers {
  margin-top: clamp(34px, 4.8vw, 48px);
  animation: rise 0.7s 0.2s ease both;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--dim);
  font-size: 0.75rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.tier {
  --tier: #f2b45c;
  --tier-2: #ffe3b3;
  --tier-ink: #1b1205;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 28px 22px 22px;
  text-align: center;
  background:
    radial-gradient(130% 70% at 50% 0%, color-mix(in srgb, var(--tier) 11%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.9));
  border: 1px solid color-mix(in srgb, var(--tier) 24%, var(--line));
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 34px 90px -70px var(--tier);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tier-gold {
  --tier: #f2b45c;
  --tier-2: #ffe3b3;
  --tier-ink: #1b1205;
}

.tier-silver {
  --tier: #cfd6e0;
  --tier-2: #ffffff;
  --tier-ink: #14171c;
}

.tier-cyan {
  --tier: #3fe3d1;
  --tier-2: #b8fff6;
  --tier-ink: #04211d;
}

.tier-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  color: var(--tier-2);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: color-mix(in srgb, var(--tier) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
  border-radius: 999px;
}

.tier-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--tier);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--tier);
}

.tier-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--tier-2);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tier) 18%, transparent), rgba(255, 255, 255, 0.02) 72%);
  border: 1px solid color-mix(in srgb, var(--tier) 48%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 34px -8px color-mix(in srgb, var(--tier) 55%, transparent),
    inset 0 0 24px -12px var(--tier);
}

.tier-icon svg {
  width: 30px;
  height: 30px;
}

.tier-name {
  margin-top: 16px;
  color: var(--tier-2);
  font-family: var(--serif);
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 2.35rem;
  line-height: 1;
  direction: ltr;
}

.tier-currency {
  color: var(--muted);
  font-size: 1.5rem;
}

.tier-unit {
  margin-left: 5px;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.tier-note {
  min-height: 2.4em;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.tier-list {
  display: grid;
  gap: 11px;
  width: 100%;
  padding: 17px 0 0;
  margin: 16px 0 20px;
  list-style: none;
  text-align: start;
  border-top: 1px solid var(--line);
}

.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.tier-list li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  background: var(--tier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2312100c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 4.8 8.5 9.5 3.7'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
  border-radius: 50%;
}

.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  color: var(--tier-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: none;
  background: linear-gradient(135deg, var(--tier-2), var(--tier));
  border: none;
  border-radius: 12px;
  box-shadow: 0 16px 36px -22px var(--tier);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.buy:active {
  transform: translateY(1px);
}

.buy-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .buy:hover {
    filter: brightness(1.06);
    box-shadow: 0 20px 42px -20px var(--tier);
  }

  .buy:hover .buy-arrow {
    transform: translateX(-3px);
  }
}

.buy.is-unavailable {
  opacity: 0.4;
  filter: grayscale(1);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .tier:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tier) 48%, transparent);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 40px 100px -64px var(--tier);
  }
}

.note {
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: center;
}

/* Footer ----------------------------------------------------- */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 22px;
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 600px;
}

.footer-brand {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-brand .footer-name {
  color: var(--accent);
}

.footer-brand .footer-dot,
.footer-brand .footer-year {
  color: var(--dim);
  font-weight: 400;
}

.disclaimer {
  color: #6f7580;
}

.noscript {
  margin-top: 18px;
  padding: 12px 16px;
  color: var(--accent-2);
  font-size: 0.8rem;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 12px;
}

/* Layout ----------------------------------------------------- */

@media (min-width: 760px) {
  .tier-grid {
    max-width: 460px;
    margin: 0 auto;
  }
}

/* Small screens ---------------------------------------------- */

@media (max-width: 640px) {
  .page {
    width: calc(100% - 32px);
    padding-top: 18px;
    padding-bottom: max(32px, calc(32px + env(safe-area-inset-bottom)));
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11.5vw, 4rem);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tier {
    padding: 26px 18px 20px;
  }

  .status-pill {
    padding: 6px 10px;
    font-size: 0.58rem;
  }

  .brand-word {
    font-size: 0.98rem;
  }
}

@media (max-width: 400px) {
  .tier-icon {
    width: 64px;
    height: 64px;
  }

  .tier-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* Motion ----------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
