/* ===== CSS VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #10b981;
  --accent-dark: #059669;
  --bg: #0f172a;
  --bg2: #1e293b;
  --bg3: #334155;
  --card: #1e293b;
  --border: #334155;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --white: #ffffff;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text2); line-height: 1.7; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-primary { background: rgba(37,99,235,0.15); color: var(--primary-light); border: 1px solid rgba(37,99,235,0.3); }
.badge-accent { background: rgba(16,185,129,0.15); color: var(--accent); border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,23,42,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
[data-theme="light"] .header { background: rgba(248,250,252,0.9); }
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.nav-logo span { color: var(--primary-light); }
.nav-logo .logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); color: var(--text2); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg3);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition); color: var(--text2);
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; position: fixed; top: 73px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1rem; z-index: 999; }
.nav-mobile.open { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a { padding: 0.75rem 1rem; border-radius: var(--radius-sm); color: var(--text2); font-weight: 500; }
.nav-mobile a:hover { background: var(--bg3); color: var(--text); }
.main-content { padding-top: 73px; }

/* ===== HERO ===== */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(16,185,129,0.1) 0%, transparent 50%),
              var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23334155' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary-light); }
.hero p { font-size: 1.15rem; max-width: 580px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat h3 { font-size: 2rem; color: var(--primary-light); }
.hero-stat p { font-size: 0.875rem; color: var(--text3); }
.hero-visual { position: relative; }
.hero-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.hero-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-card-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 0.875rem; color: var(--text2); }
.stat-value { font-weight: 700; color: var(--accent); }
.floating-badge {
  position: absolute; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600;
}
.floating-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== CARDS ===== */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: var(--transition);
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.card-icon.primary { background: rgba(37,99,235,0.15); }
.card-icon.accent { background: rgba(16,185,129,0.15); }
.card-icon.warning { background: rgba(245,158,11,0.15); }
.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.card p { font-size: 0.9rem; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.25rem; position: relative; transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pricing-featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 0.3rem 1.25rem;
  border-radius: 100px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-name { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 0.5rem; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text3); }
.pricing-desc { font-size: 0.9rem; color: var(--text2); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pricing-features { margin-bottom: 2rem; }
.pricing-feature { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; font-size: 0.9rem; color: var(--text2); }
.pricing-feature .check { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.pricing-feature .x { color: var(--text3); flex-shrink: 0; margin-top: 1px; }
.pricing-cta { width: 100%; text-align: center; justify-content: center; }

/* ===== COMPARISON TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--bg2); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); }
.compare-table thead th:first-child { width: 35%; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--bg3); }
.compare-table td:first-child { font-weight: 500; color: var(--text); }
.compare-table td:not(:first-child) { text-align: center; color: var(--text2); }
.check-icon { color: var(--accent); font-size: 1.1rem; }
.x-icon { color: var(--text3); }
.compare-table thead th.highlight { color: var(--primary-light); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-item { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: var(--transition); }
.feature-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(37,99,235,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1rem; }

/* ===== ACCORDION (DOCS) ===== */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; }
.accordion-header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; background: var(--card); border: none; color: var(--text); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); text-align: left; }
.accordion-header:hover { background: var(--bg3); }
.accordion-header .icon { transition: transform 0.3s; font-size: 0.8rem; color: var(--text3); }
.accordion-header.open .icon { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 1.5rem 1.5rem; color: var(--text2); font-size: 0.9rem; line-height: 1.8; }
.accordion-body.open { display: block; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-thumb { height: 200px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; overflow: hidden; }
.blog-thumb-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.blog-body { padding: 1.5rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.85rem; }
.blog-meta .cat { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-light); }
.blog-meta .date { font-size: 0.8rem; color: var(--text3); }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.blog-card p { font-size: 0.875rem; color: var(--text2); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .read-more { font-size: 0.875rem; font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 0.35rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(37,99,235,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-item-text strong { display: block; font-size: 0.875rem; color: var(--text); margin-bottom: 0.2rem; }
.contact-item-text span { font-size: 0.875rem; color: var(--text2); }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 0.75rem 1rem; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; transition: var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
textarea { resize: vertical; min-height: 140px; }
select option { background: var(--bg2); }
.form-note { font-size: 0.8rem; color: var(--text3); margin-top: 0.35rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--primary); }
.checkbox-group label { font-weight: 400; color: var(--text2); font-size: 0.875rem; }
.form-success { display: none; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius-sm); padding: 1rem 1.25rem; color: var(--accent); font-weight: 600; margin-top: 1rem; }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { font-size: 0.875rem; color: var(--text2); max-width: 300px; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text2); transition: var(--transition); }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-col h5 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text2); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--text3); }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text3); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 2rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  transform: translateY(150%); transition: transform 0.4s ease;
  max-width: 900px; margin: 0 auto;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.875rem; color: var(--text2); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--primary-light); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }

/* ===== PAGE HERO (INNER PAGES) ===== */
.page-hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.1) 0%, transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .badge { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 600px; font-size: 1.05rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.breadcrumb a { font-size: 0.875rem; color: var(--text3); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { font-size: 0.875rem; color: var(--text3); }
.breadcrumb .current { font-size: 0.875rem; color: var(--text2); }

/* ===== TRUST STRIP ===== */
.trust-strip { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.trust-strip-inner { display: flex; align-items: center; justify-content: space-around; gap: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item .icon { font-size: 1.5rem; }
.trust-item strong { font-size: 0.9rem; color: var(--text); display: block; }
.trust-item span { font-size: 0.78rem; color: var(--text3); }

/* ===== PROCESS STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; border: 3px solid var(--bg); }
.step h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.step p { font-size: 0.875rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.testimonial-stars { color: var(--warning); margin-bottom: 1rem; font-size: 1rem; }
.testimonial-card p { font-size: 0.9rem; color: var(--text2); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: var(--primary-light); }
.testimonial-author strong { font-size: 0.875rem; color: var(--text); display: block; }
.testimonial-author span { font-size: 0.8rem; color: var(--text3); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius); padding: 4rem 3rem; text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 500px; margin: 0 auto 2rem; }
.cta-banner .btn-white { background: white; color: var(--primary-dark); border-color: white; font-weight: 700; }
.cta-banner .btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-banner .btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.cta-banner .btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }

/* ===== LEGAL PAGE ===== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin: 3rem 0 1rem; font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.legal-content h3 { margin: 2rem 0 0.75rem; font-size: 1.15rem; color: var(--text); }
.legal-content p { margin-bottom: 1rem; font-size: 0.95rem; }
.legal-content ul, .legal-content ol { margin: 1rem 0 1rem 1.5rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text2); }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--primary-light); }
.legal-toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem 2rem; margin-bottom: 3rem; }
.legal-toc h4 { margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); }
.legal-toc ol { margin-left: 1.25rem; }
.legal-toc li { margin-bottom: 0.4rem; }
.legal-toc a { font-size: 0.875rem; }
.legal-tabs { display: flex; gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.legal-tab { padding: 0.6rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); transition: var(--transition); }
.legal-tab:hover, .legal-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.last-updated { font-size: 0.8rem; color: var(--text3); margin-bottom: 2rem; }
.info-box { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.info-box p { margin: 0; font-size: 0.875rem; color: var(--text2); }
.info-box strong { color: var(--primary-light); }

/* ===== DOCS ===== */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.docs-sidebar { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.docs-sidebar h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar ul li a { font-size: 0.875rem; color: var(--text2); display: block; padding: 0.35rem 0.5rem; border-radius: 6px; }
.docs-sidebar ul li a:hover, .docs-sidebar ul li a.active { background: var(--bg3); color: var(--primary-light); }
.docs-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.docs-content h3 { margin: 2rem 0 0.75rem; font-size: 1.15rem; }
.docs-content p { margin-bottom: 1rem; font-size: 0.95rem; }
.docs-content ul, .docs-content ol { margin: 1rem 0 1rem 1.5rem; }
.docs-content ul { list-style: disc; }
.docs-content ol { list-style: decimal; }
.docs-content li { margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text2); }
.docs-content code { background: var(--bg3); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.875em; font-family: 'Fira Code', monospace; color: var(--accent); }
.code-block { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem; margin: 1.5rem 0; overflow-x: auto; }
.code-block code { background: none; padding: 0; font-size: 0.875rem; color: var(--text2); white-space: pre; }
.callout { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); margin: 1.5rem 0; }
.callout.info { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2); }
.callout.warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.callout.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.callout-icon { font-size: 1.25rem; flex-shrink: 0; }
.callout p { margin: 0; font-size: 0.875rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  border: none; color: white; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: var(--transition); opacity: 0; pointer-events: none;
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ===== DIVIDERS ===== */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ===== HIGHLIGHT ===== */
.highlight { color: var(--primary-light); }
.highlight-accent { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3, .features-grid, .testimonial-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .cookie-banner { flex-direction: column; bottom: 0; left: 0; right: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner .flex { flex-direction: column; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 100%; }
  h1 { font-size: 1.85rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
