:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --purple:        #8b5cf6;
  --cyan:          #06b6d4;
  --emerald:       #10b981;

  --bg:            #fafafe;
  --surface:       #ffffff;
  --border-light:  #e8e7ff;

  --text:          #1e1b4b;
  --text-muted:    #6b7280;

  --gradient:      linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --hero-bg:       linear-gradient(135deg, #160b35 0%, #1e1b4b 45%, #2d2875 100%);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(99,102,241,0.1), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(99,102,241,0.06);

  --r-sm:   8px;
  --r-md:   16px;
  --r-full: 9999px;
}

*, *::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;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); transition: color 0.2s; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ═══════════════════════════════════════
   NAVIGATION — Glassmorphism
═══════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 11, 53, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}
.logo h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.cta-button {
  background: var(--gradient);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

/* ═══════════════════════════════════════
   HERO — Dark + Glowing Orbs
═══════════════════════════════════════ */
.hero {
  background: var(--hero-bg);
  padding: 6rem 5% 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -250px; left: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 550px; height: 550px;
  bottom: -180px; right: -120px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: #fff;
}
.hero-content h1 span {
  background: linear-gradient(90deg, #a5b4fc 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.75;
}
.hero-content p strong {
  color: #a5b4fc;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta-primary {
  background: var(--gradient);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.55);
  color: #fff;
}

.hero-cta-secondary {
  color: rgba(255,255,255,0.72);
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}

.hero-image {
  flex: 0 0 520px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(99,102,241,0.4));
  transition: transform 0.4s ease;
  border-radius: var(--r-md);
}
.hero-image img:hover { transform: scale(1.03) translateY(-4px); }

.chat-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(99,102,241,0.35));
  transition: transform 0.4s ease;
  animation: float 6s ease-in-out infinite;
}
.chat-svg:hover { transform: scale(1.02) translateY(-4px); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* stats row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features {
  padding: 7rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}

.features h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  color: var(--text);
}

.section-subtitle {
  display: block;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 auto 4rem;
  max-width: 500px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.2);
}
.feature-card:hover::before { opacity: 1; }

/* AI card always shows the top border */
.feature-card.ai-highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.02));
  border-color: rgba(99,102,241,0.22);
}
.feature-card.ai-highlight::before { opacity: 1; }

.feature-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.07));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(99,102,241,0.12);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about {
  background: linear-gradient(135deg, #f5f4ff 0%, #fafaff 100%);
  padding: 6rem 5%;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-content {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.4px;
}

.about-content p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.about-content p strong { color: var(--primary); font-weight: 600; }

/* ═══════════════════════════════════════
   CTA — Dark gradient
═══════════════════════════════════════ */
.cta {
  padding: 7rem 5%;
  text-align: center;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.cta p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 2.5rem;
}

.cta .cta-button {
  font-size: 1rem;
  padding: 0.875rem 2.25rem;
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: #0a0a14;
  color: rgba(255,255,255,0.6);
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}
.footer-logo p { font-size: 0.85rem; }

.footer-links h3,
.footer-tech h3,
.footer-github h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.52);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-tech p {
  color: rgba(255,255,255,0.52);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.github-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.28);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
}

@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 5%;
    height: auto;
  }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .hero { padding: 5rem 5%; min-height: auto; }
  .hero-content h1 { font-size: 2.25rem; letter-spacing: -0.5px; }
  .hero-stats { gap: 1.5rem; }
  .features { padding: 5rem 5%; }
  .features h2 { font-size: 2rem; }
  .about { padding: 4rem 5%; }
  .about-content h2 { font-size: 1.875rem; }
  .cta { padding: 5rem 5%; }
  .cta h2 { font-size: 2rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
