/* OnlyPay — payment product, meme punchline */

:root {
  --bg: #08090c;
  --bg-elev: #101217;
  --graphite: #1a1d24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6f8;
  --muted: #9aa1ad;
  --cyan: #7af4e0;
  --cyan-deep: #14c9b2;
  --violet: #9d7bff;
  --magenta: #d46cff;
  --paper: #f3eee4;
  --paper-ink: #16181d;
  --pay-face: #eefbf8;
  --pay-ink: #071114;
  --header-h: 68px;
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 82% 8%, rgba(157, 123, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 36% at 8% 12%, rgba(20, 201, 178, 0.07), transparent 46%),
    var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--pay-face);
  color: var(--pay-ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.section-kicker {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn-pay,
.btn-buy {
  background: linear-gradient(180deg, #ffffff 0%, var(--pay-face) 48%, #d7f7f0 100%);
  color: var(--pay-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(20, 201, 178, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-pay:hover,
.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 28px rgba(20, 201, 178, 0.22);
}

.btn-pay:active,
.btn-buy:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(7, 17, 20, 0.18);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-pay {
  min-width: 148px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 9, 12, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.brand-word {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.nav-links a {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav-actions .btn {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
}

/* Hero */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem 1rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 9.4rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
}

.hero-lede {
  margin: 1.6rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-line {
  margin: 1.15rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  --mx: 0;
  --my: 0;
}

.hero-light {
  position: absolute;
  inset: 8% 6% 12%;
  background:
    radial-gradient(circle at 42% 38%, rgba(122, 244, 224, 0.22), transparent 36%),
    radial-gradient(circle at 68% 48%, rgba(157, 123, 255, 0.2), transparent 42%),
    radial-gradient(circle at 50% 70%, rgba(212, 108, 255, 0.12), transparent 46%);
  filter: blur(8px);
  animation: light-drift 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-bezel {
  position: absolute;
  right: 2%;
  top: 12%;
  width: min(78%, 470px);
  height: 72%;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.72), rgba(10, 11, 14, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
}

.bezel-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.bezel-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(122, 244, 224, 0.7);
}

.bezel-label {
  color: var(--cyan);
}

.bezel-meta {
  margin-left: auto;
}

.bezel-screen {
  position: relative;
  height: calc(100% - 84px);
  margin: 0.7rem;
  border-radius: 16px;
  background: #07080b;
  overflow: hidden;
}

.bezel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

.bezel-prompt {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(154, 161, 173, 0.7);
}

.bezel-slot {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 10px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(122, 244, 224, 0.45), rgba(157, 123, 255, 0.4), transparent);
}

.hero-mascot-float {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  animation: mascot-float 5.5s ease-in-out infinite;
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 12px));
}

.hero-mascot {
  width: 100%;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.45));
}

@keyframes mascot-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes light-drift {
  from {
    transform: translate(-2%, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate(3%, 2%) scale(1.06);
    opacity: 1;
  }
}

/* Receipt */

.receipt-section {
  padding: 2rem 1.25rem 6rem;
}

.receipt {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 2.4rem 1.8rem 1.9rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle, var(--bg) 6px, transparent 6.5px);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}

.receipt::before {
  top: -7px;
}

.receipt::after {
  bottom: -7px;
  transform: rotate(180deg);
}

.receipt-head {
  text-align: center;
}

.receipt-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
}

.receipt-head p {
  margin: 0.4rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #5d616a;
  letter-spacing: 0.04em;
}

.receipt-rule {
  height: 1px;
  margin: 1.2rem 0;
  background-image: repeating-linear-gradient(
    90deg,
    #16181d 0 6px,
    transparent 6px 10px
  );
  opacity: 0.45;
}

.receipt-rows {
  margin: 0;
}

.receipt-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.receipt-rows dt {
  color: #5d616a;
  font-weight: 400;
}

.receipt-rows dd {
  margin: 0;
  font-weight: 500;
}

.receipt-action {
  color: #0b6e63;
  font-weight: 600;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
}

.receipt-total span {
  color: #5d616a;
  font-size: 0.82rem;
}

.receipt-total strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* About */

.about,
.why-pay,
.chart-section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 7rem;
}

.about-title {
  margin: 0 0 2.5rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 420px;
}

.ticker-list li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.about-note {
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-removed {
  margin: 2.4rem 0 0;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 10ch;
}

.about-name {
  margin: 1.1rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* The button */

.why-pay {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem 4rem;
  align-content: center;
}

.pay-pad {
  position: relative;
  width: min(920px, 100%);
  min-height: min(46vh, 380px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.pay-pad-rim {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(180deg, #3a3e48, #12141a 42%, #0a0b0e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -8px 16px rgba(0, 0, 0, 0.45),
    0 28px 50px rgba(0, 0, 0, 0.45);
}

.pay-pad-face {
  position: relative;
  z-index: 1;
  width: calc(100% - 28px);
  min-height: calc(100% - 28px);
  margin: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #1c2028, #101217 55%, #0c0e13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s ease;
}

.pay-pad-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.pay-pad-title {
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.pay-pad-sub {
  margin-top: 0.4rem;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.18em;
  color: var(--muted);
}

.pay-pad:hover .pay-pad-face {
  transform: translateY(-6px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 28px rgba(0, 0, 0, 0.22),
    0 0 40px rgba(122, 244, 224, 0.08);
}

.pay-pad:active .pay-pad-face,
.pay-pad.is-pressed .pay-pad-face {
  transform: translateY(3px);
  filter: brightness(0.96);
  box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.35);
}

.pay-pad-caption {
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Banner */

.cinema {
  margin: 1rem 0 5rem;
  overflow: hidden;
}

.cinema img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

/* Payment address */

.address-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
}

.pay-field {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.pay-field-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pay-field-meta h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.pay-field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: #0b0c10;
  border: 1px solid var(--line);
}

.pay-field-row code {
  flex: 1;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 2.2vw, 1.02rem);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy-btn {
  border: 0;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 9px;
  background: var(--pay-face);
  color: var(--pay-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
}

.copy-btn:hover {
  filter: brightness(1.05);
}

.copy-btn.is-copied {
  background: var(--cyan);
}

/* Chart */

.chart-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 6.5rem;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.chart-head h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.chart-frame {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0c10;
}

.chart-embed {
  width: 100%;
  height: 480px;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.chart-embed.is-ready {
  opacity: 1;
}

.chart-waiting {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(16, 18, 23, 0.2), rgba(8, 9, 12, 0.55)),
    #0b0c10;
  z-index: 1;
}

.chart-waiting.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.chart-waiting p {
  margin: 0;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.chart-waiting-plot {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 72px;
}

.chart-waiting-plot span {
  width: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  opacity: 0.55;
}

.chart-waiting-plot span:nth-child(1) { height: 18px; }
.chart-waiting-plot span:nth-child(2) { height: 28px; }
.chart-waiting-plot span:nth-child(3) { height: 22px; }
.chart-waiting-plot span:nth-child(4) { height: 34px; }

/* Final CTA */

.final-cta {
  text-align: center;
  padding: 3rem 1.25rem 6rem;
}

.final-title {
  margin: 0;
  font-size: clamp(4.4rem, 14vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.final-title span {
  display: block;
}

.final-line {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.final-cta .hero-ctas {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-meta,
.footer-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-note {
  margin-top: 0.85rem;
}

/* Reveals */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-stage {
    min-height: 460px;
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .hero-bezel {
    width: min(84%, 420px);
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .brand-word {
    font-size: 0.95rem;
  }

  .pay-pad {
    min-height: min(58vh, 360px);
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 20vw, 5.4rem);
  }

  .hero-stage {
    min-height: 400px;
  }

  .hero-light,
  .hero-bezel {
    opacity: 0.85;
  }

  .cinema img {
    max-height: 180px;
  }

  .chart-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-links a[href="#about"],
  .nav-links a[href="#why-pay"] {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-actions .btn-ghost {
    min-width: 44px;
    padding-inline: 0.8rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero-ctas .btn {
    min-height: 52px;
    flex: 1 1 auto;
  }

  .hero-stage {
    min-height: 320px;
  }

  .receipt {
    padding-inline: 1.2rem;
  }

  .receipt-rows {
    font-size: 0.78rem;
  }

  .pay-field-row {
    flex-wrap: wrap;
  }

  .copy-btn {
    width: 100%;
  }

  .chart-embed {
    height: 360px;
  }
}

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

  .hero-light,
  .hero-mascot-float,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    translate: 0;
  }

  .btn,
  .pay-pad-face,
  .chart-embed,
  .chart-waiting {
    transition: none !important;
  }
}
