/* ==========================================================================
   TRACIO — Premium Design System v3
   Sapphire signal · Indigo + Cyan + Gold · Enterprise tone
   ========================================================================== */

:root {
  --bg: #0a0f1f;
  --bg-elev: #0f1530;
  --surface: #131a36;
  --surface-2: #1a2347;
  --border: #1f2c4d;
  --border-soft: #1a233f;
  --text: #eef2ff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #22d3ee;        /* Electric cyan — primary signal */
  --accent-deep: #0891b2;   /* Deeper cyan for hover / press */
  --accent-2: #4f7cff;      /* Sapphire blue — secondary highlight */
  --accent-2-deep: #2e5bd9; /* Deeper sapphire */
  --accent-3: #f4b942;      /* Warm gold — tertiary, premium stat */
  --accent-3-deep: #d99815; /* Deeper gold */
  --accent-cyan: #22d3ee;   /* Kept for backwards compatibility */
  --success: #34d399;
  --danger: #f87171;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-amber: 0 10px 28px rgba(34, 211, 238, 0.22);
  --container: 1240px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 50% at 85% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(50% 40% at 0% 20%, rgba(79, 124, 255, 0.06), transparent 60%),
    radial-gradient(40% 30% at 50% 110%, rgba(244, 185, 66, 0.04), transparent 60%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Scroll reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-visual.reveal { transform: translateY(0) scale(0.97); opacity: 0; }
.hero-visual.reveal.is-visible { transform: translateY(0) scale(1); opacity: 1; transition-duration: 0.9s; }
.hero-visual {
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero-visual { animation: none; }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #67e8f9; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 3.5vw + 1rem, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 740px;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #0a0f1f;
  box-shadow: var(--shadow-amber);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #67e8f9;
  color: #0a0f1f;
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow::after { content: "→"; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.announce-msg { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.announce-msg a { color: var(--accent); font-weight: 600; margin-left: 6px; }
.announce-tag {
  display: inline-block;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.announce-contact {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}
.announce-contact a { color: var(--text); }
.announce-contact a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .announce-contact { display: none; }
}

/* Language switcher — compact select for 14 languages */
.lang-switch {
  display: inline-flex;
  align-items: center;
}
.lang-select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 24px 5px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 10px top 50%, right 6px top 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  transition: border-color 0.15s ease;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2); }

/* Partial-translation banner */
.i18n-partial-banner {
  background: rgba(34, 211, 238, 0.08);
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--text);
  font-size: 0.82rem;
  padding: 9px 24px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* RTL adjustments — when document is RTL, flip text-aligned items */
html[dir="rtl"] .announce-inner,
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .btn-arrow::after { content: "←"; }
html[dir="rtl"] .btn-arrow:hover::after { transform: translateX(-4px); }

/* ==========================================================================
   Interactive image enhancements
   ========================================================================== */

/* Industry card images — hover lift + brightness */
.industry-card .industry-img {
  position: relative;
  overflow: hidden;
}
.industry-card .industry-img img {
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), filter 0.35s ease;
}
.industry-card:hover .industry-img img {
  transform: scale(1.06);
  filter: brightness(1.1) saturate(1.15);
}
.industry-card .industry-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(34, 211, 238, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.industry-card:hover .industry-img::after { opacity: 1; }

/* Case study card images — same treatment + a subtle sheen sweep */
.case-img { position: relative; overflow: hidden; }
.case-img img { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.case-card:hover .case-img img { transform: scale(1.05); }
.case-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}
.case-card:hover .case-img::before { transform: translateX(100%); }

/* Analytics visual — pulsing "LIVE" indicator overlay */
.analytics-visual { position: relative; }
.analytics-visual::after {
  content: "● LIVE";
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8, 9, 15, 0.85);
  color: #22c55e;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  animation: livePulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Hero visual — slight float */
.hero-visual {
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Reference cards — coloured "ping" appears on hover */
.refcard { position: relative; overflow: hidden; }
.refcard::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.refcard:hover::before {
  opacity: 1;
  animation: refPing 1.6s ease-out infinite;
}
@keyframes refPing {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
}

/* Tech chips — subtle shimmer on hover */
.tech-chip {
  position: relative;
  overflow: hidden;
}
.tech-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(34, 211, 238, 0.18) 50%, transparent 70%);
  transform: translateX(-150%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.tech-chip:hover::after { transform: translateX(150%); }

/* Spec cards — accent line that grows on hover */
.spec-card { position: relative; }
.spec-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-deep));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.spec-card:hover::before { transform: scaleY(1); }

/* Process steps — number animates colour on hover */
.process-step { transition: border-color 0.2s ease, transform 0.2s ease; }
.process-step:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }
.process-step:hover .num { color: #67e8f9; }
.process-step .num { transition: color 0.2s ease; }

/* Stats — count-up shimmer */
.stats-band .stat-num {
  background: linear-gradient(120deg, var(--accent) 30%, #67e8f9 50%, var(--accent) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: statShimmer 5s linear infinite;
}
@keyframes statShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Article (blog post) layout */
.article {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
}
.article h2 { font-size: 1.5rem; margin: 2.4em 0 0.6em; color: #fff; }
.article h3 { font-size: 1.15rem; margin: 1.8em 0 0.4em; color: #fff; }
.article p { margin: 0 0 1.2em; line-height: 1.75; color: var(--text); font-size: 1.02rem; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 1.4em; }
.article li { margin-bottom: 0.5em; line-height: 1.7; color: var(--text); }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.4em 0;
  color: var(--text);
  font-style: italic;
}
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}
.article-meta {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.article-meta span + span::before { content: " · "; color: var(--muted-2); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: cookieIn 0.3s ease;
}
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px 24px;
  align-items: center;
}
.cookie-text strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.cookie-text span { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.cookie-text a { color: var(--accent); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .cookie-banner-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-end; flex-wrap: wrap; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 19, 0.85);
  border-bottom: 1px solid rgba(31, 42, 68, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }
.brand img {
  height: 30px;
  width: auto;
  display: block;
  max-width: 160px;
}
@media (max-width: 600px) {
  .brand img { height: 26px; max-width: 130px; }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 12px; }

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 span {
  color: var(--accent);
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-size: 0.84rem;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin: 0 auto;
}
.hero-visual svg, .hero-visual img { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 12px; }
  .hero-stat .num { font-size: 1.4rem; }
}

/* ==========================================================================
   Section / cards
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}
.section-head .lead { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(244, 185, 66, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.card h3 { color: #fff; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* ==========================================================================
   Trusted-by strip
   ========================================================================== */
.trusted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 36, 0.5);
}
.trusted-inner {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 40px;
}
.trusted-label {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.trusted-marks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  opacity: 0.7;
}
.trusted-marks .mark {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  filter: grayscale(1);
}
@media (max-width: 980px) {
  .trusted-inner { grid-template-columns: 1fr; gap: 24px; }
  .trusted-label { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 16px 0; text-align: center; }
  .trusted-marks { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ==========================================================================
   Customer reference grid
   ========================================================================== */
.refgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.refcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.refcard:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}
.refcard .ref-vert {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.refcard .ref-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.refcard .ref-use {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 2px 0 0;
}
.refcard .ref-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Capability matrix
   ========================================================================== */
.cap-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.cap-cell {
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.cap-cell:hover { background: var(--surface-2); }
.cap-cell:nth-child(3n) { border-right: 0; }
.cap-cell:nth-last-child(-n+3) { border-bottom: 0; }
.cap-cell .cap-num {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.cap-cell h3 { font-size: 1.1rem; margin: 0 0 8px; color: #fff; }
.cap-cell p { font-size: 0.92rem; margin: 0; line-height: 1.55; }
@media (max-width: 980px) {
  .cap-matrix { grid-template-columns: repeat(2, 1fr); }
  .cap-cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .cap-cell:nth-child(2n) { border-right: 0; }
  .cap-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .cap-cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .cap-matrix { grid-template-columns: 1fr; }
  .cap-cell { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .cap-cell:last-child { border-bottom: 0 !important; }
}

/* ==========================================================================
   Case study card
   ========================================================================== */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
}
.case-img {
  height: 200px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.case-img svg { width: 100%; height: 100%; }
.case-body { padding: 28px; }
.case-body .tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.case-body h3 { font-size: 1.2rem; margin: 8px 0 12px; }
.case-body p { font-size: 0.92rem; margin-bottom: 18px; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.case-metrics .m { text-align: center; }
.case-metrics .m .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: block;
}
.case-metrics .m .lbl {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Spec / showcase card
   ========================================================================== */
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.spec-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-3px);
}
.spec-card .spec-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.spec-card .spec-headline {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.spec-card .spec-headline span { color: var(--accent); }
.spec-card p { font-size: 0.95rem; margin-bottom: 18px; }
.spec-card .spec-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
.spec-card .spec-link::after { content: " →"; transition: margin 0.2s ease; }
.spec-card:hover .spec-link::after { margin-left: 4px; }

/* ==========================================================================
   Location Analytics section
   ========================================================================== */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.analytics-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.analytics-visual svg { width: 100%; height: auto; }
.analytics-pillars {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.pillar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.pillar-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(244, 185, 66, 0.1);
  border: 1px solid rgba(244, 185, 66, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.pillar h3 { font-size: 1.08rem; margin: 0 0 4px; }
.pillar p { font-size: 0.92rem; margin: 0; line-height: 1.55; }
@media (max-width: 860px) {
  .analytics-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Tech portfolio strip
   ========================================================================== */
.tech-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.tech-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tech-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tech-chip .tech-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}
@media (max-width: 860px) { .tech-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tech-strip { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.process-step .num {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.process-step p { font-size: 0.9rem; margin: 0; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-lbl {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.testimonial .quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.5;
  position: absolute;
  top: 30px;
  left: 32px;
}
.testimonial blockquote {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 26px;
  padding-left: 60px;
  font-weight: 500;
}
.testimonial cite {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 60px;
  color: var(--muted);
  font-size: 0.95rem;
}
.testimonial cite strong { color: #fff; font-weight: 600; display: block; }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d97706);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .testimonial { padding: 32px 24px; }
  .testimonial .quote-mark { left: 16px; top: 18px; font-size: 4rem; }
  .testimonial blockquote { padding-left: 0; font-size: 1.1rem; }
  .testimonial cite { padding-left: 0; }
}

/* Testimonial wall */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.testi-card:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-2px); }
.testi-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
}
.testi-card cite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.testi-card cite .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  flex-shrink: 0;
}
.testi-card cite strong { color: #fff; font-weight: 600; display: block; font-size: 0.88rem; }
.testi-card cite span { color: var(--muted); font-size: 0.78rem; }

/* Newsletter signup */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 24px;
}
.newsletter h4 {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: #0a0f1f;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.newsletter-form button:hover { background: #67e8f9; }
.newsletter small { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 8px; }

/* ==========================================================================
   Industry card
   ========================================================================== */
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.industry-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-3px);
}
.industry-card .industry-img {
  height: 160px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-elev));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.industry-card .industry-img svg { width: 100%; height: 100%; display: block; }
.industry-card .industry-body { padding: 24px; }
.industry-card .tag {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.industry-card h3 { font-size: 1.1rem; margin: 8px 0; color: #fff; }
.industry-card p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner .btn { margin-top: 16px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Radio-chip group (for "reason" and "format" selectors) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.chip-group label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip-group input[type="radio"]:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f1f;
  font-weight: 600;
}
.chip-group input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field-section-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 8px; font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: rgba(34, 197, 94, 0.1); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }
.form-status.error { display: block; background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   Lists
   ========================================================================== */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 14px; color: var(--text); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ==========================================================================
   Insights / Blog
   ========================================================================== */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.post-card .tag { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.post-card h3 { margin: 0; color: #fff; }
.post-card .meta { font-size: 0.82rem; color: var(--muted); margin-top: auto; }

/* ==========================================================================
   Page banner
   ========================================================================== */
.page-banner { padding: 80px 0 50px; text-align: center; }
.page-banner h1 { margin-bottom: 14px; }
.page-banner .lead { margin: 0 auto; }

/* ==========================================================================
   ROI calculator
   ========================================================================== */
.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 980px) { .roi-grid { grid-template-columns: 1fr; } }

.roi-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.roi-form .field { margin-bottom: 22px; }
.roi-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.roi-input-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  outline: none;
  margin-top: 8px;
}
.roi-input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-amber);
}
.roi-input-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 0;
}
.roi-input-row .roi-value {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  min-width: 100px;
  text-align: right;
}

.roi-results {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 24px;
}
.roi-results h3 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.roi-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.roi-result-row:last-child { border-bottom: 0; }
.roi-result-lbl {
  font-size: 0.9rem;
  color: var(--muted);
}
.roi-result-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.roi-result-val.large { font-size: 2.4rem; }
.roi-result-val.muted { color: #fff; font-size: 1.2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Positioning banner — "what we do vs what we don't"
   ========================================================================== */
.positioning-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(34, 197, 94, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.positioning-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, #22c55e));
}
.positioning-banner-inner { display: grid; gap: 28px; }
.positioning-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 820px) {
  .positioning-banner { padding: 28px 22px; }
  .positioning-banner-grid { grid-template-columns: 1fr; gap: 22px; }
}
.pb-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pb-tag-no { background: rgba(239, 68, 68, 0.12); color: var(--danger, #ef4444); border: 1px solid rgba(239, 68, 68, 0.25); }
.pb-tag-yes { background: rgba(34, 197, 94, 0.12); color: var(--success, #22c55e); border: 1px solid rgba(34, 197, 94, 0.25); }

/* Check-list cross variant (red x for "what we don't do") */
.check-list-cross li::before {
  content: "×";
  background: rgba(239, 68, 68, 0.18);
  color: var(--danger, #ef4444);
  font-size: 1rem;
  font-weight: 800;
}

/* Deliverable callout on cards */
.card-deliv {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}
.card-deliv strong { color: var(--accent); font-weight: 700; letter-spacing: 0.02em; }

/* ==========================================================================
   Hover lift utility — applied generically to clickable surfaces
   ========================================================================== */
.card, .industry-card, .case-card, .spec-card, .testi-card, .refcard, .cap-cell, .post-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .industry-card:hover, .case-card:hover, .spec-card:hover, .testi-card:hover, .refcard:hover, .cap-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.45);
  border-color: rgba(34, 211, 238, 0.45);
}

/* Subtle gradient sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ==========================================================================
   Engagement model cards — refined look
   ========================================================================== */
.engagement-grid .card { position: relative; padding-top: 28px; }

/* Whitepaper deep-content callouts */
.wp-example {
  background: rgba(34, 211, 238, 0.04);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 18px 0;
  border-radius: 4px;
}
.wp-example .wp-example-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.wp-example p { margin: 0; color: var(--text); }
.wp-example p + p { margin-top: 10px; }

/* Glossary refinements */
.glossary-term {
  border-left: 2px solid var(--border);
  padding-left: 18px;
  margin-bottom: 24px;
  transition: border-color .2s ease;
}
.glossary-term:hover { border-left-color: var(--accent); }
.glossary-term h3 { margin: 0 0 6px; color: #fff; font-size: 1.05rem; }
.glossary-term .glossary-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.glossary-term p { margin: 6px 0 0; color: var(--text); }
.glossary-term .glossary-related { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.glossary-term .glossary-related a { color: var(--accent); }

/* ==========================================================================
   Floor-plan demo (interactive RTLS visualisation)
   ========================================================================== */
.fp-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.fp-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0;
  min-height: 540px;
}
@media (max-width: 980px) {
  .fp-grid { grid-template-columns: 1fr; }
  .fp-canvas-wrap { min-height: 420px; }
}
.fp-canvas-wrap {
  background: linear-gradient(135deg, #0a0f1f, #0e1530);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--border);
}
@media (max-width: 980px) {
  .fp-canvas-wrap { border-right: none; border-bottom: 1px solid var(--border); }
}
.fp-canvas-wrap svg { width: 100%; height: auto; max-height: 560px; }
.fp-side { display: flex; flex-direction: column; background: var(--bg-elev); }
.fp-controls { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.fp-controls h3 {
  font-size: 1.02rem; margin: 0 0 14px; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.fp-pulse {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: fpPulse 1.6s ease-out infinite;
}
@keyframes fpPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.fp-control-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.fp-btn {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 14px; cursor: pointer;
  font-family: inherit; font-size: 0.84rem; font-weight: 500;
  transition: all 0.15s ease;
}
.fp-btn:hover { border-color: var(--accent); color: var(--accent); }
.fp-btn.active { background: var(--accent); color: #0a0f1f; border-color: var(--accent); font-weight: 700; }
.fp-btn[aria-pressed="true"] { background: rgba(34, 211, 238, 0.15); border-color: var(--accent); color: var(--accent); }
.fp-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-right: 6px; }
.fp-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.fp-stat { background: var(--surface); border-radius: 8px; padding: 10px 14px; }
.fp-stat-lbl { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.fp-stat-val { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-top: 3px; }
.fp-events { flex: 1; overflow-y: auto; padding: 12px 22px 22px; max-height: 280px; }
.fp-events-title { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 6px 0 12px; }
.fp-event {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 0.78rem; color: var(--muted); line-height: 1.5;
  margin-bottom: 7px; opacity: 0;
  animation: fpEventIn 0.35s ease-out forwards;
  border-left: 2px solid var(--border); padding-left: 10px;
}
.fp-event.is-zone    { border-left-color: var(--accent); }
.fp-event.is-dwell   { border-left-color: var(--accent-3); }
.fp-event.is-derived { border-left-color: var(--accent-2); }
.fp-event-ts  { color: var(--muted-2); }
.fp-event-val { color: var(--text); }
@keyframes fpEventIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fp-legend {
  display: flex; gap: 22px; flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--border);
}
.fp-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.fp-swatch { width: 14px; height: 14px; border-radius: 3px; }

/* ==========================================================================
   Final polish: smooth scroll, headline reveal, glow accents
   ========================================================================== */
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

/* Subtle accent underline animation on H2 in section heads */
.section-head h2 {
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 3px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1) .15s;
}
.section-head.is-visible h2::after,
.section-head h2.is-visible::after { transform: translateX(-50%) scaleX(1); }

/* Heading entrance — fade-up for h1 in hero/page-banner */
.hero h1, .page-banner h1 {
  animation: heroFadeUp 0.8s cubic-bezier(.2,.7,.2,1) both;
}
.hero p.lead, .page-banner p.lead {
  animation: heroFadeUp 0.8s cubic-bezier(.2,.7,.2,1) .12s both;
}
.hero .eyebrow, .page-banner .eyebrow {
  animation: heroFadeIn 0.6s ease-out both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .page-banner h1, .hero p.lead, .page-banner p.lead, .hero .eyebrow, .page-banner .eyebrow {
    animation: none;
  }
}

/* Hero atmosphere — gentle ambient glow */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes heroDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-40px, 30px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* Capability cells — accent number on hover */
.cap-cell .cap-num { transition: color .25s ease, letter-spacing .25s ease; }
.cap-cell:hover .cap-num { color: var(--accent); letter-spacing: 0.22em; }

/* Eyebrow refinement */
.eyebrow {
  display: inline-block;
  padding-left: 14px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* Form fields — subtle focus glow */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  border-color: var(--accent) !important;
}

/* Animated link arrows */
.btn-arrow::after { transition: transform .25s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Quiet table-of-contents anchor offset for sticky nav */
:target { scroll-margin-top: 100px; }

/* ==========================================================================
   Architecture stack interactive
   Replaces /img/architecture-stack.svg with a clickable 5-layer accordion.
   ========================================================================== */
.arch-stack {
  display: block;
  width: 100%;
  font-size: 0.95rem;
}
.arch-stack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.arch-stack-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.arch-stack-hint {
  font-size: 0.78rem;
  color: var(--muted-2);
}
.arch-stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arch-layer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.arch-layer:hover {
  border-color: var(--accent-2);
}
.arch-layer.is-open {
  border-left-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 8px 28px rgba(0, 0, 0, 0.35);
}
.arch-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  min-height: 92px;
  font: inherit;
}
.arch-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.arch-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-2-deep));
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}
.arch-layer.is-open .arch-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.35);
}
.arch-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.arch-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.arch-tag {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.arch-caret {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease;
}
.arch-layer.is-open .arch-caret {
  transform: rotate(90deg);
  color: var(--accent);
}
.arch-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.arch-body-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  padding: 4px 20px 20px 20px;
  border-top: 1px dashed var(--border);
  margin-top: 0;
}
.arch-col { min-width: 0; }
.arch-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 8px;
}
.arch-pre {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}
.arch-pre .ak-k { color: var(--accent); }
.arch-pre .ak-s { color: #fcd34d; }
.arch-pre .ak-n { color: #67e8f9; }
.arch-pre .ak-b { color: var(--accent-2); }
.arch-meta-block { margin-bottom: 4px; }
.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.arch-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.4;
}
.arch-integration {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .arch-body-inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .arch-head { padding: 14px 14px; gap: 12px; min-height: 84px; }
  .arch-badge { width: 38px; height: 38px; font-size: 0.82rem; }
  .arch-title { font-size: 0.96rem; }
  .arch-tag { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .arch-layer, .arch-body, .arch-caret { transition: none; }
}

