/* Global resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2933 0, #020617 55%, #000 100%);
  color: #f9fafb;
  line-height: 1.6;
}

.page {
  min-height: 100vh;
}

/* Language visibility */
.lang {
  display: none;
}

.lang-en {
  display: inline;
}

body.lang-es .lang-en {
  display: none;
}

body.lang-es .lang-es {
  display: inline;
}

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.95),
    rgba(3, 7, 18, 0.6)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 0, #4ade80 0, #16a34a 40%, #064e3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.8;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: rgba(22, 163, 74, 0.1);
}

.lang-toggle {
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lang-toggle:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(248, 250, 252, 0.8);
}

/* Hero section */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3vw + 1rem, 3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-text p {
  color: #cbd5f5;
  font-size: 0.98rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 10px;
}

.btn {
  border-radius: 999px;
  padding: 11px 22px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #f9fafb;
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.55);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
  border-color: rgba(248, 250, 252, 0.8);
  background: rgba(15, 23, 42, 0.7);
}

.hero-sub {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 8px;
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 20px 18px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.hero-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.pill.live {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(22, 163, 74, 0.25);
  color: #bbf7d0;
}

.hero-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hero-card-body ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: #d1d5db;
}

.hero-card-footer {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.tag-soft {
  border-style: dashed;
}

/* Generic sections */
.section {
  margin-bottom: 64px;
}

.section-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 14px;
}

.section-title-left {
  text-align: left;
}

.section-description {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: #cbd5f5;
  font-size: 0.95rem;
}

/* Grid + cards */
.grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 18px 18px 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  color: #e5e7eb;
  font-size: 0.87rem;
}

/* Roadmap */
.grid-roadmap .card {
  position: relative;
  overflow: hidden;
}

.phase-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 4px;
}

/* Founder */
.section-founder {
  margin-top: 24px;
}

.founder-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.founder-copy p {
  color: #e5e7eb;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.founder-quote {
  font-style: italic;
  margin-bottom: 16px;
  color: #e5e7eb;
}

.founder-name {
  margin-top: 8px;
  font-weight: 500;
}

.founder-photos {
  display: grid;
  gap: 12px;
}

.founder-photo-main img,
.founder-photo-secondary img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.founder-photo-secondary {
  position: relative;
  max-width: 260px;
}

.founder-number-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.75rem;
}

/* Waitlist */
.section-waitlist {
  text-align: center;
}

.waitlist-embed {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: #020617;
}

/* show only EN form by default */
.form-es {
  display: none;
}

/* when in Spanish mode, swap them */
body.lang-es .form-en {
  display: none;
}

body.lang-es .form-es {
  display: block;
}

.waitlist-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  padding: 14px 20px 22px;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
}

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

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

/* Responsive */
@media (max-width: 880px) {
  .nav {
    padding-inline: 18px;
  }

  .nav-links {
    gap: 12px;
  }

  main {
    padding-inline: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-inner {
    grid-template-columns: 1fr;
  }

  .section-title-left {
    text-align: center;
  }

  .founder-photo-secondary {
    max-width: 220px;
    margin-inline: auto;
  }
}