/* Elebyte /ba/ — design tokens + shared styles */

@font-face {
  font-family: 'Urbanist';
  src:
    url('../fonts/Urbanist-VariableFont_wght.woff2') format('woff2'),
    url('../fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src:
    url('../fonts/Urbanist-Italic-VariableFont_wght.woff2') format('woff2'),
    url('../fonts/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Urbanist', sans-serif;

  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #eef4ff;

  --accent-deep: #4f46e5;

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --ink: #17181c;
  --ink-soft: #52565f;
  --border: #e4e7ec;
  --shadow: 0 1px 2px rgba(20, 24, 34, 0.04), 0 8px 24px rgba(20, 24, 34, 0.06);
  --shadow-soft: 0 2px 8px rgba(23, 27, 38, 0.04), 0 14px 40px rgba(23, 27, 38, 0.09);
  --shadow-lift: 0 10px 24px rgba(23, 27, 38, 0.10), 0 24px 60px rgba(23, 27, 38, 0.14);
  --gradient-brand: linear-gradient(135deg, var(--accent), var(--accent-deep));
  --contact-launcher-background: var(--gradient-brand);
  --contact-launcher-hover-background: var(--gradient-brand);
  --contact-launcher-border: color-mix(in srgb,#fff 30%,transparent);
  --contact-launcher-shadow: 0 16px 38px color-mix(in srgb,var(--accent) 36%,transparent), 0 5px 12px rgba(8,14,28,.18);
  --contact-launcher-hover-shadow: 0 20px 46px color-mix(in srgb,var(--accent) 42%,transparent), 0 6px 14px rgba(8,14,28,.2);
  --contact-launcher-pulse: color-mix(in srgb,var(--accent) 55%,#fff);

  --page-hero-background:
    radial-gradient(circle at 12% 14%, rgba(147, 197, 253, .92), transparent 36%),
    radial-gradient(circle at 84% 12%, rgba(224, 231, 255, .96), transparent 40%),
    radial-gradient(circle at 52% 84%, rgba(191, 219, 254, .96), transparent 43%),
    linear-gradient(135deg, #eff6ff 0%, #eef2ff 52%, #dbeafe 100%);
  --page-hero-dots: radial-gradient(rgba(59, 130, 246, .15) .7px, transparent .7px);
  --page-hero-glow: radial-gradient(520px circle at var(--pointer-x,50%) var(--pointer-y,35%),rgba(255,255,255,.34),transparent 64%);
  --page-hero-radius: 32px;
  --page-hero-margin: 12px;

  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 10px;
  --radius-md: 26px;
  --radius-lg: 36px;
  --radius-pill: 999px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elevate: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 180ms;
  --dur-med: 300ms;
  --dur-elevate: 550ms;
}

:root[data-theme="dark"] {
  --accent: #60a5fa;
  --accent-ink: #0a0e17;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --accent-deep: #818cf8;

  --bg: #0a0b0e;
  --bg-alt: #101217;
  --surface: #14161c;
  --ink: #f3f4f6;
  --ink-soft: #9aa0ac;
  --border: #23262f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3), 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 10px 24px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
  --contact-launcher-background: linear-gradient(135deg,#2563eb,#4338ca);
  --contact-launcher-hover-background: linear-gradient(135deg,#1d4ed8,#3730a3);
  --contact-launcher-border: rgba(147,197,253,.24);
  --contact-launcher-shadow: 0 16px 38px rgba(37,99,235,.26), 0 5px 12px rgba(8,14,28,.24);
  --contact-launcher-hover-shadow: 0 20px 44px rgba(29,78,216,.32), 0 6px 14px rgba(8,14,28,.28);
  --contact-launcher-pulse: rgba(96,165,250,.36);
  --page-hero-background:
    radial-gradient(circle at 12% 14%, rgba(59,130,246,.34), transparent 37%),
    radial-gradient(circle at 84% 12%, rgba(99,102,241,.22), transparent 41%),
    radial-gradient(circle at 52% 84%, rgba(37,99,235,.25), transparent 44%),
    linear-gradient(135deg,#181b21 0%,#202532 52%,#171a20 100%);
  --page-hero-dots: radial-gradient(rgba(147,197,253,.13) .7px,transparent .7px);
  --page-hero-glow: radial-gradient(520px circle at var(--pointer-x,50%) var(--pointer-y,35%),rgba(96,165,250,.18),transparent 66%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #60a5fa;
    --accent-ink: #0a0e17;
    --accent-soft: rgba(96, 165, 250, 0.12);
    --accent-deep: #818cf8;

    --bg: #0a0b0e;
    --bg-alt: #101217;
    --surface: #14161c;
    --ink: #f3f4f6;
    --ink-soft: #9aa0ac;
    --border: #23262f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3), 0 14px 40px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 10px 24px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
    --contact-launcher-background: linear-gradient(135deg,#2563eb,#4338ca);
    --contact-launcher-hover-background: linear-gradient(135deg,#1d4ed8,#3730a3);
    --contact-launcher-border: rgba(147,197,253,.24);
    --contact-launcher-shadow: 0 16px 38px rgba(37,99,235,.26), 0 5px 12px rgba(8,14,28,.24);
    --contact-launcher-hover-shadow: 0 20px 44px rgba(29,78,216,.32), 0 6px 14px rgba(8,14,28,.28);
    --contact-launcher-pulse: rgba(96,165,250,.36);
    --page-hero-background:
      radial-gradient(circle at 12% 14%, rgba(59,130,246,.34), transparent 37%),
      radial-gradient(circle at 84% 12%, rgba(99,102,241,.22), transparent 41%),
      radial-gradient(circle at 52% 84%, rgba(37,99,235,.25), transparent 44%),
      linear-gradient(135deg,#181b21 0%,#202532 52%,#171a20 100%);
    --page-hero-dots: radial-gradient(rgba(147,197,253,.13) .7px,transparent .7px);
    --page-hero-glow: radial-gradient(520px circle at var(--pointer-x,50%) var(--pointer-y,35%),rgba(96,165,250,.18),transparent 66%);
  }
}

@media (max-width: 760px) {
  :root {
    --page-hero-radius: 0 0 24px 24px;
    --page-hero-margin: 0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100dvh; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 4.4vw + 1rem, 4.25rem); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem); }
p { margin: 0 0 var(--space-2); max-width: 68ch; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-4); } }

section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hero-header {
  position: relative;
  top: auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
.hero-header .nav-desktop a,
.hero-header .nav-dropdown summary,
.hero-header .theme-toggle,
.hero-header .nav-toggle {
  color: var(--ink);
  text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 55%, transparent);
}
.hero-header .theme-toggle,
.hero-header .nav-toggle {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
@media (min-width: 900px) {
  .site-header .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); }
  .nav-desktop { justify-content: center; }
  .nav-desktop ul { justify-content: center; }
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand img { height: 28px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}

.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--space-4); }
}
.nav-desktop ul { display: flex; gap: var(--space-3); }
.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
  padding: 0.5rem 0.1rem;
  position: relative;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--ink); }
.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover { color: var(--ink); }
.nav-dropdown summary .chev { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.nav-dropdown[open] summary .chev { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 50;
}
.nav-dropdown-panel a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-dropdown-panel a:hover { background: var(--bg-alt); color: var(--accent); }
.nav-dropdown-panel a span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.1rem;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn.header-cta { display: none; }
@media (min-width: 900px) { .btn.header-cta { display: inline-flex; } }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-mobile {
  position: fixed; inset: 76px 0 0 0;
  background: var(--bg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  z-index: 90;
  overflow-y: auto;
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile ul { padding: var(--space-3) var(--space-2); display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a {
  display: block;
  padding: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--bg-alt); }
@media (min-width: 900px) { .nav-mobile { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-elevate) var(--ease-elevate), box-shadow var(--dur-elevate) var(--ease-elevate), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-outline { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb,var(--accent) 12%,transparent); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0.85rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-gradient { background: var(--gradient-brand); color: #fff; }
@media (hover:hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px color-mix(in srgb,var(--accent) 24%,transparent);
  }
  .btn-primary:hover,
  .btn-dark:hover,
  .btn-gradient:hover {
    border-color: var(--accent-deep);
    background: var(--accent-deep);
    color: var(--accent-ink);
    box-shadow: 0 14px 30px color-mix(in srgb,var(--accent-deep) 30%,transparent);
  }
  .btn-outline:hover,
  .btn-ghost:hover,
  .btn-white:hover,
  .btn-light:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
  }
}
.btn:active { transform: scale(0.97); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-elevate) var(--ease-elevate), box-shadow var(--dur-elevate) var(--ease-elevate), border-color var(--dur-med) var(--ease-out);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.eyebrow-on-dark { color: #fff; background: rgba(255, 255, 255, 0.16); }
.eyebrow-solid { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-soft); }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Hero */
.hero { padding-block: var(--space-7) var(--space-6); position: relative; overflow: clip; }
.hero-grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 1.9rem; color: var(--ink); }
.hero-stat span { font-size: 0.85rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-blob {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 28% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
    radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--accent-deep) 55%, transparent), transparent 55%);
  filter: blur(40px);
  animation: blob-drift 16s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate(-3%, -2%) scale(1); }
  to { transform: translate(3%, 3%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .hero-blob { animation: none; } }
.hero-float-card {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-float-card strong { font-family: var(--font-heading); font-size: 1.4rem; display: block; color: var(--ink); }
.hero-float-card span { font-size: 0.8rem; color: var(--ink-soft); }

/* Hero card (ClickMind-style full-bleed rounded hero with mesh bg) */
.hero-card {
  position: relative;
  z-index: 100;
  isolation: isolate;
  margin: var(--page-hero-margin);
  border-radius: var(--page-hero-radius);
  overflow: clip;
  background: var(--page-hero-background);
  padding-block: var(--space-7) 0;
}
.hero-card:not(.article-featured-hero)::before,
.hero-card:not(.article-featured-hero)::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero-card:not(.article-featured-hero)::before {
  inset: -12%;
  background: var(--page-hero-glow);
}
.hero-card:not(.article-featured-hero)::after {
  inset: 0;
  background-image: var(--page-hero-dots);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hero-card > * { position: relative; z-index: 2; }
.hero-card-simple { padding-block: var(--space-7) var(--space-6); }
.hero-card-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.hero-card h1 { text-align: center; }
.hero-card .hero-actions { justify-content: center; }
.hero-card .grad-text, .grad-text-inline {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.btn-white { background: #fff; color: #111; }

#kontakt-forma { scroll-margin-top: 100px; }

.hero-mockup-wrap { position: relative; margin-top: var(--space-6); padding-inline: var(--space-3); }
.hero-mockup {
  width: min(900px, 100%);
  margin-inline: auto;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
}
.hero-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero-mockup-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero-mockup-chrome .addr { flex: 1; margin-left: 0.5rem; height: 22px; border-radius: 999px; background: var(--bg); font-size: 0.72rem; color: var(--ink-soft); display: flex; align-items: center; padding-inline: 0.75rem; }
.hero-mockup-stage { aspect-ratio: 16/9.2; position: relative; overflow: hidden; }
.hero-mockup-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade {
  height: 140px;
  margin-top: -1px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-badge {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: -44px auto 0;
  padding: 0.5rem 1.5rem 0.5rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  left: 50%;
  transform: translateX(-50%);
}
.hero-badge-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
}
.hero-badge-row { display: flex; justify-content: center; }

/* Logo marquee */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-5); width: max-content; animation: marquee 28s linear infinite; }
.marquee-item {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding-inline: 1.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background: var(--surface);
}
.client-logo-marquee .marquee-track { gap: 1rem; animation-duration: 42s; }
.client-logo-marquee .marquee-item { min-width: 220px; height: 104px; padding: 18px 24px; border-color: var(--border); background: #fff; box-shadow: 0 12px 35px rgba(43,67,108,.06); }
.client-logo-marquee .marquee-item img { display: block; width: 100%; max-width: 165px; height: 100%; max-height: 62px; object-fit: contain; filter: brightness(0) saturate(100%); opacity: .72; transition: filter .3s ease,opacity .3s ease,transform .3s ease; }
:root[data-theme="dark"] .client-logo-marquee .marquee-item { border-color: #343a45; background: #1c1f25; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
:root[data-theme="dark"] .client-logo-marquee .marquee-item img { filter: none; opacity: .9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .client-logo-marquee .marquee-item { border-color: #343a45; background: #1c1f25; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
  :root:not([data-theme="light"]) .client-logo-marquee .marquee-item img { filter: none; opacity: .9; }
}
@media (hover:hover) { .client-logo-marquee .marquee-item:hover img { opacity: 1; transform: scale(1.035); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; overflow-x: auto; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: var(--space-2); position: relative; }
.price-card.featured { border-color: transparent; box-shadow: var(--shadow-lift); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient-brand) border-box; border: 2px solid transparent; }
.pricing-page .price-card.featured {
  border-color: transparent;
  background: linear-gradient(160deg,#5b9cff,#3b82f6 55%,#245fc7);
  color: #fff;
  box-shadow: 0 25px 60px rgba(59,130,246,.25);
}
.pricing-page .price-card.featured :is(h3,p,li,.price-amount,.price-amount span) { color: #fff; }
.pricing-page .price-card.featured .price-maint { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.9); }
.pricing-page .price-card.featured .package-features li::before { color: #fff; }
.pricing-page .price-card.featured .badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.price-card .badge {
  position: absolute; top: -12px; left: var(--space-3);
  background: var(--gradient-brand); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
}
.price-amount { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--ink); }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-features { display: flex; flex-direction: column; gap: 0.6rem; margin: var(--space-2) 0; }
.price-features li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.price-features svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--success); margin-top: 2px; }
.package-features li { position: relative; display: block; padding-left: 1.55rem; }
.package-features li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--success); font-weight: 800; }
.price-maint { font-size: 0.85rem; color: var(--ink-soft); border-top: 1px dashed var(--border); padding-top: 0.75rem; margin-top: 0.25rem; }
.ecommerce-price-grid { max-width: 1080px; margin-inline: auto; }
.ecommerce-price-card { padding: clamp(1.5rem,3vw,2.25rem); }
.shop-payment-note { margin-top: auto; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; }
.required-maint { color: var(--ink); }
.additional-services-note { max-width: 900px; margin: var(--space-4) auto 0; font-size: 0.9rem; text-align: center; }
.additional-services-note a { color: var(--accent); font-weight: 600; }

/* Services grid */
.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: var(--space-2);
}
.service-card .icon-wrap svg { width: 24px; height: 24px; }
.benefit-card { min-height: 260px; }
.benefit-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: var(--space-2); border: 1px solid color-mix(in srgb,var(--accent) 22%,var(--border)); border-radius: 15px; background: var(--accent-soft); color: var(--accent); box-shadow: 0 10px 28px rgba(59,130,246,.08); }
.benefit-icon svg { display: block; width: 26px; height: 26px; }

/* Bento services layout */
.bento-feature {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  margin-bottom: var(--space-3);
}
@media (min-width: 900px) { .bento-feature { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-5); } }
.bento-feature h3, .bento-feature p { color: #fff; }
.bento-feature p { opacity: 0.9; }
.bento-feature .icon-wrap { background: rgba(255,255,255,0.18); color: #fff; }
.bento-feature-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.bento-feature-visual svg { width: 40%; height: 40%; color: #fff; }

/* FAQ accordion */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: none; border: none; text-align: left;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.03rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .chev { flex-shrink: 0; width: 20px; height: 20px; transition: transform var(--dur-med) var(--ease-out); color: var(--ink-soft); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
.faq-a p { padding: 0 1.35rem 1.25rem; margin: 0; }

/* Vivid gradient contrast section */
.section-vivid {
  background: var(--gradient-brand);
  color: #fff;
  position: relative;
  overflow: clip;
}
.section-vivid h2, .section-vivid h3, .section-vivid p { color: #fff; }
.section-vivid p { opacity: 0.92; }
.section-vivid .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.section-vivid .card h3, .section-vivid .card p { color: #fff; }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.step { position: relative; padding-top: var(--space-3); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.75rem;
  color: var(--accent);
  display: block; margin-bottom: 0.5rem;
}

/* Forms */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-2); }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.form-field .hint { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-row { display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-required { color: var(--danger); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); margin: 0 0 var(--space-3); }
legend { padding: 0 0.5rem; font-family: var(--font-heading); font-weight: 600; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill label {
  display: block; padding: 0.65rem 1.1rem; border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all var(--dur-fast) var(--ease-out);
}
.radio-pill input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.radio-pill input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.conditional-block { display: none; }
.conditional-block.is-visible { display: block; }
.form-status { padding: var(--space-2); border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: var(--space-2); display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.form-status.error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.form-status.loading { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink-soft); }
.form-status:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.contact-inquiry-form {
  container: contact-form / inline-size;
}
.contact-hero-inner { max-width: var(--container); }
.contact-hero-inner [data-contact-intro] {
  width: 100%;
  max-width: none;
}
.contact-form-section {
  min-inline-size: 0;
  margin: 0 0 var(--space-3);
  padding: 0;
  border: 0;
  border-radius: 0;
}
.contact-service-section legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-size: 1rem;
}
.contact-service-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .65rem;
}
.contact-service-grid .radio-pill,
.contact-service-grid .radio-pill label { width: 100%; }
.contact-service-grid .radio-pill label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .65rem .75rem;
  text-align: center;
}
.contact-project-field { margin-bottom: var(--space-3); }
.contact-project-field textarea { min-height: 150px; }
.contact-site-field { margin-bottom: var(--space-3); }
.contact-site-field[hidden] { display: none !important; }
.contact-details-row { display: grid; gap: var(--space-2); }
.contact-details > .form-field:last-child { margin-bottom: 0; }
.contact-privacy-notice {
  width: 100%;
  max-width: none;
  margin-top: .75rem;
  margin-bottom: 0;
  font-size: .8rem;
}
.form-field-error {
  min-height: 0;
  color: var(--danger);
  font-size: .82rem;
}
.form-field-error:empty { display: none; }
@container contact-form (max-width: 320px) {
  .contact-service-grid { grid-template-columns: 1fr; }
}
@container contact-form (min-width: 560px) {
  .contact-details-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container contact-form (min-width: 600px) {
  .contact-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
[data-contact-form][aria-busy="true"] button[type="submit"] { cursor: wait; opacity: 0.75; }

/* Direct contact */
.direct-contact-card { padding: var(--space-3); }
.direct-contact-title { margin-top: 0; }
.direct-contact-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.direct-contact-email { color: var(--accent); font-weight: 600; }
.direct-contact-phone { font-weight: 600; }
.direct-contact-note { font-size: .85rem; }
.direct-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.direct-contact-action {
  min-height: 40px;
  padding: .5rem 1rem;
  font-size: .85rem;
}

/* Contact form modal */
body.contact-modal-open { overflow: hidden; }
.contact-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  flex-direction: column;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.contact-modal[open] { display: flex; }
.contact-modal[open]::before,
.contact-modal[open]::after {
  content: "";
  flex: 1 0 1rem;
  width: 100%;
  pointer-events: none;
}
.contact-modal::backdrop {
  background: rgba(7,17,31,.68);
  backdrop-filter: blur(6px);
  animation: contact-modal-backdrop-in var(--dur-med) ease-out both;
}
.contact-modal-shell {
  display: grid;
  flex: 0 0 auto;
  grid-template-rows: auto auto;
  width: min(920px,100%);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(9,20,38,.32);
  animation: contact-modal-in var(--dur-med) var(--ease-out) both;
}
.contact-modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: color-mix(in srgb,var(--surface) 94%,transparent);
  backdrop-filter: blur(14px);
}
.contact-modal-header-copy { flex: 1; min-width: 0; }
.contact-modal-header .eyebrow { margin-bottom: .4rem; }
.contact-modal-header h2 { margin: 0; font-size: clamp(1.35rem,3vw,1.8rem); }
.contact-modal-description {
  width: 100%;
  max-width: none;
  margin: .65rem 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.5;
}
.contact-modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-modal-close svg { width: 21px; height: 21px; }
.contact-modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(4deg); }
.contact-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-modal-body {
  padding: var(--space-4);
  overflow: visible;
}
.contact-modal-body [data-contact-form],
.contact-modal-body [data-direct-contact] { width: 100%; max-width: 820px; margin-inline: auto; }
.contact-modal-body [data-direct-contact] { margin-top: var(--space-3); }
.contact-modal-loading {
  display: grid;
  min-height: min(460px,60vh);
  place-items: center;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}
@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes contact-modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes contact-modal-desktop-in {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}
@media (min-width: 641px) {
  .contact-modal::backdrop {
    background: rgba(7,17,31,.78);
    backdrop-filter: none;
  }
  .contact-modal-shell {
    will-change: transform;
    animation: contact-modal-desktop-in var(--dur-fast) var(--ease-out) both;
  }
  .contact-modal-header {
    background: var(--surface);
    backdrop-filter: none;
  }
}
@media (max-width: 640px) {
  .contact-modal {
    padding: 0;
  }
  .contact-modal[open]::before,
  .contact-modal[open]::after { display: none; }
  .contact-modal-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .contact-modal-header { padding: 1rem; border-radius: 0; }
  .contact-modal-header h2 { font-size: 1.3rem; }
  .contact-modal-body { padding: 1rem; }
  .contact-modal-body .contact-form-section { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-modal-shell, .contact-modal::backdrop { animation: none; }
}

#contact-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { #contact-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-5); background: var(--bg-alt); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: var(--space-2); }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-w-prose { max-width: 62ch; }
.max-w-720 { max-width: 720px; }
.max-w-900 { max-width: 900px; }
.text-muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-0 { margin-bottom: 0; }
.section-alt { background: var(--bg-alt); }
.badge-outline {
  display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.7rem;
  border: 1px solid var(--border); border-radius: 999px; color: var(--ink-soft);
}
.divider { height: 1px; background: var(--border); border: none; margin: var(--space-4) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.stagger-down { transform: translateY(var(--space-4)); }
@media (max-width: 767px) { .stagger-down { transform: none; } }

/* Phone mockups */
.phone-stage { position: relative; max-width: 420px; margin-inline: auto; padding-block: var(--space-4); }
.phone-frame {
  position: relative;
  width: 230px;
  aspect-ratio: 9/19;
  margin-inline: auto;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-lift);
}
.phone-frame .screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--gradient-brand);
  position: relative;
  display: grid;
  place-items: center;
}
.phone-frame .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame-back {
  position: absolute;
  top: 8%;
  left: -18%;
  width: 200px;
  transform: rotate(-9deg);
  opacity: 0.9;
  z-index: 1;
}
.phone-frame-front { position: relative; z-index: 2; }
@media (max-width: 480px) { .phone-frame-back { display: none; } }

/* Customer journey */
.journey { display: grid; gap: var(--space-3); grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(3, 1fr); } }
.journey-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  text-align: center;
  position: relative;
}
.journey-step .icon-wrap { margin-inline: auto; }
.journey-arrow { display: none; }
@media (min-width: 900px) {
  .journey-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; width: calc(100% / 3 - 2rem);
  }
}
.journey-arrow svg { color: var(--border); width: 32px; }

/* Industries */
.industry-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.industry-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.industry-pill svg { width: 18px; height: 18px; color: var(--accent); }

.laptop-mock {
  max-width: 760px;
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  background: var(--surface);
}
.laptop-mock .hero-mockup-chrome { border-radius: 0; }

/* Showcase (logo list + swap preview) */
.showcase { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .showcase { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; } }
.showcase-list { display: flex; flex-direction: column; gap: 0.6rem; }
.showcase-item {
  display: flex; align-items: center; gap: 1rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-elevate) var(--ease-elevate);
}
.showcase-item:hover, .showcase-item.is-active { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.showcase-item.is-active { background: var(--accent-soft); }
.showcase-logo {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
}
.showcase-item h3 { font-size: 1rem; margin: 0; }
.showcase-item p { font-size: 0.85rem; margin: 0.15rem 0 0; }
.showcase-preview {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.showcase-preview-stage {
  flex: 1;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  transition: opacity var(--dur-med) var(--ease-out);
}

/* AI chat mock */
.chat-mock { max-width: 420px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-bubble {
  padding: 0.75rem 1.1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  max-width: 80%;
  box-shadow: var(--shadow-soft);
}
.chat-bubble.from-client { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.from-agency { align-self: flex-end; background: var(--gradient-brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing { align-self: flex-end; display: flex; gap: 4px; padding: 0.75rem 1rem; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: typing-bounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Blog teaser */
.blog-card { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-soft); }
.blog-card-media { aspect-ratio: 16/10; background: var(--gradient-brand); }
.blog-card-body { padding: var(--space-3); }
.blog-card time { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.blog-card p { font-size: 0.88rem; margin: 0; }

/* Dark footer (fixed dark regardless of theme) */
.site-footer-dark {
  background: linear-gradient(155deg, #111317 0%, #1b1e24 58%, #2b2b2b 100%);
  color: #cbd2e0;
  border-radius: 32px 32px 0 0;
  margin-top: var(--space-4);
  padding: var(--space-5) 0 var(--space-3);
}
.site-footer-dark .brand img { display: none; }
.site-footer-dark .brand .logo-dark { display: block; }
.site-footer-dark h4 { color: #fff; }
.site-footer-dark p { color: #8b93a7; }
.site-footer-dark a { color: #b7bed1; }
.site-footer-dark a:hover { color: #fff; }
.site-footer-dark .footer-bottom { border-top-color: #1c2333; color: #6f7890; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-2); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #232b3d;
  display: grid; place-items: center;
}
.footer-social a:hover { border-color: var(--accent); }

/* Note banner (for TBD legal/financial items) */
.note {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
}

/* One shared header across every page */
.global-header { position: relative; z-index: 30; width: 100%; border: 0; background: transparent; backdrop-filter: none; }
.global-header .container { min-height: 84px; }
.global-header .brand img { width: 132px; height: auto; }
.global-header .nav-desktop ul { gap: clamp(1rem, 2.2vw, 2rem); }
.global-header .nav-desktop a { color: var(--ink); font-size: .9rem; }
.global-header .nav-desktop a[aria-current="page"] { color: var(--accent); }
.global-header .header-cta { background: #2b2b2b; color: #fff; }
@media (hover:hover) {
  .global-header .header-cta:hover { border-color: var(--accent-deep); background: var(--accent-deep); color: var(--accent-ink); }
}
.global-header .theme-toggle,
.global-header .nav-toggle { background: rgba(255,255,255,.58); border-color: rgba(43,43,43,.1); backdrop-filter: blur(10px); }
:root[data-theme="dark"] .global-header .nav-desktop a { color: #eef1f6; }
:root[data-theme="dark"] .global-header .nav-desktop a[aria-current="page"] { color: #8fbcff; }

/* Homepage header is the shared header on every route */
.home-header {
  position: relative;
  z-index: 30;
  width: 100%;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.home-header .container { min-height: 84px; }
.home-header .brand img { width: 132px; height: auto; }
.home-header .nav-desktop a { color: #344054; font-size: .88rem; }
.home-header .nav-desktop a:hover,
.home-header .nav-desktop a[aria-current="page"] { color: #2b2b2b; }
.home-header .nav-desktop a[aria-current="page"]::after { background: #2b2b2b; }
.home-header .header-actions { gap: .5rem; }
.home-header .header-cta { min-height: 42px; padding: .7rem 1.25rem; border-color: #2b2b2b; background: #2b2b2b; color: #fff; box-shadow: none; }
.home-header .theme-toggle,
.home-header .nav-toggle { border-color: rgba(6,17,31,.14); background: rgba(255,255,255,.56); color: #2b2b2b; }
:root[data-theme="dark"] .home-header .nav-desktop a { color: #d7dce5; }
:root[data-theme="dark"] .home-header .nav-desktop a:hover,
:root[data-theme="dark"] .home-header .nav-desktop a[aria-current="page"] { color: #fff; }
:root[data-theme="dark"] .home-header .nav-desktop a[aria-current="page"]::after { background: #3b82f6; }
:root[data-theme="dark"] .home-header .theme-toggle,
:root[data-theme="dark"] .home-header .nav-toggle { border-color: #4a5260; background: rgba(43,43,43,.76); color: #fff; }
:root[data-theme="dark"] .home-header .header-cta { border-color: #3b82f6; background: #3b82f6; }

/* One shared large footer across every page */
.global-footer {
  position: relative;
  width: min(calc(100% - 2rem), var(--container));
  min-height: max(610px, 27.5vw);
  margin: 18px auto;
  padding: 5rem 0 2rem;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(155deg,#111722 0%,#14283a 58%,#173746 100%);
}
.global-footer > .container { position: relative; z-index: 2; }
.global-footer-top { display: grid; grid-template-columns: 1.55fr repeat(3,1fr); gap: clamp(2rem,4vw,4.5rem); }
.global-footer-brand { min-width: 230px; }
.global-footer-logo { width: min(245px,100%); height: auto; }
.site-footer-dark .brand .global-footer-logo { display: block !important; }
.global-footer-contact { display: grid; gap: .35rem; margin-top: 2rem; }
.global-footer-contact a { color: #fff !important; font-size: 1.05rem !important; }
.global-footer-contact span { color: #79899b; font-size: .78rem; }
.global-footer h4 { margin-bottom: 1.4rem; color: #fff; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.global-footer ul { display: grid; gap: .8rem; }
.global-footer a { color: #aeb9c7; font-size: .9rem; }
.global-footer a:hover { color: #fff; }
.global-footer-watermark {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  opacity: .035;
  pointer-events: none;
}
.global-footer-bottom { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2rem; margin-top: 7rem; padding: 1.8rem 4rem 0; border-top: 1px solid rgba(255,255,255,.18); text-align: center; }
.global-footer-bottom p { max-width: 780px; margin: 0; color: #aeb9c7; font-size: .82rem; }
.global-footer-bottom strong { color: #fff; }
.global-footer-description { display: block; margin-top: .25rem; }
.global-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.15rem; margin-top: .65rem; }
.global-footer-legal a,
.global-footer-legal button { padding: 0; border: 0; background: transparent; color: #d7dee8; font: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.32); text-underline-offset: .22em; cursor: pointer; }
.global-footer-legal a:hover,
.global-footer-legal button:hover { color: #fff; text-decoration-color: #fff; }

/* Pricing cards use the same visual system as the homepage */
.pricing-page .price-card { min-height: 100%; padding: 1.6rem; border: 1px solid #e5eaf2; border-radius: 18px; background: var(--surface); box-shadow: 0 15px 45px rgba(43,67,108,.05); }
.pricing-page .price-card.featured { position: relative; top: -12px; transform: none; }
.pricing-page .price-card > .badge { position: static; order: -3; align-self: flex-start; margin: 0 0 .15rem; padding: 0; border: 0; border-radius: 0; background: transparent; color: #8a9693; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pricing-page .price-card.featured > .badge { border: 0; background: transparent; color: rgba(255,255,255,.82); }
.pricing-page .price-card > .price-amount { order: -2; }
.pricing-page .price-card > h3 { order: -1; }
.pricing-page .price-card .price-amount { margin: .35rem 0 .2rem; font-size: 2.4rem; line-height: 1; }
.pricing-page .price-card .price-features { margin: 1.15rem 0 1.5rem; gap: .8rem; }
.pricing-page .price-card .price-features li { font-size: .88rem; line-height: 1.55; }
.pricing-page .price-card .price-maint { margin-top: auto; }
.pricing-page .price-saving { display: grid; gap: .55rem; padding-top: 1rem; }
.pricing-page .price-saving-title { display: block; margin-bottom: .1rem; color: var(--ink); font-size: .82rem; line-height: 1.35; }
.pricing-page .price-saving-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .15rem .75rem; align-items: center; padding: .7rem .75rem; border: 1px solid color-mix(in srgb,var(--accent) 18%,var(--border)); border-radius: 12px; background: color-mix(in srgb,var(--accent-soft) 72%,var(--surface)); }
.pricing-page .price-saving-row > span { color: var(--ink-soft); font-size: .78rem; }
.pricing-page .price-saving-row > strong { color: var(--ink); font-size: .9rem; white-space: nowrap; }
.pricing-page .price-saving-row > em { grid-column: 1 / -1; color: var(--accent); font-size: .72rem; font-style: normal; font-weight: 700; }
.pricing-page .price-saving-row.best { border-color: color-mix(in srgb,var(--accent) 38%,var(--border)); background: var(--accent-soft); }
.pricing-page .price-card.featured .price-saving-title,
.pricing-page .price-card.featured .price-saving-row > span,
.pricing-page .price-card.featured .price-saving-row > strong { color: #fff; }
.pricing-page .price-card.featured .price-saving-row { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
.pricing-page .price-card.featured .price-saving-row.best { background: rgba(255,255,255,.18); }
.pricing-page .price-card.featured .price-saving-row > em { color: #fff; }
.pricing-page section:nth-of-type(even) { background: #fbfcff; }
:root[data-theme="dark"] .pricing-page section:nth-of-type(even) { background: #15181d; }
@media (max-width: 760px) {
  .pricing-page .price-card.featured { top: 0; transform: none; }
}
/* Article title area becomes the future featured image */
.article-featured-hero {
  --featured-image: linear-gradient(145deg,#2b2b2b 0%,#245fc7 52%,#5b9cff 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(620px,82vh,820px);
  padding: 0 0 clamp(4rem,8vw,7rem);
  background-image: linear-gradient(180deg,rgba(8,14,24,.2),rgba(8,14,24,.78)),var(--featured-image);
  background-position: center;
  background-size: cover;
}
.article-featured-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 35%,rgba(96,165,250,.22),transparent 42%); }
.article-featured-hero > * { position: relative; z-index: 2; }
.article-featured-hero .hero-card-inner { margin-top: auto; padding-top: clamp(5rem,10vw,9rem); }
.article-featured-hero h1,
.article-featured-hero p { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.24); }
.article-featured-hero .article-meta { color: rgba(255,255,255,.78); }
.article-featured-hero .article-category { color: #bfdbfe; }
.article-featured-hero .global-header .brand .logo-light { display: none; }
.article-featured-hero .global-header .brand .logo-dark { display: block; }
.article-featured-hero .global-header .nav-desktop a { color: rgba(255,255,255,.86); text-shadow: 0 1px 14px rgba(0,0,0,.22); }
.article-featured-hero .global-header .nav-desktop a[aria-current="page"] { color: #fff; }
.article-featured-hero .global-header .theme-toggle,
.article-featured-hero .global-header .nav-toggle { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(11,18,29,.28); }
.article-featured-hero .global-header .header-cta { background: #fff; color: #2b2b2b; }
@media (hover:hover) {
  .article-featured-hero .global-header .header-cta:hover { border-color: var(--accent-deep); background: var(--accent-deep); color: var(--accent-ink); }
}

/* Subpage polish aligned with the homepage */
body:not(.home-page) .hero-card { padding-top: 0; }
body:not(.home-page) .hero-card-simple { min-height: 500px; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0; }
body:not(.home-page) .hero-card .global-header .container { min-height: 84px; }
body:not(.home-page) .hero-card-inner { padding-top: clamp(2.75rem, 7vw, 6rem); }
body:not(.home-page) .hero-card h1 { font-size: clamp(2.8rem, 5.7vw, 5.4rem); letter-spacing: -.045em; }
body:not(.home-page) .hero-card p { font-size: clamp(1rem, 1.45vw, 1.18rem); }
body:not(.home-page) .card { border-radius: 20px; box-shadow: 0 16px 48px rgba(43, 67, 108, .07); }
body:not(.home-page) .section-vivid { background: linear-gradient(145deg, #245fc7, #3b82f6 56%, #6ba5ff); }

/* Service hub and reference pages */
.service-hub-grid { align-items: stretch; }
.service-hub-card { position: relative; display: flex; min-height: 290px; flex-direction: column; }
.service-hub-card h3 { max-width: 17ch; margin-top: 2.2rem; }
.service-hub-card p { flex: 1; }
.service-hub-card .blog-read-link { margin-top: 1rem; }
.service-hub-number {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  color: color-mix(in srgb,var(--accent) 55%,var(--ink-soft));
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
}
.page-cta { padding: clamp(2.5rem,6vw,5rem); background: linear-gradient(155deg,var(--accent-soft),var(--surface)); }
.page-cta p { max-width: 650px; }
.reference-case-grid { display: grid; gap: 1.5rem; }
.reference-case-card { display: grid; gap: 0; overflow: hidden; padding: 0; }
@media (min-width: 860px) {
  .reference-case-card { grid-template-columns: minmax(280px,.72fr) 1.28fr; min-height: 420px; }
  .reference-case-card:nth-child(even) { grid-template-columns: 1.28fr minmax(280px,.72fr); }
  .reference-case-card:nth-child(even) .reference-case-visual { order: 2; }
}
.reference-case-visual { position: relative; display: grid; min-height: 280px; place-items: end start; overflow: hidden; padding: 1.5rem; background: linear-gradient(145deg,#202124,#3b82f6); }
.reference-case-visual::before { content: ""; position: absolute; inset: 14% 12%; border: 1px solid rgba(255,255,255,.28); border-radius: 22px; background: linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.04)); box-shadow: 0 30px 60px rgba(9,22,45,.28); transform: rotate(-4deg); }
.reference-case-visual::after { content: ""; position: absolute; width: 180px; height: 180px; top: 8%; right: -9%; border-radius: 50%; background: rgba(147,197,253,.4); filter: blur(2px); }
.reference-case-shop { background: radial-gradient(circle at 15% 15%,#93c5fd,transparent 30%),linear-gradient(145deg,#202124,#245fc7); }
.reference-case-service { background: radial-gradient(circle at 85% 18%,#a5b4fc,transparent 30%),linear-gradient(145deg,#2b2b2b,#4f46e5); }
.reference-case-corporate { background: radial-gradient(circle at 24% 16%,#bfdbfe,transparent 28%),linear-gradient(145deg,#111827,#3b82f6); }
.reference-case-visual span { position: relative; z-index: 2; color: #fff; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.reference-case-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem,4vw,4rem); }
.reference-case-body h3 { font-size: clamp(1.7rem,3vw,2.7rem); }
.reference-status { display: inline-flex; align-self: flex-start; margin-top: 1rem; padding: .5rem .75rem; border: 1px dashed var(--border); border-radius: 999px; color: var(--ink-soft); font-size: .76rem; }

/* Expanded reference projects with animated full-page previews */
.reference-project-card { display: grid; align-items: stretch; gap: 0; overflow: hidden; padding: 0; }
.reference-project-browser { display: grid; grid-template-rows: 48px minmax(0,1fr); align-self: stretch; min-width: 0; height: auto; min-height: 590px; background: #edf3fb; }
.reference-project-bar { position: relative; z-index: 2; display: grid; grid-template-columns: 58px minmax(0,1fr) 58px; align-items: center; padding: 0 12px; border-bottom: 1px solid #dfe6f0; background: rgba(255,255,255,.96); }
.reference-project-dots { display: flex; gap: 5px; }
.reference-project-dots i { width: 8px; height: 8px; border-radius: 50%; background: #77cda2; }
.reference-project-dots i:first-child { background: #fc8794; }
.reference-project-dots i:nth-child(2) { background: #f7c96c; }
.reference-project-address { overflow: hidden; padding: 5px 12px; border: 1px solid #e4e9f1; border-radius: 999px; background: #f7f9fc; color: #788498; font-size: .68rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.reference-project-window { position: relative; min-height: 0; overflow: hidden; background: #fff; }
.reference-project-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(20,35,58,.04); }
.reference-project-scroll-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; will-change: object-position; animation: reference-project-scroll 28s ease-in-out 1s infinite alternate; }
.reference-project-card:nth-child(2) .reference-project-scroll-image { animation-duration: 24s; }
.reference-project-card:nth-child(3) .reference-project-scroll-image { animation-duration: 18s; }
.reference-project-browser:hover .reference-project-scroll-image { animation-play-state: paused; }
.reference-project-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(2rem,4.5vw,4.5rem); }
.reference-project-copy h3 { max-width: 17ch; font-size: clamp(1.8rem,3.1vw,3rem); }
.reference-project-copy p { font-size: .96rem; }
.reference-project-results { display: grid; gap: .7rem; margin: 1rem 0 1.6rem; }
.reference-project-results li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.reference-project-results li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.reference-project-copy .btn { align-self: flex-start; margin-top: .2rem; }
@media (min-width: 940px) {
  .reference-project-card { grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); }
  .reference-project-card:nth-child(even) { grid-template-columns: minmax(360px,.92fr) minmax(0,1.08fr); }
  .reference-project-card:nth-child(even) .reference-project-browser { order: 2; }
}
@media (max-width: 939px) { .reference-project-browser { height: 520px; min-height: 0; } }
@media (max-width: 560px) {
  .reference-project-browser { height: 420px; }
  .reference-project-bar { grid-template-columns: 44px minmax(0,1fr) 44px; padding-inline: 8px; }
  .reference-project-address { padding-inline: 7px; font-size: .58rem; }
  .reference-project-copy { padding: 1.6rem; }
}
:root[data-theme="dark"] .reference-project-browser { background: #1b2432; }
:root[data-theme="dark"] .reference-project-bar { border-color: #343a45; background: rgba(28,31,37,.96); }
:root[data-theme="dark"] .reference-project-address { border-color: #3d4552; background: #262b33; color: #aeb6c5; }
@keyframes reference-project-scroll {
  0%, 8% { object-position: center top; }
  92%, 100% { object-position: center bottom; }
}
@media (prefers-reduced-motion: reduce) { .reference-project-scroll-image { animation: none; object-position: center top; } }

/* Blog index and article system */
.blog-hero { min-height: 610px !important; }
.blog-hero .hero-card-inner { max-width: 860px; }
.blog-featured-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .blog-featured-grid { grid-template-columns: 1.35fr .65fr; } }
.blog-feature-card,
.blog-card { overflow: hidden; padding: 0; }
.blog-feature-art,
.blog-card-art,
.article-cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 24%, rgba(147,197,253,.92), transparent 30%),
    radial-gradient(circle at 76% 70%, rgba(99,102,241,.62), transparent 34%),
    linear-gradient(145deg, #2b2b2b, #245fc7);
}
.blog-feature-art { min-height: 330px; }
.blog-card-art { min-height: 200px; }
.blog-feature-art.has-cover,
.blog-card-art.has-cover { aspect-ratio: 3 / 2; min-height: 0; background: #101827; }
.blog-feature-art.has-cover::before,
.blog-card-art.has-cover::before { display: none; }
.blog-cover-image { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .75s var(--ease-out), filter .35s var(--ease-out); }
.blog-card:hover .blog-cover-image { transform: scale(1.035); filter: saturate(1.05); }
.article-cover { min-height: clamp(300px, 48vw, 560px); border-radius: 28px; box-shadow: var(--shadow-lift); }
.blog-feature-art::before,
.blog-card-art::before,
.article-cover::before {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  left: 27%;
  top: 21%;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 28%;
  transform: rotate(18deg);
  box-shadow: 0 0 0 32px rgba(255,255,255,.055), 0 0 0 64px rgba(255,255,255,.035);
}
.blog-art-shop { background: radial-gradient(circle at 22% 28%,#dbeafe,transparent 28%),linear-gradient(145deg,#3b82f6,#2b2b2b); }
.blog-art-ads { background: radial-gradient(circle at 72% 24%,#93c5fd,transparent 26%),linear-gradient(145deg,#202124,#315b9b); }
.blog-art-web { background: radial-gradient(circle at 22% 22%,#60a5fa,transparent 25%),linear-gradient(145deg,#2b2b2b,#4f46e5); }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta,
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: var(--ink-soft); font-size: .82rem; }
.blog-card-meta span:first-child,
.article-category { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.blog-card h2,
.blog-card h3 { margin-top: .75rem; }
.blog-card p { font-size: .94rem; }
.blog-read-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent); font-weight: 650; }
.blog-read-link::after { content: "→"; transition: transform var(--dur-fast) var(--ease-out); }
.blog-card:hover .blog-read-link::after { transform: translateX(4px); }
.blog-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }

.article-page .hero-card-simple { min-height: 560px; }
.article-page .hero-card-inner { max-width: 950px; }
.article-page .hero-card h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.article-shell { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 980px) { .article-shell { grid-template-columns: minmax(0,760px) 260px; justify-content: center; } }
.article-content { font-size: 1.06rem; }
.article-content h2 { margin-top: 3.25rem; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.article-content h3 { margin-top: 2.2rem; }
.article-content p { max-width: 72ch; }
.article-content ul,
.article-content ol { display: grid; gap: .75rem; margin: 1.2rem 0 1.8rem; padding-left: 1.3rem; color: var(--ink-soft); }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { padding-left: .3rem; }
.article-lead { font-size: 1.22rem; color: var(--ink); }
.article-callout { margin: 2rem 0; padding: 1.4rem 1.5rem; border: 1px solid color-mix(in srgb,var(--accent) 30%,var(--border)); border-radius: 18px; background: var(--accent-soft); }
.article-callout p { margin: 0; color: var(--ink); }
.article-sidebar { position: sticky; top: 100px; display: grid; gap: 1rem; }
.article-toc { padding: 1.3rem; }
.article-toc h3 { font-size: 1rem; }
.article-toc ol { display: grid; gap: .65rem; counter-reset: toc; }
.article-toc a { color: var(--ink-soft); font-size: .9rem; }
.article-toc a:hover { color: var(--accent); }
.article-author { display: flex; gap: .9rem; align-items: center; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-author-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--gradient-brand); color: #fff; font-weight: 750; }
.article-related { background: var(--bg-alt); }
.legal-page .hero-card-simple { min-height: 500px; }
.legal-page .article-content > :first-child { margin-top: 0; }
.legal-page .article-content h2 { scroll-margin-top: 120px; }
.legal-page .article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.legal-page .article-content strong { color: var(--ink); }
.legal-inline-button { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin: 0 0 2rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); color: var(--ink-soft); font-size: .88rem; }
.legal-contact-card { display: grid; gap: .35rem; margin: 2rem 0; padding: 1.4rem 1.5rem; border: 1px solid color-mix(in srgb,var(--accent) 28%,var(--border)); border-radius: 18px; background: var(--accent-soft); }
.legal-contact-card p { margin: 0; }
@media (max-width: 979px) { .article-sidebar { position: static; order: -1; } }
@media (max-width: 760px) {
  body:not(.home-page) .hero-card-simple { min-height: auto; }
  .blog-hero { min-height: auto !important; }
}
@media (max-width: 600px) { .blog-feature-art { min-height: 240px; } }

/* Consent notice: optional analytics, marketing and chat remain off until chosen. */
.cookie-banner[hidden],
.cookie-settings[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  z-index: 2000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin: auto;
  padding: 1.15rem 1.25rem;
  border: 1px solid color-mix(in srgb,var(--accent) 26%,var(--border));
  border-radius: 20px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--surface) 98%,var(--accent-soft)),color-mix(in srgb,var(--surface) 92%,transparent));
  box-shadow: 0 22px 70px rgba(10,18,32,.24), 0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent);
  backdrop-filter: blur(18px);
}
.cookie-banner::before { content: ""; position: absolute; top: 0; right: 20px; left: 20px; height: 3px; border-radius: 0 0 999px 999px; background: var(--gradient-brand); }
.cookie-banner-copy { max-width: 690px; }
.cookie-banner-eyebrow { display: inline-flex; gap: .45rem; align-items: center; margin-bottom: .38rem; color: var(--accent); font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.cookie-banner-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-brand); box-shadow: 0 0 0 5px color-mix(in srgb,var(--accent) 12%,transparent); }
.cookie-banner-copy strong { display: block; margin-bottom: .2rem; color: var(--ink); font-size: 1.05rem; font-weight: 650; }
.cookie-banner-copy p { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }
.cookie-banner-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: .17em; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: .6rem; }
.cookie-banner-actions .btn,
.cookie-settings-actions .btn { min-height: 42px; padding: .65rem 1rem; font-family: var(--font-body); font-size: .82rem; font-weight: 600; }
.cookie-banner-actions .btn-gradient,
.cookie-settings-actions .btn-gradient { color: #fff; box-shadow: 0 10px 28px color-mix(in srgb,var(--accent) 26%,transparent); }
.cookie-settings { position: fixed; z-index: 2100; inset: 0; display: grid; place-items: center; padding: 1rem; }
.cookie-settings-backdrop { position: absolute; inset: 0; background: rgba(8,12,20,.72); backdrop-filter: blur(8px); }
.cookie-settings-dialog { position: relative; width: min(620px,100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.4rem,4vw,2.2rem); border: 1px solid color-mix(in srgb,var(--accent) 22%,var(--border)); border-radius: 24px; background: linear-gradient(145deg,color-mix(in srgb,var(--surface) 98%,var(--accent-soft)),var(--surface)); box-shadow: 0 30px 100px rgba(0,0,0,.34); font-family: var(--font-body); }
.cookie-settings-dialog::before { content: ""; position: absolute; top: 0; right: 24px; left: 24px; height: 3px; border-radius: 0 0 999px 999px; background: var(--gradient-brand); }
.cookie-settings-dialog h2 { margin: .65rem 0 .8rem; font-size: clamp(1.8rem,4vw,2.6rem); }
.cookie-settings-dialog > p { color: var(--ink-soft); }
.cookie-settings-close { position: absolute; top: 1rem; right: 1rem; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-alt); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.cookie-choice { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; margin-top: .7rem; padding: .95rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); }
.cookie-choice > div,
.cookie-choice > span { display: grid; gap: .18rem; }
.cookie-choice strong { color: var(--ink); font-size: .92rem; }
.cookie-choice span span { color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.cookie-choice input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--accent); }
.cookie-settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; margin-top: 1.2rem; }
.cookie-settings-open { overflow: hidden; }
.home-page .cookie-banner { padding: 1.15rem 1.25rem; }
.home-page .cookie-settings-dialog { padding: clamp(1.4rem,4vw,2.2rem); }

/* Elebyte-owned contact launcher. Tawk.to remains unloaded until chat consent. */
.elebyte-contact-panel[hidden],
.elebyte-chat-consent-layer[hidden],
.elebyte-chat-policy[hidden],
.elebyte-chat-actions [hidden] { display: none !important; }
.elebyte-contact {
  --contact-edge: 22px;
  position: fixed;
  z-index: 2050;
  right: var(--contact-edge);
  bottom: calc(var(--contact-edge) + var(--elebyte-consent-offset,0px) + env(safe-area-inset-bottom,0px));
  display: grid;
  justify-items: end;
  font-family: var(--font-body);
  pointer-events: none;
  transition: bottom .24s ease, opacity .18s ease, visibility .18s ease;
}
.cookie-banner-visible .elebyte-contact {
  bottom: var(--elebyte-contact-stacked-bottom,calc(var(--contact-edge) + var(--elebyte-consent-offset,0px)));
}
.cookie-banner-visible .elebyte-contact.is-cookie-inline {
  bottom: var(--elebyte-contact-inline-bottom,var(--contact-edge));
}
.elebyte-contact > * { pointer-events: auto; }
.elebyte-contact.is-widget-open,
.mobile-nav-open .elebyte-contact,
.cookie-settings-open .elebyte-contact {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.elebyte-contact-launcher {
  position: relative;
  display: inline-flex;
  min-width: 62px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  padding: .78rem 1.1rem;
  overflow: visible;
  border: 1px solid var(--contact-launcher-border);
  border-radius: 21px;
  background: var(--contact-launcher-background);
  color: #fff;
  box-shadow: var(--contact-launcher-shadow);
  cursor: pointer;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.elebyte-contact-launcher:hover { background: var(--contact-launcher-hover-background); transform: translateY(-3px); box-shadow: var(--contact-launcher-hover-shadow); }
.elebyte-contact-launcher-icon { display: grid; width: 27px; height: 27px; place-items: center; }
.elebyte-contact-launcher-icon svg { width: 100%; height: 100%; }
.elebyte-contact-launcher-label { font-size: .88rem; font-weight: 750; letter-spacing: .01em; }
.elebyte-contact-pulse {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border: 2px solid var(--contact-launcher-pulse);
  border-radius: inherit;
  animation: elebyte-contact-pulse 2.8s ease-out infinite;
}
@keyframes elebyte-contact-pulse {
  0%,35% { opacity: .45; transform: scale(1); }
  70%,100% { opacity: 0; transform: scale(1.16); }
}
.elebyte-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(390px,calc(100vw - 28px));
  max-height: min(600px,calc(100dvh - var(--elebyte-consent-offset,0px) - 116px));
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1.35rem;
  border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border));
  border-radius: 24px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--surface) 98%,var(--accent-soft)),var(--surface));
  box-shadow: 0 26px 80px rgba(8,14,28,.3), 0 0 0 1px color-mix(in srgb,var(--accent) 7%,transparent);
  color: var(--ink);
  backdrop-filter: blur(18px);
  transform-origin: bottom right;
  animation: elebyte-contact-in .22s ease-out both;
}
.elebyte-contact-panel::-webkit-scrollbar { width: 0; height: 0; }
.elebyte-contact-panel::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-right: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border));
  border-bottom: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border));
  background: var(--surface);
  transform: rotate(45deg);
}
@media (min-width: 481px) {
  .elebyte-contact-panel {
    bottom: 0;
    max-height: min(680px,calc(100dvh - var(--elebyte-consent-offset,0px) - 44px));
  }
  .elebyte-contact.is-cookie-inline .elebyte-contact-panel {
    bottom: calc(var(--elebyte-consent-offset,0px) + 14px);
  }
  .elebyte-contact-panel::after { display: none; }
  .elebyte-contact-panel:not([hidden]) + .elebyte-contact-launcher {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}
@keyframes elebyte-contact-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.elebyte-contact-eyebrow,
.elebyte-chat-eyebrow {
  display: inline-flex;
  margin: 0 2.6rem .5rem 0;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.elebyte-contact-panel h2,
.elebyte-chat-consent h2 {
  margin: 0 2.4rem .9rem 0;
  color: var(--ink);
  font-size: clamp(1.45rem,5vw,1.9rem);
  font-weight: 520;
  line-height: 1.12;
}
.elebyte-contact-close,
.elebyte-chat-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}
.elebyte-contact-options { display: grid; gap: .62rem; }
.elebyte-contact-option {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  min-height: 64px;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .72rem .82rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb,var(--bg-alt) 82%,transparent);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.elebyte-contact-option:hover { transform: translateY(-1px); border-color: color-mix(in srgb,var(--accent) 42%,var(--border)); background: var(--bg-alt); }
.elebyte-contact-option.is-primary { border-color: color-mix(in srgb,var(--accent) 36%,var(--border)); background: color-mix(in srgb,var(--accent-soft) 68%,var(--surface)); }
.elebyte-contact-option-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--accent) 16%,var(--border)); }
.elebyte-contact-option-icon svg { width: 24px; height: 24px; }
.elebyte-contact-option-copy { display: grid; min-width: 0; gap: .12rem; }
.elebyte-contact-option-copy strong { color: var(--ink); font-size: .91rem; font-weight: 700; }
.elebyte-contact-option-copy span { overflow-wrap: anywhere; color: var(--ink-soft); font-size: .75rem; line-height: 1.35; }
.elebyte-contact-option.is-primary .elebyte-contact-option-copy span { color: var(--accent); font-weight: 700; }
.elebyte-contact-arrow { color: var(--ink-soft); font-size: 1.05rem; }
.elebyte-contact-launcher:focus-visible,
.elebyte-contact-panel button:focus-visible,
.elebyte-contact-panel a:focus-visible,
.elebyte-chat-consent button:focus-visible,
.elebyte-chat-consent a:focus-visible {
  outline: 3px solid color-mix(in srgb,var(--accent) 48%,#fff);
  outline-offset: 3px;
}
.elebyte-chat-consent-layer { position: fixed; z-index: 2200; inset: 0; display: grid; place-items: center; padding: max(1rem,env(safe-area-inset-top,0px)) max(1rem,env(safe-area-inset-right,0px)) max(1rem,env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-left,0px)); }
.elebyte-chat-consent-backdrop { position: absolute; inset: 0; background: rgba(8,12,20,.72); backdrop-filter: blur(8px); }
.elebyte-chat-consent {
  position: relative;
  width: min(560px,100%);
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  overflow-y: auto;
  padding: clamp(1.4rem,4vw,2.15rem);
  border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border));
  border-radius: 24px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--surface) 98%,var(--accent-soft)),var(--surface));
  box-shadow: 0 30px 100px rgba(0,0,0,.38);
  color: var(--ink);
  animation: elebyte-contact-in .22s ease-out both;
}
.elebyte-chat-consent::before { content: ""; position: absolute; top: 0; right: 24px; left: 24px; height: 3px; border-radius: 0 0 999px 999px; background: var(--gradient-brand); }
.elebyte-chat-consent p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.elebyte-chat-consent .elebyte-chat-policy { margin-top: .8rem; font-size: .84rem; }
.elebyte-chat-policy a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.elebyte-chat-actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.elebyte-chat-actions .btn { width: 100%; min-height: 46px; padding: .75rem 1rem; font-family: var(--font-body); font-size: .85rem; font-weight: 650; }
.elebyte-chat-actions .btn-gradient { color: #fff; }
.elebyte-chat-status:empty { display: none; }
.elebyte-chat-consent .elebyte-chat-status { margin-top: .85rem; padding: .7rem .8rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 650; }
.elebyte-chat-actions button:disabled { opacity: .68; cursor: wait; }
.elebyte-chat-consent-open { overflow: hidden; }
html.tawk-chat-page-locked,
html.tawk-chat-page-locked body {
  overflow-y: hidden !important;
  overscroll-behavior-y: none;
}
html.tawk-chat-hover-locked {
  overscroll-behavior-y: none;
  scrollbar-gutter: stable;
}
html.tawk-chat-hover-locked body {
  overscroll-behavior-y: none;
}
html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="main"] {
  display: block !important;
  position: fixed !important;
  box-sizing: border-box !important;
  visibility: visible !important;
}
@media (min-width: 761px) {
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="main"] {
    top: auto !important;
    right: 16px !important;
    bottom: 78px !important;
    left: auto !important;
    width: min(350px, calc(100vw - 32px)) !important;
    height: min(520px, calc(100vh - 96px)) !important;
    height: min(520px, calc(100dvh - 96px)) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
  }
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="toggle"] {
    display: block !important;
    position: fixed !important;
    top: auto !important;
    right: 16px !important;
    bottom: 0 !important;
    left: auto !important;
    width: 64px !important;
    height: 60px !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="branding"] {
    display: block !important;
    position: fixed !important;
    top: auto !important;
    right: 16px !important;
    bottom: 10px !important;
    left: auto !important;
    width: min(350px, calc(100vw - 32px)) !important;
    height: 45px !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
@media (max-width: 760px) {
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="main"] {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="toggle"],
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="branding"],
  html.tawk-chat-open iframe[data-elebyte-tawk-frame-role="auxiliary"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .cookie-banner { gap: 1rem; align-items: stretch; flex-direction: column; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions [data-cookie-all] { grid-column: 1 / -1; order: -1; }
  .cookie-banner-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .cookie-banner,
  .home-page .cookie-banner { right: 8px; bottom: 8px; left: 8px; padding: 1.05rem; border-radius: 18px; }
  .cookie-banner-actions { grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions [data-cookie-all] { grid-column: 1 / -1; }
  .cookie-banner-copy p { font-size: .82rem; }
  .cookie-banner-eyebrow { font-size: .62rem; }
  .cookie-settings-actions { display: grid; }
  .elebyte-contact { --contact-edge: 12px; }
  .elebyte-contact-launcher { width: 56px; min-width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 18px; }
  .elebyte-contact-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .elebyte-contact-panel { width: calc(100vw - 24px); padding: 1.15rem; border-radius: 20px; }
  .elebyte-chat-consent { padding: 1.25rem; border-radius: 20px; }
}
@media (max-width: 350px) {
  .cookie-banner-actions { grid-template-columns: 1fr; }
  .cookie-banner-actions [data-cookie-all] { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .elebyte-contact-pulse,
  .elebyte-contact-panel,
  .elebyte-chat-consent { animation: none; }
  .elebyte-contact,
  .elebyte-contact-launcher,
  .elebyte-contact-option { transition: none; }
}

@media (max-width: 1100px) {
  .global-footer-top { grid-template-columns: repeat(3,1fr); }
  .global-footer-brand { grid-column: 1 / -1; }
  .global-footer { min-height: 760px; }
}
@media (max-width: 760px) {
  .global-footer { min-height: auto; margin: 0 auto 1rem; padding: 4rem 0 2rem; border-radius: 26px; }
  .global-footer-top { grid-template-columns: repeat(2,1fr); gap: 2.5rem 1.5rem; }
  .global-footer-brand { grid-column: 1 / -1; }
  .global-footer-bottom { margin-top: 4rem; padding: 2rem 4rem 0 0; justify-content: flex-start; text-align: left; }
  .global-footer-legal { justify-content: flex-start; }
  .article-featured-hero { min-height: 650px; margin: 0; border-radius: 0 0 24px 24px; }
}
@media (max-width: 480px) {
  .article-featured-hero h1 { font-size: clamp(2.3rem,12vw,3.5rem); }
}

/* Smart floating header inspired by the rounded, scroll-aware reference navigation. */
html,
body {
  overflow-x: clip;
}

.site-header-spacer {
  height: 94px;
}

.global-header {
  --sticky-header-top: 18px;
  position: fixed;
  inset: var(--sticky-header-top) 0 auto;
  z-index: 500;
  width: 100%;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
  transform: translateY(0);
  transition: transform .42s var(--ease-out);
}

.global-header.is-hidden {
  transform: translateY(calc(-100% - var(--sticky-header-top) - 12px));
}

.global-header .container {
  width: min(calc(100% - 32px), 1280px);
  max-width: none;
  min-height: 72px;
  margin-inline: auto;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
  pointer-events: auto;
  transition: min-height .3s var(--ease-out), background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.home-page .global-header .container {
  width: min(calc(100% - 32px), 1280px);
  max-width: none;
}

.hero-card .global-header .container {
  min-height: 72px;
}

.global-header.is-scrolled .container,
.global-header.has-open-menu .container {
  min-height: 68px;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(23,27,38,.13);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-card .global-header.is-scrolled .container,
.hero-card .global-header.has-open-menu .container {
  min-height: 68px;
}

.global-header .brand img {
  width: 146px;
  height: auto;
}

.global-header .nav-desktop ul {
  gap: clamp(.9rem, 2vw, 1.75rem);
}

.global-header .nav-desktop a {
  font-size: .92rem;
  text-shadow: none;
}

.global-header .header-actions {
  gap: .6rem;
}

.global-header .header-cta {
  min-height: 48px;
  padding: .75rem 1.45rem;
  border-color: #2b2b2b;
  border-radius: var(--radius-pill);
  background: #2b2b2b;
  color: #fff;
  box-shadow: none;
}

.global-header .theme-toggle,
.global-header .nav-toggle {
  width: 44px;
  height: 44px;
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.global-header.is-scrolled .theme-toggle,
.global-header.is-scrolled .nav-toggle,
.global-header.has-open-menu .theme-toggle,
.global-header.has-open-menu .nav-toggle {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 21px;
  height: 16px;
}

.nav-toggle-icon span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: opacity .22s ease, transform .3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.35);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

:root[data-theme="dark"] .global-header .header-cta {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

.article-featured-hero .global-header.is-scrolled .nav-desktop a {
  color: var(--ink);
  text-shadow: none;
}

.article-featured-hero .global-header.is-scrolled .nav-desktop a[aria-current="page"] {
  color: var(--accent);
}

.article-featured-hero .global-header.is-scrolled .theme-toggle,
.article-featured-hero .global-header.is-scrolled .nav-toggle {
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
}

.article-featured-hero .global-header.is-scrolled .header-cta {
  border-color: #2b2b2b;
  background: #2b2b2b;
  color: #fff;
}

.article-featured-hero .global-header.is-scrolled .brand .logo-light { display: block; }
.article-featured-hero .global-header.is-scrolled .brand .logo-dark { display: none; }

:root[data-theme="dark"] .article-featured-hero .global-header.is-scrolled .brand .logo-light { display: none; }
:root[data-theme="dark"] .article-featured-hero .global-header.is-scrolled .brand .logo-dark { display: block; }
:root[data-theme="dark"] .article-featured-hero .global-header.is-scrolled .header-cta {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .article-featured-hero .global-header.is-scrolled .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .article-featured-hero .global-header.is-scrolled .brand .logo-dark { display: block; }
}

@media (max-width: 899px) {
  html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgba(8,14,26,.22);
    -webkit-backdrop-filter: blur(6px) brightness(.76) saturate(.85);
    backdrop-filter: blur(6px) brightness(.76) saturate(.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }

  :root[data-theme="dark"]::before {
    background: rgba(2,5,12,.32);
  }

  html.mobile-nav-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header-spacer { height: 80px; }

  .global-header {
    --sticky-header-top: 12px;
  }

  .global-header .container,
  .global-header.is-scrolled .container,
  .global-header.has-open-menu .container {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 8px 14px;
  }

  .home-page .global-header .container,
  .home-page .global-header.is-scrolled .container,
  .home-page .global-header.has-open-menu .container {
    width: calc(100% - 24px);
  }

  .hero-card .global-header .container,
  .hero-card .global-header.is-scrolled .container,
  .hero-card .global-header.has-open-menu .container {
    min-height: 64px;
  }

  .global-header .brand img {
    width: 126px;
  }

  .global-header .header-actions {
    gap: .45rem;
  }

  .global-header .nav-mobile {
    position: absolute;
    inset: auto 12px;
    top: calc(100% + 10px);
    display: block;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 24px 70px rgba(23,27,38,.18);
    backdrop-filter: blur(20px) saturate(145%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }

  .global-header .nav-mobile.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .global-header .nav-mobile ul {
    gap: .1rem;
    padding: 16px;
  }

  .global-header .nav-mobile a {
    padding: .78rem 1rem;
    border-radius: 14px;
    color: var(--ink);
    font-size: 1rem;
    text-align: center;
  }

  .global-header .nav-mobile a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .global-header .nav-mobile li:last-child {
    margin-top: .55rem;
  }

  .global-header .nav-mobile li:last-child a {
    min-height: 50px;
    padding: .8rem 1.15rem;
    border-color: #2b2b2b;
    border-radius: var(--radius-pill);
    background: #2b2b2b;
    color: #fff;
  }

  :root[data-theme="dark"] .global-header .nav-mobile li:last-child a {
    border-color: #3b82f6;
    background: #3b82f6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html::before,
  .global-header,
  .global-header .container,
  .global-header .nav-mobile,
  .nav-toggle-icon span {
    transition: none;
  }
}
