/* ========================================
   MAINish — Pre-Launch Landing Page
   Dark, modern, high-contrast, mobile-first
   ======================================== */

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

:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: #161616;
  --border: #222222;
  --text: #f5f5f5;
  --text-muted: #999999;
  --accent: #F0C850;
  --accent-secondary: #E8453C;
  --accent-tertiary: #2EB8A8;
  --gradient: linear-gradient(135deg, #F0C850 0%, #E8453C 50%, #2EB8A8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(240, 200, 80, 0.15), rgba(232, 69, 60, 0.15), rgba(46, 184, 168, 0.15));
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  position: relative;
}

.logo span {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  top: -0.7em;
  margin-left: 0.05em;
}

.logo i {
  font-style: normal;
  position: relative;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(240, 200, 80, 0.35);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease 0.05s both;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 28px;
  padding-bottom: 4px;
  background: linear-gradient(135deg, #f5f5f5 0%, #f5f5f5 50%, #F0C850 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 69, 60, 0.08) 0%, rgba(46, 184, 168, 0.06) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- EMAIL FORM ---- */
.email-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder {
  color: #555;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent-secondary);
}

.email-form button {
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.email-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* ---- SECTIONS ---- */
.section {
  padding: 120px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ---- NARRATIVE SECTION ---- */
.narrative-section {
  position: relative;
  padding: 140px 0 160px;
  border-top: 1px solid var(--border);
}

.narrative-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.narrative-lead {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 48px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.narrative-body {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 40px;
}

.narrative-body strong {
  color: var(--text);
  font-weight: 700;
}

.narrative-lines {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #cccccc;
  line-height: 2.2;
  font-weight: 500;
}

.narrative-emphasis {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 40px;
}

.narrative-closing {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- WHAT SECTION ---- */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.what-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.what-card:hover {
  border-color: rgba(232, 69, 60, 0.35);
}

.what-icon {
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

.what-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.what-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.step {
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- BENEFITS ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.3s;
}

.benefit-card:hover {
  border-color: rgba(232, 69, 60, 0.35);
}

.benefit-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240, 200, 80, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.benefit-card ul {
  list-style: none;
}

.benefit-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.benefit-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

/* ---- VISION ---- */
.vision-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.vision-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.vision-section h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 32px;
}

.vision-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 184, 168, 0.06) 0%, rgba(232, 69, 60, 0.04) 40%, transparent 70%);
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

/* ---- PROOF ---- */
.proof-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.proof-quote {
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ---- WAITLIST ---- */
.waitlist-section {
  text-align: center;
  padding: 140px 0;
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.waitlist-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-top {
  margin-bottom: 32px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #444;
}

/* ---- SUCCESS STATE ---- */
.form-success {
  text-align: center;
  padding: 16px 0;
  animation: fadeInUp 0.4s ease both;
}

.form-success p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .what-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

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

@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .narrative-section {
    padding: 100px 0 120px;
  }

  .narrative-body {
    margin-bottom: 32px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .benefit-card {
    padding: 28px 24px;
  }

  .waitlist-section {
    padding: 100px 0;
  }
}
