:root {
  color-scheme: dark;
  --bg: #0b1114;
  --bg-deep: #070b0d;
  --card: rgba(13, 26, 34, 0.9);
  --text: #e8f3f7;
  --muted: #9bb2be;
  --accent: #2df3d5;
  --accent-2: #ff6ea9;
  --accent-3: #ffb562;
  --border: rgba(69, 209, 255, 0.25);
  --glow: 0 0 40px rgba(45, 243, 213, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top, rgba(17, 40, 52, 0.7), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, .brand-name {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.5px;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  inset: -30vh -10vw auto;
  height: 70vh;
  background: radial-gradient(circle at center, rgba(45, 243, 213, 0.2), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255, 110, 169, 0.2), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.coming-soon-banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 98, 0.4);
  background: rgba(12, 20, 24, 0.85);
  box-shadow: 0 16px 32px rgba(255, 181, 98, 0.2);
  font-size: 13px;
  text-align: center;
}

.coming-soon-banner .badge {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0a1012;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2));
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(45, 243, 213, 0.4);
  box-shadow: var(--glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.brand-name {
  font-weight: 700;
  font-size: 21px;
}

.brand-sub {
  color: var(--muted);
  font-size: 16.5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn.with-icon {
  gap: 8px;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn.github .btn-icon {
  filter: invert(1);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #021012;
  box-shadow: 0 12px 30px rgba(45, 243, 213, 0.25);
}

.btn.secondary {
  background: linear-gradient(120deg, rgba(255, 110, 169, 0.85), rgba(45, 243, 213, 0.6));
  color: #041013;
  box-shadow: 0 12px 30px rgba(255, 110, 169, 0.2);
}

.btn.ghost {
  background: rgba(15, 28, 36, 0.7);
  border-color: rgba(69, 209, 255, 0.35);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 110, 169, 0.25);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 56px 0 70px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.stat {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(69, 209, 255, 0.2);
  background: rgba(10, 20, 27, 0.7);
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.screen-stack {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 9 / 12;
  margin-bottom: 32px;
}

.screen {
  border-radius: 18px;
  border: 1px solid rgba(69, 209, 255, 0.35);
  box-shadow: 0 30px 60px rgba(2, 15, 20, 0.6);
  background: rgba(7, 12, 15, 0.8);
}

.screen-primary {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

.screen-secondary {
  position: absolute;
  right: -12%;
  bottom: -12%;
  width: 68%;
  transform: rotate(6deg);
  animation: float 7s ease-in-out infinite reverse;
}

.screen-caption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: left;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  line-height: 1.6;
}

.features {
  padding: 20px 0 70px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(69, 209, 255, 0.2);
  box-shadow: inset 0 0 40px rgba(7, 17, 22, 0.5);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.screens {
  padding: 20px 0 70px;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.screen-tile {
  background: rgba(12, 22, 28, 0.8);
  border: 1px solid rgba(69, 209, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.screen-tile img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-tile figcaption {
  padding: 10px 14px 14px;
  font-size: 13px;
  color: var(--muted);
}

.promo {
  padding: 20px 0 70px;
}

.promo-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.promo-player {
  width: min(240px, 70vw);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(69, 209, 255, 0.25);
  background: rgba(7, 12, 15, 0.8);
  box-shadow: 0 18px 32px rgba(2, 15, 20, 0.4);
}

.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.promo-tablist {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px;
  max-width: min(520px, 90vw);
  border-radius: 999px;
  border: 1px solid rgba(69, 209, 255, 0.2);
  background: rgba(12, 22, 28, 0.7);
  box-shadow: inset 0 0 18px rgba(7, 17, 22, 0.6);
  scroll-snap-type: x proximity;
}

.promo-tab {
  border: 1px solid rgba(69, 209, 255, 0.25);
  background: rgba(15, 28, 36, 0.6);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  scroll-snap-align: start;
}

.promo-tab.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #021012;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(45, 243, 213, 0.2);
}

.promo-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 243, 213, 0.2);
}

.promo-tablist::-webkit-scrollbar {
  height: 4px;
}

.promo-tablist::-webkit-scrollbar-thumb {
  background: rgba(45, 243, 213, 0.4);
  border-radius: 999px;
}

.how {
  padding: 20px 0 70px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.how-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 179, 92, 0.3);
  background: rgba(16, 21, 24, 0.85);
}

.step-number {
  font-family: "Orbitron", sans-serif;
  color: var(--accent-3);
  font-size: 14px;
  letter-spacing: 2px;
}

.how-card h3 {
  margin: 10px 0 8px;
  font-size: 16px;
}

.tutorial {
  padding: 20px 0 70px;
}

.tutorial-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(69, 209, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 40px rgba(7, 17, 22, 0.5);
}

.tutorial-video video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(69, 209, 255, 0.3);
  background: rgba(7, 12, 15, 0.8);
}

.gift-preview-section {
  padding: 20px 0 70px;
}

.gift-preview-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 20px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(69, 209, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 40px rgba(7, 17, 22, 0.5);
}

.gift-preview-card--compact {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px);
  padding: 18px;
  margin-bottom: 18px;
}

.gift-preview-copy h2,
.gift-preview-copy h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.gift-preview-card--compact .gift-preview-copy h3 {
  font-size: 18px;
}

.gift-preview-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.gift-preview-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(69, 209, 255, 0.3);
  display: block;
  background: rgba(7, 12, 15, 0.8);
}

.how-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cta {
  padding: 10px 0 80px;
}

.cta-card {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(45, 243, 213, 0.16), rgba(255, 110, 169, 0.12));
  border: 1px solid rgba(69, 209, 255, 0.3);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.cta-card .cta-row {
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(960px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(69, 209, 255, 0.35);
  background: rgba(10, 18, 22, 0.96);
  box-shadow: 0 30px 80px rgba(2, 10, 12, 0.7);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(69, 209, 255, 0.2);
}

.modal-header h2 {
  font-size: clamp(20px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
}

.modal-body {
  flex: 1;
  min-height: 0;
  padding: 20px 24px 28px;
  overflow: auto;
}

.iframe-shell {
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(69, 209, 255, 0.2);
  background: rgba(8, 14, 18, 0.8);
}

.beta-form-frame {
  display: block;
  width: 100%;
  min-height: 420px;
}

.donate-hero {
  position: relative;
  z-index: 1;
  padding: 50px 0 20px;
}

.donate-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.donate {
  padding: 10px 0 80px;
  position: relative;
  z-index: 1;
}

.donate-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.donate-panel,
.donate-card {
  background: var(--card);
  border: 1px solid rgba(69, 209, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 40px rgba(7, 17, 22, 0.5);
}

.donate-panel h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.donate-list {
  list-style: disc;
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  padding-left: 20px;
}

.donate-list li {
  padding-left: 0;
  line-height: 1.6;
}

.donate-list li::marker {
  color: var(--accent);
}

.donate-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 181, 98, 0.3);
  background: rgba(255, 181, 98, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.donation-form {
  display: grid;
  gap: 18px;
}

.donation-form label,
.gift-form label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.donation-form select,
.donation-form input,
.gift-form input {
  width: 100%;
  background: rgba(15, 28, 36, 0.85);
  border: 1px solid rgba(69, 209, 255, 0.35);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.preset-button {
  background: rgba(15, 28, 36, 0.75);
  border: 1px solid rgba(69, 209, 255, 0.35);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preset-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 243, 213, 0.2);
}

.preset-button.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #021012;
  border-color: transparent;
}

.amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(69, 209, 255, 0.35);
  background: rgba(15, 28, 36, 0.85);
}

.amount-input input {
  border: none;
  background: transparent;
  padding: 12px 0;
}

.amount-prefix {
  font-weight: 600;
  color: var(--accent);
}

.form-helper {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.form-error {
  color: var(--accent-2);
  font-size: 12px;
  min-height: 16px;
  margin-top: 6px;
}

.payment-step {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(69, 209, 255, 0.2);
}

.payment-header {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.payment-form {
  display: grid;
  gap: 16px;
}

.payment-message {
  color: var(--accent-2);
  font-size: 13px;
}

.payment-message.is-success {
  color: var(--accent);
}

.gift-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(69, 209, 255, 0.25);
  background: rgba(12, 24, 32, 0.75);
  box-shadow: inset 0 0 30px rgba(7, 17, 22, 0.6);
}

.gift-visual {
  margin: 12px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(69, 209, 255, 0.25);
  background: rgba(8, 14, 18, 0.6);
}

.gift-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.gift-header {
  font-weight: 600;
  margin-bottom: 6px;
}

.gift-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.gift-form {
  display: grid;
  gap: 14px;
}

.gift-message {
  color: var(--accent-2);
  font-size: 12px;
  min-height: 18px;
  margin-top: 4px;
}

.gift-message.is-success {
  color: var(--accent);
}

.footer {
  padding: 30px 0 60px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(69, 209, 255, 0.15);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer .brand-name {
  font-size: 13px;
}

.footer .brand-sub {
  font-size: 12px;
}

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

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 18px;
  }

  .coming-soon-banner {
    border-radius: 22px;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-body {
    padding: 16px;
  }

  .donate-hero {
    padding-top: 30px;
  }

  .donate-layout {
    grid-template-columns: 1fr;
  }

  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-tablist {
    justify-content: flex-start;
  }

  .gift-preview-card,
  .gift-preview-card--compact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .stat-row {
    gap: 12px;
  }

  .tutorial-card {
    grid-template-columns: 1fr;
  }

  .screen-secondary {
    right: -6%;
    bottom: -8%;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
