/* ============================================================
   ERIS AI — Landing Page Stylesheet
   Palette: #6321A6 · #2B0B59 · #6A36D9 · #A885F2 · #0A080D
   Fonts:  Space Grotesk (titles) · DM Sans (body)
   ============================================================ */

/* ---------- Reset & Tokens ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --purple-deep: #2B0B59;
  --purple-core: #6321A6;
  --purple-bright: #6A36D9;
  --purple-light: #A885F2;
  --bg: #0A080D;
  --bg-card: rgba(43, 11, 89, .18);
  --bg-card-hover: rgba(106, 54, 217, .14);
  --text: #e4dff0;
  --text-muted: #9486ab;
  --white: #f5f2fa;

  /* Glass */
  --glass-bg: rgba(43, 11, 89, .22);
  --glass-border: rgba(168, 133, 242, .15);
  --glass-blur: 16px;

  /* Radii / Spacing */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Fonts */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-bright), var(--purple-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 48px;
}

h3 {
  font-family: var(--font-head);
  font-weight: 600;
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 8, 13, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 133, 242, .08);
  transition: background .3s var(--ease);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.btn-nav {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--purple-bright);
  color: var(--purple-light);
  transition: all .25s var(--ease);
}

.btn-nav:hover {
  background: var(--purple-bright);
  color: var(--white);
  box-shadow: 0 0 20px rgba(106, 54, 217, .4);
}

/* ── Nav Right (language + cta) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(168, 133, 242, .15);
  background: rgba(43, 11, 89, .3);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.lang-btn:hover {
  border-color: var(--purple-bright);
  color: var(--purple-light);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: rgba(20, 12, 30, .95);
  border: 1px solid rgba(168, 133, 242, .15);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s var(--ease);
  z-index: 200;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .85rem;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}

.lang-option:hover {
  background: rgba(106, 54, 217, .15);
  color: var(--white);
}

.lang-option.active {
  background: rgba(106, 54, 217, .2);
  color: var(--purple-light);
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  min-height: 100vh;
  padding: 120px 32px 80px;
  overflow: hidden;
}

/* Glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .5;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: var(--purple-core);
}

.glow-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  right: -60px;
  background: var(--purple-bright);
  opacity: .35;
}

.glow-3 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--purple-core);
  opacity: .25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(106, 54, 217, .18);
  border: 1px solid rgba(168, 133, 242, .25);
  color: var(--purple-light);
  margin-bottom: 24px;
  animation: fadeInUp .6s var(--ease) both;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp .6s .1s var(--ease) both;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fadeInUp .6s .2s var(--ease) both;
}

.material-icons {
  font-size: 14px;
  margin-right: 4px;
  position: relative;
  top: 2px;
  /* Ajusta según tu diseño */
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 10px;
  animation: fadeInUp .6s .3s var(--ease) both;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: rgba(10, 8, 13, .6);
  color: var(--white);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(106, 54, 217, .25);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-core));
  color: var(--white);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(106, 54, 217, .45);
}

.btn-primary:active {
  transform: translateY(0);
}

.hero-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 14px;
  animation: fadeInUp .6s .4s var(--ease) both;
}

/* Mockup card */
.hero-mockup {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  animation: fadeInUp .8s .25s var(--ease) both;
}

.mockup-card {
  width: 400px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 80px rgba(106, 54, 217, .12);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.mockup-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 100px rgba(106, 54, 217, .2);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(10, 8, 13, .55);
  border-bottom: 1px solid var(--glass-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.mockup-title {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .5px;
}

.mockup-body {
  padding: 20px;
}

.mockup-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  background: rgba(106, 54, 217, .15);
  color: var(--purple-light);
  margin-bottom: 14px;
}

.mockup-line {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.mockup-line strong {
  color: var(--white);
}

.mockup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: .72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(168, 133, 242, .12);
  border: 1px solid rgba(168, 133, 242, .2);
  color: var(--purple-light);
}

/* ============================================================
   PROBLEM
   ============================================================ */
#problem {
  padding: 100px 0;
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 133, 242, .3);
  box-shadow: 0 12px 40px rgba(106, 54, 217, .12);
}

.problem-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 18px;
}

.problem-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.science,
.assessment,
.file_copy {
  font-size: 3rem;
  color: var(--purple-light);
}

/* ============================================================
   FEATURES
   ============================================================ */
#features {
  padding: 80px 0 100px;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 36px 30px 44px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 133, 242, .3);
  box-shadow: 0 12px 40px rgba(106, 54, 217, .12);
}

.feat-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  position: absolute;
  top: 16px;
  right: 24px;
  color: rgba(168, 133, 242, .08);
  line-height: 1;
  pointer-events: none;
}

.feat-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.feat-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(106, 54, 217, .2);
  color: var(--purple-light);
  letter-spacing: .5px;
}

.feat-badge.soon {
  background: rgba(168, 133, 242, .1);
  color: var(--text-muted);
}

.article,
.assessment-2,
.quiz,
.lightbulb {
  font-size: 3rem;
  color: var(--purple-light);
}

/* ============================================================
   PRICING
   ============================================================ */
#pricing {
  padding: 80px 0 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: var(--r-lg);
  padding: 36px 30px;
  text-align: center;
  position: relative;
  height: 100%;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 133, 242, .3);
}

.pricing-card.featured {
  border-color: var(--purple-bright);
  box-shadow: 0 0 50px rgba(106, 54, 217, .18);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 0 60px rgba(106, 54, 217, .28);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-core));
  color: var(--white);
  white-space: nowrap;
  letter-spacing: .5px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}

.price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.price span {
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card li {
  font-size: .88rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(168, 133, 242, .07);
  color: var(--text);
}

.pricing-card li.muted {
  color: var(--text-muted);
  opacity: .55;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: all .25s var(--ease);
  margin-top: 24px;
}

.btn-outline:hover {
  border-color: var(--purple-bright);
  background: rgba(106, 54, 217, .12);
  box-shadow: 0 0 16px rgba(106, 54, 217, .2);
}

/* ============================================================
   WAITLIST CTA
   ============================================================ */
#waitlist {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.waitlist-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.waitlist-sub {
  max-width: 560px;
  margin: -24px auto 36px;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.waitlist-form.big {
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: 48px 32px;
  border-top: 1px solid rgba(168, 133, 242, .08);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-tagline {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-copy {
  font-size: .75rem;
  color: var(--text-muted);
  opacity: .6;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  border-radius: var(--r-md);
  background: var(--purple-bright);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(106, 54, 217, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal (applied via JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  #hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .mockup-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 600px) {
  #navbar {
    padding: 12px 16px;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo img {
    height: 26px;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: .8rem;
  }

  #hero {
    padding: 90px 16px 60px;
    min-height: auto;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .section-inner {
    padding: 0 16px;
  }

  #problem,
  #features,
  #pricing {
    padding: 60px 0;
  }

  #waitlist {
    padding: 60px 0 80px;
  }
}

/* ---------- Utilities ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* Contact Section */
#contact {
  padding: 80px 0;
  position: relative;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-form {
  padding: 40px;
  border-radius: var(--r-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: rgba(10, 8, 13, 0.6);
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(106, 54, 217, 0.25);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239486ab'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg);
  color: var(--text);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  accent-color: var(--purple-bright);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

.form-consent label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  user-select: none;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  min-width: 160px;
  cursor: pointer;
}