/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --dark-primary: #0a0a1a;
  --dark-secondary: #12122a;
  --dark-card: #161632;
  --accent: #00d4aa;
  --accent-hover: #00b894;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --text-white: #ffffff;
  --text-light: #b8b8d0;
  --text-muted: #7a7a9a;
  --light-bg: #f7f8fc;
  --light-card: #ffffff;
  --border-subtle: rgba(255,255,255,0.06);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-gap: 100px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--font-body); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(18, 18, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 26, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 38px;
  width: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--dark-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 100px;
  background: var(--dark-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-white);
  max-width: 800px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

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

.hero-description {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero .btn-primary {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* ============================================
   LOGO MARQUEE
   ============================================ */
.marquee-section {
  padding: 72px 0;
  background: var(--dark-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.marquee-track {
  display: flex;
  align-items: center;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  flex-shrink: 0;
}

.marquee-item img {
  height: 56px;
  max-width: 180px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.marquee-item:hover img {
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ============================================
   ABOUT SECTION (light)
   ============================================ */
.about-section {
  padding: var(--section-gap) 0;
  background: var(--light-bg);
  color: var(--dark-primary);
}

.about-section .section-label {
  color: var(--accent-hover);
}

.about-section .section-title {
  color: var(--dark-primary);
}

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.about-section .section-subtitle {
  color: #5a5a7a;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  background: var(--light-card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 20px;
  border: 3px solid var(--accent);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.team-bio {
  font-size: 15px;
  color: #5a5a7a;
  line-height: 1.65;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: var(--section-gap) 0;
  background: var(--dark-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   WAITLIST / CTA SECTION
   ============================================ */
.waitlist-section {
  padding: var(--section-gap) 0 120px;
  background: var(--dark-secondary);
  position: relative;
}

.waitlist-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 56px 48px;
  position: relative;
  z-index: 1;
}

.waitlist-card .section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 8px;
}

.waitlist-card .section-subtitle {
  margin-bottom: 40px;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.04);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.form-input option {
  background: var(--dark-card);
  color: var(--text-white);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-trust {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-trust svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  width: 14px;
  height: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  background: var(--dark-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   TEAM MODAL
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--light-card);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--dark-primary);
  cursor: pointer;
  transition: background 0.25s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 24px;
  border: 4px solid var(--accent);
}

.modal-name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-primary);
  margin-bottom: 4px;
}

.modal-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-hover);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.modal-bio {
  font-size: 16px;
  color: #5a5a7a;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-hover);
  transition: all 0.25s ease;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--dark-primary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.05);
  color: #999;
}

.social-icon-disabled:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #999;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 72px;
  }

  .hero {
    padding: 120px 20px 72px;
    min-height: auto;
  }

  .hero-logo {
    width: 160px;
    margin-bottom: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .header-logo {
    height: 30px;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
  }

  .marquee-item {
    padding: 0 36px;
  }

  .marquee-item img {
    height: 40px;
    max-width: 140px;
  }

  .waitlist-card {
    padding: 40px 24px;
    border-radius: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 40px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .modal-content {
    padding: 40px 28px;
    border-radius: 20px;
  }

  .modal-photo {
    width: 110px;
    height: 110px;
  }

  .modal-name {
    font-size: 26px;
  }

  .modal-bio {
    font-size: 15px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }
}
