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

:root {
  --purple: #9C7BE8;
  --purple-deep: #6B73FF;
  --purple-light: #E0D4F0;
  --mint: #D4F0E0;
  --mint-deep: #34d399;
  --bg: #FAFAFE;
  --bg-alt: #F3F0FA;
  --card: rgba(255,255,255,0.8);
  --text: #2D2B3A;
  --text-muted: #6B6880;
  --text-light: #9994B0;
  --border: rgba(156,123,232,0.15);
  --heading: 'Playfair Display', Georgia, serif;
  --body: 'Poppins', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.highlight { color: var(--purple); }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,254,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}

.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.nav-name { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.88rem; font-weight: 400; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }

.nav-cta {
  background: var(--purple) !important; color: #fff !important;
  padding: 6px 16px; border-radius: 8px; font-weight: 500 !important;
}
.nav-cta:hover { opacity: 0.9; }

.mobile-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; color: var(--text); cursor: pointer;
}

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  font-family: var(--body); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); }
.btn-ghost { background: transparent; color: var(--purple); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--purple); background: rgba(156,123,232,0.05); }

/* === HERO === */
.hero {
  padding: 10rem 2rem 5rem;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,123,232,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  color: var(--purple); background: rgba(156,123,232,0.1);
  border: 1px solid rgba(156,123,232,0.2); border-radius: 20px;
  padding: 4px 14px; margin-bottom: 0.5rem; letter-spacing: 0.02em;
}

.hero-est {
  font-size: 0.68rem; font-weight: 400; color: var(--text-light);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--heading); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; color: var(--text); line-height: 1.15; margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.25rem;
}

.hero-story {
  font-size: 1rem; color: var(--text); line-height: 1.7;
  margin-bottom: 2rem; max-width: 480px;
}

.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Chat Preview */
.chat-preview {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem; box-shadow: 0 8px 40px rgba(107,115,255,0.08);
}

.chat-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem;
}
.chat-avatar { font-size: 1.5rem; }
.chat-header strong { font-size: 0.9rem; color: var(--text); display: block; }
.chat-status { font-size: 0.65rem; color: var(--mint-deep); }

.chat-messages { display: flex; flex-direction: column; gap: 0.5rem; }

.msg {
  padding: 0.6rem 0.85rem; border-radius: 12px; font-size: 0.82rem;
  line-height: 1.5; max-width: 85%;
}
.msg-user {
  background: var(--purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg-kai {
  background: var(--bg-alt); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg-kai p { margin-bottom: 0.4rem; }
.msg-recipe-card { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.recipe-tag {
  font-size: 0.65rem; padding: 2px 8px; border-radius: 6px;
  background: rgba(156,123,232,0.1); color: var(--purple);
}

/* === SECTIONS === */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-inner h2 {
  font-family: var(--heading); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--text); text-align: center; margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center; color: var(--text-muted); font-size: 1rem;
  max-width: 540px; margin: 0 auto 3rem;
}

/* === STEPS === */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 1.5rem; text-align: center; position: relative;
  backdrop-filter: blur(8px); transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(107,115,255,0.1); }

.step-num {
  position: absolute; top: 1rem; left: 1.25rem;
  font-family: var(--heading); font-size: 0.8rem; color: var(--purple); opacity: 0.4;
}
.step-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.step-card h3 { font-family: var(--heading); font-size: 1.1rem; color: var(--text); margin-bottom: 0.4rem; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === FEATURES === */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.75rem 1.5rem; backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(107,115,255,0.08); }

.feature-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-family: var(--heading); font-size: 1rem; color: var(--text); margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* === INTERFACE PREVIEW === */
.interface-preview { display: flex; justify-content: center; }

.preview-window {
  width: 100%; max-width: 800px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 12px 48px rgba(107,115,255,0.1);
}

.preview-bar {
  background: #2D2B3A; padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #fbbf24; }
.preview-dot.green { background: #34d399; }
.preview-title { color: rgba(255,255,255,0.5); font-size: 0.72rem; margin-left: 0.75rem; }

.preview-body {
  display: grid; grid-template-columns: 2fr 1fr;
  background: #fff; min-height: 280px;
}

.preview-chat {
  padding: 1.25rem; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.4rem;
}

.preview-recipes {
  padding: 1.25rem; background: var(--bg-alt);
  display: flex; flex-direction: column; gap: 0.6rem;
}

.preview-label {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 0.3rem;
}

.mini-msg {
  font-size: 0.72rem; padding: 6px 10px; border-radius: 8px;
  max-width: 80%; line-height: 1.4;
}
.mini-msg.user { background: var(--purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.mini-msg.kai { background: var(--bg-alt); color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }

.mini-recipe {
  padding: 0.75rem; border-radius: 8px; border: 1px solid var(--border);
  background: #fff;
}
.mini-recipe strong { font-size: 0.75rem; color: var(--text); display: block; margin-bottom: 2px; }
.mini-recipe span { font-size: 0.62rem; color: var(--text-muted); }
.mini-recipe.active { border-color: var(--purple); }
.mini-recipe-bar {
  height: 3px; background: var(--purple); border-radius: 2px;
  margin-top: 0.5rem; width: 60%;
}

/* === ROADMAP === */
.roadmap {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0; position: relative;
  padding-left: 2rem;
}
.roadmap::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}

.roadmap-item {
  display: flex; gap: 1.25rem; padding: 1rem 0; position: relative;
}

.roadmap-marker {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--bg-alt);
  position: absolute; left: -2rem; top: 1.25rem;
}

.roadmap-item.done .roadmap-marker { background: var(--mint-deep); border-color: var(--mint-deep); }
.roadmap-item.active .roadmap-marker {
  background: var(--purple); border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(156,123,232,0.2);
}

.roadmap-content h3 { font-family: var(--heading); font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }
.roadmap-content p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.3rem; }

.roadmap-status {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--mint-deep);
}
.roadmap-status.current { color: var(--purple); }
.roadmap-item:not(.done):not(.active) .roadmap-status { color: var(--text-light); }

/* === TECH === */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.tech-item {
  padding: 1.25rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card);
}
.tech-label {
  display: inline-block; font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--purple); background: rgba(156,123,232,0.08);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 0.5rem;
}
.tech-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* === SIGNUP CTA === */
.section-cta {
  background: linear-gradient(135deg, #9C7BE8 0%, #6B73FF 100%);
  text-align: center;
}
.section-cta h2 { color: #fff !important; }
.section-cta .section-sub { color: rgba(255,255,255,0.8); }

.signup-form {
  display: flex; gap: 0.5rem; justify-content: center;
  max-width: 520px; margin: 0 auto 0.75rem; flex-wrap: wrap;
}
.signup-form input {
  flex: 1; min-width: 160px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15);
  color: #fff; font-family: var(--body); font-size: 0.9rem; outline: none;
  backdrop-filter: blur(4px);
}
.signup-form input::placeholder { color: rgba(255,255,255,0.5); }
.signup-form input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); }
.signup-form .btn-primary {
  background: #fff; color: var(--purple); font-weight: 600;
}
.signup-form .btn-primary:hover { background: rgba(255,255,255,0.9); }

.signup-note { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-align: center; }

/* === FOOTER === */
.footer {
  padding: 2.5rem 2rem; border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.4rem; }
.footer-logo { width: 24px; height: 24px; object-fit: contain; }
.footer-brand span { font-family: var(--heading); font-size: 0.95rem; font-weight: 700; }

.footer-flux { font-size: 0.78rem; color: var(--text-muted); }
.footer-flux a { color: var(--purple); text-decoration: none; }
.footer-flux a:hover { text-decoration: underline; }

.footer-copy { font-size: 0.68rem; color: var(--text-light); }

/* === MOBILE === */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(250,250,254,0.97); flex-direction: column;
    padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }

  .hero {
    grid-template-columns: 1fr; padding: 8rem 1.5rem 3rem; text-align: center;
  }
  .hero-story { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }

  .steps-grid, .features-grid, .tech-grid { grid-template-columns: 1fr; }

  .preview-body { grid-template-columns: 1fr; }
  .preview-recipes { border-top: 1px solid var(--border); }
  .preview-chat { border-right: none; }

  .signup-form { flex-direction: column; }
  .signup-form input { min-width: auto; }
}
