:root {
  --bg-color: #000;
  --text-main: #F5F5F7;
  --text-muted: #86868B;
  --accent-color: #0071E3;
  --surface-color: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-blur: blur(20px);
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-color);
  scroll-behavior: smooth;
}

body.smooth-scroller {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Ambient Background & SVGs ---------- */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
}

.perspective-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(var(--surface-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: gridMove 20s linear infinite;
  opacity: 0.15;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
  }
}

.ambient-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, #000 60%);
  z-index: 1;
}

@media (min-width: 768px) {
  .ambient-background::after {
    display: none;
  }
}

.ambient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.ambient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s ease-in-out infinite alternate;
}

@media (max-width: 767px) {
  .ambient-img {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

/* ---------- Hero Section (Parallax) ---------- */
.parallax-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 340px 24px 80px;
  /* Restored massive top padding for mobile */
  text-align: center;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* Force text to bottom on mobile */
  gap: 40px;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .parallax-container {
    padding: 0 24px;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 80px;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .ambient-img {
    position: absolute;
    right: -10vw;
    width: 80vw;
    height: 100vh;
    object-fit: contain;
    object-position: center center;
    max-width: 1200px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 90%, transparent 100%),
                        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 90%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-composite: intersect;
  }
}

.hero-text {
  flex: 1;
  max-width: 480px;
  /* Narrower width for better wrap */
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .hero-brand {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    justify-content: flex-start;
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.hero-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.hero-brand-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #86868B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.hero-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .hero-links {
    justify-content: center;
    flex-direction: column;
  }
}

.badge-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-link:hover {
  transform: scale(1.05) translateY(-2px);
}

.badge-link img {
  height: 40px;
}

/* ---------- Hero Checklist ---------- */
.hero-checklist {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-main);
  opacity: 0.9;
}

.hero-checklist svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-checklist {
    margin-bottom: 48px;
  }
}

/* ---------- Simple Footer ---------- */
.simple-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  z-index: 10;
}

.simple-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.simple-footer a:hover {
  color: var(--text-main);
}

.simple-footer .sep {
  color: var(--surface-border);
}

/* ---------- Legal pages overrides ---------- */
.legal {
  padding: 120px 24px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.legal-nav {
  margin-bottom: 48px;
}

.legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.legal-nav a:hover {
  color: #fff;
}

.legal h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.legal .updated {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.legal p,
.legal ul {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal a:hover {
  color: var(--accent-color);
}