/* =========================================================
   The Prime Global — Light theme stylesheet
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-tint: #eef2ff;
  --surface: #ffffff;
  --border: #e4e8f2;
  --text: #0f1a36;
  --muted: #5b6585;
  --primary: #2453ff;
  --primary-dark: #1739cc;
  --violet: #7b3fe4;
  --accent: #ff7a45;
  --success: #12a26b;
  --danger: #e5484d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 26, 54, 0.05);
  --shadow: 0 18px 45px -18px rgba(15, 26, 54, 0.22);
  --gradient: linear-gradient(120deg, var(--primary), var(--violet));
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; font-weight: 700; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-tint);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 162, 107, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(18, 162, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 162, 107, 0); }
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(36, 83, 255, 0.45); outline-offset: 2px; border-radius: 6px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 26px -10px rgba(36, 83, 255, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(36, 83, 255, 0.75); }

.btn-outline { border-color: var(--border); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.3); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 600; flex-shrink: 0; }
.logo b { font-weight: 800; color: var(--primary); }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.96rem;
  color: var(--muted);
  transition: color 0.2s;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; border-radius: 2px; background: var(--gradient);
}

.caret { width: 10px; height: 10px; transition: transform 0.25s; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translate(-50%, 8px);
  width: 290px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.dropdown-menu::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown:hover .caret, .dropdown.open .caret { transform: rotate(180deg); }

.dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: 0.93rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--bg-tint); color: var(--primary); }
.dropdown-menu .mini-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.dropdown-menu .mini-icon svg { width: 16px; height: 16px; fill: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero (home) ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(123, 63, 228, 0.12), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(36, 83, 255, 0.1), transparent 70%),
    var(--bg);
}

.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 26, 54, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 26, 54, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero h1 { margin-bottom: 22px; }
#rotator { display: inline-block; transition: opacity 0.35s, transform 0.35s; }
#rotator.swap { opacity: 0; transform: translateY(10px); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 580px; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.hero-trust .check { color: var(--success); font-weight: 800; margin-right: 4px; }

.hero-visual { position: relative; }

.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-title { font-weight: 700; }
.dash-pill { font-size: 0.74rem; font-weight: 700; color: var(--primary); background: var(--bg-tint); padding: 4px 10px; border-radius: 999px; }

.dash-funnel { display: grid; gap: 12px; margin-bottom: 18px; }
.funnel-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.funnel-bar { height: 12px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.funnel-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); width: 0; animation: grow 1.6s 0.3s ease forwards; }
@keyframes grow { to { width: var(--w); } }

.dash-chart { width: 100%; height: 120px; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s 0.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.dash-channels { display: flex; gap: 18px; margin-top: 14px; font-size: 0.84rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.dash-channels span { display: inline-flex; align-items: center; gap: 6px; }
.ch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ch-google { background: #2453ff; }
.ch-meta { background: #ff7a45; }
.ch-seo { background: var(--success); }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: 0.78rem; }
.float-1 { top: -26px; left: -34px; }
.float-2 { bottom: -28px; right: -20px; animation-delay: -2.5s; }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-tint); color: var(--primary); font-weight: 800; }
.fc-green { background: #e5f7ef; color: var(--success); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ============ Page hero (inner pages) ============ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 64px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(123, 63, 228, 0.12), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(36, 83, 255, 0.1), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; max-width: 820px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; }
.page-hero .hero-actions { margin: 28px 0 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ============ Platforms ============ */
.platforms { border-block: 1px solid var(--border); background: var(--bg-soft); padding: 24px 0; }
.platforms-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.platforms-label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.platforms-list { display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: center; }
.platforms-list span { font-weight: 800; font-size: 1.08rem; color: #a3abc4; transition: color 0.2s; }
.platforms-list span:hover { color: var(--text); }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section-head.left { text-align: left; margin-left: 0; }

/* ============ Cards ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(36, 83, 255, 0.35); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  margin-bottom: 18px;
  background: var(--bg-tint); color: var(--primary);
  font-size: 1.4rem;
}
.card-icon svg { width: 24px; height: 24px; fill: currentColor; }

/* Service cards */
.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(36, 83, 255, 0.07), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card > p { margin-bottom: 18px; }

.service-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; fill: #fff; }
.icon-google { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-instagram { background: linear-gradient(135deg, #f472b6, #db2777); }
.icon-facebook { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-seo { background: linear-gradient(135deg, #10b981, #047857); }
.icon-web { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }

.check-list { display: grid; gap: 9px; margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--text); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--primary);
  font-size: 0.7rem; font-weight: 800;
}

.text-link { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; transition: gap 0.2s; }
.text-link:hover { gap: 10px; }

.card-cta {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--gradient); border: 0; color: #fff;
}
.card-cta h3 { color: #fff; font-size: 1.45rem; }
.card-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }
.card-cta .btn { align-self: flex-start; }

/* ============ Split layout ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; font-size: 1.03rem; }
.split .btn { margin-top: 12px; }

.visual-panel {
  position: relative;
  border-radius: 24px;
  padding: 34px;
  background: linear-gradient(150deg, var(--bg-tint), #f6efff);
  border: 1px solid var(--border);
}
.visual-panel .mini-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.visual-panel .mini-card + .mini-card { margin-top: 14px; }
.visual-panel .mini-card:nth-child(2) { margin-left: 28px; }
.visual-panel .mini-card:nth-child(3) { margin-left: 56px; }
.visual-panel .mini-card strong { display: block; font-size: 0.98rem; }
.visual-panel .mini-card small { color: var(--muted); font-size: 0.86rem; }
.mini-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 800; font-size: 0.9rem; }

/* ============ Process ============ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -24px;
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.step-num {
  display: inline-block;
  font-size: 2.3rem; font-weight: 800; line-height: 1;
  margin-bottom: 16px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* ============ Values / pills ============ */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; }

/* ============ CTA band ============ */
.cta-band { padding: 0 0 96px; }
.cta-band.flush { padding-top: 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 50px 56px;
  border-radius: 28px;
  background: var(--gradient);
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; right: -80px; top: -90px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { opacity: 0.88; }
.cta-inner .btn { position: relative; z-index: 1; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 14px; max-width: 840px; margin-inline: auto; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 18px; max-width: 840px; margin-inline: auto; }

.faq-item {
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] { border-color: rgba(36, 83, 255, 0.35); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 60px 20px 24px;
  font-weight: 700; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--primary);
  font-size: 1.2rem; transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* ============ Contact ============ */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; font-size: 1.04rem; }

.contact-list { display: grid; gap: 18px; margin-bottom: 30px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.contact-list a, .contact-list span.v { font-weight: 700; word-break: break-word; }
.contact-list a:hover { color: var(--primary); }
.ci {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg-tint); color: var(--primary);
}
.ci svg { width: 22px; height: 22px; fill: currentColor; }

.hours { padding: 22px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.hours h3 { font-size: 1rem; margin-bottom: 10px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.93rem; color: var(--muted); padding: 4px 0; }
.hours li b { color: var(--text); font-weight: 600; }

.contact-form {
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.87rem; font-weight: 600; margin-bottom: 8px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa2bb; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(36, 83, 255, 0.12); }

.field.invalid input,
.field.invalid select { border-color: var(--danger); }
.error { display: block; color: var(--danger); font-size: 0.8rem; margin-top: 6px; }
.error:empty { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--primary); text-decoration: underline; }

.form-status { margin-top: 14px; text-align: center; font-weight: 600; font-size: 0.95rem; }
.form-status.success { color: var(--success); }

/* ============ Legal pages ============ */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 22px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.toc h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 6px; counter-reset: toc; }
.toc a { font-size: 0.9rem; font-weight: 500; color: var(--muted); display: block; line-height: 1.45; }
.toc a:hover, .toc a.active { color: var(--primary); }

.legal-links { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.legal-links a { font-size: 0.88rem; color: var(--text); font-weight: 600; }
.legal-links a:hover, .legal-links a.active { color: var(--primary); }

.prose { max-width: 760px; }
.prose .meta { display: inline-block; font-size: 0.88rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 26px; }
.prose h2 { font-size: 1.4rem; margin: 42px 0 12px; padding-top: 4px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.prose p { color: #3c4665; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; color: #3c4665; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.note {
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: #fff8ec; border: 1px solid #ffe3b5; color: #7a5410;
  font-size: 0.93rem; margin-bottom: 26px;
}

/* ============ 404 ============ */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; background: var(--bg-soft); }
.not-found .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: var(--muted); margin: 14px auto 28px; max-width: 460px; }
.not-found .hero-actions { justify-content: center; }

/* ============ Footer ============ */
.footer { padding: 72px 0 28px; background: #0c1430; color: #c4cbe0; }
.footer .logo { color: #fff; }
.footer .logo b { color: #8fa6ff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 50px; }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 0.94rem; color: #98a2c3; }
.footer h4 { font-size: 0.98rem; margin-bottom: 18px; color: #fff; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: #98a2c3; font-size: 0.93rem; transition: color 0.2s; word-break: break-word; }
.footer ul a:hover { color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); transition: background 0.2s; }
.socials a:hover { background: var(--primary); }
.socials svg { width: 17px; height: 17px; fill: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem; color: #8590b3;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: #fff; }

/* ============ Cookie notice ============ */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  max-width: 420px;
  padding: 20px 22px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
  font-size: 0.9rem; color: var(--muted);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: none; }
.cookie-banner strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 0.98rem; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .funnel-bar span { width: var(--w); }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 16px 20px 30px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-menu.open { transform: none; }
  .nav-menu > a, .dropdown > .nav-link { font-size: 1.08rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); justify-content: space-between; }
  .nav-link.active::after { display: none; }
  .dropdown-menu {
    position: static; transform: none; width: 100%;
    box-shadow: none; border: 0; padding: 0 0 0 6px;
    opacity: 1; visibility: visible;
    display: none;
  }
  .dropdown-menu::before { display: none; }
  .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { transform: none; }
  .dropdown.open .dropdown-menu { display: block; transform: none; }
  .dropdown:hover .caret { transform: none; }
  .dropdown.open .caret { transform: rotate(180deg); }
  .nav-cta { margin-top: 20px; width: 100%; padding: 15px; }

  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero-inner, .split, .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-content { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 20px auto 0; width: 100%; }

  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }

  .cta-inner { flex-direction: column; text-align: center; padding: 44px 28px; }
}

@media (max-width: 640px) {
  .container, .container-narrow { width: calc(100% - 32px); }
  .section { padding: 70px 0; }
  .cta-band { padding-bottom: 70px; }
  .cta-band.flush { padding-top: 70px; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-1 { left: -6px; top: -30px; }
  .float-2 { right: -6px; }
  .dash-card { padding: 20px; }
  .hero-actions .btn { width: 100%; }
  .platforms-list { gap: 10px 22px; }
  .platforms-list span { font-size: 0.95rem; }
  .visual-panel { padding: 22px; }
  .visual-panel .mini-card:nth-child(2) { margin-left: 14px; }
  .visual-panel .mini-card:nth-child(3) { margin-left: 28px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
