:root {
  --primary: #1E40AF;
  --primary-2: #2563EB;
  --secondary: #06B6D4;
  --accent: #F59E0B;
  --bg: #F9FAFB;
  --text: #1F2937;
  --card: #FFFFFF;
  --muted: #4B5563;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
  --radius-card: 20px;
  --radius-btn: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary-2); }
.btn-secondary:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--primary); border-color: rgba(37,99,235,0.4); }
.btn-ghost:hover { box-shadow: var(--shadow); transform: scale(1.02); }
.btn.full { width: 100%; }
.btn-loader {
  width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%;
  display: inline-block; opacity: 0; transform: scale(0.5);
  transition: opacity .2s, transform .2s;
  animation: spin 1s linear infinite;
}
.btn.loading .btn-text { opacity: 0; }
.btn.loading .btn-loader { opacity: 1; transform: scale(1); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(0px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--primary); }
.logo img { width: 36px; height: 36px; }
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a { font-weight: 600; color: var(--text); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--primary-2);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--border); background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px; transition: transform .2s ease; }
.hamburger span { display: block; width: 22px; height: 3px; background: var(--text); border-radius: 4px; transition: transform .2s, opacity .2s; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,0.25); backdrop-filter: blur(6px);
  transform: translateX(100%); transition: transform .3s ease; z-index: 998;
}
.mobile-menu nav {
  position: absolute; top: 0; right: 0; width: 78%; max-width: 360px; height: 100%;
  background: #fff; box-shadow: -12px 0 30px rgba(0,0,0,0.12); padding: 64px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-weight: 600; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--border); }

/* Hero */
.hero { position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.16), transparent 45%), linear-gradient(135deg, #E0ECFF 0%, #F3E8FF 50%, #fff 100%); }
.hero-pattern { position: absolute; top: -20%; left: 0; width: 120%; opacity: 0.2; transform: translateY(0); }
.hero-content { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 700; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 10px 0; line-height: 1.1; }
.lead { color: var(--muted); font-size: 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-right { display: flex; justify-content: center; }
.hero-illustration { width: 100%; max-width: 520px; filter: drop-shadow(0 20px 50px rgba(37,99,235,0.25)); }

/* Sections */
.section { padding: 96px 0; position: relative; overflow: hidden; }
.soft-bg { background: #f4f7fb; }
.gradient-bg { background: linear-gradient(135deg, #E0F2FF 0%, #EEF2FF 50%, #F9FAFB 100%); }
.section-header { max-width: 760px; margin-bottom: 40px; }
.section-header h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); }
.section-header p { margin: 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px;
}
.col-visual h3 { margin-top: 0; }
.infographic { display: grid; gap: 12px; place-items: center; }
.infographic img { width: 100%; max-width: 420px; }
.infographic-note { background: #EFF6FF; padding: 10px 14px; border-radius: 12px; color: var(--primary); font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.icon-card img { width: 56px; height: 56px; }
.icon-card h3 { margin: 12px 0 8px; }
.icon-card { transition: transform .25s ease, box-shadow .25s ease; }
.icon-card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }

/* Timeline */
.timeline { position: relative; padding-left: 24px; display: grid; gap: 32px; }
.timeline-line {
  position: absolute; left: 12px; top: 0; width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--primary-2), var(--secondary));
  transform-origin: top; transform: scaleY(0);
}
.timeline-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: flex-start; }
.timeline-icon {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-2); color: var(--primary); display: inline-grid; place-items: center; font-weight: 700; box-shadow: var(--shadow);
}
.important-card { margin-top: 32px; padding: 20px; border-radius: 16px; background: #F5F3FF; border: 1px solid rgba(124,58,237,0.16); }
.important-card h3 { margin-top: 0; }

/* Stepper */
.stepper { position: relative; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.8); border: 1px solid var(--border); box-shadow: var(--shadow); }
.step-icon { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), var(--primary-2)); color: #fff; display: inline-grid; place-items: center; font-weight: 700; }
.mini-check { list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); }
.mini-check li::before { content: "•"; color: var(--secondary); margin-right: 6px; }

/* Accordion */
.accordion { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-header { width: 100%; text-align: left; padding: 16px 18px; background: linear-gradient(90deg, #fff, #f7f9ff); border: none; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.accordion-icon { transition: transform .2s ease; }
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 18px; background: #fff; }
.accordion-content p { margin: 14px 0 18px; color: var(--muted); }

/* Form */
.form-section { background: linear-gradient(135deg, #E0ECFF, #E0F7FF); }
.form-card h2 { margin-top: 0; }
.form-card form { display: grid; gap: 12px; }
label { font-weight: 600; font-size: 15px; }
.input-wrap { position: relative; }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid #E5E7EB; font-size: 16px;
  transition: border .2s ease, box-shadow .2s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.input-status { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background-size: contain; opacity: 0; transition: opacity .2s; }
.input-valid .input-status { background-image: url('assets/svg/icons/check.svg'); opacity: 1; }
.input-error { animation: shake .5s ease; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.checkbox input { width: auto; margin-top: 3px; }
.form-hint { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Why cards */
.icon-card img { transition: transform .3s ease; }
.icon-card:hover img { transform: rotate(10deg) scale(1.1); }

/* Footer */
.footer { background: #111827; color: #E5E7EB; padding: 48px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; align-items: flex-start; }
.footer a { color: #e0e7ff; }
.footer-disclaimer { color: #d1d5db; margin: 12px 0 0; }
.footer-logo { color: #fff; }
.footer-phone { font-weight: 700; font-size: 18px; display: inline-block; margin-top: 4px; }
.footer-bottom { text-align: center; margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); color: #9CA3AF; }

/* Legal pages */
.legal-page { background: var(--bg); }
.legal-header { background: linear-gradient(135deg, #E0ECFF, #E0F7FF); padding: 48px 0 32px; }
.legal-logo { color: var(--primary); font-weight: 700; text-decoration: none; }
.legal-content { padding: 32px 0 64px; display: grid; gap: 20px; }
.legal-content h2 { margin-bottom: 8px; }
.legal-content ul { padding-left: 18px; color: var(--muted); }
.legal-meta { color: var(--muted); }

/* Thank you */
.thankyou-page { background: linear-gradient(180deg, #E0ECFF, #fff); display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 32px; }
.thankyou-card { max-width: 640px; text-align: center; position: relative; overflow: hidden; }
.checkmark { width: 120px; height: 120px; margin: 0 auto 12px; }
.check-bg { fill: none; stroke: rgba(37,99,235,0.15); stroke-width: 8; }
.check-path { stroke: var(--primary-2); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1s ease forwards; }
.thankyou-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.next-steps ol { text-align: left; color: var(--muted); }
.confetti { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 20% 20%, rgba(245,158,11,0.4) 0 6px, transparent 10px), radial-gradient(circle at 80% 30%, rgba(6,182,212,0.35) 0 6px, transparent 10px), radial-gradient(circle at 50% 70%, rgba(124,58,237,0.35) 0 8px, transparent 12px); background-size: 220px 220px; opacity: 0; animation: confetti 2s ease forwards; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(120%);
  width: min(92vw, 960px); z-index: 9999; background: rgba(17,24,39,0.9); color: #fff; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 16px 18px; backdrop-filter: blur(8px); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner__content { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.4); color: var(--primary); }
.cookie-modal { position: fixed; inset: 0; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility .3s ease; z-index: 10000; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); }
.cookie-modal__dialog { position: relative; background: #fff; border-radius: 16px; padding: 20px; width: min(92vw, 520px); box-shadow: 0 20px 40px rgba(0,0,0,0.18); transform: scale(0.95); transition: transform .3s ease; }
.cookie-modal.show { visibility: visible; opacity: 1; }
.cookie-modal.show .cookie-modal__dialog { transform: scale(1); }
.cookie-modal__header { display: flex; justify-content: space-between; align-items: center; }
.icon-button { background: none; border: none; font-size: 28px; cursor: pointer; line-height: 1; }
.cookie-toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.cookie-toggle.disabled { opacity: 0.6; }
.toggle-title { margin: 0; font-weight: 700; }
.toggle-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 24px; transition: .2s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .2s; box-shadow: var(--shadow); }
.switch input:checked + .slider { background: var(--primary-2); }
.switch input:checked + .slider:before { transform: translateX(22px); }
.cookie-modal__footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* Helpers */
.hero, .section, .card, .accordion-item, .step, .timeline-item { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.animate { opacity: 1 !important; transform: translateY(0) !important; }
.timeline-line.animate { transform: scaleY(1); transition: transform 1s ease; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
  .hero-content { grid-template-columns: 1fr; }
  .hero { padding-top: 90px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { padding: 12px 0; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cookie-banner__content { align-items: flex-start; }
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes confetti {
  0% { opacity: 0; transform: scale(0.95); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-pattern { transform: none !important; }
}
