/* =========================================================
   AIO Systems — Modern Tech Redesign
   ========================================================= */

:root {
  /* Core palette */
  --bg: #0a0d12;
  --bg-elevated: #11151c;
  --surface: #161b24;
  --surface-2: #1c2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f5f6f8;
  --text-muted: #9aa3b2;
  --text-dim: #6b7384;

  /* Accents */
  --accent: #ffffff;
  --brand: #728e7f;
  --brand-soft: #8ea99c;
  --brand-deep: #4f6d5e;
  --signal: #6ea8ff;
  --signal-2: #8d7bff;
  --warm: #e9c79b;
  --mint: #8fdcc4;

  /* Card tints */
  --tint-blue:    linear-gradient(155deg, #cfd8eb 0%, #aebdd6 100%);
  --tint-violet:  linear-gradient(155deg, #cdc6e6 0%, #b3a8d8 100%);
  --tint-mist:    linear-gradient(155deg, #d6d9de 0%, #bfc4cc 100%);
  --tint-cobalt:  linear-gradient(155deg, #b9c4e0 0%, #6a7bb0 100%);
  --tint-sand:    linear-gradient(155deg, #ecdcb6 0%, #d6c08e 100%);
  --tint-slate:   linear-gradient(155deg, #cbd1da 0%, #a1aab8 100%);
  --tint-butter:  linear-gradient(155deg, #f0e3b0 0%, #d9c478 100%);
  --tint-deep:    linear-gradient(155deg, #b3b9d8 0%, #4a4f7a 100%);

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Type */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Geist', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Glassmorphism foundation — fixed background photo with dark overlay,
   all major surfaces use frosted-glass cards layered on top. */
body {
  background:
    /* dark wash so text stays legible on top */
    linear-gradient(180deg, rgba(8, 11, 16, 0.78) 0%, rgba(8, 11, 16, 0.88) 100%),
    /* sage tint */
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(114, 142, 127, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 90%, rgba(79, 109, 94, 0.18) 0%, transparent 60%),
    /* the relevant photo: night earth showing global telecom infrastructure */
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=2400&q=80') center / cover fixed,
    #0a0d12;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 28px;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
    gap: 16px;
}
.testimonial {
    position: relative;
    margin-top: 0px;
    border-radius: var(--r-lg);
    padding: 48px;
    background: radial-gradient(80% 60% at 20% 20%, rgba(114, 142, 127, 0.22) 0%, transparent 60%), radial-gradient(60% 80% at 90% 80%, rgba(233, 199, 155, 0.12) 0%, transparent 65%), linear-gradient(135deg, rgb(19, 24, 38) 0%, rgb(26, 31, 46) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
}

.testimonial {
    background-image: radial-gradient(80% 60% at 20% 20%, rgba(114, 142, 127, 0.22) 0%, transparent 60%), radial-gradient(60% 80% at 90% 80%, rgba(233, 199, 155, 0.1) 0%, transparent 65%);
}

.testimonial-quote {
    width: 40px;
    height: 40px;
    color: rgba(114, 142, 127, 0.45);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial::before {
    content: "";
    position: absolute;
    background-image: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>);
    opacity: 0.3;
    mix-blend-mode: overlay;
    pointer-events: none;
    inset: 0px;
}

.testimonial blockquote {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 24px !important;
    line-height: 1.45;
    letter-spacing: -0.01em;
    font-weight: 500;
    color: var(--text);
    margin: 0px 0px 8px;
    text-wrap: pretty;
}
/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(1240px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 22px;
  background: rgba(14, 17, 23, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .3s, border-color .3s;
}
.nav-inner.scrolled {
  background: rgba(10, 13, 18, 0.92);
  border-color: var(--border-strong);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo {
  height: 40px;
  margin-bottom: 8px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6ea8ff 0%, #8d7bff 50%, #2b3142 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 4px 14px rgba(110,168,255,0.35);
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 0%, transparent 55%);
  mix-blend-mode: overlay;
}
.brand-name { font-family: var(--font-display); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(114, 142, 127, 0.45); background: var(--brand-soft); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-wrap {
  padding: 110px 0 80px;
}
.hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(114, 142, 127, 0.55) 0%, rgba(114, 142, 127, 0) 60%),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(79, 109, 94, 0.50) 0%, rgba(79, 109, 94, 0) 65%),
    radial-gradient(ellipse 60% 50% at 60% 30%, rgba(142, 169, 156, 0.30) 0%, rgba(142, 169, 156, 0) 60%),
    linear-gradient(135deg, #0e131c 0%, #161e1b 60%, #1f2a26 100%);
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 64px 68px;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 110%, rgba(0,0,0,0.5) 0%, transparent 50%);
  z-index: 1;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* Video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* fade-in once loaded so the gradient bg shows during load / on failure */
  opacity: 0;
  transition: opacity .8s ease-out;
}
.hero-video.is-ready { opacity: 1; }
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,13,18,0.78) 0%, rgba(10,13,18,0.55) 40%, rgba(10,13,18,0.35) 75%, rgba(10,13,18,0.55) 100%),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(114, 142, 127, 0.28) 0%, rgba(114, 142, 127, 0) 60%),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(141, 123, 255, 0.22) 0%, rgba(141, 123, 255, 0) 65%),
    linear-gradient(180deg, transparent 60%, rgba(10,13,18,0.85) 100%);
  pointer-events: none;
}
/* When video is present, hide the sculpture so the footage is the focal point */
.hero-has-video .hero-sculpture { display: none; }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-content { position: relative; z-index: 3; max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(114, 142, 127, 0.35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-soft);
  background: rgba(114, 142, 127, 0.12);
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--brand-soft) 0%, var(--brand-deep) 100%);
  box-shadow: 0 0 12px rgba(114, 142, 127, 0.6);
  position: relative;
}
.eyebrow-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(114, 142, 127, 0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  font-weight: 600;
}
.hero h1 .grad {
  background: linear-gradient(180deg, #ffffff 0%, #b8c0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(114, 142, 127, 0.45); background: var(--brand-soft); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.btn-ghost-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 3D glass sculpture */
.hero-sculpture {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  z-index: 2;
  pointer-events: none;
}
.hero-sculpture svg { width: 100%; height: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5)); }

.hero-meta {
  position: absolute;
  bottom: 32px; left: 68px;
  display: flex;
  gap: 36px;
  z-index: 3;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-meta strong { color: var(--text); font-weight: 600; }

/* =========================================================
   CARDS GRID
   ========================================================= */
.section { padding: 60px 0; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 700px;
}
.section-title .muted { color: var(--text-dim); }
.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--brand);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 24px;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.25;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}
.card-icon {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  margin-bottom: auto;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.35));
}
.card-body { position: relative; z-index: 2; margin-top: 32px; }
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0e1219;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(14, 18, 25, 0.65);
  margin: 0;
}

/* Card tints */
.card.tint-blue   { background: var(--tint-blue); }
.card.tint-violet { background: var(--tint-violet); }
.card.tint-mist   { background: var(--tint-mist); }
.card.tint-cobalt { background: var(--tint-cobalt); }
.card.tint-sand   { background: var(--tint-sand); }
.card.tint-slate  { background: var(--tint-slate); }
.card.tint-butter { background: var(--tint-butter); }
.card.tint-deep   { background: var(--tint-deep); }
.card.tint-sage   { background: linear-gradient(155deg, #b3c6bb 0%, #728e7f 100%); }
.card.tint-cobalt .card-title,
.card.tint-deep .card-title,
.card.tint-sage .card-title { color: #f5f6f8; }
.card.tint-cobalt .card-desc,
.card.tint-deep .card-desc,
.card.tint-sage .card-desc { color: rgba(245, 246, 248, 0.75); }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-elevated);
  padding: 36px 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num .unit { font-size: 24px; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* =========================================================
   PLATFORM SHOWCASE
   ========================================================= */
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.showcase-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.showcase-text::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 142, 127, 0.22) 0%, transparent 70%);
}
.showcase-visual {
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(114, 142, 127, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(141, 123, 255, 0.30) 0%, transparent 50%),
    linear-gradient(135deg, #131826 0%, #1d2336 100%);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CMS video — fills the showcase visual */
.cms-video {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: rgba(10, 13, 18, 0.85);
  display: block;
  object-fit: cover;
}

/* CMS Dashboard mock */
.dashboard-mock {
  width: 100%;
  background: rgba(10, 13, 18, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dash-dot { width: 8px; height: 8px; border-radius: 999px; background: #2a3142; }
.dash-dot.r { background: #e16a6a; }
.dash-dot.y { background: #e9c79b; }
.dash-dot.g { background: #8fdcc4; }
.dash-title {
  margin-left: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.dash-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.dash-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.dash-card-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.dash-card-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dash-card-trend {
  font-size: 10px;
  color: var(--brand-soft);
  margin-top: 4px;
  font-family: var(--font-mono);
}
.dash-chart {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  min-height: 120px;
  position: relative;
}
.dash-chart-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.dash-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
}
.dash-row-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--brand-soft);
  box-shadow: 0 0 8px var(--brand-soft);
}
.dash-row-dot.warn { background: #e9c79b; box-shadow: 0 0 8px #e9c79b; }
.dash-row-dot.err { background: #e16a6a; box-shadow: 0 0 8px #e16a6a; }
.dash-row-name { font-family: var(--font-mono); color: var(--text); }
.dash-row-meta { font-family: var(--font-mono); color: var(--text-dim); font-size: 10px; }
.dash-row-val { font-family: var(--font-mono); color: var(--text-muted); font-size: 10px; }

.showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 20px;
}
.showcase p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.bullet-list li:first-child { border-top: 0; padding-top: 0; }
.bullet-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(114, 142, 127, 0.18);
  border: 1px solid rgba(114, 142, 127, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--brand-soft);
}
.bullet-icon svg { width: 14px; height: 14px; }
.bullet-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.bullet-text span { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* =========================================================
   MOBILE SHOWCASE
   ========================================================= */
.mobile-showcase { grid-template-columns: 1fr 1.1fr; }
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.phone {
  width: 240px;
  height: 480px;
  background: #0a0d12;
  border-radius: 32px;
  border: 1px solid var(--border-strong);
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  background: #1a1f2e;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #11151c 0%, #0a0d12 100%);
  overflow: hidden;
  position: relative;
  padding: 36px 16px 16px;
}
.phone-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.phone-screen-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.phone-screen-sub {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.phone-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}
.phone-tile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.phone-tile-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.phone-tile-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.phone-tile-val .u { font-size: 11px; color: var(--text-dim); }
.phone-bar {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  height: 28px;
  align-items: flex-end;
}
.phone-bar span {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand-deep));
  border-radius: 2px;
  opacity: 0.9;
}

/* second offset phone */
.phone-2 {
  width: 200px;
  height: 400px;
  margin-top: 40px;
  opacity: 0.7;
  transform: rotate(4deg);
}
.phone-2 .phone-screen { padding-top: 32px; }
.phone-2 .phone-tile-val { font-size: 14px; }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.industry {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform .3s, border-color .3s;
}
.industry:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.industry-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.industry-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,13,18,0.85) 75%, var(--bg-elevated) 100%);
}
.industry-num {
  position: absolute;
  top: 20px; left: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-soft);
  letter-spacing: 0.1em;
}
.industry-content {
  position: relative;
  z-index: 2;
}
.industry h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.industry p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   TEAM HERO — single composite photo
   ========================================================= */
.team-hero {
  margin-top: 12px;
  margin-bottom: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  position: relative;
  isolation: isolate;
}
.team-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(114, 142, 127, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 70%, rgba(114, 142, 127, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.team-hero img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}
.team-hero .team-hero-light { display: none; }
html[data-theme="light"] .team-hero .team-hero-dark { display: none; }
html[data-theme="light"] .team-hero .team-hero-light { display: block; }
/* Light-mode team frame: brighten the wrapper to match the new photo's white background */
html[data-theme="light"] .team-hero {
  background: #ffffff;
}

/* =========================================================
   TEAM GRID — editorial, Plaid-style
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.team-card--top    { grid-column: span 4; }
.team-card--bottom { grid-column: span 4; }
.team-card {
  display: flex;
  flex-direction: column;
  background: #e3e1e2;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  position: relative;
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.team-card.is-active {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}
.team-photo {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: inherit;
  overflow: hidden;
  isolation: isolate;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  background: transparent;
}
.team-card:hover .team-photo img,
.team-card.is-active .team-photo img {
  transform: scale(1.03);
}
.team-card:hover .team-photo img,
.team-card.is-active .team-photo img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}
.team-bar {
  background: #11161f;
  color: #f5f6f8;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-bar strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.team-bar span {
  font-size: 10px;
  color: rgba(245, 246, 248, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Detail panel — spans full row */
.team-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2.2fr;
  background: #e3e1e2;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease, margin .35s ease;
  margin: 0;
}
.team-detail.is-open {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
  margin: 6px 0;
}
.team-detail-photo {
  background: inherit;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.team-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: transparent;
}
.team-detail-info {
  padding: 32px 36px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1f242f;
}
.team-detail-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #1f242f;
}
.team-detail-info p {
  font-size: 14px;
  line-height: 1.55;
  color: #4a5161;
  margin: 0 0 20px;
  max-width: 520px;
}
.team-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: color .2s;
}
.team-detail-link:hover { color: var(--brand); }
.team-detail-close {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #11161f;
  color: #f5f6f8;
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.team-detail-close:hover { background: #1f2740; }

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(15, 1fr); }
  .team-card--top { grid-column: span 3; }
  .team-card--bottom { grid-column: span 3; }
  .team-detail { grid-template-columns: 1fr 1.6fr; }
  .team-detail-info { padding: 28px 28px 76px; }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .team-card--top, .team-card--bottom { grid-column: span 1; }
  .team-detail { grid-template-columns: 1fr; }
  .team-detail.is-open { max-height: 900px; }
  .team-detail-info { padding: 28px 24px 76px; }
  .team-bar { padding: 12px 14px; }
  .team-bar strong { font-size: 13px; }
}

/* Avatar photo variant in testimonial */
.testimonial-avatar-photo {
  overflow: hidden;
  padding: 0;
}
.testimonial-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 999px;
}

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.testimonial {
  position: relative;
  border-radius: var(--r-lg);
  padding: 64px 72px;
  margin-top: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(114, 142, 127, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(233, 199, 155, 0.12) 0%, transparent 65%),
    linear-gradient(135deg, #131826 0%, #1a1f2e 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.testimonial::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.testimonial-quote {
  width: 56px; height: 56px;
  color: rgba(114, 142, 127, 0.45);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text);
  max-width: 880px;
  text-wrap: pretty;
}
.testimonial-author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 8px 20px rgba(114, 142, 127, 0.35);
}
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-meta strong {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.testimonial-meta span {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .testimonial { padding: 40px 28px; }
}

/* Industry photo variant */
.industry-photo { padding: 0; }
.industry-photo .industry-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s;
  filter: saturate(1.25) contrast(1.08) brightness(0.92);
}
.industry-photo::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,13,18,0.0) 25%, rgba(10,13,18,0.55) 65%, rgba(10,13,18,0.95) 100%),
    linear-gradient(135deg, rgba(114, 142, 127, 0.22) 0%, transparent 50%),
    linear-gradient(90deg, rgba(10,13,18,0.30) 0%, transparent 40%);
  pointer-events: none;
}
.industry-photo:hover .industry-img {
  transform: scale(1.06);
  filter: saturate(1.4) contrast(1.1) brightness(1);
}
.industry-photo .industry-num,
.industry-photo .industry-content {
  position: absolute;
  z-index: 2;
}
.industry-photo .industry-num { top: 20px; left: 24px; }
.industry-photo .industry-content { bottom: 24px; left: 24px; right: 24px; }

/* =========================================================
   CTA
   ========================================================= */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 80px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(114, 142, 127, 0.38) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(141, 123, 255, 0.32) 0%, transparent 65%),
    linear-gradient(135deg, #0e131c 0%, #1a1f2e 100%);
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.3;
  mix-blend-mode: overlay;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 20px;
}
.cta-band p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 36px;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 24px;
  max-width: 320px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-contact a:hover { color: var(--brand-soft); }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.footer-socials a:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.footer-socials svg { width: 14px; height: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .showcase, .mobile-showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero { padding: 56px 40px; min-height: 540px; }
  .hero-sculpture { width: 460px; height: 460px; right: -80px; opacity: 0.85; }
  .hero-meta { left: 40px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px 14px; }
  .hero { padding: 80px 28px 40px; min-height: auto; }
  .hero-sculpture { position: relative; top: auto; right: auto; transform: none; width: 280px; height: 280px; margin: 0 auto -40px; }
  .hero-content { text-align: left; }
  .hero-meta { position: relative; bottom: auto; left: auto; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .showcase-text { padding: 32px; }
  .cta-band { padding: 60px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .hero-wrap { padding: 90px 0 40px; }
  .phone-2 { display: none; }
}


/* =========================================================
   GLASSMORPHISM OVERRIDES — frosted-glass treatment for surfaces
   ========================================================= */

/* Shared glass recipe */
.stats-strip,
.showcase-text,
.showcase-visual,
.testimonial,
.team-hero,
.cta-band,
.section-tag,
.eyebrow {
  background-color: rgba(20, 26, 36, 0.45) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 60px rgba(0, 0, 0, 0.4);
}

/* Keep section-tag inline-flex feel — it's small, just gets a soft tint */
.section-tag {
  background-color: rgba(114, 142, 127, 0.12) !important;
  border-color: rgba(114, 142, 127, 0.28);
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

/* Re-layer showcase backgrounds: keep their accent glow on TOP of the glass */
.showcase-text {
  background-image:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(114, 142, 127, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(141, 123, 255, 0.10) 0%, transparent 65%);
}
.showcase-visual {
  background-image:
    radial-gradient(ellipse at 30% 30%, rgba(114, 142, 127, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(141, 123, 255, 0.22) 0%, transparent 50%);
}
.testimonial {
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(114, 142, 127, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(233, 199, 155, 0.10) 0%, transparent 65%);
}
.cta-band {
  background-image:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(114, 142, 127, 0.32) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(141, 123, 255, 0.22) 0%, transparent 65%);
}
.team-hero {
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(114, 142, 127, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 70%, rgba(114, 142, 127, 0.10) 0%, transparent 65%);
}

/* Stats: each cell becomes glass, divider becomes a hairline highlight */
.stats-strip {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  box-shadow: none;
  gap: 1px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.08), rgba(255,255,255,0.08));
}
.stat {
  background: rgba(20, 26, 36, 0.50) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* Industry photo cards: glass label strip at the bottom */
.industry {
  background: rgba(20, 26, 36, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.industry-photo::after {
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0) 30%, rgba(8, 11, 16, 0.55) 65%, rgba(20, 26, 36, 0.92) 100%),
    linear-gradient(135deg, rgba(114, 142, 127, 0.22) 0%, transparent 50%);
}
.industry-content {
  padding: 14px 16px;
  margin: 0 -10px -10px;
  border-radius: 14px;
  background: rgba(20, 26, 36, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Feature card grid: keep pastel cards solid (they're meant to be the colorful focal point),
   but add a subtle reflective top edge */
.card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 40px rgba(0, 0, 0, 0.35);
}

/* Footer: glass top edge */
html:not([data-theme="light"]) footer {
  background: rgba(10, 13, 18, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 80px;
  padding-top: 80px;
}

/* Nav already has glass — tighten it */
.nav-inner {
  background: rgba(14, 17, 23, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 32px rgba(0, 0, 0, 0.4);
}
.nav-inner.scrolled {
  background: rgba(10, 13, 18, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.16);
}

/* Hero already uses a video — make it feel glassy by adding inner highlight */
.hero {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   LIGHT THEME — very glassy, photographic background
   Activated by [data-theme="light"] on <html>
   ========================================================= */

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --border: rgba(20, 26, 36, 0.10);
  --border-strong: rgba(20, 26, 36, 0.18);

  --text: #14181f;
  --text-muted: #4a5161;
  --text-dim: #6b7384;

  --accent: #14181f;
}

html[data-theme="light"] body {
  background:
    /* much whiter wash */
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.88) 100%),
    /* subtle sage tint */
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(114, 142, 127, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 90%, rgba(142, 169, 156, 0.12) 0%, transparent 60%),
    /* bright airy clouds from above */
    url('https://images.unsplash.com/photo-1505533321630-975218a5f66f?auto=format&fit=crop&w=2400&q=80') center / cover fixed,
    #ffffff;
  color: var(--text);
}

/* Surfaces — glassy translucent white */
html[data-theme="light"] .stats-strip,
html[data-theme="light"] .showcase-text,
html[data-theme="light"] .showcase-visual,
html[data-theme="light"] .testimonial,
html[data-theme="light"] .team-hero,
html[data-theme="light"] .cta-band {
  background-color: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 50px rgba(20, 26, 36, 0.12);
}

html[data-theme="light"] .stats-strip {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background-image: linear-gradient(to right, rgba(20, 26, 36, 0.08), rgba(20, 26, 36, 0.08));
}
html[data-theme="light"] .stat {
  background: rgba(255, 255, 255, 0.48) !important;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
html[data-theme="light"] .stat-label { color: var(--text-muted); }
html[data-theme="light"] .stat-num {
  background: linear-gradient(180deg, #14181f 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
html[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 28px rgba(20, 26, 36, 0.08);
}
html[data-theme="light"] .nav-inner.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
}
html[data-theme="light"] .nav-links a { color: var(--text-muted); }
html[data-theme="light"] .nav-links a:hover { color: var(--text); background: rgba(20, 26, 36, 0.05); }
html[data-theme="light"] .nav-links a.active { color: var(--text); }
html[data-theme="light"] .nav-menu-btn { background: rgba(20, 26, 36, 0.06); color: var(--text); }

/* Hero text on glassy plate */
html[data-theme="light"] .hero {
  border: 1px solid rgba(255, 255, 255, 0.4);
}
html[data-theme="light"] .hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(244, 241, 234, 0.55) 0%, rgba(244, 241, 234, 0.30) 40%, rgba(244, 241, 234, 0.15) 75%, rgba(244, 241, 234, 0.30) 100%),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(114, 142, 127, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, transparent 60%, rgba(244, 241, 234, 0.55) 100%);
}
html[data-theme="light"] .hero h1 .grad {
  background: linear-gradient(180deg, #14181f 0%, #4a5161 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero p.lede { color: #2a3142; }
html[data-theme="light"] .btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(20, 26, 36, 0.12);
  color: var(--text);
}
html[data-theme="light"] .btn-ghost:hover { background: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .btn-ghost-icon { border-color: rgba(20, 26, 36, 0.25); }
html[data-theme="light"] .hero-meta { color: var(--text-muted); }
html[data-theme="light"] .hero-meta strong { color: var(--text); }
html[data-theme="light"] .eyebrow {
  background: rgba(114, 142, 127, 0.18) !important;
  border-color: rgba(114, 142, 127, 0.45);
  color: var(--brand-deep);
  box-shadow: none !important;
}

/* Section copy */
html[data-theme="light"] .section-title { color: var(--text); }
html[data-theme="light"] .section-title .muted { color: var(--text-dim); }
html[data-theme="light"] .section-sub { color: var(--text-muted); }
html[data-theme="light"] .section-tag {
  background-color: rgba(114, 142, 127, 0.16) !important;
  border-color: rgba(114, 142, 127, 0.36);
  color: var(--brand-deep);
}

/* Showcase text panel */
html[data-theme="light"] .showcase-text h2 { color: var(--text); }
html[data-theme="light"] .showcase-text p { color: var(--text-muted); }
html[data-theme="light"] .bullet-list li {
  border-color: rgba(20, 26, 36, 0.10);
  color: var(--text);
}
html[data-theme="light"] .bullet-text span { color: var(--text-muted); }
html[data-theme="light"] .bullet-icon {
  background: rgba(114, 142, 127, 0.18);
  border-color: rgba(114, 142, 127, 0.40);
  color: var(--brand-deep);
}

/* Industry cards: keep dark gradient overlay so photos read,
   but lighten the floating label strip */
html[data-theme="light"] .industry {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
}
html[data-theme="light"] .industry-content {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text);
}
html[data-theme="light"] .industry h3 { color: var(--text); }
html[data-theme="light"] .industry p { color: var(--text-muted); }
html[data-theme="light"] .industry-num { color: var(--brand-deep); }

/* Testimonial */
html[data-theme="light"] .testimonial blockquote { color: var(--text); }
html[data-theme="light"] .testimonial-quote { color: rgba(114, 142, 127, 0.45); }
html[data-theme="light"] .testimonial-meta strong { color: var(--text); }
html[data-theme="light"] .testimonial-meta span { color: var(--text-muted); }

/* CTA band */
html[data-theme="light"] .cta-band h2 { color: var(--text); }
html[data-theme="light"] .cta-band p { color: var(--text-muted); }

/* Footer */
html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid rgba(20, 26, 36, 0.10);
  margin-top: 80px;
  padding-top: 80px;
}
html[data-theme="light"] .footer-brand p { color: var(--text-muted); }
html[data-theme="light"] .footer-contact { color: var(--text-muted); }
html[data-theme="light"] .footer-col h4 { color: var(--text-dim); }
html[data-theme="light"] .footer-col a { color: var(--text-muted); }
html[data-theme="light"] .footer-col a:hover { color: var(--brand-deep); }
html[data-theme="light"] .footer-bottom { color: var(--text-dim); border-top-color: rgba(20, 26, 36, 0.10); }
html[data-theme="light"] .footer-socials a {
  border-color: rgba(20, 26, 36, 0.18);
  color: var(--text-muted);
}
html[data-theme="light"] .footer-socials a:hover {
  background: rgba(20, 26, 36, 0.05);
  border-color: rgba(20, 26, 36, 0.32);
  color: var(--text);
}

/* Dashboard mock (if still rendered) — light glass */
html[data-theme="light"] .dashboard-mock {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(20, 26, 36, 0.12);
}
html[data-theme="light"] .dash-bar { background: rgba(20, 26, 36, 0.03); border-color: rgba(20, 26, 36, 0.08); }
html[data-theme="light"] .dash-title { color: var(--text-muted); }
html[data-theme="light"] .dash-card,
html[data-theme="light"] .dash-chart,
html[data-theme="light"] .dash-row {
  background: rgba(20, 26, 36, 0.03);
  border-color: rgba(20, 26, 36, 0.08);
}
html[data-theme="light"] .dash-card-label,
html[data-theme="light"] .dash-chart-title { color: var(--text-dim); }
html[data-theme="light"] .dash-card-num,
html[data-theme="light"] .dash-row-name { color: var(--text); }

/* Phone */
html[data-theme="light"] .phone {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(20, 26, 36, 0.18);
}
html[data-theme="light"] .phone-screen {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(244, 241, 234, 0.85) 100%);
}
html[data-theme="light"] .phone::before { background: rgba(20, 26, 36, 0.1); }
html[data-theme="light"] .phone-screen-title { color: var(--text); }
html[data-theme="light"] .phone-screen-sub { color: var(--text-dim); }
html[data-theme="light"] .phone-tile {
  background: rgba(20, 26, 36, 0.04);
  border-color: rgba(20, 26, 36, 0.08);
}
html[data-theme="light"] .phone-tile-label { color: var(--text-muted); }
html[data-theme="light"] .phone-tile-val { color: var(--text); }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.theme-toggle svg { width: 16px; height: 16px; transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.theme-toggle .icon-sun  { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle { background: rgba(20, 26, 36, 0.05); border-color: rgba(20, 26, 36, 0.16); color: var(--text); }
html[data-theme="light"] .theme-toggle:hover { background: rgba(20, 26, 36, 0.1); }
html[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); position: static; }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); position: absolute; }

/* Logo — invert the white logo in light mode so it reads on a light background */
html[data-theme="light"] .brand-logo {
  filter: invert(1) hue-rotate(180deg) brightness(0.85) saturate(0.7);
}

/* Smooth crossfade */
html { transition: background-color .35s ease; }
.stats-strip, .stat, .showcase-text, .showcase-visual, .testimonial, .team-hero, .cta-band,
.nav-inner, footer, .industry, .industry-content, .phone, .phone-tile, .dashboard-mock,
.dash-card, .dash-chart, .dash-row, .dash-bar, .btn-ghost, .nav-links a, .theme-toggle,
.eyebrow, .section-tag, .bullet-icon {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}


/* =========================================================
   DETAIL PAGES — solutions / industries / news
   Reuses the homepage design system; adds a page hero,
   feature grid, link cards and an article grid.
   ========================================================= */
.page-hero-wrap { padding: 104px 0 28px; }

.page-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 64px 68px;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 82% 28%, rgba(114, 142, 127, 0.50) 0%, rgba(114, 142, 127, 0) 60%),
    radial-gradient(ellipse 55% 75% at 6% 92%, rgba(79, 109, 94, 0.45) 0%, rgba(79, 109, 94, 0) 65%),
    radial-gradient(ellipse 60% 50% at 55% 22%, rgba(142, 169, 156, 0.28) 0%, rgba(142, 169, 156, 0) 60%),
    linear-gradient(135deg, #0e131c 0%, #161e1b 60%, #1f2a26 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 3; max-width: 640px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 600;
}
.page-hero h1 .grad {
  background: linear-gradient(180deg, #ffffff 0%, #b8c0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.page-hero .hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--brand-soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb .sep { color: var(--text-dim); opacity: 0.7; }
.breadcrumb .current { color: var(--text-dim); }

/* Solution hero icon (mirrors the homepage card icon) */
.page-hero-visual {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 300px; height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.page-hero-visual::before {
  content: '';
  position: absolute; inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    radial-gradient(circle, rgba(114, 142, 127, 0.32) 0%, transparent 70%);
}
.page-hero-visual svg {
  width: 210px; height: 210px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.5));
}

/* Photo hero (industries) */
.page-hero--photo .page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.22) contrast(1.05) brightness(0.78);
}
.page-hero--photo::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.88) 0%, rgba(8, 11, 16, 0.55) 45%, rgba(8, 11, 16, 0.25) 100%),
    linear-gradient(180deg, transparent 35%, rgba(8, 11, 16, 0.85) 100%);
  pointer-events: none;
}
.page-hero--photo h1,
.page-hero--photo .lede { color: #ffffff; }
.page-hero--photo h1 .grad { -webkit-text-fill-color: #ffffff; color: #ffffff; background: none; }
.page-hero--photo .lede { color: rgba(245, 246, 248, 0.82); }
.page-hero--photo .breadcrumb,
.page-hero--photo .breadcrumb a { color: rgba(255, 255, 255, 0.88); }
.page-hero--photo .breadcrumb .current { color: rgba(255, 255, 255, 0.55); }

/* Prose / overview text block */
.prose { max-width: 780px; }
.prose p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  position: relative;
  border-radius: var(--r-md);
  padding: 24px;
  background-color: rgba(20, 26, 36, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.30);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(114, 142, 127, 0.18);
  border: 1px solid rgba(114, 142, 127, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-soft);
  flex: none;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.feature p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Link cards (related solutions / industries) */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--r-md);
  padding: 24px;
  background-color: rgba(20, 26, 36, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.28);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}
.link-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.link-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.link-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-soft);
}
.link-card .more svg { width: 14px; height: 14px; transition: transform .2s; }
.link-card:hover .more svg { transform: translateX(3px); }

/* News / article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.article-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 40px;
  background-color: rgba(20, 26, 36, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.article-card .article-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
  background: rgba(114, 142, 127, 0.14);
  border: 1px solid rgba(114, 142, 127, 0.30);
  border-radius: 999px;
  padding: 5px 12px;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
.article-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.article-stat {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.article-stat div span {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article-stat div small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Detail-page responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 56px 40px; }
  .page-hero-visual { width: 220px; height: 220px; right: 28px; opacity: 0.9; }
  .page-hero-visual svg { width: 160px; height: 160px; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .page-hero-visual { display: none; }
  .page-hero { padding: 84px 28px 36px; min-height: auto; }
  .page-hero-wrap { padding: 90px 0 24px; }
  .page-hero-content { max-width: 100%; }
  .article-card { padding: 32px 28px; }
}

/* Detail-page light theme */
html[data-theme="light"] .page-hero:not(.page-hero--photo) {
  background:
    radial-gradient(ellipse 70% 60% at 82% 28%, rgba(114, 142, 127, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 75% at 6% 92%, rgba(142, 169, 156, 0.18) 0%, transparent 65%),
    linear-gradient(135deg, #f5f6f3 0%, #eef1ee 60%, #e6ece8 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 24px 60px rgba(20, 26, 36, 0.12);
}
html[data-theme="light"] .page-hero:not(.page-hero--photo) h1 .grad {
  background: linear-gradient(180deg, #14181f 0%, #4a5161 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .page-hero:not(.page-hero--photo) .lede { color: var(--text-muted); }
html[data-theme="light"] .page-hero:not(.page-hero--photo) .breadcrumb a { color: var(--brand-deep); }
html[data-theme="light"] .page-hero:not(.page-hero--photo) .breadcrumb .current { color: var(--text-dim); }
html[data-theme="light"] .feature,
html[data-theme="light"] .link-card,
html[data-theme="light"] .article-card {
  background-color: rgba(255, 255, 255, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 44px rgba(20, 26, 36, 0.10);
}
html[data-theme="light"] .feature h4,
html[data-theme="light"] .link-card h4,
html[data-theme="light"] .article-card h3 { color: var(--text); }
html[data-theme="light"] .feature p,
html[data-theme="light"] .link-card p,
html[data-theme="light"] .article-card p,
html[data-theme="light"] .prose p { color: var(--text-muted); }
html[data-theme="light"] .feature-icon {
  background: rgba(114, 142, 127, 0.18);
  border-color: rgba(114, 142, 127, 0.40);
  color: var(--brand-deep);
}
html[data-theme="light"] .link-card .more { color: var(--brand-deep); }
html[data-theme="light"] .article-card .article-tag { color: var(--brand-deep); }
html[data-theme="light"] .article-stat div span {
  background: linear-gradient(180deg, #14181f 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Keep transitions smooth on detail surfaces */
.feature, .link-card, .article-card, .page-hero {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}


/* =========================================================
   MOBILE RESPONSIVE REFINEMENTS
   Everything here is scoped to <=720px, so the desktop /
   tablet layout above is left completely unchanged.
   ========================================================= */
@media (max-width: 720px) {
  /* Use (almost) the full screen width instead of 80vw, so content
     isn't pinched into a narrow center column on phones. */
  .container { max-width: 100%; }

  /* Restore vertical spacing between sections on mobile. Many sections are
     `.section.container`; at <=720px the `.container { padding: 0 20px }`
     shorthand was overriding `.section { padding: 60px 0 }`, collapsing the
     top/bottom gap to zero so sections touched the box above. Use longhand
     here so the horizontal container padding (20px) is preserved. */
  .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  /* Header becomes a full-width, squared bar on mobile (border kept). */
  .nav { top: 0; }
  .nav-inner {
    width: 100% !important;
    border-radius: 0;
    position: relative;
  }

  /* Hero banners go edge-to-edge with no frame on mobile — both the home
     hero (.hero) and the detail-page hero (.page-hero, incl. photo variant). */
  .hero,
  .page-hero {
    border: 0 !important;
    border-radius: 0;
  }

  /* Hero: stack the headline + lede ABOVE the meta row.
     (On desktop the hero is a flex row and the meta is absolutely
     positioned; on mobile that made the meta overlap the lede.) */
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-content { max-width: 100%; }

  /* Testimonials: one per row instead of two cramped columns */
  .testimonials { grid-template-columns: 1fr; }

  /* Stats: on desktop these are one joined strip with 1px hairline dividers.
     Stacked on mobile that reads as touching boxes, so split them into
     separate cards with a little vertical gap. */
  .stats-strip {
    gap: 12px;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible;
  }
  .stats-strip .stat {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
  }

  /* ---- Mobile dropdown menu (opened by the hamburger button) ---- */
  .nav-inner.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border-radius: 22px;
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 56px rgba(0,0,0,0.55);
    z-index: 200;
  }
  .nav-inner.menu-open .nav-links a {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
    color: var(--text);
  }
  .nav-inner.menu-open .nav-links a:hover,
  .nav-inner.menu-open .nav-links a.active {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-menu-btn.is-open {
    background: var(--brand);
    color: #ffffff;
  }
  html[data-theme="light"] .nav-inner.menu-open .nav-links {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(20, 26, 36, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 24px 56px rgba(20, 26, 36, 0.18);
  }
  html[data-theme="light"] .nav-inner.menu-open .nav-links a { color: var(--text); }
  html[data-theme="light"] .nav-inner.menu-open .nav-links a:hover,
  html[data-theme="light"] .nav-inner.menu-open .nav-links a.active {
    background: rgba(20, 26, 36, 0.05);
  }
}
