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

:root {
  --primary: #1a2744;
  --primary-light: #243560;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --text-dark: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-dark); line-height: 1.6; background: var(--bg-white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-mid); font-size: 1.0625rem; }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(26,39,68,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: auto; }
.footer-brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.9375rem; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 0.5rem 1.25rem !important; border-radius: 8px; font-weight: 600; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--accent-hover) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.mobile-menu { display: none; background: var(--primary); padding: 1rem 1.5rem; flex-direction: column; gap: 1rem; }
.mobile-menu a { color: rgba(255,255,255,0.85); font-size: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu.open { display: flex; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #1a2744 0%, #243560 60%, #1e3a8a 100%); color: #fff; padding: 6rem 1.5rem 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1600&q=80') center/cover no-repeat; opacity: 0.08; }
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4); color: #93c5fd; padding: 0.35rem 0.875rem; border-radius: 99px; font-size: 0.8125rem; font-weight: 500; margin-bottom: 1.25rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: #60a5fa; }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 1.125rem; max-width: 480px; margin-bottom: 1rem; }
.hero-upcoming { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin-top: 0; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-small { padding: 4rem 1.5rem 3.5rem; }
.hero-small .hero-inner { grid-template-columns: 1fr; max-width: 700px; text-align: center; }
.hero-small .hero-sub { margin: 0 auto 2rem; }
.hero-small .hero-actions { justify-content: center; }
.btn-primary { background: var(--accent); color: #fff; padding: 0.875rem 1.75rem; border-radius: 10px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; padding: 0.875rem 1.75rem; border-radius: 10px; font-weight: 600; font-size: 1rem; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: border-color 0.2s, background 0.2s; display: inline-block; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-accent { background: var(--accent); color: #fff; padding: 0.875rem 1.75rem; border-radius: 10px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero-image { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.4); }
.hero-image img { width: 100%; height: 380px; object-fit: cover; }

/* ── Stats bar ──────────────────────────────────────────────────── */
.stats-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-light); margin-top: 2px; }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-light); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.8125rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--text-mid); font-size: 1.0625rem; max-width: 560px; margin-bottom: 3rem; }

/* ── Feature cards ──────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; background: #eff6ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9375rem; }

/* ── How it works ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; padding: 2rem 1.5rem; }
.step-number { width: 52px; height: 52px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 0 auto 1.25rem; }
.step h3 { margin-bottom: 0.5rem; }

/* ── Split layout ───────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 360px; object-fit: cover; }
.split-content p { margin-bottom: 1.5rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-mid); font-size: 0.9375rem; }
.check-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.testimonial-text { font-size: 0.9375rem; color: var(--text-mid); font-style: italic; margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-section); overflow: hidden; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-light); }
.stars { color: #f59e0b; font-size: 0.875rem; margin-bottom: 0.75rem; }

/* ── CTA banner ─────────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, #1a2744, #1e3a8a); color: #fff; padding: 5rem 1.5rem; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1.0625rem; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-card { background: var(--bg-white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9375rem; font-family: inherit; transition: border-color 0.2s; background: var(--bg-light); color: var(--text-dark); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 1rem 1.25rem; color: #15803d; font-size: 0.9375rem; margin-top: 1rem; }
.form-error { display: none; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 1rem 1.25rem; color: #dc2626; font-size: 0.9375rem; margin-top: 1rem; }

/* ── FAQ accordion ──────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 0.9375rem; font-weight: 600; color: var(--text-dark); text-align: left; font-family: inherit; }
.faq-q:hover { background: var(--bg-light); }
.faq-icon { font-size: 1.25rem; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-a { display: none; padding: 0 1.25rem 1rem; font-size: 0.9375rem; color: var(--text-mid); line-height: 1.6; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── Pricing note ───────────────────────────────────────────────── */
.pricing-note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 1rem 1.25rem; font-size: 0.9rem; color: #1e40af; margin-top: 1.5rem; }

/* ── Chatbot ────────────────────────────────────────────────────── */
.chatbot-toggle { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 60px; height: 60px; background: var(--accent); color: #fff; border-radius: 50%; border: none; cursor: pointer; font-size: 1.5rem; box-shadow: 0 4px 20px rgba(59,130,246,0.4); display: flex; align-items: center; justify-content: center; z-index: 999; transition: transform 0.2s; }
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot-window { position: fixed; bottom: 5.5rem; right: 1.5rem; width: 340px; background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18); z-index: 998; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.chatbot-window.open { display: flex; }
.chatbot-header { background: var(--primary); color: #fff; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.chatbot-header-left { display: flex; align-items: center; gap: 0.75rem; }
.chatbot-avatar { width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.chatbot-title { font-weight: 600; font-size: 0.9375rem; }
.chatbot-status { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chatbot-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 0 2px; }
.chatbot-messages { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 220px; max-height: 280px; overflow-y: auto; }
.chat-msg { max-width: 82%; padding: 0.625rem 0.875rem; border-radius: 12px; font-size: 0.875rem; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-section); color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-typing { display: flex; gap: 4px; align-items: center; align-self: flex-start; padding: 0.75rem 0.875rem; background: var(--bg-section); border-radius: 12px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 7px; height: 7px; background: var(--text-light); border-radius: 50%; animation: typing 1.2s infinite; display: block; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chatbot-input-area { padding: 0.875rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; }
.chatbot-input-area input { flex: 1; padding: 0.625rem 0.875rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.875rem; font-family: inherit; }
.chatbot-input-area input:focus { outline: none; border-color: var(--accent); }
.chatbot-send { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 0.625rem 0.875rem; cursor: pointer; font-size: 0.875rem; font-weight: 600; transition: background 0.2s; }
.chatbot-send:hover { background: var(--accent-hover); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 4rem 1.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8125rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); font-size: 0.8125rem; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ── Legal pages ─────────────────────────────────────────────────── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--text-dark); margin-bottom: 0.4rem; }
.legal-updated { font-size: 0.875rem; color: var(--text-light); margin-bottom: 2.5rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.75rem; }
.legal-section p { margin-bottom: 0.75rem; font-size: 0.9375rem; }
.legal-section ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-section ul li { font-size: 0.9375rem; color: var(--text-mid); }
.legal-section a { color: var(--accent); }
.legal-section a:hover { text-decoration: underline; }
.legal-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-light); }

/* ── Contact page ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { order: -1; }
  .hero-image img { height: 240px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .chatbot-window { width: calc(100vw - 3rem); right: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline, .btn-accent { text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
