/* ─────────────────────────────────────────────────────────────
   Silentra Networks — Modern UI overlay
   Loaded after style.css. Adds modern depth, motion, and polish
   without touching legacy rules.
   ───────────────────────────────────────────────────────────── */

/* ── 1. Global polish ────────────────────────────────────────── */
body {
  font-feature-settings: "ss01", "cv11", "cv02";
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--primary-strong);
}

/* Smoother focus rings */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── 2. Buttons — modern depth + micro-interaction ──────────── */
.btn {
  position: relative;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
  will-change: transform;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(180deg, #96CC00 0%, #76B900 100%);
  color: var(--btn-on-primary);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #76B900 0%, #5E9400 100%);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg);
  transform: translateY(-1px);
}

/* ── Logo size override ─────────────────────────────────────── */
.logo-img--full { height: 56px; }

@media (max-width: 900px) {
  .logo-img--mark { height: 48px; }
}

/* ── 3. Header — frosted, more refined ──────────────────────── */
.header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.7);
  transition: box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}

.header.is-scrolled {
  box-shadow: 0 8px 28px -16px rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner { min-height: 72px; }

.nav { gap: var(--space-3); }

.nav a,
.nav-mega-trigger,
.nav-dropdown-trigger {
  position: relative;
  border-bottom: none !important;
  padding: 0.5rem 0.25rem;
  transition: color var(--dur) var(--ease-out);
}

/* underline grows from center on hover/active — modern, calm */
.nav a::after,
.nav-mega-trigger::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--dur) var(--ease-out), left var(--dur) var(--ease-out);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after,
.nav-mega-trigger:hover::after,
.nav-mega-trigger.is-active::after,
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.is-active::after,
.nav-mega-parent:hover .nav-mega-trigger::after,
.nav-dropdown-parent:hover .nav-dropdown-trigger::after,
.nav-mega-parent.is-hovering .nav-mega-trigger::after,
.nav-dropdown-parent.is-hovering .nav-dropdown-trigger::after {
  width: calc(100% - 0.5rem);
  left: 0.25rem;
}

/* Header submenus — underline grows instantly (Services + Resources) */
#mega-trigger-services::after,
#nav-trigger-resources::after {
  transition: none !important;
}

/* CTA in nav — bigger pill */
.nav-cta { padding: 0.7rem 1.3rem; font-size: 0.95rem; }

/* Top social bar — slightly slimmer */
.top-bar { min-height: 40px; }
.top-bar-link { width: 32px; height: 32px; border-radius: 8px; }
.top-bar-link svg { width: 14px; height: 14px; }

/* ── 4. Hero — modern depth, soft glow, refined visual ──────── */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-12) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118,185,0,0.55), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* Wide gutter + asymmetric columns — paired with style.css grid-template-columns */
.hero-inner {
  gap: clamp(var(--space-10), 6vw, var(--space-16));
}

@media (min-width: 993px) {
  .hero-inner > .hero-visual:not(.hero-visual--embed) {
    justify-self: end;
    max-width: 580px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  background: rgba(118, 185, 0, 0.14);
  border: 1px solid rgba(118, 185, 0, 0.38);
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #96CC00;
  box-shadow: 0 0 0 4px rgba(118, 185, 0, 0.24);
}

.hero-h1 {
  /* Respect admin sizes: Page Sections hero (--hero-h1-size-*) or Branding (--h1-size-*) */
  font-size: clamp(var(--hero-h1-size-mobile, var(--h1-size-mobile)), 5vw, var(--hero-h1-size-desktop, var(--h1-size-desktop)));
  letter-spacing: -0.035em;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-h1 {
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-subhead {
  font-size: clamp(var(--hero-h2-size-mobile, var(--text-md)), 2.4vw, var(--hero-h2-size-desktop, var(--text-lg)));
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  max-width: 52ch;
}

.hero-pills { margin-top: var(--space-4); }

.hero-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.hero-pill:hover {
  background: rgba(118, 185, 0, 0.14);
  border-color: rgba(118, 185, 0, 0.36);
  transform: translateY(-1px);
}

.hero-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.85rem 0.25rem;
  position: relative;
}

.hero-link svg { transition: transform var(--dur) var(--ease-out); }
.hero-link:hover svg { transform: translateX(4px); }

.hero-visual {
  position: relative;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--dur-slow) var(--ease-out);
}

.hero-visual:hover {
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-4px);
}

/* HTML animation embed: no 3D tilt, square edges (full-bleed), no
   border-radius which would look broken at edge-to-edge. style.css is
   authoritative here via !important for the breakout layout. */
.hero-visual--embed,
.hero-visual--embed:hover {
  transform: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* Subtle glow behind the visual — keep low so it does not read as a second border */
.hero-inner::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 55%;
  height: 75%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(118,185,0,0.12), transparent 70%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.hero-text, .hero-visual { position: relative; z-index: 1; }

/* ── 5. Section labels & headings ───────────────────────────── */
.section-label,
.problem-label,
.why-label,
.hww-eyebrow,
.real-results-eyebrow,
.events-eyebrow,
.how-label,
.legal-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before,
.problem-label::before,
.why-label::before,
.hww-eyebrow::before,
.real-results-eyebrow::before,
.events-eyebrow::before,
.how-label::before,
.legal-page-eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
}

/* ── 6. Cards — softer shadow, smoother hover ───────────────── */
.cap-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cap-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: translateY(-100%);
  transition: transform var(--dur) var(--ease-out);
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(118, 185, 0, 0.30);
}

.cap-card:hover::before { transform: translateY(0); }

/* ── 3D Icon containers ─────────────────────────────── */

/* Shared 3D base */
.cap-icon,
.why-bullet-icon,
.service-card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

/* Capability + Why: overflow visible preserves Lucide stroke caps; gloss ::after stays inside rounded rects */
.cap-icon {
  overflow: visible;
}

.service-card-icon {
  overflow: hidden;
}

.why-bullet-icon {
  overflow: visible;
}

/* Light-catch highlight on top-left — the core 3D cue */
.cap-icon::after,
.why-bullet-icon::after,
.service-card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

/* SVG above the overlay — no drop-shadow filter (blurs strokes on HiDPI) */
.cap-icon svg,
.why-bullet-icon svg,
.service-card-icon svg {
  position: relative;
  z-index: 2;
  shape-rendering: geometricPrecision;
}

/* Cap icon sizing */
.cap-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-1);
}

/* Per-card colors — purple / amber / sky / emerald */
.cap-card:nth-child(1) .cap-icon {
  background: linear-gradient(145deg, #9F7AEA 0%, #7C3AED 55%, #5B21B6 100%);
  box-shadow:
    inset 0 -3px 7px rgba(91, 33, 182, 0.45),
    0 6px 18px rgba(124, 58, 237, 0.40),
    0 2px 4px rgba(0, 0, 0, 0.10);
}
.cap-card:nth-child(2) .cap-icon {
  background: linear-gradient(145deg, #FCD34D 0%, #F59E0B 50%, #B45309 100%);
  box-shadow:
    inset 0 -3px 7px rgba(180, 83, 9, 0.45),
    0 6px 18px rgba(245, 158, 11, 0.38),
    0 2px 4px rgba(0, 0, 0, 0.10);
}
.cap-card:nth-child(3) .cap-icon {
  background: linear-gradient(145deg, #38BDF8 0%, #0EA5E9 50%, #0369A1 100%);
  box-shadow:
    inset 0 -3px 7px rgba(3, 105, 161, 0.45),
    0 6px 18px rgba(14, 165, 233, 0.38),
    0 2px 4px rgba(0, 0, 0, 0.10);
}
.cap-card:nth-child(4) .cap-icon {
  background: linear-gradient(145deg, #34D399 0%, #10B981 50%, #047857 100%);
  box-shadow:
    inset 0 -3px 7px rgba(4, 120, 87, 0.45),
    0 6px 18px rgba(16, 185, 129, 0.38),
    0 2px 4px rgba(0, 0, 0, 0.10);
}

/* Hover: slight lift + reduced rotation */
.cap-card:hover .cap-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Homepage capability marks: flat strokes only (.cap-icon 3D/gradients stay on admin previews). */
.capabilities .cap-item-logo::before,
.capabilities .cap-item-logo::after {
  display: none !important;
}

.cap-link {
  opacity: 1;  /* always visible — modern carry-affordance */
  color: var(--primary);
}

.cap-link:hover { gap: 0.5em; }

/* ── 7. Why bullets ─────────────────────────────────────────── */
.why-bullet {
  border-top-color: var(--border-soft);
  padding-top: var(--space-4);
  transition: padding-left var(--dur) var(--ease-out);
}

.why-bullet:hover { padding-left: 6px; }

/* Why bullets — NVIDIA green 3D */
.why-bullet-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #96CC00 0%, #76B900 50%, #4A7500 100%);
  box-shadow:
    inset 0 -3px 6px rgba(74, 117, 0, 0.45),
    0 5px 14px rgba(118, 185, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── 8. Trusted-by ──────────────────────────────────────────── */
.trusted-by {
  background: var(--bg-soft);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trusted-by-placeholder-rect {
  background: linear-gradient(90deg, var(--border) 25%, var(--border-soft) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 3.6s ease-in-out infinite;
  border-radius: 8px;
  opacity: 0.65;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50%      { background-position: -200% 0; }
}

/* ── 9. How-we-work ─────────────────────────────────────────── */
.how-we-work { background: var(--bg); }

/* Counter stats — full specificity to win over style.css */
.counters .counter .hww-stat-value {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  display: inline-flex;
  align-items: flex-end;  /* bottom-align number and suffix */
  gap: 0.1em;
}

.counters .counter .counter-num {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  line-height: 1;
}

.counters .counter .counter-suffix {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  font-size: 0.42em;
  font-weight: 700;
  line-height: 1;
  margin-left: 0;           /* gap on parent handles spacing */
  padding-bottom: 0.12em;   /* nudge up slightly from absolute bottom */
}

.hww-photo-img {
  border-radius: var(--radius-lg);
}

/* ── 10. How-it-works steps ─────────────────────────────────── */
/*
  Scroll reveal: how_it_works.js adds .how-in-view once the section intersects viewport.
*/
#how-it-works .how-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  background: var(--bg);
  padding: var(--space-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Soft top cap whose curve matches card radius (replaces harsh flat border-top) */
#how-it-works .how-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--border);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

/* Before scroll-in: invisible (accent line CSS also waits for .how-in-view). */
#how-it-works:not(.how-in-view) .how-step {
  opacity: 0;
  transform: translateY(20px);
}

/* After scroll-in: staggered fade + slide */
#how-it-works.how-in-view .how-step {
  animation: hiw-step-in 450ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

#how-it-works.how-in-view .how-step:nth-child(1) { animation-delay: 50ms; }
#how-it-works.how-in-view .how-step:nth-child(2) { animation-delay: 350ms; }
#how-it-works.how-in-view .how-step:nth-child(3) { animation-delay: 650ms; }

@keyframes hiw-step-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Green sweep aligns with same curved strip as ::before */
#how-it-works .how-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 2;
}

/* Animate bar when step is active — 'both' fill keeps it hidden during delay, visible after */
#how-it-works .how-step.active::after {
  animation: hiw-bar-fill 3500ms linear both;
}

@keyframes hiw-bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Active step: accent background + green number (avoid legacy flat border-top-color from style.css). */
#how-it-works .how-step.active {
  background: var(--accent-soft);
  border-color: rgba(118, 185, 0, 0.32);
  transition: background 0.3s ease, border-color var(--dur) var(--ease-out);
}

#how-it-works .how-step.active .how-step-num {
  color: var(--primary);
}

#how-it-works .how-step:hover {
  border-color: rgba(118, 185, 0, 0.26);
  box-shadow: var(--shadow);
}

#how-it-works .how-step:hover::before {
  background: rgba(118, 185, 0, 0.45);
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  #how-it-works:not(.how-in-view) .how-step,
  #how-it-works.how-in-view .how-step {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  #how-it-works .how-step::before,
  #how-it-works .how-step::after {
    display: none;
  }
  #how-it-works .how-step:hover { box-shadow: none; }
}

/* ── 11. Real results ───────────────────────────────────────── */
.real-results { background: var(--bg-warm); }

.result-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.result-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,185,0,0.10), transparent 70%);
  pointer-events: none;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 185, 0, 0.26);
}

.result-stat {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── 12. Blog cards ─────────────────────────────────────────── */
.blog-preview-card {
  border-color: var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.blog-preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(118, 185, 0, 0.30);
}

.blog-tag {
  background: var(--accent-soft);
  border: 1px solid rgba(118, 185, 0, 0.24);
}

/* ── 13. Expertise / Tools section ─────────────────────────── */
.expertise-section {
  background: var(--bg);
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.expertise-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.expertise-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: var(--space-2) 0 var(--space-3);
}

.expertise-sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}

.expertise-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expertise-row-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.expertise-row {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: expertise-scroll var(--row-dur, 60s) linear infinite;
}

.expertise-row:hover { animation-play-state: paused; }

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

.expertise-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  min-width: 88px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  cursor: default;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  border-color: rgba(118,185,0,0.28);
}

/* One tint for outlines + solids: strokes use stroke="currentColor" (inherits `color`);
 * filled glyphs used to use only `fill: var(--text-subtle)`, so outline-only marks (RAD, ASUS…)
 * followed the darker body `currentColor` and looked “full” while flats looked light gray. */
.expertise-card svg {
  width: 32px;
  height: 32px;
  color: var(--text-subtle);
  fill: currentColor;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease-out);
  shape-rendering: geometricPrecision;
}

.expertise-card:hover svg {
  color: var(--primary);
}

/* Seed / Admin custom SVG markup may use brand hex (e.g. APC red) — override so the strip stays one tint */
.expertise-card svg :is(path, circle, rect, ellipse, polygon, polyline)[fill]:not([fill='none']):not([fill='transparent']) {
  fill: currentColor !important;
}
.expertise-card svg :is(path, circle, rect, ellipse, polygon, polyline)[stroke]:not([stroke='none']):not([stroke='transparent']) {
  stroke: currentColor !important;
}
/* Inline palette (narrow — avoid matching fill:none) */
.expertise-card svg [style*='fill:#'],
.expertise-card svg [style*='fill:rgb'],
.expertise-card svg [style*='fill:hsl'] {
  fill: currentColor !important;
}
.expertise-card svg [style*='stroke:#'],
.expertise-card svg [style*='stroke:rgb'],
.expertise-card svg [style*='stroke:hsl'] {
  stroke: currentColor !important;
}

.expertise-card span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .expertise-row { animation: none; }
}

/* ── 13b. Tech strip — monochrome blended (legacy, no longer used on homepage) ── */
.tech-strip {
  background: var(--gradient-cta);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Strip label */
.tech-strip-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.36);
}

/* Remove all pill styling — items are bare logo+text */
.tech-strip-item,
.tech-strip-item[data-brand] {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  gap: 10px;
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.tech-strip-item:hover {
  background: none !important;
  border: none !important;
  opacity: 0.90;
  transform: none !important;
}

/* All SVGs white/monochrome — kill per-brand fills */
.tech-strip-item svg,
.tech-strip-item[data-brand] svg,
.tech-strip-item[data-brand] svg path,
.tech-strip-item[data-brand] svg circle,
.tech-strip-item[data-brand] svg rect,
.tech-strip-item[data-brand] svg polygon {
  fill: #ffffff !important;
  stroke: none !important;
  color: #ffffff !important;
}

/* Items that use stroke-based icons */
.tech-strip-item[data-brand="ssh"] svg path,
.tech-strip-item[data-brand="rest-api"] svg path {
  fill: none !important;
  stroke: #ffffff !important;
}

/* Text label */
.tech-strip-item span {
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── 14. CTA band — premium dark with glow ──────────────────── */
.cta-band {
  background: var(--gradient-cta);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118,185,0,0.70), transparent);
}

.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 600px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(118,185,0,0.32), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-band-h2 {
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.cta-band-inner { gap: var(--space-3); position: relative; z-index: 1; }

/* ── 15. Footer — darker depth ──────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #050A14 0%, #020611 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 16. Problem statement — quote-mark accent ──────────────── */
.problem {
  position: relative;
  background: var(--bg);
}

.problem-inner {
  position: relative;
  padding-top: var(--space-6);
}

.problem-inner::before {
  content: "\201C";
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent-soft);
  opacity: 0.7;
  pointer-events: none;
}

/* ── 17. Headings — slight tracking refinement ──────────────── */
h1, h2 { letter-spacing: -0.025em; }

/* ── 18. Capability category chips ──────────────────────────── */
.cap-category,
.event-type-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(118, 185, 0, 0.22);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

/* ── 19. Reveal on scroll (progressive enhancement) ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual:hover { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
  .hero-visual--embed:hover { transform: none; }
  .tech-strip-track { animation: none !important; }
}

/* ── 20. Service card icon ──────────────────────────────────── */
.service-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-3);
  background: linear-gradient(145deg, #96CC00 0%, #76B900 50%, #4A7500 100%);
  box-shadow:
    inset 0 -3px 6px rgba(74, 117, 0, 0.45),
    0 5px 14px rgba(118, 185, 0, 0.32),
    0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
}

/* ── 21. Chatbot widget ─────────────────────────────────────── */
/* Wrapper must not steal taps on transparent areas — fixed block defaults can
 * span viewport width / tall column and block hero + nav clicks on mobile. */
#sn-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

#sn-chat-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #96CC00 0%, #76B900 60%, #5E9400 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(118, 185, 0, 0.45), 0 1px 4px rgba(0,0,0,0.12);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  pointer-events: auto;
  flex-shrink: 0;
}

#sn-chat-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 24px rgba(118, 185, 0, 0.50), 0 2px 6px rgba(0,0,0,0.14);
}

#sn-chat-toggle .sn-icon-close { display: none; }
#sn-chat-toggle.is-open .sn-icon-chat  { display: none; }
#sn-chat-toggle.is-open .sn-icon-close { display: block; }

#sn-chat-window {
  width: 340px;
  max-height: 480px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 8px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
  transform-origin: bottom right;
}

#sn-chat-window.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#sn-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #4A7500 0%, #76B900 100%);
  color: #fff;
  flex-shrink: 0;
}

#sn-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

#sn-chat-header strong { font-size: 0.9rem; font-weight: 600; line-height: 1.2; }

#sn-chat-status {
  display: block;
  font-size: 0.72rem;
  opacity: 0.82;
  font-weight: 400;
}

#sn-chat-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #BBFF55;
  margin-right: 4px;
  vertical-align: middle;
}

#sn-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--dur-fast);
}
#sn-chat-close:hover { color: #fff; }

#sn-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

#sn-chat-messages::-webkit-scrollbar { width: 4px; }
#sn-chat-messages::-webkit-scrollbar-track { background: transparent; }
#sn-chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sn-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.sn-msg a { color: var(--primary-strong); text-decoration: underline; }

.sn-msg-bot {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--text);
}

.sn-msg-user {
  background: linear-gradient(135deg, #96CC00 0%, #76B900 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.sn-prompt-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.sn-prompt-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sn-prompt-btn {
  background: #fff;
  color: var(--primary-hover);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.84rem;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  max-width: 95%;
}

.sn-prompt-btn:hover {
  background: var(--accent-soft);
}

/* Typing dots */
.sn-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.sn-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-subtle);
  border-radius: 50%;
  animation: sn-dot-bounce 1.2s infinite ease-in-out;
}
.sn-typing span:nth-child(2) { animation-delay: 0.2s; }
.sn-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sn-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-6px); opacity: 1; }
}

#sn-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
  background: var(--bg);
}

#sn-chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--dur-fast);
}
#sn-chat-input:focus { border-color: var(--primary); }

#sn-chat-form button[type="submit"] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
#sn-chat-form button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
}

@media (max-width: 420px) {
  #sn-chat-window { width: calc(100vw - 32px); }
  #sn-chat { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #sn-chat-window { transition: none; }
  .sn-typing span { animation: none; opacity: 0.6; }
}

/* ── 22. Mobile tweaks ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: var(--space-8) 0 var(--space-10); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { transform: none; }
  .hero-visual::before { display: none; }
}

/* ── 23. HWW Terminal panel ─────────────────────────────────── */
.hww-terminal {
  width: 100%;
  border-radius: 10px;
  background: #0f1117;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 12px 40px rgba(0,0,0,0.22);
  overflow: hidden;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.hww-term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #1c1e26;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hww-term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.hww-term-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  margin-right: 31px; /* optical centering accounting for 3 dots */
}

.hww-term-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Each line hidden by default, slides in when parent is .is-visible */
.hww-term-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  transition-delay: var(--d, 0s);
}

.hww-photo.is-visible .hww-term-line {
  opacity: 1;
  transform: translateY(0);
}

.hww-term-blank {
  height: 6px;
}

/* Prompt symbol */
.hww-term-prompt {
  color: #76B900;
  font-weight: 700;
  flex-shrink: 0;
}

/* ✓ OK indicator */
.hww-term-ok {
  color: #28c840;
  font-size: 12px;
}

/* [PASS] badge */
.hww-term-pass {
  color: #28c840;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 52px;
}

/* [FAIL] badge */
.hww-term-fail {
  color: #ff5f57;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 52px;
}

/* Dimmed / secondary text */
.hww-term-dim {
  color: rgba(255,255,255,0.4);
}

/* Test name label */
.hww-term-label {
  color: rgba(255,255,255,0.82);
  flex: 1;
}

/* Millisecond timing */
.hww-term-ms {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Ticket ref e.g. → RTG-1042 */
.hww-term-ref {
  font-size: 11px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Blinking cursor */
.hww-term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #76B900;
  vertical-align: middle;
  opacity: 0;
  animation: none;
}

.hww-photo.is-visible .hww-term-cursor {
  animation: hww-cursor-blink 1s step-end infinite;
  animation-delay: 3.6s;
  animation-fill-mode: both;
}

@keyframes hww-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .hww-term-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hww-terminal .hww-term-cursor {
    animation: hww-cursor-blink 1s step-end infinite !important;
  }
}
