/* ─── Design Tokens ─────────────────────────────── */
:root {
  --color-purple: #C471ED;
  --color-coral: #F64F59;
  --gradient-brand: linear-gradient(135deg, #C471ED, #F64F59);
  --color-bg-primary: #0D0B1A;
  --color-bg-secondary: #12101F;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-text-primary: #EEEAF2;
  --color-text-secondary: #A8A0B0;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 64px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ─── Utilities ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

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

/* ─── Section ───────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section:nth-child(even) {
  background: var(--color-bg-secondary);
}

.section__heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section__heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-top: -40px;
  margin-bottom: 48px;
}

/* ─── Nav ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  background: rgba(13, 11, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border-subtle);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.nav__icon { flex-shrink: 0; }

.nav__wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text-primary);
}

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 32px) 24px 64px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero__icon-wrap {
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(196, 113, 237, 0.3));
}

.hero__icon {
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 8px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-secondary);
  opacity: 0.5;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 113, 237, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(196, 113, 237, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-subtle);
}

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

.btn--large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

/* ─── Feature Cards ─────────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.3s, background 0.3s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.card__icon {
  margin-bottom: 16px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__desc {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ─── Steps (How It Works) ──────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  max-width: 260px;
  flex: 0 1 260px;
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.step__connector {
  display: flex;
  align-items: center;
  padding-top: 40px;
  flex: 0 0 80px;
}

/* ─── Transport Cards ───────────────────────────── */
.transports__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.transport-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}

.transport-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.transport-card__icon {
  margin-bottom: 12px;
}

.transport-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.transport-card__range {
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.transport-card__desc {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ─── Privacy ───────────────────────────────────── */
.privacy {
  text-align: center;
}

.privacy__quote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 48px;
  position: relative;
  padding: 0 24px;
}

.privacy__quote::before {
  content: '\201C';
  position: absolute;
  left: -8px;
  top: -16px;
  font-size: 4rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.4;
}

.privacy__badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ─── Download ──────────────────────────────────── */
.download {
  text-align: center;
}

.download__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.download__obtainium img {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.download__obtainium img:hover {
  opacity: 1;
}

.download__note {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ─── Community ─────────────────────────────────── */
.community__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.community__col h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.community__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community__col a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.community__col a:hover {
  color: var(--color-purple);
}

/* ─── Footer ────────────────────────────────────── */
.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

.footer__tagline {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-text-primary);
}

.footer__copy {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* ─── Scroll Reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Focus States ──────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

/* ─── Reduced Motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-hint { display: none; }
}

/* ─── Responsive ────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: rgba(13, 11, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
  }

  .nav__menu--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 28px;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step__connector {
    transform: rotate(90deg);
    padding-top: 0;
    flex: 0 0 32px;
  }

  .transports__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .privacy__badges {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }

  .btn { width: 100%; }
}
