:root {
  color-scheme: light;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #f8f7f4;
  --bg-card: rgba(255, 255, 255, 0.95);
  --glass: rgba(0, 0, 0, 0.06);
  --text: #0b0b0b;
  --muted: rgba(11, 11, 11, 0.65);
  --accent: #0b0b0b;
  --accent-2: #7e7e7e;
  --stroke: rgba(11, 11, 11, 0.08);
  --glow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff, #f0efea);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.site-header {
  padding: 32px 0 120px;
  position: relative;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fdfdf9;
  box-shadow: var(--glow);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--text);
}

.hero {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 24px;
}

.hero-copy h1 span {
  color: var(--accent-2);
}

.cash-accent {
  background: linear-gradient(110deg, #5fbf7a 0%, #34a853 50%, #0f8a30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-copy .lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-media {
  position: relative;
  min-height: 520px;
  isolation: isolate;
  padding: 48px;
  border-radius: 40px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 232, 232, 0.9));
  overflow: hidden;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.08), transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(0, 0, 0, 0.05), transparent 50%);
  opacity: 0.9;
  filter: blur(6px);
  z-index: 0;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4) 40%, rgba(248, 248, 248, 0.9) 100%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.hero-card {
  position: absolute;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  max-width: 360px;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card.primary {
  top: 10px;
  right: 40px;
}

.hero-card.stacked {
  bottom: 30px;
  left: 30px;
  animation-delay: -2s;
}

.hero-card h3,
.hero-card h2 {
  margin: 8px 0 16px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.waitlist-section {
  margin: 40px 0 120px;
}

.waitlist-card {
  padding: clamp(32px, 5vw, 48px);
  border-radius: 32px;
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  box-shadow: var(--glow);
  max-width: 640px;
  margin: 0 auto;
}

.waitlist-card h2 {
  margin: 0 0 16px;
}

.waitlist-card > p {
  color: var(--muted);
  margin: 0 0 24px;
}

#getWaitlistContainer {
  margin-top: 24px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 0, 0, 0.06), transparent);
  pointer-events: none;
  z-index: 2;
}

.swap-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.swap-items {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.swap-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.swap-item img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  padding: 10px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.swap-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.swap-delta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0d0d0d;
}

.swap-delta small {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.swap-delta small.negative {
  color: #c53030;
}

.swap-items.mini .swap-item img {
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.hero-grid .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  position: absolute;
}

.hero-grid .dot:nth-child(1) {
  top: 30%;
  left: 20%;
}
.hero-grid .dot:nth-child(2) {
  top: 70%;
  left: 60%;
}
.hero-grid .dot:nth-child(3) {
  top: 45%;
  left: 80%;
}
.hero-grid .dot:nth-child(4) {
  top: 10%;
  left: 55%;
}

.phone-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  margin: 120px 0;
}

.phone-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.badge-row span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 0.85rem;
  color: var(--muted);
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  border-radius: 36px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #111, #050505);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  position: relative;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.swipe-stack {
  position: relative;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.swipe-card img {
  flex: 1;
  object-fit: cover;
}

.swipe-card .card-meta {
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%);
}

.swipe-card,
.swipe-card .card-meta,
.swipe-card .card-meta p {
  color: rgba(255, 255, 255, 0.82);
}

.swipe-card .card-meta h3 {
  color: #ffffff;
}

.swipe-card.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 3;
}

.swipe-card.is-next {
  opacity: 0.6;
  transform: scale(0.96) translateY(12px);
  z-index: 2;
}

.swipe-card.is-last {
  opacity: 0.4;
  transform: scale(0.92) translateY(24px);
  z-index: 1;
}

.swipe-card.swipe-out {
  animation: cardSwipe 0.6s ease forwards;
}

@keyframes cardSwipe {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translate(60px, -20px) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.9) translate(160px, -80px) rotate(15deg);
  }
}

.swipe-footer {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ghost-btn,
.glow-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.glow-btn {
  background: var(--accent);
  color: #fdfdf9;
  box-shadow: var(--glow);
}

.phone-frame .ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

.phone-frame .glow-btn {
  background: #f5f5f2;
  color: #050505;
}

.swipe-owner {
  margin-top: 12px;
  text-align: center;
}

.owner-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.owner-name {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
}

.site-footer a {
  margin-left: 16px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .hero {
    margin-top: 40px;
  }

  .phone-frame {
    width: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
