/* =============================================
   Meliora — AI Agents Built by AI Agents
   Marketing Site Stylesheet
   ============================================= */

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

:root {
  --dark: #080b14;
  --dark2: #0d1221;
  --dark3: #131929;
  --purple: #7c3aed;
  --purple-light: #9d5ff5;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --white: #ffffff;
  --off-white: #f1f5f9;
  --gray: #94a3b8;
  --gray-dim: #475569;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ---- UTILITY ---- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-purple { color: var(--purple-light); }
.text-gray { color: var(--gray); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}
.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
  box-shadow: 0 0 30px var(--purple-glow);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--purple-glow);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
}
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--white), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo span { font-style: italic; }
.nav-links { display: none; gap: 32px; }
.nav-links a { color: var(--gray); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { font-size: 0.9rem; padding: 10px 22px; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 60px;
}
.hero-social-proof {
  color: var(--gray-dim);
  font-size: 0.85rem;
}
.hero-social-proof span { color: var(--purple-light); font-weight: 700; }

/* ---- WAITLIST FORM ---- */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 16px;
  width: 100%;
}
.waitlist-form input {
  flex: 1;
  padding: 16px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.waitlist-form input::placeholder { color: var(--gray-dim); }
.waitlist-form input:focus { border-color: var(--purple); }
.waitlist-form button { width: 100%; }

/* ---- SECTION COMMON ---- */
.section { padding: 80px 0; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* ---- WHAT IS MELIORA ---- */
.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.what-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.2s;
}
.what-card:hover {
  border-color: rgba(124,58,237,0.5);
  transform: translateY(-3px);
}
.what-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.what-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}
.what-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

/* ---- HOW IT WORKS ---- */
.how-section { background: var(--dark2); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--purple-glow);
}
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.step-content p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.4); }
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.12);
  border-radius: 10px;
}
.feature-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.feature-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }

/* ---- VS SECTION ---- */
.vs-section { background: var(--dark3); }
.vs-table {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 40px;
}
.vs-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}
.vs-header div {
  padding: 16px 20px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gray);
}
.vs-header .meliora-col { color: var(--purple-light); }
.vs-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  background: var(--dark2);
}
.vs-row:last-child { border-bottom: none; }
.vs-row:nth-child(even) { background: rgba(255,255,255,0.02); }
.vs-row div {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  align-items: center;
}
.vs-row .feature-name { color: var(--off-white); font-weight: 500; }
.vs-yes { color: #4ade80 !important; font-weight: 700; }
.vs-no { color: #f87171 !important; }
.vs-partial { color: #fbbf24 !important; }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.pricing-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 40px var(--purple-glow);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.pricing-plan { font-size: 0.8rem; font-weight: 700; color: var(--purple-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.pricing-price { font-size: 3rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -2px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--gray); letter-spacing: 0; }
.pricing-desc { color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--off-white);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: "✓"; color: #4ade80; font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

/* ---- MANIFESTO ---- */
.manifesto-section {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  text-align: center;
  padding: 80px 24px;
}
.manifesto-quote {
  font-size: 1.6rem;
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.manifesto-quote .gradient {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- FINAL CTA ---- */
.final-cta {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.final-cta p { color: var(--gray); font-size: 1.05rem; margin-bottom: 40px; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
footer p { color: var(--gray-dim); font-size: 0.85rem; margin-bottom: 6px; }
.footer-tagline { font-style: italic; color: var(--purple-light) !important; margin-bottom: 20px !important; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.footer-links a { color: var(--gray-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--purple-light); }

/* ---- GLOW ORBS (decorative) ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}
.orb-purple { background: var(--purple); width: 300px; height: 300px; }
.orb-blue { background: var(--blue); width: 200px; height: 200px; }

/* ============ TABLET 600px+ ============ */
@media (min-width: 600px) {
  .hero h1 { font-size: 3.6rem; }
  .waitlist-form { flex-direction: row; }
  .waitlist-form button { width: auto; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .what-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-links { display: flex; }
  .section-title { font-size: 2.4rem; }
  .manifesto-quote { font-size: 2rem; }
  .final-cta h2 { font-size: 3rem; }
}

/* ============ DESKTOP 900px+ ============ */
@media (min-width: 900px) {
  .hero h1 { font-size: 4.4rem; }
  .what-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { flex-direction: column; border-bottom: none; border-right: 1px solid var(--border); padding: 0 24px; }
  .step:last-child { border-right: none; }
  .section { padding: 100px 0; }
}
