/* ═══════════════════════════════════════════════════
   GAUNTLET SYSTEMS — site.css
   Dark tech / neon aesthetic, fixed bg parallax
═══════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────── */
:root {
  --bg:        #04060f;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-h: rgba(255, 255, 255, 0.08);
  --glass:     rgba(4, 6, 20, 0.72);
  --text:      #eaecff;
  --muted:     #8896c0;
  --line:      rgba(95, 140, 255, 0.18);
  --brand:     #5f8cff;
  --brand-2:   #49e1c9;
  --brand-3:   #c084fc;
  --glow-b:    rgba(95, 140, 255, 0.60);
  --glow-t:    rgba(73, 225, 201, 0.50);
  --glow-p:    rgba(192, 132, 252, 0.40);
}

/* ── BASE ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* Reserve scrollbar gutter to avoid horizontal layout jump
     when body overflow toggles (intro overlay lock/unlock). */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;

  /* ★ FIXED BACKGROUND — stays stationary while content scrolls ★ */
  background:
    radial-gradient(rgba(95, 140, 255, 0.10) 1px, transparent 1px),
    radial-gradient(ellipse 90% 65% at -8%  -8%,   rgba(95, 140, 255, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 75% 55% at 108% -5%,   rgba(73, 225, 201, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 50%  108%,  rgba(192, 132, 252, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 82%  52%,   rgba(95, 140, 255, 0.10) 0%, transparent 55%),
    linear-gradient(170deg, #04060f 0%, #060a1e 40%, #04070f 100%);
  background-size: 32px 32px, auto, auto, auto, auto, auto;
  background-attachment: fixed;
}

a             { color: #b0c4ff; text-decoration: none; }
a:hover       { color: #d4e0ff; }

/* ── HEADER ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  background: rgba(4, 6, 20, 0.70);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(4, 6, 20, 0.92);
  box-shadow: 0 4px 36px rgba(0, 0, 0, 0.55);
}

.brand-mark {
  display: inline-flex;
  gap: 0;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 62px;
  max-width: min(460px, 72vw);
  object-fit: contain;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px var(--glow-b), 0 0 40px rgba(95, 140, 255, 0.22);
  animation: pill-glow 3s ease-in-out infinite;
}

@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 18px var(--glow-b), 0 0 36px rgba(95, 140, 255, 0.20); }
  50%       { box-shadow: 0 0 28px var(--glow-b), 0 0 58px rgba(95, 140, 255, 0.36); }
}

.site-nav .nav-link {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.site-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--text);
}

.site-nav .nav-link:hover::after { transform: scaleX(1); }

.site-main { min-height: calc(100vh - 155px); }

/* ── Intro video overlay ─────────────────────────── */
.intro-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.intro-video-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.intro-video-player {
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
  background: transparent;
}

body.intro-playing {
  overflow: hidden;
}

/* ── HERO ─────────────────────────────────────────── */
.hero-section {
  padding: 6rem 0 3.5rem;
  position: relative;
}

.eyebrow {
  margin-bottom: 0.85rem;
  font-size: 0.73rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
  text-shadow: 0 0 18px var(--glow-t);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.07;
  max-width: 14ch;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(130deg, #ffffff 0%, #b0c8ff 38%, #49e1c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  margin-top: 1.5rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.hero-actions { margin-top: 2.2rem; }

.impact-strip {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.impact-item {
  border: 1px solid var(--line);
  background: rgba(95, 140, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.65rem 0.7rem;
}

.impact-item strong {
  display: block;
  font-size: 1rem;
  color: #f2f6ff;
}

.impact-item span {
  font-size: 0.76rem;
  color: #c1ceef;
}

.fit-note {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #c9d5f3;
  font-size: 0.9rem;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px dashed rgba(73, 225, 201, 0.45);
  cursor: pointer;
}

.hero-secondary-link:hover {
  color: #a7f5e8;
  border-bottom-color: rgba(73, 225, 201, 0.8);
}

.hero-links {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-links span { color: #c0ccee; }

.industry-panel {
  margin-top: 1.5rem;
  background: rgba(95, 140, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem;
}

.industry-card h3 {
  margin: 0;
  font-size: 0.92rem;
}

.industry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.industry-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.industry-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand-2);
  filter: drop-shadow(0 0 6px var(--glow-t));
  flex-shrink: 0;
}

/* ── SIGNAL CARD ──────────────────────────────────── */
.signal-card {
  position: relative;
  background: linear-gradient(145deg, rgba(95, 140, 255, 0.11), rgba(73, 225, 201, 0.07));
  border: 1px solid rgba(95, 140, 255, 0.28);
  border-radius: 1.3rem;
  padding: 1.9rem;
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(95, 140, 255, 0.07) inset,
    0 22px 64px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(95, 140, 255, 0.10);
  overflow: hidden;
}

.signal-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 140, 255, 0.85), rgba(73, 225, 201, 0.65), transparent);
}

.signal-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ced9ff;
}

.signal-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.signal-list li {
  color: #c4d0ee;
  margin-bottom: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.65;
  font-size: 0.96rem;
}

.signal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 9px var(--glow-b);
}

/* ── SECTIONS ─────────────────────────────────────── */
.content-section {
  padding: 3.5rem 0;
  position: relative;
}

.section-header { margin-bottom: 2rem; }

.section-header h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.028em;
}

/* ── CAPABILITY CARDS ─────────────────────────────── */
.capability-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  height: 100%;
  padding: 1.6rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.capability-card:hover {
  border-color: rgba(95, 140, 255, 0.45);
  transform: translateY(-7px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.44),
    0 0 32px rgba(95, 140, 255, 0.16);
}

.capability-card:hover::before { opacity: 1; }

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.1rem;
  color: var(--brand);
  filter: drop-shadow(0 0 8px var(--glow-b));
  display: block;
}

.capability-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.05rem;
  font-size: 0.88rem;
  color: var(--brand);
  font-weight: 600;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-link:hover            { color: #a8c8ff; }
.card-link:hover::after     { transform: translateX(4px); }

/* ── SECTION DARK (Founder) ───────────────────────── */
.section-dark {
  background: linear-gradient(180deg, rgba(95, 140, 255, 0.055), rgba(73, 225, 201, 0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark h2,
.content-section h2 { letter-spacing: -0.026em; }

.section-dark p {
  color: var(--muted);
  line-height: 1.82;
}

/* ── EXPERIENCE PILLS ─────────────────────────────── */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.experience-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
  color: #ccd6f6;
  text-align: center;
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.experience-pill:hover {
  border-color: rgba(73, 225, 201, 0.45);
  background: rgba(73, 225, 201, 0.06);
  box-shadow: 0 0 14px rgba(73, 225, 201, 0.12);
}

/* ── CONTACT PANEL ────────────────────────────────── */
.contact-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(95, 140, 255, 0.12), rgba(73, 225, 201, 0.07));
  border: 1px solid rgba(95, 140, 255, 0.28);
  border-radius: 1.5rem;
  padding: clamp(1.9rem, 4vw, 2.9rem);
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 140, 255, 0.9), rgba(73, 225, 201, 0.7), transparent);
}

.contact-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.14), transparent 65%);
  pointer-events: none;
}

.contact-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.contact-panel p {
  color: #c6d2f0;
  max-width: 60ch;
  line-height: 1.77;
}

/* ── INNER HERO (sub-pages) ───────────────────────── */
.inner-hero { padding: 4.5rem 0 2.5rem; }

.inner-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.11;
  max-width: 18ch;
  font-weight: 800;
  letter-spacing: -0.032em;
  background: linear-gradient(130deg, #ffffff 0%, #b0c8ff 45%, #49e1c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inner-copy {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.77;
}

/* ── DETAIL PANEL ─────────────────────────────────── */
.detail-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.55rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.detail-panel:hover {
  border-color: rgba(95, 140, 255, 0.38);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32), 0 0 22px rgba(95, 140, 255, 0.10);
}

.detail-panel h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.77;
}

.detail-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.detail-list li {
  margin-bottom: 0.78rem;
  color: #d0daee;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.66;
  font-size: 0.96rem;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.53em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 6px var(--glow-b);
}

.mini-heading {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #4a78ff, #4558ff 50%, #4a9cff);
  border-color: transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 22px rgba(74, 120, 255, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: linear-gradient(120deg, #5f8cff, #5a6cff 50%, #5caeff);
  box-shadow: 0 6px 32px rgba(95, 140, 255, 0.58);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #d8e4ff;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.50);
  color: #fff;
  transform: translateY(-2px);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(4, 6, 18, 0.9), 0 0 0 0.25rem rgba(95, 140, 255, 0.45);
}

/* ── SCROLL REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.70s ease, transform 0.70s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger for sibling .reveal elements inside a row */
.row .reveal:nth-child(2) { transition-delay: 0.10s; }
.row .reveal:nth-child(3) { transition-delay: 0.20s; }
.row .reveal:nth-child(4) { transition-delay: 0.30s; }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 2.5rem;
  background: rgba(4, 6, 20, 0.65);
  backdrop-filter: blur(12px);
}

.site-footer p { font-size: 0.88rem; }

.footer-sitemap {
  border-bottom: 1px solid var(--line);
}

.footer-sitemap-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c7ea;
}

.footer-sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.footer-sitemap-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #c7d5f0;
  text-decoration: none;
}

.footer-sitemap-links a:hover {
  color: #e6eeff;
}

/* ── SECTION SUB-COPY ─────────────────────────────── */
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 56ch;
  line-height: 1.7;
}

.section-heading {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 0.8rem;
}

/* ── PROOF + RESOURCES ─────────────────────────────── */
.proof-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card,
.resource-card,
.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
}

.proof-card h3,
.resource-card h3 {
  font-size: 1.02rem;
  margin: 0.3rem 0 0.6rem;
}

.proof-card p,
.resource-card p,
.testimonial-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.68;
  font-size: 0.92rem;
}

.signal-thumb {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  margin: 0.55rem 0 0.7rem;
  background: rgba(255, 255, 255, 0.04);
}

.proof-type {
  margin: 0;
  color: var(--brand-2);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.metric-row span {
  color: #c6d2f2;
  font-size: 0.82rem;
}

.metric-row strong {
  color: #e8eeff;
  font-size: 0.85rem;
}

.signal-meta {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #b8c7ea;
}

.codebase-meta {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #b8c7ea;
}

.signal-link {
  display: inline-flex;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--brand-2);
  text-decoration: none;
}

.signal-link:hover {
  color: #a8f6e8;
}

.codebase-links {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.codebase-link {
  margin-top: 0;
  align-items: center;
  gap: 0.36rem;
  padding: 0.32rem 0.58rem;
  border-radius: 0.62rem;
  border: 1px solid var(--line);
  background: rgba(95, 140, 255, 0.08);
  color: #b9cdf8;
  font-weight: 600;
}

.codebase-link:hover {
  color: #e5efff;
  border-color: rgba(95, 140, 255, 0.46);
  background: rgba(95, 140, 255, 0.16);
}

.codebase-link-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.codebase-link-root {
  border-color: rgba(73, 225, 201, 0.3);
  background: rgba(73, 225, 201, 0.07);
  color: #9fe9de;
}

.codebase-link-root:hover {
  border-color: rgba(73, 225, 201, 0.5);
  background: rgba(73, 225, 201, 0.16);
  color: #d2fff8;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #c2ceeb;
}

.resource-card {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 140, 255, 0.44);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34), 0 0 18px rgba(95, 140, 255, 0.12);
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-wrap {
  max-width: 70rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── ABOUT SECTION ────────────────────────────────── */
.about-copy {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.focus-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(73, 225, 201, 0.38);
  color: var(--brand-2);
  background: rgba(73, 225, 201, 0.07);
  transition: background 0.2s, border-color 0.2s;
}

.focus-tag:hover {
  background: rgba(73, 225, 201, 0.14);
  border-color: rgba(73, 225, 201, 0.55);
}

/* ── ACTIVE NAV LINK ──────────────────────────────── */
.site-nav .nav-link.active {
  color: var(--text);
}

.site-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* ── SERVICE ACCORDION ────────────────────────────── */
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card.open {
  border-color: rgba(95, 140, 255, 0.42);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32), 0 0 24px rgba(95, 140, 255, 0.10);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.2s ease;
}

.service-card-header:hover {
  background: rgba(95, 140, 255, 0.05);
}

.service-card-header:focus-visible {
  outline: 2px solid rgba(95, 140, 255, 0.6);
  outline-offset: -2px;
  border-radius: 1.1rem;
}

.svc-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

/* reuse .card-icon — already defined */
.svc-header-left .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.svc-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-tagline {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ± toggle button */
.svc-toggle {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}

.svc-toggle::before,
.svc-toggle::after {
  content: '';
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

.svc-toggle::before {
  width: 10px;
  height: 1.5px;
}

.svc-toggle::after {
  width: 1.5px;
  height: 10px;
}

.service-card.open .svc-toggle {
  border-color: rgba(95, 140, 255, 0.5);
  background: rgba(95, 140, 255, 0.10);
}

.service-card.open .svc-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* Smooth expand — grid-template-rows trick */
.service-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.40s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-body-wrap {
  overflow: hidden;
  min-height: 0;
}

.service-card.open .service-body {
  grid-template-rows: 1fr;
}

.svc-body-inner {
  padding: 1.2rem 1.4rem 1.5rem;
  border-top: 1px solid var(--line);
}

.svc-sub-heading {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 14px var(--glow-t);
}

.svc-ideal-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.74;
  margin: 0;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 991px) {
  .hero-section    { padding-top: 4.5rem; }
  .experience-grid { grid-template-columns: 1fr; }
  .hero-title      { max-width: none; }
  .svc-tagline     { display: none; }
  .industry-grid   { grid-template-columns: 1fr; }
  .impact-strip    { grid-template-columns: 1fr; }
  .journey-grid    { grid-template-columns: 1fr; }
  .proof-grid,
  .resource-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .svc-header-left { gap: 0.7rem; }
  .service-card-header { padding: 0.9rem 1rem; }
  .svc-body-inner  { padding: 1rem 1rem 1.2rem; }
  .brand-logo { height: 48px; }
}

/* ═══════════════════════════════════════════════════
   SPA CAROUSEL MODE
   Vertical slide between sections — full viewport
═══════════════════════════════════════════════════ */

body.spa-mode {
  overflow: hidden;
  height: 100dvh;
}

body.spa-mode .site-main {
  position: fixed;
  top: var(--nav-h, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  min-height: 0;
}

/* ── Section base: positioned, transitions always on ── */
.page-section {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* Default state: waiting below the viewport */
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.68s cubic-bezier(0.76, 0, 0.24, 1),
    opacity   0.50s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.page-section.section-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.page-section.section-above {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Disable transitions for silent repositioning */
.page-section.no-transition {
  transition: none !important;
}

/* Reveal elements inside spa sections reset until activated */
body.spa-mode .page-section .reveal {
  opacity: 0;
  transform: translateY(30px);
}

body.spa-mode .page-section.section-active .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section-dark gets a solid base so it reads over the fixed bg */
body.spa-mode .page-section.section-dark {
  background: linear-gradient(180deg, rgba(6, 10, 30, 0.85), rgba(5, 9, 25, 0.80));
}

/* ── Dot navigation ───────────────────────────────── */
.section-dots {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.section-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.section-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.50);
  transform: scale(1.2);
}

.section-dot.active {
  background: var(--brand);
  transform: scale(1.45);
  box-shadow: 0 0 10px var(--glow-b);
}

/* Tooltip label */
.dot-tip {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.section-dot:hover .dot-tip,
.section-dot.active .dot-tip {
  opacity: 1;
  color: var(--text);
}

/* ── Section content — top-aligned, scrollable ────── */
body.spa-mode .page-section {
  display: block;        /* simple block; section scrolls internally */
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body.spa-mode .page-section .container {
  width: 100%;
}

/* Hero gets a touch more top breathing room */
body.spa-mode .hero-section {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* ── INTERACTIVITY — press feedback on every clickable ─ */

/* All buttons press down on click */
.btn-primary:active,
.btn-outline-light:active {
  transform: scale(0.95) translateY(1px) !important;
  transition: transform 0.08s ease !important;
}

/* Service card header press */
.service-card-header:active {
  background: rgba(95, 140, 255, 0.12) !important;
  transition: background 0.05s ease !important;
}

/* Nav link press */
.site-nav .nav-link:active {
  opacity: 0.65;
  transition: opacity 0.08s ease;
}

/* Dot press */
.section-dot:active {
  transform: scale(0.78) !important;
  transition: transform 0.08s ease !important;
}

/* card-link arrow press */
.card-link:active {
  opacity: 0.7;
}

/* Clickable pills navigate → services */
a.experience-pill {
  cursor: pointer;
  display: block;
  text-decoration: none;
}

a.experience-pill:hover {
  border-color: rgba(95, 140, 255, 0.55);
  background: rgba(95, 140, 255, 0.10);
  box-shadow: 0 0 14px rgba(95, 140, 255, 0.15);
  color: #eef3ff;
}

a.experience-pill:active {
  transform: scale(0.95);
  transition: transform 0.08s ease;
}

/* Clickable focus tags */
a.focus-tag {
  cursor: pointer;
  text-decoration: none;
}

a.focus-tag:hover {
  background: rgba(73, 225, 201, 0.16);
  border-color: rgba(73, 225, 201, 0.6);
  box-shadow: 0 0 12px rgba(73, 225, 201, 0.18);
  color: #a0f0e0;
}

a.focus-tag:active {
  transform: scale(0.93);
  transition: transform 0.08s ease;
}

/* Signal card — not a link but give a gentle hover to feel alive */
.signal-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signal-card:hover {
  border-color: rgba(95, 140, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(95, 140, 255, 0.10) inset,
    0 24px 68px rgba(0, 0, 0, 0.46),
    0 0 56px rgba(95, 140, 255, 0.16);
}

.journey-card {
  background: rgba(95, 140, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.journey-title {
  margin: 0 0 0.7rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #dce6ff;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.journey-label {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}

/* Email links — underline on hover for clarity */
a[href^="mailto"] {
  position: relative;
}

/* Detail panel links */
.detail-panel a.btn:active {
  transform: scale(0.95);
  transition: transform 0.08s ease;
}

/* ── Mini copyright in contact section ────────────── */
.spa-copyright {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.spa-copyright a {
  color: var(--muted);
}

.spa-copyright a:hover {
  color: var(--text);
}

/* ── Hide standard footer in spa mode ────────────── */
body.spa-mode .site-footer {
  display: none;
}

/* ── Responsive: hide dots on small screens ──────── */
@media (max-width: 575px) {
  .section-dots { display: none; }
}

/* ═══════════════════════════════════════════════════
   GS AI CHAT WIDGET
═══════════════════════════════════════════════════ */

.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}


/* ── Toggle button ──────────────────────────────── */
.chat-toggle {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(95, 140, 255, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: chat-glow 3s ease-in-out infinite;
}

.chat-toggle:hover {
  transform: scale(1.11);
  box-shadow: 0 6px 32px rgba(95, 140, 255, 0.70);
}

.chat-toggle:active {
  transform: scale(0.90) !important;
  transition: transform 0.08s ease !important;
}

@keyframes chat-glow {
  0%, 100% { box-shadow: 0 4px 22px rgba(95, 140, 255, 0.55), 0 0 0 0 rgba(95, 140, 255, 0); }
  50%       { box-shadow: 0 6px 28px rgba(95, 140, 255, 0.70), 0 0 0 9px rgba(95, 140, 255, 0); }
}

/* Icon swap when open */
.chat-toggle .icon-open  { display: block; }
.chat-toggle .icon-close { display: none;  }
.chat-widget.open .chat-toggle .icon-open  { display: none;  }
.chat-widget.open .chat-toggle .icon-close { display: block; }

/* ── Panel ──────────────────────────────────────── */
.chat-panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 340px;
  max-height: min(480px, calc(100dvh - 8rem));
  background: rgba(4, 7, 20, 0.97);
  border: 1px solid rgba(95, 140, 255, 0.28);
  border-radius: 1.3rem;
  backdrop-filter: blur(28px);
  box-shadow:
    0 0 0 1px rgba(95, 140, 255, 0.06) inset,
    0 28px 72px rgba(0, 0, 0, 0.60),
    0 0 48px rgba(95, 140, 255, 0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.84) translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.20s ease;
}

.chat-widget.open .chat-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Header ─────────────────────────────────────── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(95, 140, 255, 0.06);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.chat-header-pill {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 14px var(--glow-b);
  flex-shrink: 0;
}

.chat-header-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.chat-header-status {
  display: block;
  font-size: 0.70rem;
  color: var(--brand-2);
  text-shadow: 0 0 8px var(--glow-t);
}

.chat-header-status::before {
  content: '● ';
  font-size: 0.52rem;
}

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.4rem;
  line-height: 1;
  transition: background 0.18s, color 0.18s, transform 0.1s;
}

.chat-close:hover  { background: rgba(255,255,255,0.08); color: var(--text); }
.chat-close:active { transform: scale(0.88); }

/* ── Messages ───────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 90%;
  padding: 0.65rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.62;
}

.chat-msg p { margin: 0; }

.chat-msg.assistant {
  background: rgba(95, 140, 255, 0.11);
  border: 1px solid rgba(95, 140, 255, 0.20);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.chat-msg.user {
  background: linear-gradient(135deg, rgba(95,140,255,0.22), rgba(73,225,201,0.13));
  border: 1px solid rgba(95, 140, 255, 0.28);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

/* Typing indicator */
.chat-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: chat-dot 1.3s ease-in-out infinite;
  display: inline-block;
}

.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes chat-dot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%            { transform: translateY(-5px); opacity: 1;    }
}

/* Suggestion chips */
.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.chat-suggest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.10s;
}

.chat-suggest:hover  { background: rgba(95,140,255,0.09); border-color: rgba(95,140,255,0.38); color: var(--text); }
.chat-suggest:active { transform: scale(0.96); }

/* ── Input row ──────────────────────────────────── */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.chat-input:focus {
  border-color: rgba(95, 140, 255, 0.45);
  background: rgba(95, 140, 255, 0.05);
}

.chat-input::placeholder { color: var(--muted); }

.chat-send {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.chat-send:hover    { transform: scale(1.10); }
.chat-send:active   { transform: scale(0.88); }
.chat-send:disabled { opacity: 0.45; cursor: default; transform: none; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 400px) {
  .chat-panel { width: calc(100vw - 3.5rem); }
}

/* ════════════════════════════════════════════════════════════
   CONTACT MODAL
════════════════════════════════════════════════════════════ */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.contact-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-panel {
  background: linear-gradient(145deg, var(--surface-1) 0%, #0e1525 100%);
  border: 1px solid var(--border-glow);
  border-radius: 1.2rem;
  width: 100%;
  max-width: 580px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .4s cubic-bezier(.22,.9,.36,1);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(110,220,255,.06);
  max-height: 92vh;
  overflow-y: auto;
}
.contact-modal-backdrop.open .contact-modal-panel {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .4rem;
  border-radius: .4rem;
  transition: color .2s, background .2s;
}
.contact-modal-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.contact-modal-title { font-size: 1.6rem; font-weight: 700; margin-bottom: .25rem; }
.contact-modal-sub   { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }

.contact-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.contact-label .req        { color: var(--brand-2); }
.contact-optional          { font-weight: 400; text-transform: none; letter-spacing: 0; }

.contact-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .55rem;
  color: #fff;
  font-size: .95rem;
  padding: .65rem 1rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.contact-input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(110,220,255,.12);
}
.contact-input::placeholder { color: rgba(255,255,255,.28); }
.contact-input-readonly {
  background: rgba(255,255,255,.02);
  color: var(--text-muted);
  cursor: default;
}
.contact-textarea { resize: vertical; min-height: 120px; }
.contact-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .55rem;
}
.contact-inline-actions .btn {
  border-color: rgba(255,255,255,.25);
  color: #d6e9ff;
}
.contact-inline-actions .btn:hover {
  border-color: var(--brand-2);
  color: #fff;
}
.contact-inline-actions .ai-magic-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.contact-ai-icon {
  display: inline-block;
  opacity: .95;
}

.contact-error {
  color: #ff7373;
  font-size: .85rem;
  padding: .6rem .9rem;
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.2);
  border-radius: .5rem;
  margin-top: .75rem;
}

.contact-success {
  text-align: center;
  padding: 2rem 1rem;
}
.contact-success-icon { margin-bottom: 1rem; }
.contact-success h3   { font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.contact-success p    { color: var(--text-muted); }

/* ── Admin nav link in header ───────────────────── */
.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: .3rem .65rem;
  border-radius: .4rem;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.nav-admin-link:hover { color: var(--brand-2); border-color: var(--brand-2); }

/* Admin dropdown menu */
.admin-nav-group   { position: relative; }
.admin-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 180px;
  background: #0c1525;
  border: 1px solid var(--border-glow);
  border-radius: .7rem;
  padding: .4rem;
  z-index: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.admin-nav-dropdown.open { display: block; }
.admin-nav-dropdown a,
.admin-nav-dropdown button {
  display: block;
  width: 100%;
  padding: .55rem .85rem;
  font-size: .83rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: .4rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-nav-dropdown a:hover,
.admin-nav-dropdown button:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.admin-nav-dropdown hr {
  border-color: var(--border-glow);
  margin: .3rem .4rem;
}
.admin-nav-signout { color: rgba(255,120,120,.8) !important; }

/* ── AI live badge ───────────────────────────────── */
.ai-live-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(110,220,255,.1);
  border: 1px solid rgba(110,220,255,.25);
  padding: .1rem .45rem;
  border-radius: .3rem;
  vertical-align: middle;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ════════════════════════════════════════════════════════════
   ADMIN PAGES
════════════════════════════════════════════════════════════ */
body:not(.spa-mode) { min-height: 100vh; }

.admin-wrap {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
}

.admin-header {
  background: linear-gradient(90deg, var(--surface-1) 0%, #0a0f1c 100%);
  border-bottom: 1px solid var(--border-glow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-title {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  line-height: 1.2;
}
.admin-sub {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-stat-card {
  background: var(--surface-1);
  border: 1px solid var(--border-glow);
  border-radius: .9rem;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.admin-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.admin-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.admin-card {
  background: var(--surface-1);
  border: 1px solid var(--border-glow);
  border-radius: 1rem;
  padding: 1.75rem;
}
.admin-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.admin-muted { color: var(--text-muted); font-size: .875rem; }

.admin-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--brand-2);
  color: #000;
  padding: .1rem .5rem;
  border-radius: 999px;
}

.admin-insight-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.admin-insight-list li {
  padding: .7rem 1rem;
  background: rgba(110,220,255,.05);
  border-left: 2px solid var(--brand-2);
  border-radius: 0 .4rem .4rem 0;
  font-size: .875rem;
  color: var(--text-secondary);
}

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.admin-table th {
  text-align: left;
  padding: .6rem 1rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glow);
}
.admin-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-unread td          { color: #fff; font-weight: 500; }
.admin-unread td:first-child::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand-2);
  border-radius: 50%;
  margin-right: .5rem;
  vertical-align: middle;
}

.admin-link { color: var(--brand-2); text-decoration: none; }
.admin-link:hover { text-decoration: underline; }

.btn-xs { font-size: .72rem; padding: .2rem .6rem; }

/* Admin form controls */
.admin-form-group { margin-bottom: 1.5rem; }
.admin-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.admin-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .55rem;
  color: #fff;
  font-size: .95rem;
  padding: .65rem 1rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.admin-input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(110,220,255,.1);
}
.admin-input::placeholder { color: rgba(255,255,255,.28); }
.admin-select { cursor: pointer; }
.admin-checkbox { width: 1rem; height: 1rem; accent-color: var(--brand-2); cursor: pointer; }
.admin-field-hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; margin-bottom: 0; }

.admin-feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 0;
}
.admin-feature-list li {
  padding: .9rem 1.1rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border-glow);
  border-radius: .6rem;
  font-size: .875rem;
  color: var(--text-secondary);
}
.admin-feature-list li strong { color: var(--brand-2); display: block; margin-bottom: .2rem; }

.admin-alert {
  padding: .85rem 1.2rem;
  border-radius: .6rem;
  font-size: .9rem;
}
.admin-alert-success {
  background: rgba(80,220,100,.12);
  border: 1px solid rgba(80,220,100,.3);
  color: #7effa0;
}
.admin-alert-error {
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.25);
  color: #ff9090;
}

/* Role chips */
.admin-role-chip {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.admin-role-chip:active { transform: scale(.93); }
.admin-role-chip.admin          { background: rgba(110,220,255,.12); border-color: rgba(110,220,255,.4); color: var(--brand-2); }
.admin-role-chip.editor         { background: rgba(160,130,255,.12); border-color: rgba(160,130,255,.4); color: #b490ff; }
.admin-role-chip.viewer         { background: rgba(180,220,100,.08); border-color: rgba(180,220,100,.3); color: #c8e87a; }
.admin-role-chip.inactive       { opacity: .35; filter: grayscale(.8); }
.admin-role-chip:not([class*=inactive]):not([class*=active]) { opacity: 1; }

/* Admin submission detail modal */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal {
  background: linear-gradient(145deg, var(--surface-1) 0%, #0e1525 100%);
  border: 1px solid var(--border-glow);
  border-radius: 1rem;
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.admin-modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 1.6rem;
  line-height: 1; cursor: pointer; padding: .1rem .4rem;
  border-radius: .3rem;
  transition: color .2s, background .2s;
}
.admin-modal-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.admin-sub-detail h3   { font-size: 1.3rem; font-weight: 700; margin-bottom: .15rem; }
.admin-sub-subject     { font-weight: 700; color: var(--brand-2); margin: .75rem 0 .5rem; }
.admin-sub-message     { white-space: pre-wrap; font-size: .875rem; color: var(--text-secondary); line-height: 1.6; padding: 1rem; background: rgba(255,255,255,.03); border-radius: .6rem; border: 1px solid var(--border-glow); }
.admin-ai-summary      { margin-top: 1rem; padding: .9rem 1.1rem; background: rgba(110,220,255,.06); border: 1px solid rgba(110,220,255,.2); border-radius: .6rem; }
.admin-ai-summary .eyebrow { display: block; margin-bottom: .35rem; }
.admin-ai-summary p    { font-size: .875rem; margin: 0; color: var(--text-secondary); }

.text-brand-2 { color: var(--brand-2); -webkit-text-fill-color: var(--brand-2); }

/* ════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register / Forgot / Reset)
════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 3rem;
}

.auth-card {
  background: linear-gradient(145deg, var(--surface-1) 0%, #0e1525 100%);
  border: 1px solid var(--border-glow);
  border-radius: 1.2rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(110,220,255,.05);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.auth-brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
.auth-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .1rem;
  line-height: 1.25;
}
.auth-sub {
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 0;
}

.auth-form     { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-field    { display: flex; flex-direction: column; gap: .35rem; }
.auth-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .55rem;
  color: #fff;
  font-size: .95rem;
  padding: .7rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.auth-input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(110,220,255,.12);
}
.auth-input::placeholder { color: rgba(255,255,255,.28); }
.auth-field-error { font-size: .8rem; color: #ff8080; }
.auth-error {
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.25);
  border-radius: .5rem;
  padding: .65rem .9rem;
  font-size: .85rem;
  color: #ff9090;
}
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-footer-text {
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.auth-link {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }
.auth-small-link {
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
}
.auth-small-link:hover { color: var(--brand-2); }

/* ════════════════════════════════════════════════════════════
   PUBLIC LIGHT THEME (single page)
════════════════════════════════════════════════════════════ */
body.light-site {
  background: #f7f9fc;
  color: #1f2a44;
}

body.light-site .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(31, 42, 68, 0.1);
  backdrop-filter: blur(8px);
}

body.light-site .site-header.scrolled {
  box-shadow: 0 8px 24px rgba(10, 28, 60, 0.08);
}

body.light-site .navbar-toggler {
  border-color: rgba(24, 37, 63, 0.28) !important;
  background: rgba(255, 255, 255, 0.92);
}

body.light-site .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2818,37,63,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.light-site .brand-mark {
  color: #1f2a44;
}

body.light-site .site-nav .nav-link {
  color: #4a5878;
}

body.light-site .site-nav .nav-link:hover,
body.light-site .site-nav .nav-link:focus,
body.light-site .site-nav .nav-link.active {
  color: #18253f;
}

body.light-site .gs-section {
  padding: 4.25rem 0;
  scroll-margin-top: 92px;
}

body.light-site .gs-section-muted {
  background: #eef3fa;
}

body.light-site #insights {
  background: #f1f6ff;
}

body.light-site #about {
  background: #ffffff;
}

body.light-site #contact {
  background: #f6f9ff;
}

body.light-site .gs-hero {
  padding-top: 5.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

body.light-site .gs-kicker {
  margin: 0 0 0.85rem;
  color: #2a67ff;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

body.light-site h1,
body.light-site h2,
body.light-site h3 {
  color: #12213b;
}

body.light-site .gs-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

body.light-site .gs-lead,
body.light-site .gs-about-copy {
  color: #4f5f82;
  line-height: 1.76;
  font-size: 1.02rem;
}

body.light-site .gs-metrics {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

body.light-site .gs-metric {
  background: #fff;
  border: 1px solid #dbe5f5;
  border-radius: 0.9rem;
  padding: 0.8rem;
}

body.light-site .gs-metric strong {
  display: block;
  color: #1f2f52;
  font-size: 1.2rem;
}

body.light-site .gs-metric span {
  display: block;
  color: #5f7093;
  font-size: 0.82rem;
}

body.light-site .gs-highlight-card {
  background: #fff;
  border: 1px solid #dbe5f5;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(17, 37, 78, 0.06);
}

body.light-site .gs-highlight-card h2,
body.light-site .gs-highlight-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}

body.light-site .gs-highlight-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #4f5f82;
  line-height: 1.7;
}

body.light-site .gs-live-guide {
  background: #ffffff;
  border: 1px solid #dbe5f5;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(17, 37, 78, 0.06);
}

body.light-site .gs-live-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

body.light-site .gs-live-guide-head span {
  color: #5d6e92;
  font-size: 0.88rem;
}

body.light-site .gs-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

body.light-site .gs-guide-btn {
  border: 1px solid #cedcf4;
  background: #f4f8ff;
  color: #24406f;
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

body.light-site .gs-guide-btn:hover {
  background: #eaf2ff;
}

body.light-site .gs-guide-output {
  border: 1px solid #e0e9f8;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: #4d6187;
  background: #f8fbff;
  min-height: 3rem;
  line-height: 1.6;
}

body.light-site .gs-section-focus {
  animation: section-pulse 0.8s ease;
}

@keyframes section-pulse {
  0% { box-shadow: inset 0 0 0 0 rgba(42, 103, 255, 0.20); }
  100% { box-shadow: inset 0 0 0 36px rgba(42, 103, 255, 0.0); }
}

/* Robot guide styles are now in robot-guide.css (loaded on homepage only) */

body.light-site .gs-section-head {
  margin-bottom: 1.2rem;
}

body.light-site .gs-section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin: 0;
  letter-spacing: -0.02em;
}

body.light-site .gs-service-grid,
body.light-site .gs-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.light-site .gs-victory-callout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5f5;
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 8px 24px rgba(17, 37, 78, 0.05);
  margin-bottom: 1rem;
}

body.light-site .gs-victory-callout img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.8rem;
  border: 1px solid #d8e4f6;
  background: #f6faff;
}

body.light-site .gs-victory-callout h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: #1a3156;
}

body.light-site .gs-victory-callout p {
  margin: 0;
  color: #5a6a8c;
  line-height: 1.7;
}

body.light-site .gs-arch-flow {
  display: grid;
  grid-template-columns: repeat(29, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
  position: relative;
}

body.light-site .gs-arch-flow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(42, 103, 255, 0.08), rgba(42, 103, 255, 0.42), rgba(42, 103, 255, 0.08));
  z-index: 0;
  animation: gs-arch-beam 4.2s linear infinite;
}

body.light-site .gs-arch-level {
  background: #ffffff;
  border: 1px solid #dbe5f5;
  border-radius: 1rem;
  padding: 0.8rem 0.85rem;
  box-shadow: 0 8px 24px rgba(17, 37, 78, 0.05);
  min-height: 142px;
  grid-column: span 4;
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: gs-arch-float 4.8s ease-in-out infinite;
}

body.light-site .gs-arch-level::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 10%, rgba(42, 103, 255, 0.08) 48%, transparent 88%);
  transform: translateX(-120%);
  animation: gs-arch-sheen 5.5s ease-in-out infinite;
}

body.light-site .gs-arch-level:nth-of-type(1) {
  animation-delay: 0s;
}

body.light-site .gs-arch-level:nth-of-type(2) {
  animation-delay: 0.3s;
}

body.light-site .gs-arch-level:nth-of-type(3) {
  animation-delay: 0.6s;
}

body.light-site .gs-arch-level:nth-of-type(4) {
  animation-delay: 0.9s;
}

body.light-site .gs-arch-level:nth-of-type(5) {
  animation-delay: 1.2s;
}

body.light-site .gs-arch-level:nth-of-type(6) {
  animation-delay: 1.5s;
}

body.light-site .gs-arch-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a67ff;
  font-weight: 700;
}

body.light-site .gs-arch-level h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #1a3156;
}

body.light-site .gs-arch-level p {
  margin: 0;
  color: #5a6a8c;
  line-height: 1.65;
  font-size: 0.9rem;
}

body.light-site .gs-arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f78bf;
  font-size: 1.2rem;
  font-weight: 700;
  grid-column: span 1;
  z-index: 1;
  animation: gs-arch-arrow 1.8s ease-in-out infinite;
}

body.light-site .gs-arch-arrow:nth-of-type(2) { animation-delay: 0s; }
body.light-site .gs-arch-arrow:nth-of-type(4) { animation-delay: 0.15s; }
body.light-site .gs-arch-arrow:nth-of-type(6) { animation-delay: 0.3s; }
body.light-site .gs-arch-arrow:nth-of-type(8) { animation-delay: 0.45s; }
body.light-site .gs-arch-arrow:nth-of-type(10){ animation-delay: 0.6s; }

@keyframes gs-arch-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes gs-arch-arrow {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50%      { opacity: 1; transform: translateX(4px); }
}

@keyframes gs-arch-beam {
  0%   { filter: hue-rotate(0deg); opacity: 0.7; }
  50%  { filter: hue-rotate(10deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 0.7; }
}

@keyframes gs-arch-sheen {
  0%   { transform: translateX(-130%); }
  42%  { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

body.light-site .gs-service-card,
body.light-site .gs-process-card,
body.light-site .industry-card,
body.light-site .proof-card {
  background: #fff;
  border: 1px solid #dbe5f5;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(17, 37, 78, 0.05);
}

body.light-site .gs-service-card p,
body.light-site .gs-process-card p,
body.light-site .industry-card p,
body.light-site .proof-card p,
body.light-site .section-sub {
  color: #5a6a8c;
}

body.light-site .industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

body.light-site .industry-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

body.light-site .industry-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: #2a67ff;
}

body.light-site .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.light-site .proof-type {
  color: #2a67ff;
}

body.light-site .signal-meta {
  border-top: 1px solid #e3ebf8;
  color: #697b9f;
}

body.light-site .codebase-meta {
  border-top: 1px solid #e3ebf8;
  color: #697b9f;
}

body.light-site .signal-link {
  color: #2a67ff;
}

body.light-site .codebase-link {
  border-color: #d2e0f6;
  background: #f1f6ff;
  color: #2d4c7f;
}

body.light-site .codebase-link:hover {
  border-color: #a9c4ed;
  background: #e8f1ff;
  color: #18396e;
}

body.light-site .codebase-link-root {
  border-color: #c9e8e3;
  background: #eefcf9;
  color: #206468;
}

body.light-site .codebase-link-root:hover {
  border-color: #9ad8d0;
  background: #e0f8f3;
  color: #164f54;
}

body.light-site .contact-panel {
  background: #fff;
  border: 1px solid #dbe5f5;
  box-shadow: 0 14px 30px rgba(17, 37, 78, 0.08);
}

body.light-site .contact-panel h2 {
  color: #12213b;
}

body.light-site .contact-panel p {
  color: #58698d;
}

body.light-site .site-footer {
  background: #fff;
  border-top: 1px solid #dbe5f5;
  color: #6d7ea1;
}

body.light-site .footer-sitemap {
  border-bottom: 1px solid #e3ebf8;
}

body.light-site .footer-sitemap-title {
  color: #5672a2;
}

body.light-site .footer-sitemap-links a {
  color: #3d5e93;
}

body.light-site .footer-sitemap-links a:hover {
  color: #1e386c;
}

@media (max-width: 991px) {
  body.light-site .gs-metrics,
  body.light-site .industry-grid,
  body.light-site .proof-grid,
  body.light-site .gs-service-grid,
  body.light-site .gs-process-grid,
  body.light-site .gs-arch-flow {
    grid-template-columns: 1fr;
  }

  body.light-site .gs-victory-callout {
    grid-template-columns: 1fr;
  }

  body.light-site .gs-arch-flow {
    gap: 0.55rem;
  }

  body.light-site .gs-arch-flow::before {
    display: none;
  }

  body.light-site .gs-arch-level {
    min-height: 0;
    grid-column: span 1;
  }

  body.light-site .gs-arch-arrow {
    font-size: 1rem;
    line-height: 1;
    transform: rotate(90deg);
    grid-column: span 1;
    animation: gs-arch-arrow-mobile 1.8s ease-in-out infinite;
  }
}

@keyframes gs-arch-arrow-mobile {
  0%, 100% { opacity: 0.55; transform: rotate(90deg) translateX(0); }
  50%      { opacity: 1; transform: rotate(90deg) translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  body.light-site .gs-arch-flow::before,
  body.light-site .gs-arch-level,
  body.light-site .gs-arch-level::after,
  body.light-site .gs-arch-arrow {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL FORCED LIGHT THEME (all pages, menus, popups)
════════════════════════════════════════════════════════════ */
body.light-site {
  color-scheme: light;
  --bg-base: #f4f7fc;
  --surface-1: #ffffff;
  --text-primary: #1c2c49;
  --text-secondary: #4f6287;
  --text-muted: #6d7fa1;
  --border-glow: #d9e4f6;
  --gradient-text: linear-gradient(120deg, #2a67ff, #1e8fd9);
}

body.light-site .site-main {
  color: #1c2c49;
}

/* Header + nav visibility */
body.light-site .site-header {
  background: rgba(255, 255, 255, 0.95);
}

body.light-site .nav-admin-link {
  color: #2c436c;
  border-color: #cfddf4;
  background: #ffffff;
}

body.light-site .nav-admin-link:hover {
  color: #1e63ff;
  border-color: #9fc0f2;
}

body.light-site .admin-nav-dropdown {
  background: #ffffff;
  border-color: #cfddf4;
  box-shadow: 0 14px 28px rgba(18, 41, 78, 0.12);
}

body.light-site .admin-nav-dropdown a,
body.light-site .admin-nav-dropdown button {
  color: #2f466f;
}

body.light-site .admin-nav-dropdown a:hover,
body.light-site .admin-nav-dropdown button:hover {
  background: #f1f6ff;
  color: #1d3f74;
}

/* Contact modal */
body.light-site .contact-modal-backdrop {
  background: rgba(17, 32, 60, 0.34);
}

body.light-site .contact-modal-panel {
  background: #ffffff;
  border-color: #cfddf4;
  box-shadow: 0 24px 56px rgba(16, 38, 73, 0.18);
}

body.light-site .contact-modal-title,
body.light-site .contact-success h3 {
  color: #1a2e52;
}

body.light-site .contact-modal-sub,
body.light-site .contact-success p {
  color: #5f7398;
}

body.light-site .contact-label {
  color: #5e7398;
}

body.light-site .contact-input {
  background: #ffffff;
  border-color: #cddcf3;
  color: #233a62;
}

body.light-site .contact-input::placeholder {
  color: #91a4c6;
}

body.light-site .contact-input-readonly {
  background: #f5f8ff;
  color: #5f7398;
}

body.light-site .contact-inline-actions .btn {
  border-color: #c7d9f5;
  color: #35517e;
  background: #f4f8ff;
}

body.light-site .contact-inline-actions .btn:hover {
  border-color: #8fb2e2;
  color: #1e3b68;
  background: #ebf3ff;
}
body.light-site .contact-ai-icon {
  opacity: .9;
}

body.light-site .contact-modal-close {
  color: #5f7398;
}

body.light-site .contact-modal-close:hover {
  color: #1e3b68;
  background: #eef4ff;
}

/* Chat popup */
body.light-site .chat-panel {
  background: #ffffff;
  border-color: #cfddf4;
  box-shadow:
    0 0 0 1px rgba(103, 144, 214, 0.08) inset,
    0 24px 56px rgba(16, 38, 73, 0.16);
}

body.light-site .chat-header {
  background: #f3f8ff;
  border-bottom-color: #d9e6f9;
}

body.light-site .chat-header-title {
  color: #1a3156;
}

body.light-site .chat-close {
  color: #6780a8;
}

body.light-site .chat-close:hover {
  color: #1e3f74;
  background: #eaf2ff;
}

body.light-site .chat-msg.assistant {
  background: #f5f9ff;
  border-color: #dce9fa;
  color: #314b74;
}

body.light-site .chat-msg.user {
  background: #eaf3ff;
  border-color: #cfe0f8;
  color: #274067;
}

body.light-site .chat-suggest {
  background: #ffffff;
  border-color: #d5e3f7;
  color: #4d638b;
}

body.light-site .chat-suggest:hover {
  background: #edf4ff;
  border-color: #b8cff1;
  color: #2f4a73;
}

body.light-site .chat-input-row {
  border-top-color: #d9e6f9;
}

body.light-site .chat-input {
  background: #ffffff;
  border-color: #cfddf4;
  color: #254169;
}

body.light-site .chat-input:focus {
  border-color: #8fb1e8;
  background: #f7fbff;
}

body.light-site .chat-input::placeholder {
  color: #90a3c4;
}

/* Admin and auth pages */
body.light-site .admin-wrap {
  background: #f4f7fc;
  color: #1c2c49;
}

body.light-site .admin-header {
  background: #ffffff;
  border-bottom-color: #d9e4f6;
}

body.light-site .admin-card,
body.light-site .admin-stat-card,
body.light-site .auth-card,
body.light-site .admin-modal {
  background: #ffffff;
  border-color: #d9e4f6;
  box-shadow: 0 12px 28px rgba(16, 38, 73, 0.08);
}

body.light-site .admin-title,
body.light-site .admin-card-title,
body.light-site .auth-title,
body.light-site .auth-brand-name {
  color: #1a2f52;
}

body.light-site .admin-table th,
body.light-site .admin-sub,
body.light-site .admin-muted,
body.light-site .admin-label,
body.light-site .admin-field-hint,
body.light-site .auth-sub,
body.light-site .auth-label,
body.light-site .auth-footer-text,
body.light-site .auth-checkbox-label,
body.light-site .auth-small-link {
  color: #62779d;
}

body.light-site .admin-table td,
body.light-site .admin-feature-list li,
body.light-site .admin-insight-list li,
body.light-site .admin-sub-message,
body.light-site .admin-ai-summary p {
  color: #405b86;
}

body.light-site .admin-table tr:hover td {
  background: #f6faff;
}

body.light-site .admin-input,
body.light-site .auth-input {
  background: #ffffff;
  border-color: #cfddf4;
  color: #233a62;
}

body.light-site .admin-input::placeholder,
body.light-site .auth-input::placeholder {
  color: #93a7c8;
}

body.light-site .admin-input:focus,
body.light-site .auth-input:focus {
  border-color: #8fb1e8;
  box-shadow: 0 0 0 3px rgba(42, 103, 255, 0.12);
}

body.light-site .admin-modal-close {
  color: #62779d;
}

body.light-site .admin-modal-close:hover {
  color: #1d3f74;
  background: #eef4ff;
}

body.light-site .admin-sub-message {
  background: #f7fbff;
  border-color: #d7e4f7;
}

body.light-site .admin-ai-summary {
  background: #eff6ff;
  border-color: #cfe1fb;
}

/* Bootstrap popups/dropdowns */
body.light-site .dropdown-menu {
  background: #ffffff;
  border-color: #d3e1f6;
  box-shadow: 0 12px 24px rgba(16, 38, 73, 0.12);
}

body.light-site .dropdown-item {
  color: #314b74;
}

body.light-site .dropdown-item:hover,
body.light-site .dropdown-item:focus {
  background: #edf4ff;
  color: #1f3f72;
}

body.light-site .modal-content {
  background: #ffffff;
  color: #1d2f51;
  border-color: #d3e1f6;
}

/* Privacy page refinements */
body.light-site .privacy-page .detail-panel {
  background: #ffffff;
  border-color: #d9e4f6;
  box-shadow: 0 10px 26px rgba(17, 37, 78, 0.07);
}

body.light-site .privacy-summary {
  position: sticky;
  top: 96px;
}

body.light-site .privacy-summary h2 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

body.light-site .privacy-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.light-site .privacy-nav a {
  color: #3f5f95;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

body.light-site .privacy-nav a:hover {
  color: #1f3f74;
}

body.light-site .privacy-policy section + section {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #e5ecf8;
}

body.light-site .privacy-policy h2 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  color: #1b3157;
}

body.light-site .privacy-policy p {
  color: #4e638a;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

body.light-site .privacy-policy .detail-list li {
  color: #4e638a;
}

@media (max-width: 991px) {
  body.light-site .privacy-summary {
    position: static;
    top: auto;
  }
}
