/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg-primary: #07070f;
  --bg-secondary: #0c0c18;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(124,58,237,0.45);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --accent: #7c3aed;
  --accent-2: #a855f7;
  --accent-glow: rgba(124,58,237,0.25);
  --gradient: linear-gradient(135deg, #7c3aed, #a855f7);
  --gradient-text: linear-gradient(135deg, #c084fc, #818cf8);
  --max-width: 1200px;
  --section-padding: 96px 0;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 80px rgba(124,58,237,0.18);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}
p { color: var(--text-secondary); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-padding); }
.section-alt { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-badge {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-2);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
  position: relative;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-sm  { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg  { padding: 15px 32px; font-size: 1rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,7,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 12px 0;
}
.nav-content {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-tld { color: var(--accent-2); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu li a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu li a:hover { color: var(--accent-2); }
.mobile-menu .btn-primary {
  margin-top: 24px;
  justify-content: center;
  font-size: 1rem;
  padding: 14px 24px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 60%, rgba(124,58,237,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(168,85,247,0.09) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.022'%3E%3Ccircle cx='30' cy='30' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: glow-pulse 2s ease infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

.hero-title { margin-bottom: 22px; color: var(--text-primary); }
.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 48px;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* ==========================================================================
   Chatbot Demo
   ========================================================================== */
.chatbot-wrapper { position: relative; }

.chatbot-card {
  background: rgba(12,12,24,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chatbot-avatar {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chatbot-info { flex: 1; }
.chatbot-name {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary);
}
.chatbot-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: #10b981;
}
.status-dot {
  width: 6px; height: 6px;
  background: #10b981; border-radius: 50%;
  animation: glow-pulse 2s ease infinite;
}
.chatbot-actions { display: flex; gap: 5px; }
.window-dot { width: 11px; height: 11px; border-radius: 50%; }
.window-dot.red    { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green  { background: #28c840; }

.chatbot-modes {
  display: flex; gap: 7px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.chatbot-modes::-webkit-scrollbar { display: none; }
.mode-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px;
  border-radius: 50px;
  font-size: 0.72rem; font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.mode-chip:hover { border-color: var(--border-accent); color: var(--accent-2); }
.mode-chip.active {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  color: var(--accent-2);
}

.chatbot-messages {
  height: 310px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.message {
  display: flex; gap: 9px;
  max-width: 88%;
  opacity: 0;
}
.user-message {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.msg-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.bot-message .msg-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px 14px 14px 14px;
}
.user-message .msg-bubble {
  background: var(--gradient);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.msg-avatar {
  width: 26px; height: 26px;
  background: var(--gradient);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: #fff;
  flex-shrink: 0; align-self: flex-end;
}
.typing-indicator {
  display: flex; gap: 9px; align-items: flex-end;
  opacity: 0;
}
.typing-dots {
  display: flex; gap: 4px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chatbot-input {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 16px;
  color: var(--text-primary);
  font-size: 0.85rem; font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  cursor: text;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: var(--border-accent); }

.send-btn {
  width: 36px; height: 36px;
  background: var(--gradient);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ==========================================================================
   Modes Section
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
}
.mode-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(124,58,237,0.15);
}
.mode-icon { font-size: 1.9rem; margin-bottom: 14px; }
.mode-card h3 { color: var(--text-primary); margin-bottom: 7px; font-size: 0.95rem; }
.mode-card p { font-size: 0.83rem; line-height: 1.6; }

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.benefit-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(124,58,237,0.12);
}
.benefit-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(124,58,237,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.benefit-icon { font-size: 1.6rem; }
.benefit-card h3 { color: var(--text-primary); margin-bottom: 9px; }

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 30px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(124,58,237,0.15);
}
.step-number {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px;
  background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.step-icon { font-size: 2.3rem; margin-bottom: 14px; }
.step-card h3 { color: var(--text-primary); margin-bottom: 10px; }
.step-arrow {
  font-size: 1.4rem; color: var(--accent-2);
  flex-shrink: 0; opacity: 0.4;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 740px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(124,58,237,0.25); }
.faq-item.open  { border-color: var(--border-accent); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  color: var(--text-primary); text-align: left;
}
.faq-icon {
  font-size: 1.3rem; color: var(--accent-2);
  flex-shrink: 0; transition: transform 0.3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 220px; }
.faq-answer p {
  padding: 0 22px 18px;
  line-height: 1.75; font-size: 0.9rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card .section-badge { margin-bottom: 12px; }
.cta-card h2 { color: var(--text-primary); margin: 12px 0 14px; }
.cta-card > p { margin-bottom: 32px; font-size: 1.1rem; }
.cta-note {
  margin-top: 16px; font-size: 0.82rem; color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-content {
  display: flex; gap: 60px; margin-bottom: 44px;
}
.footer-brand { flex: 1; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-links { display: flex; gap: 56px; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-primary); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-fr-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 50px;
  padding: 6px 13px;
  color: #93c5fd !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  transition: all 0.2s !important;
  white-space: nowrap;
}
.footer-fr-link:hover {
  background: rgba(59,130,246,0.15) !important;
  border-color: rgba(59,130,246,0.4) !important;
  color: #bfdbfe !important;
}

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent-2); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .modes-grid     { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid       { grid-template-columns: 1fr; gap: 48px; }
  .chatbot-wrapper { order: -1; }
  .hero-stats      { flex-wrap: wrap; }
  .hero-subtitle   { max-width: 100%; }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root { --section-padding: 64px 0; }

  .nav-links     { display: none; }
  .btn-primary.btn-sm { display: none; }
  .nav-toggle    { display: flex; }

  .hero          { padding: 96px 0 56px; }

  .steps-grid    { flex-direction: column; }
  .step-arrow    { transform: rotate(90deg); }

  .benefits-grid { grid-template-columns: 1fr; }
  .modes-grid    { grid-template-columns: repeat(2, 1fr); }

  .footer-content { flex-direction: column; gap: 36px; }
  .footer-links   { flex-direction: column; gap: 28px; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  .cta-card { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .modes-grid  { grid-template-columns: 1fr; }
  .hero-stats  { display: none; }
  .hero-badge  { font-size: 0.78rem; }
  h1           { font-size: 2.2rem; }
}
