/* IgniteConvo — Landing Page Styles */

:root {
  --bg: #FAF8F5;
  --bg-warm: #F5F0EA;
  --text: #1A1A1A;
  --text-secondary: #6B6460;
  --accent: #FF5733;
  --accent-soft: #FF8566;
  --accent-glow: rgba(255, 87, 51, 0.12);
  --purple: #7B61FF;
  --green: #2ECC71;
  --blue: #4A9DFF;
  --card: #FFFFFF;
  --card-border: rgba(0,0,0,0.06);
  --bubble-them: #EEEAE6;
  --bubble-you: #FF5733;
  --radius: 20px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise Texture Overlay ──────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ── Nav ────────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text);
}

.logo-icon {
  width: 36px; height: 36px; background: var(--accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; position: relative; overflow: hidden;
}

.logo-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--accent); color: white; border: none;
  border-radius: 100px; font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(255, 87, 51, 0.3);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(255, 87, 51, 0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: transparent; color: var(--text);
  border: 2px solid rgba(0,0,0,0.12); border-radius: 100px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 160px 40px 100px; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; min-height: 100vh;
}
.hero-content { animation: fadeUp 0.8s ease-out both; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--accent-glow); border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%; animation: pulse 2s infinite;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px; color: var(--text);
}
h1 em { font-style: italic; color: var(--accent); }

.hero-subtitle { font-size: 1.2rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 36px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; align-items: center; margin-bottom: 48px; }

.social-proof { display: flex; align-items: center; gap: 14px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--bg);
  margin-left: -10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--bg-warm);
}
.avatar-stack span:first-child { margin-left: 0; }
.social-proof-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }
.social-proof-text strong { color: var(--text); font-weight: 600; }

/* ── Phone Mockup ───────────────────────────────────────── */

.hero-visual { display: flex; justify-content: center; animation: fadeUp 0.8s ease-out 0.2s both; }

.phone-frame {
  width: 320px; background: var(--card); border-radius: 36px; padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.06), 0 32px 80px rgba(0,0,0,0.08);
  border: 1px solid var(--card-border); position: relative;
}

.phone-notch { width: 120px; height: 28px; background: var(--text); border-radius: 100px; margin: 0 auto 16px; position: relative; }
.phone-notch::after {
  content: ''; position: absolute; width: 10px; height: 10px; background: #333;
  border-radius: 50%; right: 24px; top: 50%; transform: translateY(-50%);
  box-shadow: inset 0 0 0 2px #555;
}

.chat-header { display: flex; align-items: center; gap: 12px; padding: 8px 4px 16px; border-bottom: 1px solid var(--card-border); margin-bottom: 16px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #FFD4C8, #FFB09E); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-name { font-weight: 600; font-size: 0.95rem; }
.chat-status { font-size: 0.78rem; color: var(--green); font-weight: 500; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }

.msg { max-width: 85%; padding: 12px 16px; font-size: 0.88rem; line-height: 1.5; animation: msgAppear 0.4s ease-out both; }
.msg-them { background: var(--bubble-them); border-radius: 18px 18px 18px 6px; align-self: flex-start; color: var(--text); }
.msg-you { background: var(--bubble-you); border-radius: 18px 18px 6px 18px; align-self: flex-end; color: white; }
.msg-coach {
  background: linear-gradient(135deg, #F8F4FF, #EDE6FF);
  border: 1.5px solid rgba(123, 97, 255, 0.2); border-radius: 18px;
  align-self: center; max-width: 92%; position: relative; color: var(--text);
}
.coach-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}

.msg:nth-child(1) { animation-delay: 0.4s; }
.msg:nth-child(2) { animation-delay: 0.7s; }
.msg:nth-child(3) { animation-delay: 1.0s; }
.msg:nth-child(4) { animation-delay: 1.5s; }
.msg:nth-child(5) { animation-delay: 2.0s; }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; line-height: 1.6; margin-bottom: 60px; }

/* ── Example Conversations ──────────────────────────────── */

.convos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.convo-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--card-border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.convo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.convo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.convo-card:nth-child(1)::before { background: var(--accent); }
.convo-card:nth-child(2)::before { background: var(--purple); }
.convo-card:nth-child(3)::before { background: var(--blue); }

.convo-scenario { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; margin-bottom: 20px; }
.convo-card:nth-child(1) .convo-scenario { background: rgba(255, 87, 51, 0.08); color: var(--accent); }
.convo-card:nth-child(2) .convo-scenario { background: rgba(123, 97, 255, 0.08); color: var(--purple); }
.convo-card:nth-child(3) .convo-scenario { background: rgba(74, 157, 255, 0.08); color: var(--blue); }

.convo-messages { display: flex; flex-direction: column; gap: 8px; }
.convo-messages .msg { animation: none; font-size: 0.84rem; padding: 10px 14px; }
.convo-messages .msg-coach { margin-top: 6px; }

.convo-result {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--card-border);
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--green);
}

/* ── Features ───────────────────────────────────────────── */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card { padding: 36px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }

.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-card:nth-child(1) .feature-icon { background: rgba(255,87,51,0.1); }
.feature-card:nth-child(2) .feature-icon { background: rgba(123,97,255,0.1); }
.feature-card:nth-child(3) .feature-icon { background: rgba(46,204,113,0.1); }
.feature-card:nth-child(4) .feature-icon { background: rgba(74,157,255,0.1); }
.feature-card:nth-child(5) .feature-icon { background: rgba(255,165,0,0.1); }
.feature-card:nth-child(6) .feature-icon { background: rgba(255,87,51,0.1); }

.feature-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }

/* ── Stats Bar ──────────────────────────────────────────── */

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 60px 40px; max-width: 1200px; margin: 0 auto; text-align: center; }
.stat h3 { font-family: 'DM Serif Display', serif; font-size: 2.8rem; color: var(--accent); margin-bottom: 4px; }
.stat p { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ── CTA ────────────────────────────────────────────────── */

.cta-section { padding: 80px 40px 120px; max-width: 1200px; margin: 0 auto; }

.cta-card { background: var(--text); border-radius: 28px; padding: 80px; text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,87,51,0.3) 0%, transparent 70%); pointer-events: none; }
.cta-card::after { content: ''; position: absolute; bottom: -200px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(123,97,255,0.2) 0%, transparent 70%); pointer-events: none; }
.cta-card h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); color: white; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-card p { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-card .btn-primary { position: relative; z-index: 1; font-size: 1.05rem; padding: 16px 36px; }

/* ── Footer ─────────────────────────────────────────────── */

footer { padding: 40px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--card-border); }
footer p { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Animations ─────────────────────────────────────────── */

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msgAppear { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 120px 20px 60px; gap: 48px; min-height: auto; }
  .hero-visual { order: -1; }
  .phone-frame { width: 280px; }
  .convos-grid, .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 20px; }
  .cta-card { padding: 48px 28px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
