/* ======================================================== */
/* STYLES FOR AI-ASSISTANT LANDING PAGE                     */
/* ======================================================== */

:root {
  --ai-color-primary: #0a84ff;
  --ai-color-primary-dark: #0066d6;
  --ai-color-accent: #10b981;
  --ai-color-accent-dark: #059669;
  --ai-color-danger: #ef4444;
  
  --ai-color-bg: #f8fafc;
  --ai-color-surface: #ffffff;
  --ai-color-text: #0f172a;
  --ai-color-text-soft: #475569;
  --ai-color-border: #e2e8f0;
  
  --ai-shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --ai-shadow-card: 0 10px 15px -3px rgba(0,0,0,0.08);
  --ai-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --ai-radius-md: 12px;
  --ai-radius-lg: 16px;
  --ai-radius-xl: 24px;
  
  --ai-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.ai-page {
  margin: 0;
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ai-color-text);
  background: var(--ai-color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.ai-page * { box-sizing: border-box; }

.ai-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: 'Manrope', sans-serif; margin-top: 0; color: var(--ai-color-text); letter-spacing: -0.02em; }
a { text-decoration: none; color: var(--ai-color-primary); transition: var(--ai-transition); }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--ai-color-border);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; color: var(--ai-color-text); font-size: 1.1rem; }
.navbar-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ai-color-primary), #8b5cf6);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: var(--ai-radius-md); border: none;
  background: var(--ai-color-primary); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25); transition: var(--ai-transition);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--ai-color-primary-dark); color: #fff;}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }

.btn-ghost {
  padding: 0.7rem 1.2rem; border-radius: 50px; color: var(--ai-color-text-soft);
  background: transparent; border: 1px solid var(--ai-color-border);
  font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--ai-transition);
}
.btn-ghost:hover { border-color: var(--ai-color-primary); color: var(--ai-color-primary); background: #eff6ff; }

/* HERO SECTION */
.ai-hero {
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at top right, #e0f2fe 0%, transparent 40%),
              radial-gradient(circle at bottom left, #f0fdf4 0%, transparent 40%);
}
.ai-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }

.pill {
  display: inline-block; background: #fef9c3; color: #854d0e; padding: 0.4rem 1rem;
  border-radius: 50px; font-size: 0.85rem; font-weight: 800; margin-bottom: 1.2rem; border: 1px solid #fde047;
}

.ai-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.2rem; font-weight: 900; }
.ai-hero h1 span {
  background: linear-gradient(135deg, var(--ai-color-primary), var(--ai-color-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-top: 0.3rem;
}

.ai-hero-subtitle { font-size: 1.1rem; color: var(--ai-color-text-soft); margin-bottom: 2rem; max-width: 580px; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #fff;
  border: 1px solid var(--ai-color-border); padding: 0.5rem 1rem; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; box-shadow: var(--ai-shadow-sm); color: var(--ai-color-text-soft);
}
.tag i { color: var(--ai-color-accent); font-size: 1.1rem; }

.cta-stack { display: flex; flex-direction: column; gap: 1rem; max-width: 380px; }
.note {
  font-size: 0.9rem; color: #64748b; display: flex; gap: 0.6rem; align-items: flex-start;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--ai-color-border);
  padding: 1rem; border-radius: var(--ai-radius-md);
}
.note i { color: var(--ai-color-primary); font-size: 1.2rem; }

/* CHAT MOCKUP CARD */
.app-card {
  background: var(--ai-color-surface); border-radius: var(--ai-radius-xl);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--ai-shadow-xl); overflow: hidden;
}
.app-card-head { background: #f1f5f9; padding: 1rem 1.5rem; border-bottom: 1px solid var(--ai-color-border); display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.app-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-bubble { padding: 1rem 1.2rem; font-size: 0.95rem; line-height: 1.5; max-width: 90%; }
.user-bubble { background: #f1f5f9; color: var(--ai-color-text); border-radius: 16px 16px 4px 16px; align-self: flex-end; font-weight: 500; }
.ai-bubble { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 16px 16px 16px 4px; align-self: flex-start; }
.ai-header { font-weight: 800; color: var(--ai-color-primary); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;}
.source-link { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--ai-color-accent-dark); background: #dcfce7; padding: 4px 10px; border-radius: 6px; }

/* SECTIONS & GRIDS */
.section { padding: 5rem 0; }
.bg-light { background-color: #f1f5f9; border-top: 1px solid var(--ai-color-border); border-bottom: 1px solid var(--ai-color-border); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.section-title p { color: var(--ai-color-text-soft); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--ai-color-surface); border: 1px solid var(--ai-color-border);
  border-radius: var(--ai-radius-lg); padding: 2rem 1.5rem; box-shadow: var(--ai-shadow-card); transition: var(--ai-transition); position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--ai-shadow-xl); }
.card-icon { width: 50px; height: 50px; background: #eff6ff; color: var(--ai-color-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.bullets { padding-left: 1.2rem; color: var(--ai-color-text-soft); margin: 0; }
.bullets li { margin-bottom: 0.5rem; }
.card.highlight { border: 2px solid var(--ai-color-primary); background: linear-gradient(to bottom, #ffffff, #f0fdf4); }
.card.highlight .card-icon { background: var(--ai-color-primary); color: #fff; }
.card-note { position: absolute; top: 15px; right: 15px; background: #fef3c7; color: #b45309; font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 50px; text-transform: uppercase; }

/* VS GRID */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.vs-card { background: #fff; padding: 2rem; border-radius: var(--ai-radius-lg); box-shadow: var(--ai-shadow-card); }
.vs-header { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.vs-card.bad { border-top: 5px solid var(--ai-color-danger); }
.vs-card.bad .vs-header { color: var(--ai-color-danger); }
.vs-card.good { border-top: 5px solid var(--ai-color-accent); }
.vs-card.good .vs-header { color: var(--ai-color-accent); }

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
details.faq { background: var(--ai-color-surface); border: 1px solid var(--ai-color-border); border-radius: var(--ai-radius-md); margin-bottom: 1rem; transition: var(--ai-transition); }
details.faq[open] { border-color: var(--ai-color-primary); box-shadow: var(--ai-shadow-sm); }
details.faq summary { padding: 1.2rem; cursor: pointer; font-weight: 800; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--ai-color-primary); font-weight: 400; }
details.faq[open] summary::after { content: '−'; }
details.faq p { padding: 0 1.2rem 1.2rem; margin: 0; color: var(--ai-color-text-soft); }

/* SEO BLOCK & FOOTER */
.seo-block { padding: 3rem 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.seo-block article { font-size: 0.85rem; color: #64748b; text-align: justify; line-height: 1.6; }
.seo-block h3 { font-size: 1rem; color: #475569; margin-bottom: 0.5rem; }
.footer { background: #1e293b; color: #94a3b8; padding: 2.5rem 0; text-align: center; font-size: 0.9rem; }
.footer a { color: #cbd5e1; text-decoration: underline; }

/* MOBILE STICKY CTA */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
  padding: 1rem; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.08); z-index: 9999; transform: translateY(150%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta .left { display: flex; flex-direction: column; }
.mobile-cta .left strong { color: var(--ai-color-text); font-size: 1rem; line-height: 1.2; }
.mobile-cta .left span { color: var(--ai-color-accent); font-weight: 800; font-size: 0.85rem; }
.mobile-cta .btn-primary { padding: 0.7rem 1.2rem; font-size: 0.95rem; width: auto; white-space: nowrap; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .ai-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .ai-hero-subtitle { margin-left: auto; margin-right: auto; }
  .feature-tags { justify-content: center; }
  .cta-stack { margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .vs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .section-title h2 { font-size: 1.8rem; }
  .navbar{display: none;}
  .navbar-inner { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.8rem; justify-content: center;}
  .navbar-brand { width: 100%; justify-content: center; margin-bottom: 0.5rem; font-size: 1.2rem;}
  .navbar-inner > div { width: 100%; display: flex; justify-content: space-between; gap: 0.5rem;}
  .navbar-inner .btn-ghost, .navbar-inner .btn-primary { flex: 1; text-align: center; padding: 0.6rem 0.5rem; font-size: 0.9rem;}
  .ai-hero { padding: 2rem 0 3rem; }
  .ai-hero h1 { font-size: 1.8rem; }
  .feature-tags { gap: 0.5rem; }
  .tag { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .app-card-body { padding: 1rem; }
  .chat-bubble { max-width: 95%; font-size: 0.9rem; padding: 0.8rem 1rem;}
  .vs-card { padding: 1.5rem; }
  .bullets { padding-left: 1rem; font-size: 0.95rem; }
}