/* KAI — Dark Theme with Vivid Pink/Purple Accent Gradients */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0d0b1a;
  --bg-card: #1a1730;
  --bg-card-hover: #201d3a;
  --pink: #ff5580;
  --pink-light: #ff7b9a;
  --coral: #ff6b8a;
  --purple: #b06ce0;
  --purple-dark: #8b5cf6;
  --text-primary: #e8e4f0;
  --text-secondary: #b0a0d0;
  --text-muted: #7060a0;
  --glass-bg: rgba(26,23,48,0.85);
  --glass-border: rgba(176,108,224,0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 999px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── Landing Navbar ── */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(26,23,48,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(176,108,224,0.1);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 2px 8px rgba(255,85,128,0.25);
}
.nav-logo-text {
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text-muted); font-size: 14px; padding: 8px 14px;
  border-radius: var(--radius-xs); transition: all 0.2s; font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--coral)) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: 8px 20px !important; border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 16px rgba(255,85,128,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,85,128,0.4) !important; }

/* ── Hero ── */
.hero { text-align: center; padding: 60px 24px 50px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,85,128,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* KAI 3D bubble logo with sparkles */
.kai-hero-sparkles {
  position: relative; display: inline-block; padding: 0 50px;
}
.kai-hero-sparkles::before, .kai-hero-sparkles::after {
  content: '✦'; position: absolute; font-size: 22px;
  color: rgba(255,255,255,0.7);
  animation: sparkle 2.4s ease-in-out infinite;
}
.kai-hero-sparkles::before { top: -18px; left: 4px; font-size: 16px; }
.kai-hero-sparkles::after { top: 6px; right: 4px; font-size: 20px; animation-delay: 1.2s; }
.kai-hero-logo {
  font-size: clamp(76px, 16vw, 130px);
  font-weight: 900; letter-spacing: 10px; margin-bottom: 6px;
  display: inline-block; position: relative;
  background: linear-gradient(180deg, #f8ecff 0%, #d8b4ff 20%, #b8c8ff 48%, #a8d8ff 72%, #d0e8ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 6px 20px rgba(180,130,255,0.5)) drop-shadow(0 2px 4px rgba(160,192,255,0.4));
  text-shadow: none;
}
@keyframes sparkle {
  0%,100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(20deg); }
}

.kai-tagline {
  font-size: 17px; color: var(--text-muted); margin-bottom: 30px; font-weight: 500;
}
.kai-tagline .heart { color: var(--pink); -webkit-text-fill-color: var(--pink); }

.hero h1 {
  font-size: clamp(30px, 6vw, 50px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 16px;
  color: var(--text-primary);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 16px; color: var(--text-muted);
  max-width: 500px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff; padding: 14px 28px; border-radius: var(--radius-full);
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,85,128,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255,85,128,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); backdrop-filter: blur(8px);
  color: var(--text-primary); padding: 14px 28px; border-radius: var(--radius-full);
  font-size: 16px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-social-proof {
  margin-top: 40px; display: flex; align-items: center;
  justify-content: center; gap: 12px; color: var(--text-muted); font-size: 13px;
}
.hero-social-proof .avatars { display: flex; }
.hero-social-proof .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(13,11,26,0.95);
  background: linear-gradient(135deg, var(--pink-light), var(--purple));
  margin-left: -8px; font-size: 11px; display: flex; align-items: center;
  justify-content: center; color: #fff;
}
.hero-social-proof .avatar:first-child { margin-left: 0; }

/* ── Features ── */
.features { padding: 50px 24px; max-width: 1100px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--purple-dark); margin-bottom: 10px;
}
.section-title {
  text-align: center; font-size: clamp(22px, 5vw, 34px);
  font-weight: 700; letter-spacing: -0.5px; margin-bottom: 40px;
  color: var(--text-primary);
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(255,85,128,0.1); }
.feature-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, rgba(255,85,128,0.12), rgba(176,108,224,0.12));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 24px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Chat Demo (Landing) ── */
.chat-demo-section { padding: 0 24px 60px; max-width: 720px; margin: 0 auto; }
.chat-demo-wrapper {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 20px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.chat-demo-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: rgba(26,23,48,0.8); border-bottom: 1px solid rgba(176,108,224,0.1);
}
.chat-demo-header .dots { display: flex; gap: 6px; }
.chat-demo-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.chat-demo-header .dot:nth-child(1) { background: #ff5f57; }
.chat-demo-header .dot:nth-child(2) { background: #febc2e; }
.chat-demo-header .dot:nth-child(3) { background: #28c840; }
.chat-demo-header .title { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.chat-demo-header .badge-free {
  margin-left: auto;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
}
.chat-messages {
  height: 340px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth;
  background: rgba(13,11,26,0.5);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(176,108,224,0.25); border-radius: 4px; }
.chat-message { display: flex; gap: 10px; align-items: flex-start; }
.chat-message.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.msg-avatar.ai { background: linear-gradient(135deg, #6366f1, #06b6d4); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.2); }
.msg-avatar.user { background: linear-gradient(135deg, var(--pink), var(--coral)); color: #fff; box-shadow: 0 2px 8px rgba(255,85,128,0.2); }
.msg-bubble {
  max-width: 75%; padding: 12px 16px; border-radius: 18px;
  font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.msg-bubble.ai {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  color: var(--text-primary);
}
.msg-bubble.user {
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff; border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(255,85,128,0.3);
}
.msg-bubble.typing::after { content: '...'; animation: typing-dots 1.2s infinite; }
@keyframes typing-dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

.chat-input-area {
  padding: 14px 18px; background: rgba(26,23,48,0.8);
  border-top: 1px solid rgba(176,108,224,0.1);
}
.chat-input-row { display: flex; gap: 10px; align-items: center; }
.chat-input-row input {
  flex: 1; background: rgba(26,23,48,0.8);
  border: 1px solid rgba(176,108,224,0.2); border-radius: var(--radius-full);
  padding: 12px 18px; font-size: 14px; color: var(--text-primary);
  outline: none; transition: all 0.2s; font-family: inherit;
}
.chat-input-row input::placeholder { color: var(--text-muted); }
.chat-input-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,85,128,0.1); }
.chat-input-row button {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff; border: none; border-radius: 50%;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(255,85,128,0.3);
}
.chat-input-row button:hover { transform: scale(1.05); box-shadow: 0 4px 18px rgba(255,85,128,0.4); }

.chat-demo-footer { padding: 20px; text-align: center; border-top: 1px solid rgba(176,108,224,0.1); }
.chat-demo-footer p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }

/* ── Pricing Section ── */
.pricing { padding: 50px 24px; max-width: 800px; margin: 0 auto; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pricing-card {
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.pricing-card.featured {
  border: 2px solid var(--pink);
  box-shadow: 0 4px 30px rgba(255,85,128,0.15);
}
.pricing-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--purple-dark); margin-bottom: 8px; }
.pricing-price { font-size: 2.5rem; font-weight: 900; color: var(--text-primary); margin-bottom: 8px; }
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li {
  padding: 8px 0; font-size: 0.88rem; color: var(--text-muted);
  border-bottom: 1px solid rgba(176,108,224,0.08);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--pink); font-weight: 700; }

/* ── Footer ── */
.footer { padding: 28px 24px; text-align: center; color: var(--text-muted); font-size: 13px; border-top: 1px solid rgba(176,108,224,0.08); }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .navbar { padding: 12px 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 40px 16px 30px; }
  .features { padding: 30px 16px; }
  .chat-demo-section { padding: 0 16px 40px; }
  .msg-bubble { max-width: 90%; }
}

/* ── Entrance Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge,.hero h1,.hero-sub,.hero-actions,.kai-hero-logo,.kai-tagline { animation: fadeUp 0.5s ease-out both; }
.kai-hero-logo { animation-delay: 80ms; }
.kai-tagline { animation-delay: 140ms; }
.hero h1 { animation-delay: 200ms; }
.hero-sub { animation-delay: 260ms; }
.hero-actions { animation-delay: 320ms; }
.features { animation: fadeUp 0.5s ease-out 0.1s both; }
.chat-demo-wrapper { animation: fadeUp 0.5s ease-out 0.2s both; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }