/* ====================================================
   KARDUP AI — MAIN STYLESHEET
   Dark theme, modern, professional
   ==================================================== */

:root {
  --bg-base: #090b11;
  --bg-surface: #0f1117;
  --bg-card: #141720;
  --bg-card-hover: #1a1f2e;
  --bg-input: #1a1f2e;
  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-amber: #f59e0b;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  --gradient-text: linear-gradient(135deg, #818cf8, #a78bfa, #f472b6);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 68px;
  --sidebar-width: 280px;
  --font: 'Inter', -apple-system, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }
textarea, input { font-family: var(--font); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* UTILITY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hidden { display: none !important; }

/* ====================================================
   NAVIGATION
   ==================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(9,11,17,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(9,11,17,0.95);
  border-bottom-color: var(--border-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { color: var(--text-primary); }
.ai-badge {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-link-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 9px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: rgba(9,11,17,0.98);
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}
.mobile-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.mobile-menu.open { display: flex; }

/* ====================================================
   PAGES
   ==================================================== */
.page { display: none; }
.page.active { display: block; }

#page-chat.active {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 24px 0;
  position: relative;
  overflow: hidden;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.g1 { width: 600px; height: 600px; background: radial-gradient(circle, #6366f1 0%, transparent 70%); top: -100px; left: -100px; }
.g2 { width: 500px; height: 500px; background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); bottom: -100px; right: -50px; }

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-subtitle strong { color: var(--text-primary); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.stat-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-visual {
  flex: 1;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.chat-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.chat-preview:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-dots { display: flex; gap: 6px; }
.chat-dots span { width: 12px; height: 12px; border-radius: 50%; }
.chat-dots span:nth-child(1) { background: #ef4444; }
.chat-dots span:nth-child(2) { background: #f59e0b; }
.chat-dots span:nth-child(3) { background: #22c55e; }
.chat-preview-title { flex: 1; font-size: 0.85rem; font-weight: 600; text-align: center; }
.model-tag { background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }

.chat-preview-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 220px; }
.preview-msg { display: flex; gap: 12px; align-items: flex-start; }
.preview-msg.user { justify-content: flex-end; }
.preview-msg.ai { justify-content: flex-start; }
.preview-avatar { width: 32px; height: 32px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.preview-bubble { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 0.85rem; line-height: 1.5; max-width: 340px; color: var(--text-secondary); }
.preview-msg.user .preview-bubble { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.25); color: var(--text-primary); }

.typing-animation { display: flex; align-items: center; gap: 2px; min-height: 1.2em; }
.typed-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--accent); animation: blink 1s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,0.45); }
.btn-primary.btn-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 4px 20px rgba(6,182,212,0.3); }
.btn-primary.btn-green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 20px rgba(16,185,129,0.3); }
.btn-primary.btn-large { padding: 16px 36px; font-size: 1.05rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-secondary);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-light); background: rgba(255,255,255,0.04); }

/* ====================================================
   TRUST BANNER
   ==================================================== */
.trust-banner {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
}
.trust-label { text-align: center; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.trust-logos { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.trust-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.trust-logo:hover { border-color: var(--accent); color: var(--text-primary); }

/* ====================================================
   SECTIONS
   ==================================================== */
.section { padding: 100px 0; }
.section-dark { background: rgba(255,255,255,0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--bg-card-hover); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #fff;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ====================================================
   SECTORS GRID
   ==================================================== */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.sector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.sector-legal::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.sector-accounting::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.sector-audit::before { background: linear-gradient(90deg, #10b981, #059669); }

.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--bg-card-hover); border-color: var(--border-light); }
.sector-card:hover::before { opacity: 1; }

.sector-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.sector-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.sector-card p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.sector-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.sector-features li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.sector-features li i { color: #22c55e; font-size: 0.8rem; }

.sector-cta { font-size: 0.88rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; transition: gap 0.2s; }
.sector-card:hover .sector-cta { gap: 12px; }

/* ====================================================
   STEPS
   ==================================================== */
.steps-grid { display: flex; align-items: center; gap: 0; justify-content: center; }
.step-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.step-number { font-size: 0.75rem; font-weight: 800; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.step-icon { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; }
.step-arrow { color: var(--text-muted); font-size: 1.2rem; padding: 0 24px; flex-shrink: 0; }

/* ====================================================
   CTA SECTION
   ==================================================== */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.cta-box p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ====================================================
   PAGE HERO
   ==================================================== */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ====================================================
   TABS
   ==================================================== */
.tabs-container { max-width: 1100px; margin: 0 auto; }
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 40px;
  width: fit-content;
}
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--text-primary); }
.tab.active { background: rgba(99,102,241,0.2); color: var(--text-primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ====================================================
   SOLUTION LAYOUT
   ==================================================== */
.solution-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.solution-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.solution-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.solution-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }

.solution-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.sol-feature { display: flex; gap: 16px; align-items: flex-start; }
.sol-feature-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.sol-feature h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.sol-feature p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ====================================================
   DEMO CARD
   ==================================================== */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 90px;
}
.demo-card.demo-cyan { border-color: rgba(34,211,238,0.2); }
.demo-card.demo-green { border-color: rgba(52,211,153,0.2); }

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 0.83rem;
  font-weight: 600;
}
.demo-dots { display: flex; gap: 5px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #f59e0b; }
.demo-dots span:nth-child(3) { background: #22c55e; }
.demo-model-badge { margin-left: auto; background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; }

.demo-chat { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; max-height: 400px; overflow-y: auto; }
.demo-msg { display: flex; gap: 12px; align-items: flex-start; }
.demo-msg.user { justify-content: flex-end; }
.demo-msg.user > div { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); border-radius: 12px; padding: 12px 16px; font-size: 0.85rem; line-height: 1.6; max-width: 80%; color: var(--text-primary); }
.demo-msg.ai > div { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 0.85rem; line-height: 1.7; flex: 1; color: var(--text-secondary); }
.k-badge { width: 30px; height: 30px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; color: #fff; }

.demo-input-area { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.demo-input-fake { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.demo-send-btn { width: 38px; height: 38px; background: var(--accent); border-radius: var(--radius-sm); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; transition: all 0.2s; }
.demo-send-btn:hover { opacity: 0.85; transform: scale(1.05); }

/* ====================================================
   PRICING
   ==================================================== */
.pricing-toggle { display: flex; align-items: center; gap: 16px; justify-content: center; margin-bottom: 48px; }
.toggle-label { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.toggle-label.active { color: var(--text-primary); }
.toggle-switch { width: 52px; height: 28px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 100px; cursor: pointer; position: relative; transition: background 0.3s; }
.toggle-knob { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; position: absolute; top: 3px; left: 4px; transition: left 0.3s; }
.toggle-switch.right .toggle-knob { left: 28px; }

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card-featured {
  border-color: rgba(99,102,241,0.35);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), var(--bg-card));
  box-shadow: 0 0 40px rgba(99,102,241,0.1);
}
.pricing-featured-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 24px; }
.pricing-icon { font-size: 2rem; margin-bottom: 10px; }
.pricing-header h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.pricing-header p { font-size: 0.85rem; color: var(--text-secondary); }

.pricing-models { display: flex; flex-direction: column; gap: 1px; margin-bottom: 20px; }
.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.model-row.featured { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); }
.model-info { flex: 1; min-width: 0; }
.model-name { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.model-desc { display: block; font-size: 0.78rem; color: var(--text-muted); }
.model-price { font-size: 0.9rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.model-price small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }
.badge-popular { background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; margin-left: 6px; vertical-align: middle; }

.pricing-estimate { display: flex; align-items: flex-start; gap: 8px; padding: 12px; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.pricing-estimate i { color: var(--accent-cyan); flex-shrink: 0; margin-top: 2px; }

.pricing-card .btn-primary, .pricing-card .btn-secondary { width: 100%; justify-content: center; }

/* PACKAGES */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.package-card:hover { transform: translateY(-4px); }
.package-featured { border-color: rgba(99,102,241,0.35); background: linear-gradient(135deg, rgba(99,102,241,0.08), var(--bg-card)); box-shadow: 0 0 40px rgba(99,102,241,0.1); }
.package-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; padding: 5px 18px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.package-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.package-price { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.package-price small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.package-tokens { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 28px; padding: 6px 14px; background: rgba(99,102,241,0.1); border-radius: 100px; display: inline-block; }
.package-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.package-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.package-features li i { color: #22c55e; font-size: 0.8rem; flex-shrink: 0; }
.package-card .btn-primary, .package-card .btn-secondary { width: 100%; justify-content: center; }

/* FAQ PRICES */
.faq-section { margin-top: 60px; }
.faq-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 36px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.faq-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.faq-item h4 i { color: var(--accent); }
.faq-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ====================================================
   CHAT APP
   ==================================================== */
.chat-app {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* SIDEBAR */
.chat-sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-md);
  color: #a5b4fc;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}
.new-chat-btn:hover { background: rgba(99,102,241,0.2); }

.sidebar-section { padding: 16px; border-bottom: 1px solid var(--border); }
.sidebar-history { flex: 1; overflow-y: auto; border-bottom: none; }
.sidebar-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; }

.sector-selector { display: flex; flex-direction: column; gap: 4px; }
.sector-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
}
.sector-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.sector-btn.active { background: rgba(99,102,241,0.15); color: var(--text-primary); }

.model-selector { display: flex; flex-direction: column; gap: 4px; }
.model-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.model-btn:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.model-btn.active { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.2); color: var(--text-primary); }
.model-btn-name { display: block; font-weight: 600; }
.model-btn-desc { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

.history-list { display: flex; flex-direction: column; gap: 2px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.history-item.active { background: rgba(99,102,241,0.1); color: var(--text-primary); }
.history-item i { flex-shrink: 0; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.credits-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.credits-display i { color: var(--accent-amber); font-size: 1.1rem; }
.credits-label { font-size: 0.75rem; color: var(--text-muted); }
.credits-value { font-size: 0.9rem; font-weight: 700; color: var(--accent-amber); }

/* CHAT MAIN */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
}

.chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.sidebar-toggle { width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.sidebar-toggle:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.chat-title-area { flex: 1; display: flex; align-items: center; gap: 12px; }
.chat-title-area > span:first-child { font-weight: 700; font-size: 0.95rem; }
.chat-model-label { background: rgba(99,102,241,0.15); color: #a5b4fc; padding: 3px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.chat-topbar-actions { display: flex; gap: 8px; }
.topbar-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.2s; border: 1px solid var(--border); }
.topbar-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

/* MESSAGES */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 40px 20px;
  min-height: 400px;
}
.welcome-logo { font-size: 3.5rem; margin-bottom: 20px; }
.welcome-screen h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.welcome-screen p { font-size: 1rem; color: var(--text-secondary); max-width: 480px; margin-bottom: 32px; line-height: 1.7; }

.suggestion-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; width: 100%; }
.suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.suggestion-card:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }
.suggestion-card strong { display: block; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 4px; }

/* MESSAGE BUBBLES */
.message-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 820px;
  width: 100%;
}
.message-row.user-row { flex-direction: row-reverse; align-self: flex-end; }

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.msg-avatar.ai-avatar { background: var(--gradient); color: #fff; }
.msg-avatar.user-avatar { background: rgba(255,255,255,0.1); border: 1px solid var(--border); color: var(--text-secondary); }

.msg-content { flex: 1; min-width: 0; }
.msg-sender { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.msg-time { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }

.msg-bubble {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.user-bubble {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--text-primary);
}
.msg-bubble strong { color: var(--text-primary); }
.msg-bubble em { color: var(--accent-cyan); font-style: italic; }

/* TYPING INDICATOR */
.typing-indicator { display: flex; gap: 5px; align-items: center; padding: 6px 2px; }
.typing-indicator span { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; animation: typing 1.2s ease infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,100%{transform:translateY(0);opacity:0.5} 50%{transform:translateY(-6px);opacity:1} }

/* INPUT AREA */
.chat-input-container {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.chat-input-wrapper:focus-within { border-color: rgba(99,102,241,0.4); }

.attach-btn-wrapper {}
.attach-btn { width: 34px; height: 34px; background: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: all 0.2s; font-size: 1rem; }
.attach-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.chat-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { outline: none; }

.send-btn {
  width: 38px;
  height: 38px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}
.send-btn:hover { opacity: 0.9; transform: scale(1.05); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.input-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 4px; }
.input-disclaimer { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.input-disclaimer i { color: var(--accent-green); }
.token-counter { font-size: 0.75rem; color: var(--text-muted); }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.9rem; transition: all 0.2s; }
.social-link:hover { background: rgba(99,102,241,0.15); color: var(--accent); border-color: rgba(99,102,241,0.3); }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.footer-disclaimer { margin-top: 6px; font-size: 0.78rem; font-style: italic; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding-top: calc(var(--nav-height) + 40px); text-align: center; min-height: auto; padding-bottom: 60px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 500px; }
  .chat-preview { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .solution-layout { grid-template-columns: 1fr; }
  .demo-card { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .packages-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .tabs { flex-direction: column; width: 100%; }
  .suggestion-cards { grid-template-columns: 1fr; }
  .chat-sidebar { position: fixed; left: 0; top: 0; z-index: 500; transform: translateX(-100%); height: 100vh; padding-top: var(--nav-height); }
  .chat-sidebar.open { transform: translateX(0); }
  .chat-app { position: relative; }
  .pricing-card-featured { margin-top: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
}
