/* =========================================
   A Bansal Solutions — Premium Corporate Design System
   Navy + Gold · Playfair Display + Inter
   ========================================= */

/* ── Google Fonts ── */
/* NOTE: Fonts are loaded via <link> tags in HTML with display=swap.
   No @import needed here — avoids a render-blocking double-fetch. */

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg, #fafaf9); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent, #1e3a5f) 0%, var(--gold, #c9a84c) 100%);
  border-radius: 999px;
  border: 2px solid var(--bg, #fafaf9);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent, #1e3a5f); }
* { scrollbar-width: thin; scrollbar-color: var(--accent, #1e3a5f) var(--bg, #fafaf9); }

/* ── Color Scheme ── */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

/* ── Color Tokens ── */
:root {
  /* Brand palette — deep authority navy + single gold supporting accent */
  --bg:              #fafaf9;
  --bg-elev:         #ffffff;
  --bg-soft:         #f4f4f2;
  --accent:          #16304e;
  --accent-hover:    #254a73;
  --gold:            #c9a84c;
  --gold-light:      #e8c97a;
  --gold-dark:       #8a6d20;   /* AA on light backgrounds (≥4.5:1) */
  --gold-soft:       #fdf6e3;
  --text:            #1a1a2e;
  --muted:           #6b7280;
  --border:          #e5e7eb;
  --border-2:        #d1d5db;
  --link:            var(--accent);
  --link-hover:      var(--accent-hover);

  /* Dark section tokens */
  --dark-bg:         #0d1b2e;
  --dark-bg-2:       #122340;
  --dark-text:       #f0f4f8;
  --dark-muted:      #94a3b8;
  --dark-border:     #1e3254;

  /* Semantic */
  --success:         #059669;
  --success-soft:    #d1fae5;
  --warn:            #b45309;
  --warn-soft:       #fef3c7;
  --error:           #b91c1c;
  --error-soft:      #fee2e2;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(26, 26, 46, .04);
  --shadow-sm:  0 2px 6px rgba(26, 26, 46, .06), 0 1px 2px rgba(26, 26, 46, .04);
  --shadow-md:  0 6px 20px rgba(26, 26, 46, .08), 0 2px 6px rgba(26, 26, 46, .05);
  --shadow-lg:  0 20px 48px rgba(26, 26, 46, .12), 0 6px 16px rgba(26, 26, 46, .07);
  --shadow-xl:  0 32px 64px rgba(26, 26, 46, .16), 0 12px 24px rgba(26, 26, 46, .09);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, .28);

  /* Radius */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;

  /* Legacy variable aliases (used in per-page <style> blocks) */
  --brand:        var(--accent);
  --brand-2:      var(--accent-hover);
  --brand-soft:   rgba(30, 58, 95, .07);
  --ink:          var(--text);
  --ink-2:        var(--muted);
  --ink-3:        var(--muted);
  --line:         var(--border);

  /* Subscription / SaaS purple — used in inline styles on products/services pages */
  --purple-soft:  #f3e8ff;
  --purple:       #7e22ce;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; display: block; }

button, input, textarea, select { font: inherit; color: inherit; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 14px; color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.filter-pill:focus-visible,
.tab-btn:focus-visible,
.accordion-btn:focus-visible,
.copy-btn:focus-visible,
.search-close:focus-visible,
.search-result-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
  border-radius: var(--radius-xs);
}
/* For elements that already have box-shadow, use outline fallback */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
}

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

/* ── No-JS fallback: make animated elements visible if JS is disabled ── */
.no-js [data-animate],
.no-js [data-animate-children] > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Scroll-reveal keyframes ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes reveal-left {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-scale {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scroll-reveal animation ── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
              transform .65s cubic-bezier(.22, 1, .36, 1);
}
/* Support both .is-visible (legacy) and .in-view (new observer) */
[data-animate].is-visible,
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade-up"] { transform: translateY(28px); }
[data-animate="fade-in"] { transform: none; }
[data-animate="slide-left"]  { transform: translateX(-32px); }
[data-animate="slide-right"] { transform: translateX(32px); }
[data-animate="scale-in"] { transform: scale(.96); }

/* Stagger children */
[data-animate-children] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1),
              transform .55s cubic-bezier(.22, 1, .36, 1);
}
[data-animate-children].is-visible > *:nth-child(1),
[data-animate-children].in-view > *:nth-child(1) { transition-delay: .05s; }
[data-animate-children].is-visible > *:nth-child(2),
[data-animate-children].in-view > *:nth-child(2) { transition-delay: .12s; }
[data-animate-children].is-visible > *:nth-child(3),
[data-animate-children].in-view > *:nth-child(3) { transition-delay: .19s; }
[data-animate-children].is-visible > *:nth-child(4),
[data-animate-children].in-view > *:nth-child(4) { transition-delay: .26s; }
[data-animate-children].is-visible > *:nth-child(5),
[data-animate-children].in-view > *:nth-child(5) { transition-delay: .33s; }
[data-animate-children].is-visible > *:nth-child(6),
[data-animate-children].in-view > *:nth-child(6) { transition-delay: .40s; }
[data-animate-children].is-visible > *,
[data-animate-children].in-view > * { opacity: 1; transform: translateY(0); }


/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }


/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 250, 249, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s, background .25s;
}
.site-header.scrolled {
  background: rgba(250, 250, 249, .97);
  box-shadow: var(--shadow-sm);
}

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

/* Logo / Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity .2s;
}
.brand:hover { opacity: .85; color: var(--text); }

.brand .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-hover) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(30, 58, 95, .35);
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.brand:hover .logo-mark { box-shadow: 0 4px 14px rgba(30, 58, 95, .45); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a:not(.btn) {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: color .18s, background .18s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }
.nav-links a:not(.btn):active { transform: scale(.97); }
.nav-links a.active:not(.btn) {
  color: var(--accent);
  background: rgba(30, 58, 95, .07);
}

.nav-cta { margin-left: 10px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;   /* min 44×44px tap target */
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nav-toggle:hover { border-color: var(--border-2); background: var(--bg-soft); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform .32s cubic-bezier(0.22,1,0.36,1),
              opacity .2s ease,
              top .32s cubic-bezier(0.22,1,0.36,1);
}
/* Stack spans using positions */
.nav-toggle span:nth-child(1) { top: 0; margin-bottom: 3.5px; }
.nav-toggle span:nth-child(2) { top: 0; margin-bottom: 3.5px; }
.nav-toggle span:nth-child(3) { top: 0; }
/* Open (X) state — triggered when nav-links has .open */
.nav-links.open ~ * .nav-toggle span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(3.5px, 3.5px);
}
.nav-links.open ~ * .nav-toggle span:nth-child(2),
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-links.open ~ * .nav-toggle span:nth-child(3),
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* Theme / search buttons */
.theme-toggle,
.search-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s, border-color .15s;
  flex-shrink: 0;
}
.theme-toggle:hover, .search-btn:hover { color: var(--text); background: var(--bg-soft); border-color: var(--border-2); }
.theme-toggle:active, .search-btn:active { transform: scale(.94); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }


/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform .15s cubic-bezier(.22, 1, .36, 1),
    box-shadow .18s ease,
    background .18s,
    color .15s,
    border-color .15s;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
  pointer-events: none;
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(1px) scale(.99); }

/* Primary — Dark Navy */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(30, 58, 95, .22);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, .32);
}

/* Brand — Navy with gold text */
.btn-brand {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--gold-light);
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(30, 58, 95, .35);
  letter-spacing: 0.02em;
}
.btn-brand:hover {
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--accent-hover) 0%, #3a6090 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, .45);
}
[data-theme="dark"] .btn-brand {
  background: linear-gradient(135deg, #2a5080 0%, #3a6090 100%);
  color: var(--gold-light);
  box-shadow: 0 3px 14px rgba(42, 80, 128, .45);
}
[data-theme="dark"] .btn-brand:hover {
  background: linear-gradient(135deg, #3a6090 0%, #4a70a8 100%);
  color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(42, 80, 128, .55);
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(30, 58, 95, .04);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }

/* Sizes */
.btn-sm  { padding: 8px 16px; font-size: 13px; border-radius: 9px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: 14px; }

/* States */
.btn[aria-busy="true"],
.btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }


/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 104px 0 88px;
  overflow: hidden;
  background: var(--bg);
}

/* Decorative background layers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(30, 58, 95, .12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(201, 168, 76, .13) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(30, 58, 95, .07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 105%, rgba(201, 168, 76, .06) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  z-index: 1;
}
/* Soft radial glow behind the hero headline */
.hero-inner::before {
  content: '';
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  height: 360px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(201, 168, 76, .10) 0%, transparent 70%),
    radial-gradient(ellipse 75% 70% at 50% 45%, rgba(22, 48, 78, .08) 0%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

/* Eyebrow pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(30, 58, 95, .07);
  border: 1px solid rgba(30, 58, 95, .12);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 168, 76, .5); }
  50% { opacity: .8; box-shadow: 0 0 0 4px rgba(201, 168, 76, 0); }
}

/* Hero headline — refined tracking, balanced wrapping */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lede {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (sub-pages) */
.page-hero {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(30, 58, 95, .07), transparent 65%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}
.page-hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  position: relative;
}


/* =========================================
   TRUST STRIP
   ========================================= */
.trust-strip {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 40px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.trust-badge:hover { color: var(--text); }
.trust-badge svg { color: var(--gold); flex-shrink: 0; }


/* =========================================
   STATS
   ========================================= */
.stats {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 16px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat .num .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 8px;
  font-weight: 600;
}


/* =========================================
   SECTION HEADS
   ========================================= */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.section-head .kicker::before,
.section-head .kicker::after {
  content: '';
  display: inline-block;
  height: 1px;
  width: 24px;
  background: var(--gold);
  opacity: .6;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}


/* =========================================
   PRODUCT CARDS
   ========================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s ease,
    border-color .2s;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201, 168, 76, .04), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, .25);
}
.product-card:hover::before { opacity: 1; }

/* Type badges */
.product-card .type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
  width: fit-content;
}
.type-badge.desktop     { background: rgba(30, 58, 95, .08); color: var(--accent); border: 1px solid rgba(30, 58, 95, .12); }
.type-badge.mobile      { background: #ecfdf5; color: #047857; border: 1px solid rgba(4, 120, 87, .15); }
.type-badge.web         { background: #fff7ed; color: #c2410c; border: 1px solid rgba(194, 65, 12, .15); }
.type-badge.saas        { background: #fdf4ff; color: #7e22ce; border: 1px solid rgba(126, 34, 206, .15); }
.type-badge.suite       { background: #eff6ff; color: #1d4ed8; border: 1px solid rgba(29, 78, 216, .15); }
.type-badge.messaging   { background: #f0fdf4; color: #16a34a; border: 1px solid rgba(22, 163, 74, .2); }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.product-card .alias {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.product-card .tagline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.65;
}

/* Feature list */
.product-card .features { list-style: none; margin-bottom: 24px; }
.product-card .features li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.product-card .features li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 168, 76, .3);
}
.product-card .features li::after {
  content: '';
  position: absolute;
  left: 4px; top: 13px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--gold-dark);
  border-bottom: 1.5px solid var(--gold-dark);
  transform: rotate(-45deg);
}

/* Stack chips */
.product-card .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.product-card .stack .chip,
.chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}

/* License row */
.product-card .license-row {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.license-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.license-pill.perpetual  { background: var(--success-soft); color: var(--success); }
.license-pill.subscription { background: #f3e8ff; color: #7e22ce; }
.license-pill.hosted     { background: var(--warn-soft); color: var(--warn); }
.license-pill.bespoke    { background: rgba(30, 58, 95, .07); color: var(--accent); }
.license-pill.service    { background: #f0fdf4; color: #16a34a; }


/* =========================================
   FILTER PILLS
   ========================================= */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill:active { transform: translateY(1px) scale(.98); }
.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(30, 58, 95, .22);
}


/* =========================================
   SERVICE CARDS
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s ease,
    border-color .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, .25);
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(30, 58, 95, .06);
  color: var(--accent);
  border: 1px solid rgba(30, 58, 95, .1);
  transition: background .2s, color .2s;
}
.service-card:hover .icon {
  background: var(--accent);
  color: var(--gold);
  border-color: var(--accent);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.service-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}


/* =========================================
   PROCESS STEPS
   ========================================= */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
/* Connector line between steps */
.process::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .4;
}
.step { text-align: center; padding: 28px 20px; }
.step .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(30, 58, 95, .28);
  position: relative;
  z-index: 1;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; }


/* =========================================
   CASE STUDIES
   ========================================= */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .2s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, .25);
}
.case-card .case-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.case-card .case-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.case-card .case-badge {
  background: rgba(30, 58, 95, .07);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 58, 95, .12);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 12px;
}
.case-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.case-result {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 20px 0 0;
}
.case-result span { white-space: nowrap; }
.case-result span + span::before { content: '·'; margin-right: 8px; opacity: .5; }


/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: .7;
  color: var(--gold);
  opacity: .25;
  position: absolute;
  top: 20px;
  left: 24px;
  pointer-events: none;
  user-select: none;
  font-weight: 900;
}
.testimonial-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 32px;
  margin-bottom: 24px;
}
.testimonial-card footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-card .author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testimonial-card .author-role {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}


/* =========================================
   CTA BAND
   ========================================= */
.cta-band {
  margin: 88px auto;
  padding: 64px 48px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(140deg, var(--dark-bg) 0%, #0f2340 50%, var(--dark-bg-2) 100%);
  color: var(--dark-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(201, 168, 76, .18), transparent 55%),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(42, 80, 128, .35), transparent 50%);
  pointer-events: none;
}
/* Gold accent line at top */
.cta-band::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}
.cta-band p {
  opacity: .8;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark-muted);
}
.cta-band .btn-outline {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  backdrop-filter: blur(4px);
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.cta-band .btn-ghost { color: rgba(255,255,255,.7); }
.cta-band .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }


/* =========================================
   CONTACT / FORMS
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.contact-info p { color: var(--muted); margin-bottom: 32px; line-height: 1.75; }
.contact-method {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-method:last-child { border-bottom: 0; }
.contact-method .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(30, 58, 95, .06);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(30, 58, 95, .1);
}
.contact-method .label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-method .value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: var(--border-2);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, .10);
}
.form-field textarea { min-height: 130px; resize: vertical; }
/* Error state */
.form-field.is-error input,
.form-field.is-error textarea,
.form-field.is-error select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .10);
}
.form-field .field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  display: none;
}
.form-field.is-error .field-error { display: block; }
/* Required indicator */
.form-field label .req {
  color: var(--error);
  margin-left: 3px;
  font-weight: 700;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 14px;
  display: none;
}
.form-msg.success { background: var(--success-soft); color: var(--success); display: block; }
.form-msg.error   { background: var(--error-soft); color: var(--error); display: block; }
.form-msg a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Inline status under buy/checkout buttons (role="status", aria-live="polite") */
.buy-status {
  display: none;
  font-size: 13.5px;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-top: 10px;
  text-align: left;
}
.buy-status.success { background: var(--success-soft); color: var(--success); display: block; }
.buy-status.error   { background: var(--error-soft); color: var(--error); display: block; }
.buy-status a { color: inherit; text-decoration: underline; font-weight: 600; }


/* =========================================
   ABOUT STRIP
   ========================================= */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text);
}
.about-strip p { color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.about-strip .value-list { list-style: none; margin-top: 24px; }
.about-strip .value-list li {
  position: relative;
  padding: 11px 0 11px 34px;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.about-strip .value-list li:last-child { border-bottom: 0; }
.about-strip .value-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/5;
  background: linear-gradient(140deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(201, 168, 76, .15), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(42, 80, 128, .3), transparent 45%);
}
/* Dot grid */
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.about-visual .visual-inner {
  position: relative;
  text-align: center;
  padding: 36px;
  z-index: 1;
}
.about-visual .visual-inner .big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-visual .visual-inner .sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-muted);
  letter-spacing: 0.01em;
}


/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding: 0 0 32px;
  margin-top: 0;
}

/* Top gold accent bar */
.site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
}

/* Newsletter */
.footer-newsletter {
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--dark-border);
  padding: 40px 0;
  margin-bottom: 56px;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.newsletter-copy h4 {
  font-family: var(--font-display);
  color: var(--dark-text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.newsletter-copy p {
  font-size: 14px;
  color: var(--dark-muted);
  max-width: 400px;
}
.newsletter-form { flex-shrink: 0; }
.newsletter-row { display: flex; gap: 8px; align-items: center; }
.newsletter-row input[type="email"] {
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--dark-border);
  background: rgba(255,255,255,.05);
  color: var(--dark-text);
  font-size: 14px;
  width: 250px;
  transition: border-color .18s, box-shadow .18s;
}
.newsletter-row input[type="email"]::placeholder { color: #5a7a9a; }
.newsletter-row input[type="email"]:hover { border-color: rgba(255,255,255,.2); }
.newsletter-row input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
}
.newsletter-msg { font-size: 12.5px; margin-top: 8px; min-height: 16px; }
.newsletter-msg.success { color: var(--gold); }
.newsletter-msg.error   { color: #f87171; }

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 300px; }
.footer-brand .brand { color: var(--dark-text); margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: var(--dark-muted); }

.footer-col h4 {
  color: var(--dark-text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 700;
}
/* Gold underline on footer headings */
.footer-col h4::after {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--gold);
  margin-top: 8px;
  opacity: .6;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--dark-muted);
  font-size: 13.5px;
  transition: color .18s, padding-left .18s;
  display: inline-block;
}
.footer-col a:hover { color: var(--gold-light); padding-left: 3px; }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #5a7a9a;
}
.footer-bottom a { color: #5a7a9a; transition: color .18s; margin-right: 12px; }
.footer-bottom a:last-child { margin-right: 0; }
.footer-bottom a:hover { color: var(--dark-muted); }


/* =========================================
   SPOTLIGHT (featured products grid)
   ========================================= */
.spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}


/* =========================================
   BLOG
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, .2);
}
.blog-card .post-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid rgba(201, 168, 76, .2);
  margin-bottom: 14px;
  width: fit-content;
}
.blog-card .post-date { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--text);
}
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 14px; color: var(--muted); line-height: 1.7; flex-grow: 1; margin-bottom: 20px; }
.blog-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: color .18s, gap .18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card .read-more::after { content: '→'; transition: transform .2s; }
.blog-card:hover .read-more { color: var(--accent-hover); }
.blog-card:hover .read-more::after { transform: translateX(3px); }


/* =========================================
   PRODUCT DETAIL PAGES
   ========================================= */
.product-hero {
  padding: 72px 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(30, 58, 95, .07), transparent 65%);
  pointer-events: none;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.product-hero .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.product-hero .crumbs a { color: var(--muted); }
.product-hero .crumbs a:hover { color: var(--text); }

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--text);
}
.product-hero .alias {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 22px;
}
.product-hero p.tag {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}
.price-row .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-row .price-unit { color: var(--muted); font-size: 14px; font-weight: 500; }
.price-row .strike { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 1.1rem; }

.product-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.product-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--dark-bg) 0%, var(--accent-hover) 100%);
  aspect-ratio: 4/3;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  color: var(--dark-text);
}
.product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 15% 25%, rgba(201, 168, 76, .18), transparent 50%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(255,255,255,.06), transparent 45%);
  pointer-events: none;
}
.product-visual .v-card {
  position: relative;
  width: 100%; height: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-visual .v-card .v-dots { display: flex; gap: 6px; }
.product-visual .v-card .v-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.product-visual .v-card .v-title { font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.product-visual .v-card .v-lines { display: flex; flex-direction: column; gap: 6px; }
.product-visual .v-card .v-lines span {
  height: 8px;
  background: rgba(255,255,255,.14);
  border-radius: 4px;
}
.product-visual .v-card .v-lines span:nth-child(1) { width: 72%; }
.product-visual .v-card .v-lines span:nth-child(2) { width: 90%; }
.product-visual .v-card .v-lines span:nth-child(3) { width: 58%; }
.product-visual .v-card .v-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.product-visual .v-card .v-grid div {
  aspect-ratio: 1;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: 0;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); background: var(--bg-soft); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }
.tab-btn:active { transform: translateY(1px); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Setup blocks / code */
.setup-block { margin-bottom: 32px; }
.setup-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.setup-block p { color: var(--muted); margin-bottom: 14px; line-height: 1.75; }

pre.code, code.inline {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--dark-bg);
  color: #e2e8f0;
  border-radius: var(--radius);
}
code.inline { display: inline-block; padding: 2px 8px; font-size: 12.5px; }
pre.code {
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--dark-border);
  margin-bottom: 16px;
  line-height: 1.65;
}
pre.code .c-cmt { color: #94a3b8; }
pre.code .c-cmd { color: var(--gold); }
pre.code .c-str { color: #86efac; }

.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(30, 58, 95, .05);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 18px;
}
.callout.warn {
  background: var(--warn-soft);
  border-color: var(--warn);
  color: var(--warn);
}

/* Pricing tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.tier {
  position: relative;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(201, 168, 76, .3); }
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.tier.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -11px; right: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a2e;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tier .tier-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.tier .tier-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.tier .tier-price small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.tier ul { list-style: none; margin: 22px 0; flex-grow: 1; }
.tier ul li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--muted);
}
.tier ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.tier .btn { width: 100%; }

/* Related products */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}


/* =========================================
   SUCCESS / CHECKOUT
   ========================================= */
.success-card {
  max-width: 640px;
  margin: 64px auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-card .icon-big {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 32px;
  font-weight: 700;
}
.success-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.success-card p { color: var(--muted); margin-bottom: 24px; }
.license-display, .license-box {
  position: relative;
  background: var(--dark-bg);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  word-break: break-all;
  margin-bottom: 14px;
  border: 1px solid var(--dark-border);
}
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.14); }
.copy-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }


/* =========================================
   ADMIN PANEL
   ========================================= */
.admin-shell { min-height: 100vh; background: var(--bg-soft); }
.admin-login {
  max-width: 420px;
  margin: 80px auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.admin-login h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
}
.admin-login p.sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.admin-topbar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-topbar .brand { font-size: 15px; }
.admin-topbar .right { display: flex; gap: 10px; align-items: center; }
.admin-topbar .right .pill {
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.admin-main { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }
.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
}
.panel h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.license-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.license-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.license-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.license-table tbody tr:hover { background: var(--bg-soft); }
.license-table .lic-key { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); font-weight: 500; }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pill.active  { background: var(--success-soft); color: var(--success); }
.status-pill.revoked { background: var(--error-soft); color: var(--error); }
.status-pill.expired { background: var(--warn-soft); color: var(--warn); }
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }


/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-category { margin-bottom: 52px; }
.faq-category-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-elev);
  border: none;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background .18s;
}
.accordion-btn:hover { background: var(--bg-soft); }
.accordion-btn:active { background: rgba(30, 58, 95, .06); }
.accordion-btn[aria-expanded="true"] { color: var(--accent); background: rgba(30, 58, 95, .04); }
.accordion-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .22s;
  color: var(--muted);
}
.accordion-btn[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.accordion-body {
  display: none;
  padding: 0 22px 22px;
  background: var(--bg-elev);
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}
.accordion-body.open { display: block; }


/* =========================================
   LEGAL PAGES
   ========================================= */
.legal-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.legal-body h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
.legal-body .last-updated { color: var(--muted); font-size: 13px; margin-bottom: 44px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}
.legal-body p  { color: var(--muted); font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
.legal-body li { margin-bottom: 7px; }


/* =========================================
   PORTAL PAGES
   ========================================= */
.portal-shell { min-height: 100vh; background: var(--bg); }
.portal-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* =========================================
   ANNOUNCEMENT BAR
   ========================================= */
.announce-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  line-height: 1.4;
}
.announce-bar a { color: var(--gold-light); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.announce-bar a:hover { color: #fff; }
.announce-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  /* min 44×44px tap target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  transition: color .15s;
}
.announce-dismiss:hover { color: #fff; }


/* =========================================
   SEARCH OVERLAY
   ========================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 27, 46, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 16px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.search-input-row svg { color: var(--muted); flex-shrink: 0; }
.search-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  outline: none;
}
.search-input-row input::placeholder { color: var(--muted); }
.search-close {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
}
.search-results { max-height: 440px; overflow-y: auto; padding: 8px 0; }
.search-group-label {
  padding: 10px 22px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--muted);
}
.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 22px;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover { background: var(--bg-soft); }
.search-result-item .sri-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.search-result-item .sri-desc  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.search-empty { padding: 36px 22px; text-align: center; color: var(--muted); font-size: 14px; }


/* =========================================
   COOKIE CONSENT
   ========================================= */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(26, 26, 46, .08);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1; min-width: 200px; }
.cookie-bar p a { color: var(--link); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }


/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.wa-float {
  position: fixed;
  bottom: 88px; right: 24px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 13px 22px 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, .40);
  font-weight: 600;
  font-size: 14px;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
  text-decoration: none;
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .50);
}
.wa-float svg { flex-shrink: 0; }
.wa-label { white-space: nowrap; }


/* =========================================
   DARK MODE
   ========================================= */
[data-theme="dark"] {
  --bg:        #0d1b2e;
  --bg-elev:   #112035;
  --bg-soft:   #0f2340;
  --text:      #f0f4f8;
  --muted:     #7e9ab5;
  --border:    #1e3254;
  --border-2:  #2a4266;
  --gold-dark: var(--gold);          /* light-theme dark-gold is unreadable on navy */
  --gold-soft: rgba(201, 168, 76, .12);
  --link:       #8fb8e8;             /* readable steel-blue links on navy */
  --link-hover: #aecdf0;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.35);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
  --shadow-xl: 0 32px 64px rgba(0,0,0,.65);
}
[data-theme="dark"] .site-header {
  background: rgba(13, 27, 46, .92);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(13, 27, 46, .98);
}
[data-theme="dark"] .nav-links {
  background: var(--bg-elev);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .btn-outline {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .btn-outline:hover {
  border-color: var(--accent);
  background: rgba(30, 58, 95, .2);
}
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea,
[data-theme="dark"] .form-field select {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] pre.code { border-color: var(--dark-border); }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Dark: trust strip + stats ── */
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .stats {
  background: var(--bg-elev);
  border-color: var(--border);
}

/* ── Dark: type badges (hardcoded light colors) ── */
[data-theme="dark"] .type-badge.mobile     { background: rgba(4, 120, 87, .18); color: #34d399; border-color: rgba(52, 211, 153, .2); }
[data-theme="dark"] .type-badge.web        { background: rgba(194, 65, 12, .18); color: #fb923c; border-color: rgba(251, 146, 60, .2); }
[data-theme="dark"] .type-badge.saas       { background: rgba(126, 34, 206, .18); color: #c084fc; border-color: rgba(192, 132, 252, .2); }
[data-theme="dark"] .type-badge.suite      { background: rgba(29, 78, 216, .18); color: #60a5fa; border-color: rgba(96, 165, 250, .2); }
[data-theme="dark"] .type-badge.messaging  { background: rgba(22, 163, 74, .18); color: #4ade80; border-color: rgba(74, 222, 128, .2); }

/* ── Dark: license pills ── */
[data-theme="dark"] .license-pill.perpetual     { background: rgba(5, 150, 105, .18); color: #34d399; }
[data-theme="dark"] .license-pill.subscription  { background: rgba(126, 34, 206, .18); color: #c084fc; }
[data-theme="dark"] .license-pill.hosted        { background: rgba(180, 83, 9, .18); color: #fbbf24; }
[data-theme="dark"] .license-pill.bespoke       { background: rgba(30, 58, 95, .35); color: #93b4d4; }
[data-theme="dark"] .license-pill.service       { background: rgba(22, 163, 74, .18); color: #4ade80; }

/* ── Dark: chips ── */
[data-theme="dark"] .chip {
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border-color: var(--border);
}

/* ── Dark: case result block ── */
[data-theme="dark"] .case-result {
  background: rgba(201, 168, 76, .1);
  border-color: rgba(201, 168, 76, .18);
  color: var(--gold-light);
}

/* ── Dark: callout ── */
[data-theme="dark"] .callout {
  background: rgba(30, 58, 95, .25);
  border-left-color: var(--accent-hover);
  color: var(--text);
}
[data-theme="dark"] .callout.warn {
  background: rgba(180, 83, 9, .18);
  border-color: #d97706;
  color: #fbbf24;
}

/* ── Dark: accordion ── */
[data-theme="dark"] .accordion {
  border-color: var(--border);
}
[data-theme="dark"] .accordion-item {
  border-bottom-color: var(--border);
}
[data-theme="dark"] .accordion-btn {
  background: var(--bg-elev);
  color: var(--text);
}
[data-theme="dark"] .accordion-btn:hover { background: var(--bg-soft); }
[data-theme="dark"] .accordion-btn:active { background: rgba(255,255,255,.05); }
[data-theme="dark"] .accordion-btn[aria-expanded="true"] { background: rgba(30, 58, 95, .35); }
[data-theme="dark"] .accordion-body { background: var(--bg-elev); color: var(--muted); }

/* ── Dark: status pills ── */
[data-theme="dark"] .status-pill.active  { background: rgba(5, 150, 105, .18); color: #34d399; }
[data-theme="dark"] .status-pill.revoked { background: rgba(185, 28, 28, .18); color: #f87171; }
[data-theme="dark"] .status-pill.expired { background: rgba(180, 83, 9, .18); color: #fbbf24; }

/* ── Dark: license table ── */
[data-theme="dark"] .license-table thead th {
  background: var(--bg-soft);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .license-table tbody td {
  border-bottom-color: var(--border);
}
[data-theme="dark"] .license-table tbody tr:hover { background: var(--bg-soft); }

/* ── Dark: search overlay ── */
[data-theme="dark"] .search-box {
  background: var(--bg-elev);
  border-color: var(--border-2);
}
[data-theme="dark"] .search-input-row { border-bottom-color: var(--border); }
[data-theme="dark"] .search-result-item:hover { background: var(--bg-soft); }
[data-theme="dark"] .search-close {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--muted);
}

/* ── Dark: cookie bar ── */
[data-theme="dark"] .cookie-bar {
  background: var(--bg-elev);
  border-top-color: var(--border);
}

/* ── Dark: form card ── */
[data-theme="dark"] .form-card {
  background: var(--bg-elev);
  border-color: var(--border);
}
[data-theme="dark"] .form-field label { color: var(--text); }

/* ── Dark: contact method icon ── */
[data-theme="dark"] .contact-method .icon {
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  color: var(--gold);
}
[data-theme="dark"] .contact-method { border-bottom-color: var(--border); }

/* ── Dark: service card icon ── */
[data-theme="dark"] .service-card .icon {
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  color: var(--gold);
}
[data-theme="dark"] .service-card:hover .icon {
  background: var(--accent-hover);
  color: var(--gold-light);
  border-color: var(--accent-hover);
}

/* ── Dark: blog card read-more ── */
[data-theme="dark"] .blog-card .read-more { color: var(--gold); }
[data-theme="dark"] .blog-card h3 a:hover { color: var(--gold); }

/* ── Dark: filter pill ── */
[data-theme="dark"] .filter-pill {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--muted);
}
[data-theme="dark"] .filter-pill:hover { border-color: var(--gold); color: var(--gold); }
[data-theme="dark"] .filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Dark: tab buttons ── */
[data-theme="dark"] .tab-btn:hover { background: var(--bg-soft); color: var(--text); }
[data-theme="dark"] .tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
[data-theme="dark"] .tabs { border-bottom-color: var(--border); }

/* ── Dark: tier featured badge ── */
[data-theme="dark"] .tier.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-md); }
[data-theme="dark"] .tier.featured::before { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
[data-theme="dark"] .tier ul li::before { background: rgba(5, 150, 105, .2); color: #34d399; }

/* ── Dark: nav toggle icon ── */
[data-theme="dark"] .nav-toggle span { background: var(--text); }
[data-theme="dark"] .nav-toggle { border-color: var(--border); }
[data-theme="dark"] .nav-toggle:hover { border-color: var(--border-2); background: var(--bg-soft); }

/* ── Dark: purple-soft/purple legacy vars ── */
[data-theme="dark"] {
  --purple-soft: rgba(126, 34, 206, .18);
  --purple:      #c084fc;
}

/* ── Dark: admin panel ── */
[data-theme="dark"] .admin-shell { background: var(--bg); }
[data-theme="dark"] .admin-topbar { background: var(--bg-elev); border-bottom-color: var(--border); }
[data-theme="dark"] .panel { background: var(--bg-elev); border-color: var(--border); }

/* ── Dark: portal ── */
[data-theme="dark"] .portal-header { background: var(--bg-elev); border-bottom-color: var(--border); }

/* ── Dark: page hero ── */
[data-theme="dark"] .page-hero { background: var(--bg); }
[data-theme="dark"] .product-hero { background: var(--bg); border-bottom-color: var(--border); }

/* ── Dark: success card ── */
[data-theme="dark"] .success-card { background: var(--bg-elev); border-color: var(--border); }

/* ── Dark: about strip value list ── */
[data-theme="dark"] .about-strip .value-list li { border-bottom-color: var(--border); color: var(--text); }

/* ── Dark: newsletter input hover ── */
[data-theme="dark"] .newsletter-row input[type="email"]:hover {
  border-color: var(--border-2);
}

/* ── Dark: focus rings ── */
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] textarea:focus-visible,
[data-theme="dark"] select:focus-visible,
[data-theme="dark"] .filter-pill:focus-visible,
[data-theme="dark"] .tab-btn:focus-visible,
[data-theme="dark"] .accordion-btn:focus-visible,
[data-theme="dark"] .copy-btn:focus-visible,
[data-theme="dark"] .search-close:focus-visible,
[data-theme="dark"] .search-result-item:focus-visible,
[data-theme="dark"] .btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
}

/* Dark mode autofill — prevent Chrome white bg flash */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

/* ── Dark: contrast harmony fixes (navy-on-navy text) ── */
[data-theme="dark"] .eyebrow {
  color: var(--gold-light);
  background: rgba(201, 168, 76, .08);
  border-color: rgba(201, 168, 76, .22);
}
[data-theme="dark"] .nav-links a.active:not(.btn) {
  color: var(--gold-light);
  background: rgba(201, 168, 76, .09);
}
[data-theme="dark"] .type-badge.desktop {
  background: rgba(147, 180, 212, .12);
  color: #93b4d4;
  border-color: rgba(147, 180, 212, .22);
}
[data-theme="dark"] .case-badge {
  background: rgba(147, 180, 212, .12);
  color: #93b4d4;
  border-color: rgba(147, 180, 212, .22);
}
[data-theme="dark"] .accordion-btn[aria-expanded="true"],
[data-theme="dark"] .accordion-btn[aria-expanded="true"] .accordion-icon {
  color: var(--gold);
}
[data-theme="dark"] .btn-outline:hover { color: var(--text); }

/* ── Dark: gradient text — start from steel blue, not navy ── */
[data-theme="dark"] .hero h1 .grad,
[data-theme="dark"] .stat .num .grad {
  background: linear-gradient(135deg, #8fb8e8 0%, #b8cfe8 35%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Dark: hero glow + grid texture (light-theme tints vanish on navy) ── */
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(143, 184, 232, .10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(201, 168, 76, .12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(143, 184, 232, .06) 0%, transparent 55%);
}
[data-theme="dark"] .hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}
[data-theme="dark"] .hero-inner::before {
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(201, 168, 76, .13) 0%, transparent 70%),
    radial-gradient(ellipse 75% 70% at 50% 45%, rgba(143, 184, 232, .08) 0%, transparent 72%);
}
[data-theme="dark"] .page-hero::before,
[data-theme="dark"] .product-hero::before {
  background: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(143, 184, 232, .08), transparent 65%);
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-strip { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 16/9; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .admin-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 32px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 64px; }
  .page-hero { padding: 56px 0 40px; }
  .cta-band { padding: 40px 24px; margin: 64px 16px; }
  .form-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Mobile nav */
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 0;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 12px; border-radius: var(--radius-sm); }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: flex; flex-direction: column; }

  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-row input[type="email"] { width: 100%; }
  .newsletter-row { width: 100%; }
}

@media (max-width: 480px) {
  :root { --maxw: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat .num { font-size: 2rem; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wa-float { padding: 14px; border-radius: 50%; }
  .wa-label { display: none; }
  .wa-float { bottom: 90px; }
  .trust-grid { gap: 14px 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  /* Tier stack on tiny screens */
  .tiers { grid-template-columns: 1fr; }
  /* Blog grid single column */
  .blog-grid { grid-template-columns: 1fr; }
  /* CTA band padding */
  .cta-band { padding: 36px 20px; border-radius: var(--radius-xl); }
  /* Hero CTA full width */
  .hero-cta .btn { width: 100%; justify-content: center; }
}


/* =========================================
   LOADING / SKELETON STATES
   ========================================= */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.skeleton {
  background: var(--bg-soft);
  border-radius: var(--radius-xs);
  animation: skeleton-pulse 1.8s ease-in-out infinite;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton * { visibility: hidden; }
[data-theme="dark"] .skeleton { background: rgba(255,255,255,.06); }

/* Spinner utility (for short async ops) */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(30, 58, 95, .15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
[data-theme="dark"] .spinner { border-color: rgba(255,255,255,.12); border-top-color: var(--gold); }


/* =========================================
   EMPTY STATES
   ========================================= */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .4;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; margin-bottom: 24px; }


/* =========================================
   ICON VISIBILITY — SVG in both themes
   ========================================= */
/* Ensure SVG icons inherit color properly */
svg { fill: none; }
svg[fill="currentColor"] { fill: currentColor; }

/* Nav/button SVG icons */
.btn svg,
.nav-links svg,
.footer-col a svg,
.contact-method svg {
  flex-shrink: 0;
  transition: color .18s;
}

/* Theme toggle icons — explicit visibility */
.theme-toggle svg,
.search-btn svg {
  color: currentColor;
  display: block;
  flex-shrink: 0;
}


/* =========================================
   CARD CONSISTENCY GUARD
   ========================================= */
/* Ensure all card types share consistent radius + base shadow */
.product-card,
.service-card,
.blog-card,
.testimonial-card,
.case-card,
.tier,
.form-card,
.panel,
.success-card {
  border-radius: var(--radius-xl);
}
/* All hoverable cards get pointer cursor */
.product-card,
.service-card,
.blog-card,
.testimonial-card,
.case-card {
  cursor: default;
}
.blog-card h3 a,
.product-card a,
.case-card a {
  cursor: pointer;
}


/* =========================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ========================================= */

/* Shimmer sweep on hero brand CTA */
@keyframes btn-shimmer {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(240%)  skewX(-20deg); }
}
.hero-cta .btn-brand {
  overflow: hidden;
}
.hero-cta .btn-brand::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-100%) skewX(-20deg);
  pointer-events: none;
}
.hero-cta .btn-brand:hover::before {
  animation: btn-shimmer .55s ease forwards;
}
/* Gold under-glow on hero CTA lift */
.hero-cta .btn-brand:hover {
  box-shadow: 0 10px 28px rgba(22, 48, 78, .42), 0 4px 14px rgba(201, 168, 76, .20);
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-brand::before { display: none; }
}

/* Icon micro-bounce on card hover */
@keyframes icon-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.12) translateY(-2px); }
  100% { transform: scale(1); }
}
.service-card:hover .icon,
.contact-method:hover .icon {
  animation: icon-pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
.trust-badge:hover svg {
  animation: icon-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .service-card:hover .icon,
  .contact-method:hover .icon,
  .trust-badge:hover svg { animation: none; }
}

/* Slightly stronger gold-tinted borders on card lift */
.product-card:hover,
.case-card:hover,
.service-card:hover { border-color: rgba(201, 168, 76, .38); }

/* Animated underline on footer-col links */
.footer-col a {
  position: relative;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width .22s ease;
}
.footer-col a:hover::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .footer-col a::after { display: none; }
}

/* Animated underline on nav links (non-btn) */
.nav-links a:not(.btn) {
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 13px;
  bottom: 4px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  transition: width .2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after { width: calc(100% - 26px); }
@media (prefers-reduced-motion: reduce) {
  .nav-links a:not(.btn)::after { display: none; }
}


/* =========================================
   SYSTEM DARK MODE (no JS toggle)
   ========================================= */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg:          #0d1b2e;
    --bg-elev:     #112035;
    --bg-soft:     #0f2340;
    --text:        #f0f4f8;
    --muted:       #7e9ab5;
    --border:      #1e3254;
    --border-2:    #2a4266;
    --gold-dark:   var(--gold);
    --gold-soft:   rgba(201, 168, 76, .12);
    --link:        #8fb8e8;
    --link-hover:  #aecdf0;
    --shadow-sm:   0 2px 6px rgba(0,0,0,.35);
    --shadow-md:   0 6px 20px rgba(0,0,0,.45);
    --shadow-lg:   0 20px 48px rgba(0,0,0,.55);
    --shadow-xl:   0 32px 64px rgba(0,0,0,.65);
    --purple-soft: rgba(126, 34, 206, .18);
    --purple:      #c084fc;
    color-scheme: dark;
  }
}
