/* ==========================================================================
   Broktinger - Premium static redesign
   Design system + components + animations
   Author: studio build - single-file, no framework
   --------------------------------------------------------------------------
   Sections:
   1.  Fonts
   2.  Design tokens (:root)
   3.  Reset & base
   4.  Typography
   5.  Layout utilities
   6.  Buttons
   7.  Top banner
   8.  Header / navigation
   9.  Hero + particle canvas
   10. Stat band (counters)
   11. Marquees (logo + feature)
   12. Section shells & eyebrows
   13. Feature cards
   14. Managed services
   15. API integration
   16. Testimonials
   17. CTA band
   18. Footer
   19. Interior page hero
   20. Contact form
   21. Scroll-reveal + keyframes
   22. Responsive
   23. Reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Loaded in <head> with preconnect; declared here for fallback ordering.    */

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Brand - derived from the official logo (Brok = navy, tinger = sky) */
  --navy:        #0E2A47;   /* primary dark / headings */
  --navy-deep:   #081B30;   /* deepest gradient stop */
  --navy-soft:   #143456;   /* raised surfaces on dark */
  --sky:         #2FA8E0;   /* brand accent / primary CTA */
  --sky-strong:  #1E8FCB;   /* pressed / darker accent */
  --sky-bright:  #38BDF8;   /* hover glow */
  --cyan:        #00D4FF;   /* electric highlight */

  /* Neutrals */
  --white:       #FFFFFF;
  --mist:        #F4F8FF;   /* light section bg */
  --mist-2:      #EAF2FF;   /* deeper light bg */
  --ink:         #0E2A47;   /* heading text */
  --slate:       #475569;   /* body text */
  --slate-soft:  #64748B;   /* muted captions */
  --line:        #DCE6F5;   /* hairline borders on light */
  --line-dark:   rgba(255,255,255,0.10); /* borders on dark */

  /* Themable surfaces (flipped by [data-theme="dark"]) */
  --bg:          var(--white);  /* page background */
  --surface:     #FFFFFF;       /* cards / raised panels */

  /* Gradients */
  --grad-hero:   radial-gradient(120% 120% at 80% -10%, #15396a 0%, var(--navy) 42%, var(--navy-deep) 100%);
  --grad-accent: linear-gradient(135deg, var(--sky) 0%, var(--cyan) 100%);
  --grad-soft:   linear-gradient(180deg, #FFFFFF 0%, var(--mist) 100%);

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(14, 42, 71, 0.06);
  --sh-md: 0 14px 40px -18px rgba(14, 42, 71, 0.28);
  --sh-lg: 0 30px 70px -30px rgba(14, 42, 71, 0.40);
  --sh-glow: 0 18px 50px -22px rgba(47, 168, 224, 0.55);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-mid: 320ms;
  --t-slow: 560ms;
}

/* 3. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

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

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid var(--sky-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(47, 168, 224, 0.22);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { color: var(--slate); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  color: var(--slate);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-strong);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.eyebrow.is-light { color: var(--sky-bright); }

.section-head { max-width: 720px; }
.section-head h2 { margin: 14px 0 0; }
.section-head .lead { margin-top: 18px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }

.text-accent { color: var(--sky-strong); }
.on-dark { color: rgba(255,255,255,0.78); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* 5. Layout utilities ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--mist { background: var(--mist); }
.section--soft { background: var(--grad-soft); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.78); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--sky);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--sh-glow);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background var(--t-fast) var(--ease);
  white-space: nowrap;
  overflow: hidden;
}
.btn::after { /* sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 650ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -20px rgba(47,168,224,0.7); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--accent { background: var(--grad-accent); }

.btn--ghost {
  --btn-fg: var(--navy);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--sky);
  background: rgba(47,168,224,0.06);
}

.btn--ghost-light {
  --btn-fg: #fff;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}

.btn--sm { padding: 11px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; justify-content: center; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[disabled]::after { display: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sky-strong);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.link-arrow .arrow { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { gap: 12px; color: var(--sky); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* 7. Top banner ----------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--grad-accent);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.topbar .arrow { transition: transform var(--t-fast) var(--ease); }
.topbar a:hover .arrow { transform: translateX(4px); }

/* 8. Header / navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              height var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(14,42,71,0.4);
  height: 64px;
}

/* Brand / logo swap */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; transition: opacity var(--t-mid) var(--ease); }
.brand .logo-dark { display: none; }   /* navy logo, for scrolled/light header */
.brand .logo-light { display: block; } /* reversed logo, for transparent-over-hero */
.site-header.is-scrolled .brand .logo-dark { display: block; }
.site-header.is-scrolled .brand .logo-light { display: none; }
/* Interior pages without dark hero start in light mode */
.site-header.is-solid .brand .logo-dark { display: block; }
.site-header.is-solid .brand .logo-light { display: none; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }

.site-header.is-scrolled .nav a,
.site-header.is-solid .nav a { color: var(--slate); }
.site-header.is-scrolled .nav a:hover,
.site-header.is-solid .nav a:hover,
.site-header.is-scrolled .nav a[aria-current="page"],
.site-header.is-solid .nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--surface);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  background: var(--navy);
  color: #fff;
  z-index: 80;
  padding: calc(var(--header-h) + 16px) 28px 32px;
  transform: translateX(100%);
  transition: transform var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--sh-lg);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  padding: 14px 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255,255,255,0.85);
}
.mobile-nav a[aria-current="page"] { color: var(--sky-bright); }
.mobile-nav .btn { margin-top: 22px; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 48, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  z-index: 70;
  transition: opacity var(--t-mid) var(--ease), visibility var(--t-mid) var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* 9. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
  background: var(--grad-hero);
  color: rgba(255,255,255,0.82);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero::after { /* vignette / fade to next section */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(8,27,48,0.0));
  pointer-events: none;
}
.hero__inner { max-width: 820px; }
.hero h1 { color: #fff; margin: 20px 0 0; }
.hero h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 22px;
  max-width: 620px;
  color: rgba(255,255,255,0.75);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.stars { color: #FFC857; letter-spacing: 2px; font-size: 0.95rem; }

/* floating decorative orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.hero__orb--1 { width: 360px; height: 360px; background: rgba(47,168,224,0.5); top: -80px; right: -60px; }
.hero__orb--2 { width: 280px; height: 280px; background: rgba(0,212,255,0.35); bottom: -100px; left: 10%; }

/* 10. Stat band ----------------------------------------------------------- */
.statband {
  position: relative;
  z-index: 2;
  margin-top: clamp(-40px, -4vw, -64px);
}
.statband__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(28px, 4vw, 44px);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat {
  position: relative;
  padding-left: 20px;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num .unit { color: var(--sky-strong); }
.stat__label {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--slate-soft);
}

/* compact stats (managed services) */
.ministat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.ministat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--ink);
  line-height: 1;
}
.ministat__num .unit { color: var(--sky-strong); }
.ministat__label { margin-top: 6px; font-size: 0.85rem; color: var(--slate-soft); }

/* 11. Marquees ------------------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  -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;
  width: max-content;
  animation: marquee var(--mq-dur, 40s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Logo marquee (Trusted Partners) */
.partners { background: var(--surface); }
.partners__label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 28px;
  font-weight: 600;
}
.logo-chip {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 30px;
  color: var(--slate);
  opacity: 0.6;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.logo-mark {
  height: 26px;
  width: calc(26px * var(--ar, 4));
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
}
.logo-chip svg { width: 26px; height: 26px; color: var(--sky); flex: none; }
.marquee:hover .logo-chip { opacity: 0.92; }

/* Trusted-partners marquee: calm pace, matching the original (90s / 60s) */
.marquee--logos .marquee__track { animation-duration: 90s; }
@media (max-width: 680px) { .marquee--logos .marquee__track { animation-duration: 60s; } }

/* Feature marquee (checks) */
.feature-marquee {
  background: var(--navy);
  color: #fff;
  padding-block: 20px;
}
.feature-marquee .marquee__track { animation-duration: 55s; }
.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.feat-pill .tick {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(47,168,224,0.18);
  color: var(--sky-bright);
  flex: none;
}
.feat-pill .tick svg { width: 12px; height: 12px; }

/* 12. Section shells ------------------------------------------------------ */
.section-foot { margin-top: clamp(34px, 4vw, 50px); }
.section-foot.is-center { text-align: center; }

/* 13. Feature cards ------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
  overflow: hidden;
}
.card::before { /* top accent line revealed on hover */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(47,168,224,0.4);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47,168,224,0.14), rgba(0,212,255,0.10));
  color: var(--sky-strong);
  margin-bottom: 18px;
  transition: transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: translateY(-3px) scale(1.04); background: var(--grad-accent); color: #fff; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card__link { margin-top: 18px; }

/* List-style cards (services/products pages) */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(47,168,224,0.4); }
.tile__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(47,168,224,0.10);
  color: var(--sky-strong);
  flex: none;
}
.tile__icon svg { width: 20px; height: 20px; }
.tile h3 { font-size: 1.06rem; margin-bottom: 4px; }
.tile p { font-size: 0.92rem; margin: 0; }

/* 14. Managed services ---------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--grad-hero);
  border: 1px solid var(--line-dark);
  box-shadow: var(--sh-lg);
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
}
.media-frame::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  background: rgba(0,212,255,0.4);
  filter: blur(70px);
  top: -60px; right: -40px;
  z-index: -1;
}
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.platform-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 18px;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.platform-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.platform-card .pc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.platform-card .pc-sub { font-size: 0.82rem; color: rgba(255,255,255,0.62); margin-top: 4px; }
.platform-card .pc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); margin-bottom: 14px; }

/* 15. API integration ----------------------------------------------------- */
.api-visual {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--surface), var(--mist));
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.api-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.api-node .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-accent); flex: none; }
.api-bridge {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sky-strong);
  padding: 8px 0;
  position: relative;
}
.api-bridge span {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(47,168,224,0.10);
  font-size: 0.85rem;
}
.api-flow { display: grid; gap: 12px; }
.api-flow .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 16. Testimonials -------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.quote-card .stars { font-size: 1rem; }
.quote-card blockquote {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 450;
}
.quote-card .by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  flex: none;
}
.by .name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.by .role { font-size: 0.82rem; color: var(--slate-soft); }

/* 17. CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  background: rgba(47,168,224,0.4);
  filter: blur(90px);
  top: -120px; left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
.cta-band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 640px; margin: 20px auto 0; }
.cta-band .btn { margin-top: 30px; }

/* 18. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.62);
  padding-top: clamp(56px, 7vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 52px);
}
.footer-brand img { height: 34px; margin-bottom: 18px; }
.footer-brand .slogan {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.92rem; max-width: 340px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  color: rgba(255,255,255,0.8);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--sky); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--sky-bright); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--sky); flex: none; margin-top: 3px; }

.footer-disclaimer {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 30px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: var(--sky-bright); }

/* 19. Interior page hero -------------------------------------------------- */
.page-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(48px, 7vw, 88px);
  background: var(--grad-hero);
  color: rgba(255,255,255,0.8);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__canvas { position: absolute; inset: 0; z-index: -1; }
.page-hero h1 { color: #fff; margin-top: 18px; max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,0.74); margin-top: 18px; max-width: 620px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* 20. Contact form -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--sh-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: var(--sky-strong); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--mist);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-soft); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(47,168,224,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--invalid input,
.field--invalid textarea { border-color: #E5484D; background: #FFF5F5; }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #E5484D;
}
.field--invalid .field__error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* honeypot - visually hidden, off-screen */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note { font-size: 0.82rem; color: var(--slate-soft); margin-top: 4px; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
}
.form-status.is-success {
  display: block;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.4);
  color: #15803d;
}
.form-status.is-error {
  display: block;
  background: rgba(229,72,77,0.08);
  border: 1px solid rgba(229,72,77,0.35);
  color: #c0392b;
}

/* contact aside */
.contact-info { display: grid; gap: 18px; }
.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.info-item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.info-item .ii-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(47,168,224,0.10);
  color: var(--sky-strong);
  flex: none;
}
.info-item .ii-icon svg { width: 20px; height: 20px; }
.info-item .ii-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 3px; }
.info-item .ii-value { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.info-item .ii-value a:hover { color: var(--sky-strong); }

.map-embed {
  margin-top: 8px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* values row (about) */
.value-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 24px;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value-card .vc-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  background: var(--grad-accent);
  color: #fff;
}
.value-card .vc-icon svg { width: 28px; height: 28px; }
.value-card h3 { margin-bottom: 8px; }

/* prose blocks */
.prose { max-width: 760px; }
.prose p + p { margin-top: 18px; }
.prose h3 { margin: 32px 0 12px; }

/* 21. Scroll reveal + keyframes ------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.float-slow { animation: float-y 7s var(--ease) infinite; }

/* 22. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .media-frame, .split .api-visual { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .ministat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .api-flow .row-2 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 23. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; transform: none !important; }
  .btn::after { display: none; }
}

/* ==========================================================================
   ADDITIONS (v2): accordions, pricing, blog, article, service/product detail
   ========================================================================== */

/* Tile "Learn more" link + make tile a column so the link sits at the base */
.tile { flex-direction: column; }
.tile__top { display: flex; gap: 16px; align-items: flex-start; }
.tile__link {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--sky-strong);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.tile__link .arrow { transition: transform var(--t-fast) var(--ease); }
.tile:hover .tile__link { gap: 12px; color: var(--sky); }
.tile:hover .tile__link .arrow { transform: translateX(3px); }

/* ---- Product category accordions ---- */
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.cat + .cat { margin-top: 16px; }
.cat:hover { box-shadow: var(--sh-md); }
.cat__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  text-align: left;
}
.cat__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,168,224,0.14), rgba(0,212,255,0.10));
  color: var(--sky-strong);
}
.cat__icon svg { width: 24px; height: 24px; }
.cat__titles { flex: 1; min-width: 0; }
.cat__eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-soft); font-weight: 600; }
.cat__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-top: 2px; }
.cat__meta { display: flex; align-items: center; gap: 10px; flex: none; }
.platform-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--sky-strong); background: rgba(47,168,224,0.10);
  padding: 4px 8px; border-radius: 6px;
}
.cat__chevron {
  width: 22px; height: 22px; color: var(--slate-soft);
  transition: transform var(--t-mid) var(--ease);
  flex: none;
}
.cat__head[aria-expanded="true"] .cat__chevron { transform: rotate(180deg); }
.cat__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
}
.cat__panel-inner { padding: 4px 24px 22px; }
.tool-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--mist);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tool-row + .tool-row { margin-top: 10px; }
a.tool-row:hover { border-color: rgba(47,168,224,0.45); background: var(--surface); transform: translateX(3px); }
.tool-row .tr-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tool-row .tr-right { display: flex; align-items: center; gap: 10px; flex: none; }
.tool-row .tr-arrow { color: var(--sky-strong); transition: transform var(--t-fast) var(--ease); }
a.tool-row:hover .tr-arrow { transform: translateX(3px); }
.badge-soon {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate-soft); background: #EEF2F8; padding: 4px 9px; border-radius: var(--r-pill);
}
.tool-row.is-soon { opacity: 0.75; cursor: default; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,2.4vw,28px); }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px; box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(47,168,224,0.4); }
.price-card.is-featured { border-color: var(--sky); box-shadow: var(--sh-glow); }
.price-card__tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--grad-accent); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-card .pc-desc { font-size: 0.92rem; color: var(--slate); margin-bottom: 20px; }
.price-card .pc-amount { font-family: var(--font-display); color: var(--ink); margin-bottom: 4px; }
.price-card .pc-amount .from { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-soft); font-weight: 600; }
.price-card .pc-amount .num { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; }
.price-card .pc-amount .per { font-size: 0.95rem; color: var(--slate-soft); }
.price-card ul { display: grid; gap: 11px; margin: 22px 0 26px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--slate); }
.price-card li svg { width: 18px; height: 18px; color: var(--sky-strong); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.price-note { font-size: 0.85rem; color: var(--slate-soft); text-align: center; margin-top: 22px; }

/* ---- Blog ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px,2.6vw,30px); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(47,168,224,0.4); }
.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.post-card__media svg { width: 46px; height: 46px; color: rgba(255,255,255,0.85); }
.post-card__media::after {
  content: ""; position: absolute; width: 180px; height: 180px;
  background: rgba(0,212,255,0.4); filter: blur(55px); top: -50px; right: -40px;
}
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-strong); font-weight: 600; }
.post-card h3 { font-size: 1.12rem; margin: 10px 0 10px; line-height: 1.25; }
.post-card p { font-size: 0.92rem; margin-bottom: 18px; }
.post-card .link-arrow { margin-top: auto; font-size: 0.9rem; }

/* ---- Article (blog post / detail prose) ---- */
.article { max-width: 760px; margin-inline: auto; }
.article > * + * { margin-top: 20px; }
.article h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 40px; }
.article h3 { font-size: 1.25rem; margin-top: 28px; }
.article p { color: var(--slate); line-height: 1.75; }
.article ul.bullets { display: grid; gap: 12px; padding-left: 0; }
.article ul.bullets li { position: relative; padding-left: 28px; color: var(--slate); line-height: 1.65; }
.article ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--grad-accent);
}
.article a { color: var(--sky-strong); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--sky); }
.article .faq-q { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-top: 24px; }
.callout {
  background: var(--mist); border: 1px solid var(--line); border-left: 3px solid var(--sky);
  border-radius: var(--r-sm); padding: 20px 22px;
}
.callout p { margin: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 14px; }
.meta-row .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* related list */
.related-list { display: grid; gap: 12px; }
.related-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-sm); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.related-list a:hover { transform: translateX(3px); border-color: rgba(47,168,224,0.45); }
.related-list .rl-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.related-list .rl-arrow { color: var(--sky-strong); flex: none; }

/* feature list (detail pages) */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .fi-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: rgba(47,168,224,0.10); color: var(--sky-strong);
}
.feature-item .fi-icon svg { width: 20px; height: 20px; }
.feature-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.92rem; margin: 0; }

@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .cat__head { gap: 12px; padding: 18px; }
  .cat__meta .platform-tag { display: none; }
}

/* About: values title on a single symmetrical line */
.values-oneline {
  white-space: nowrap;
  font-size: clamp(1.25rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
}
@media (max-width: 380px) { .values-oneline { white-space: normal; } }

/* Article lead + article hero */
.article-lead { font-size: 1.18rem; line-height: 1.7; color: var(--ink); font-weight: 500; }

/* Media inside migrated articles (images, figures, captions, embeds) */
.article img { max-width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.article figure { margin: 28px 0; }
.article figure img { margin: 0 auto; }
.article figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--slate-soft); text-align: center; }
.article .wp-block-image { margin: 28px 0; }
.article .wp-block-image img { margin-inline: auto; }
.article .aligncenter { margin-inline: auto; }
.article-hero-img { margin: 0 0 34px; }
.article iframe, .article video { max-width: 100%; border: 0; border-radius: var(--r-md); }
.article .wp-block-table table { width: 100%; border-collapse: collapse; }
.article .wp-block-table td, .article .wp-block-table th { border: 1px solid var(--line); padding: 10px 14px; }
.page-hero--article { padding-bottom: clamp(36px,4vw,56px); }
.page-hero--article h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

/* Category header: eyebrow + title must stack, not run together */
.cat__eyebrow { display: block; }
.cat__title { display: block; }

/* ---- Price table ---- */
.price-table-wrap { margin-top: clamp(26px,3.2vw,42px); }
.price-group + .price-group { margin-top: 28px; }
.price-group__title { display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-weight:600; color:var(--ink); font-size:1.06rem; margin-bottom:12px; }
.price-group__title .pg-ic { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:rgba(47,168,224,0.12); color:var(--sky-strong); flex:none; }
.price-group__title .pg-ic svg { width:18px; height:18px; }
.price-table { width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; box-shadow:var(--sh-sm); }
.price-table th, .price-table td { text-align:left; padding:13px 18px; border-bottom:1px solid var(--line); font-size:0.94rem; }
.price-table thead th { background:var(--mist); color:var(--slate-soft); font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; font-weight:600; }
.price-table tbody tr:last-child td { border-bottom:none; }
.price-table tbody tr { transition: background var(--t-fast) var(--ease); }
.price-table tbody tr:hover { background:var(--mist); }
.price-table .pt-name { font-weight:600; color:var(--ink); }
.price-table .pt-name a { color:var(--ink); }
.price-table .pt-name a:hover { color:var(--sky-strong); }
.price-table .pt-delivery { color:var(--slate); white-space:nowrap; }
.price-table .pt-price { text-align:right; font-family:var(--font-display); font-weight:600; color:var(--ink); white-space:nowrap; }
.price-table .pt-price.is-req { color:var(--slate-soft); font-weight:500; }
@media (max-width:600px){ .price-table th, .price-table td{ padding:11px 12px; font-size:0.85rem; } }

/* Price cell: "from <amount> / mo" */
.price-table .pt-from { font-family: var(--font-display); font-weight:600; font-size:0.66rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--slate-soft); margin-right:6px; }
.price-table .pt-per { color:var(--slate-soft); font-weight:500; font-size:0.82rem; }

/* ==========================================================================
   24. Theme toggle + Dark mode
   ========================================================================== */

/* --- Toggle button (lives in header-actions, visible on mobile too) ------- */
.theme-toggle {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.82);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.20);
  transition: color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.theme-toggle:hover { color: #fff; transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }

/* On a solid / scrolled header the toggle follows the dark-text treatment */
.site-header.is-scrolled .theme-toggle,
.site-header.is-solid .theme-toggle {
  color: var(--slate);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.site-header.is-scrolled .theme-toggle:hover,
.site-header.is-solid .theme-toggle:hover { color: var(--ink); }

/* Swap the icon depending on the active theme */
[data-theme="dark"] .theme-toggle .ic-sun  { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* --- Smooth cross-fade only while the user is switching themes ----------- */
html.theme-anim,
html.theme-anim * {
  transition: background-color 300ms var(--ease),
              color 300ms var(--ease),
              border-color 300ms var(--ease),
              fill 300ms var(--ease),
              box-shadow 300ms var(--ease) !important;
}

/* --- Dark theme token overrides ------------------------------------------ */
[data-theme="dark"] {
  --bg:          #081320;   /* page background (deeper than navy sections) */
  --surface:     #102338;   /* raised cards / panels */
  --mist:        #0C1B2D;   /* subtle alt surface */
  --mist-2:      #0A1726;
  --ink:         #EAF2FF;   /* headings */
  --slate:       #AFC0D6;   /* body text */
  --slate-soft:  #7E92AC;   /* muted captions */
  --line:        rgba(255,255,255,0.10);

  --grad-soft:   linear-gradient(180deg, var(--surface) 0%, var(--mist) 100%);

  /* Shadows read better as depth on dark surfaces */
  --sh-sm: 0 2px 10px rgba(0,0,0,0.40);
  --sh-md: 0 16px 44px -18px rgba(0,0,0,0.60);
  --sh-lg: 0 30px 70px -30px rgba(0,0,0,0.70);
}

/* Header: dark translucent when scrolled / solid */
[data-theme="dark"] .site-header.is-scrolled,
[data-theme="dark"] .site-header.is-solid {
  background: rgba(10,20,33,0.85);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(0,0,0,0.6);
}

/* Keep the reversed (light) logo on dark headers */
[data-theme="dark"] .site-header.is-scrolled .brand .logo-dark,
[data-theme="dark"] .site-header.is-solid .brand .logo-dark { display: none; }
[data-theme="dark"] .site-header.is-scrolled .brand .logo-light,
[data-theme="dark"] .site-header.is-solid .brand .logo-light { display: block; }

/* Hamburger lines on the dark solid header */
[data-theme="dark"] .site-header.is-scrolled .nav-toggle span,
[data-theme="dark"] .site-header.is-solid .nav-toggle span { background: var(--ink); }

/* Ghost button text stays legible */
[data-theme="dark"] .btn--ghost { --btn-fg: var(--ink); }

/* Invalid form fields keep a dark-friendly tint */
[data-theme="dark"] .field--invalid input,
[data-theme="dark"] .field--invalid textarea {
  background: rgba(229,72,77,0.12);
  border-color: #E5484D;
}
