/* =========================================================================
   ECOM SMART WORLD — style.css
   Design system: AI-focused enterprise SaaS. Brand: target/bullseye motif,
   logo blue (#1F6FE0) as primary action, logo red (#E11A14) as accent.
   Display: Sora · Body: Inter. Light + dark themes via [data-theme].
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand-blue: #1f6fe0;
  --brand-blue-600: #1559c9;
  --brand-blue-400: #3b8bff;
  --brand-red: #e11a14;
  --brand-red-600: #c2120d;

  --grad-blue: linear-gradient(135deg, #1559c9 0%, #3b8bff 100%);
  --grad-brand: linear-gradient(120deg, #1559c9 0%, #3b8bff 55%, #e11a14 140%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --section-y: clamp(4rem, 8vw, 7rem);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .22);
  --shadow-lg: 0 30px 60px -20px rgba(15, 30, 70, .28);
}

/* Light (default) */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f8fd;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --text: #0b1220;
  --text-soft: #2b3650;
  --muted: #5a6678;
  --border: #e6ecf5;
  --border-strong: #d4deec;
  --nav-bg: rgba(255, 255, 255, .82);
  --ring: rgba(31, 111, 224, .35);
  --logo-light: block;
  --logo-dark: none;
  --hero-glow: .55;
}

/* Dark */
[data-theme="dark"] {
  --bg: #080b13;
  --bg-alt: #0c111d;
  --surface: #121826;
  --surface-2: #161d2e;
  --text: #eaf0fa;
  --text-soft: #c5cee0;
  --muted: #8e9bb5;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --nav-bg: rgba(10, 14, 23, .72);
  --ring: rgba(91, 155, 255, .45);
  --logo-light: none;
  --logo-dark: block;
  --hero-glow: .9;
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, .7);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--text); letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1rem; color: var(--text-soft); }
a { color: var(--brand-blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-blue-400); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--brand-blue); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-sub { font-size: 1.075rem; color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-red) 25%, transparent); }

.text-grad { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-red { color: var(--brand-red); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.35rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 22px -8px rgba(31, 111, 224, .65); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(31, 111, 224, .7); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { color: var(--brand-blue); border-color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 8%, transparent); }

.btn-light { background: #fff; color: var(--brand-blue-600); }
.btn-light:hover { color: var(--brand-blue-600); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }

.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ===========================================================
   NAVBAR
   =========================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 74px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }
.brand-logo--light { display: var(--logo-light); }
.brand-logo--dark { display: var(--logo-dark); }

.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: 1rem; flex: 1; }
.nav-link {
  position: relative; font-family: var(--font-display); font-weight: 500; font-size: .94rem;
  color: var(--text-soft); padding: .5rem .8rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav-link:hover, .nav-link.is-active { color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 9%, transparent); }
.nav-link.is-active::after {
  content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-red);
}
.caret { transition: transform .2s var(--ease); }

/* dropdown */
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(640px, 86vw); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .9rem;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.dropdown-item { display: flex; gap: .75rem; padding: .7rem .75rem; border-radius: 12px; color: var(--text); align-items: flex-start; }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-icon { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--brand-blue) 12%, transparent); color: var(--brand-blue); }
.dropdown-icon svg { width: 18px; height: 18px; }
.dropdown-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.dropdown-sub { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--brand-blue); border-color: var(--brand-blue); transform: rotate(-15deg); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.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); }

@media (max-width: 992px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; gap: .2rem; margin: 0;
    transform: translateY(-120%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: .85rem 1rem; font-size: 1rem; }
  .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; box-shadow: none; border: none; padding: .25rem 0 .5rem; background: transparent; }
  .dropdown-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   HERO (homepage)
   =========================================================== */
.hero { position: relative; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-aurora, .hero-target { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-aurora {
  background:
    radial-gradient(60% 50% at 78% 8%, color-mix(in srgb, var(--brand-blue) calc(40% * var(--hero-glow)), transparent), transparent 70%),
    radial-gradient(45% 40% at 12% 90%, color-mix(in srgb, var(--brand-red) calc(28% * var(--hero-glow)), transparent), transparent 70%);
  filter: blur(8px);
}
/* signature: concentric target rings */
.hero-target {
  background:
    repeating-radial-gradient(circle at 82% 22%,
      transparent 0 38px,
      color-mix(in srgb, var(--brand-blue) 9%, transparent) 38px 40px);
  -webkit-mask-image: radial-gradient(circle at 82% 22%, #000 0, transparent 55%);
  mask-image: radial-gradient(circle at 82% 22%, #000 0, transparent 55%);
  opacity: .8;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38ch; margin-block: 1.25rem 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { margin-top: 2.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; font-family: var(--font-display); }
.hero-trust .avatars span:first-child { margin-left: 0; }

.hero-visual { position: relative; }
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); aspect-ratio: 4 / 3.4; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .7rem .9rem; display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--text);
}
.hero-badge .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.hero-badge--tl { top: 18px; left: -18px; }
.hero-badge--br { bottom: 22px; right: -16px; }
.hero-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-badge--tl { left: 6px; }
  .hero-badge--br { right: 6px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; text-align: center; }
.page-hero .hero-aurora { filter: blur(20px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 800px; margin-inline: auto; }
.page-hero-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.page-hero-sub { font-size: 1.12rem; color: var(--muted); margin-block: 1rem 1.8rem; }
.page-hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   TRUST / LOGOS / STATS
   =========================================================== */
.trust-bar { padding-block: 2.25rem; border-block: 1px solid var(--border); }
.trust-bar p { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; font-weight: 600; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; opacity: .85; }
.trust-logos span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--muted); letter-spacing: -.02em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-card { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ===========================================================
   SERVICE CARDS
   =========================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 950px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  overflow: hidden; display: flex; flex-direction: column;
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-blue) 12%, transparent); color: var(--brand-blue); margin-bottom: 1.1rem; }
.svc-icon svg { width: 26px; height: 26px; }
.svc-card:nth-child(3n+2) .svc-icon { background: color-mix(in srgb, var(--brand-red) 12%, transparent); color: var(--brand-red); }
.svc-title { font-size: 1.15rem; margin-bottom: .45rem; }
.svc-desc { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; flex: 1; }
.svc-link { font-family: var(--font-display); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .35rem; }
.svc-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }

/* ===========================================================
   SPLIT / FEATURE SECTIONS
   =========================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.feature-list { list-style: none; display: grid; gap: .85rem; margin: 1.5rem 0 2rem; }
.feature-list li { display: flex; gap: .7rem; color: var(--text-soft); font-size: .98rem; }
.feature-list svg { flex-shrink: 0; width: 22px; height: 22px; color: #fff; background: var(--grad-blue); border-radius: 7px; padding: 3px; }
@media (max-width: 850px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

/* ===========================================================
   INDUSTRIES
   =========================================================== */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: 1fr 1fr; } }
.industry-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s var(--ease); }
.industry-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 24, .15), rgba(8, 12, 24, .85)); }
.industry-card:hover img { transform: scale(1.07); }
.industry-card .industry-body { padding: 1.1rem; }
.industry-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: .2rem; }
.industry-card p { color: rgba(255, 255, 255, .82); font-size: .82rem; margin: 0; }

/* ===========================================================
   WHY CHOOSE / FEATURE TILES
   =========================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.why-card .svc-icon { margin-bottom: .9rem; }
.why-card h4 { font-size: 1.08rem; margin-bottom: .4rem; }
.why-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 950px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testimonial-stars { color: #f5a623; display: flex; gap: 2px; margin-bottom: .9rem; }
.testimonial-quote { font-size: .98rem; color: var(--text-soft); margin: 0 0 1.3rem; flex: 1; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad-blue); font-size: .9rem; }
.testimonial-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--text); }
.testimonial-role { display: block; font-size: .82rem; color: var(--muted); }

/* ===========================================================
   PRICING
   =========================================================== */
.pricing-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pricing-group-head { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.pricing-group-title { font-size: 1.6rem; }
.pricing-group-blurb { color: var(--muted); margin: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.pricing-grid--wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border-color: transparent; box-shadow: var(--shadow-lg); background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  var(--grad-blue) border-box; border: 2px solid transparent; }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-blue); color: #fff; font-size: .72rem; font-weight: 700; font-family: var(--font-display); letter-spacing: .04em; padding: .3rem .85rem; border-radius: var(--radius-pill); white-space: nowrap; }
.pricing-name { font-size: 1.25rem; margin-bottom: .25rem; }
.pricing-tagline { font-size: .85rem; color: var(--muted); min-height: 2.4em; margin-bottom: 1rem; }
.pricing-price { display: flex; align-items: baseline; gap: .25rem; margin-bottom: 1.25rem; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; color: var(--text); }
.price-period { color: var(--muted); font-size: .95rem; }
.price-custom { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--text); }
.pricing-features { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.6rem; flex: 1; }
.pricing-features li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text-soft); }
.pricing-features svg { flex-shrink: 0; color: var(--brand-blue); margin-top: 2px; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.faq-item.is-open { border-color: var(--brand-blue); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.faq-icon { flex-shrink: 0; color: var(--brand-blue); transition: transform .25s var(--ease); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .95rem; }

/* ===========================================================
   CTA BAND
   =========================================================== */
.cta-band { padding-block: clamp(3rem, 6vw, 5rem); }
.cta-inner { position: relative; background: var(--grad-brand); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem); text-align: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-target { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 44px, rgba(255, 255, 255, .12) 44px 46px); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%); opacity: .55; }
.cta-heading { position: relative; color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.6rem); max-width: 16ch; margin-inline: auto; }
.cta-sub { position: relative; color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 1rem auto 2rem; font-size: 1.05rem; }
.cta-actions { position: relative; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   FORMS
   =========================================================== */
.lead-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.lead-form-card--compact { box-shadow: var(--shadow-md); padding: 1.4rem; }
.lead-form-title { font-size: 1.4rem; margin-bottom: .3rem; }
.lead-form-sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.4rem; }
.form-label { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--text); margin-bottom: .35rem; }
.req { color: var(--brand-red); }
.lead-form .form-control, .lead-form .form-select {
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text); border-radius: var(--radius-sm);
  padding: .7rem .85rem; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.lead-form .form-control:focus, .lead-form .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); color: var(--text); }
.lead-form .form-control::placeholder { color: var(--muted); opacity: .7; }
.form-consent { font-size: .82rem; color: var(--muted); margin: 1.1rem 0; display: flex; }
.form-consent label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.form-consent input { margin-top: .2rem; accent-color: var(--brand-blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { position: relative; }
.form-submit .btn-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.form-submit.loading .btn-label { opacity: .6; }
.form-submit.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: .9rem 0 0; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #15a06a; }
.form-status.err { color: var(--brand-red); }

/* ===========================================================
   CONTACT LAYOUT
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 850px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { display: flex; gap: 1rem; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-bottom: 1rem; }
.contact-info-card .ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-blue) 12%, transparent); color: var(--brand-blue); }
.contact-info-card h4 { font-size: 1rem; margin-bottom: .15rem; }
.contact-info-card p, .contact-info-card a { margin: 0; font-size: .92rem; color: var(--muted); }
.contact-info-card a:hover { color: var(--brand-blue); }

/* ===========================================================
   BLOG
   =========================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 950px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-cover { aspect-ratio: 16/10; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-red); }
.post-title { font-size: 1.12rem; margin: .5rem 0; line-height: 1.25; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--brand-blue); }
.post-excerpt { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.blog-categories { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.cat-chip { padding: .5rem 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); font-size: .85rem; font-weight: 600; font-family: var(--font-display); color: var(--text-soft); }
.cat-chip:hover, .cat-chip.is-active { background: var(--grad-blue); color: #fff; border-color: transparent; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-body { font-size: 1.08rem; line-height: 1.75; color: var(--text-soft); }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; gap: .6rem; align-items: center; margin-bottom: 1.5rem; }

/* prose for legal pages */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.3rem; margin-bottom: 1.2rem; list-style: disc; }
.prose li { margin-bottom: .4rem; }

/* breadcrumb */
.breadcrumb-nav { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--brand-blue); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: clamp(3rem, 5vw, 4.5rem) 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
@media (max-width: 850px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-logo--light { display: var(--logo-light); }
.footer-logo--dark { display: var(--logo-dark); }
.footer-tagline { color: var(--muted); font-size: .9rem; max-width: 38ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.footer-social a:hover { color: #fff; background: var(--grad-blue); border-color: transparent; transform: translateY(-2px); }
.footer-col h4 { font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--brand-blue); }
.footer-contact li { color: var(--muted); font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .82rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float { position: fixed; bottom: 22px; right: 22px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); transition: transform .2s var(--ease); }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: .75rem !important; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; }

/* ---------- Flash messages ---------- */
.flash { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.75rem; font-weight: 500; border: 1px solid transparent; }
.flash--success { background: color-mix(in srgb, #15a06a 12%, transparent); color: #0f7a52; border-color: color-mix(in srgb, #15a06a 30%, transparent); }
.flash--error { background: color-mix(in srgb, var(--brand-red) 12%, transparent); color: var(--brand-red); border-color: color-mix(in srgb, var(--brand-red) 30%, transparent); }
[data-theme="dark"] .flash--success { color: #4fd1a0; }

/* ---------- Form invalid state ---------- */
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--brand-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-red) 18%, transparent); }

/* ---------- Blog: category counts & article extras ---------- */
.cat-count { display: inline-block; min-width: 1.4em; padding: 0 .45em; margin-left: .3rem; font-size: .72em; font-weight: 700; line-height: 1.5; text-align: center; border-radius: 999px; background: color-mix(in srgb, currentColor 15%, transparent); }
.article-head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.article-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; margin: .75rem 0 1rem; }
.article-share { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.article-share span { font-weight: 600; }
.article-share a { font-weight: 600; color: var(--brand-blue); }
.article-share a:hover { text-decoration: underline; }
