/* ══════════════════════════════════════
   ClarenSec V2 - Page Styles
   ══════════════════════════════════════ */

/* ── Global justified text for body content ── */
.section-subtitle,
.service-text p,
.sg-card p,
.ft-text p,
.proof-case p,
.del-row,
.ps-column li,
.why-case p,
.story-grid p,
.framework-intro,
.tier-card p,
.pillar-desc p {
  text-align: justify;
}

/* ── Global texture layer ── */
/* Subtle dot grid across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] body::before {
  background-image: radial-gradient(circle, rgba(124,58,237,0.035) 1px, transparent 1px);
}
/* Ensure all content sits above the texture */
nav, section, div, footer, header { position: relative; z-index: 1; }

/* ── Section-specific textures ── */

/* Services section - 4-point stars, delicate */
.section#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 22 L30.4 29 L34 30 L30.4 31 L30 38 L29.6 31 L26 30 L29.6 29 Z' fill='rgba(167,139,250,0.05)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .section#services::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 22 L30.4 29 L34 30 L30.4 31 L30 38 L29.6 31 L26 30 L29.6 29 Z' fill='rgba(124,58,237,0.06)'/%3E%3C/svg%3E");
}
.section#services { position: relative; overflow: hidden; }

/* Industries section - diagonal lines */
.section#industries::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 50px,
    rgba(167,139,250,0.04) 50px,
    rgba(167,139,250,0.04) 51px
  );
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .section#industries::before {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 50px,
    rgba(124,58,237,0.05) 50px,
    rgba(124,58,237,0.05) 51px
  );
}
.section#industries { position: relative; overflow: hidden; }

/* Client logos section - no texture */

/* Testimonial section - small 4-point stars, sparse */
.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 34 L40.3 39 L43 40 L40.3 41 L40 46 L39.7 41 L37 40 L39.7 39 Z' fill='rgba(217,70,239,0.06)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .testimonial-section::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 34 L40.3 39 L43 40 L40.3 41 L40 46 L39.7 41 L37 40 L39.7 39 Z' fill='rgba(217,70,239,0.07)'/%3E%3C/svg%3E");
}
.testimonial-section { position: relative; overflow: hidden; }

/* Framework teaser - hex/honeycomb, spaced out */
.framework-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='84' height='150' viewBox='0 0 84 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M42 99L0 75L0 24L42 0L84 24L84 75L42 99Z' fill='none' stroke='rgba(167,139,250,0.07)' stroke-width='0.5'/%3E%3Cpath d='M42 150L0 126L0 75L42 51L84 75L84 126L42 150Z' fill='none' stroke='rgba(167,139,250,0.07)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 84px 150px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .framework-teaser::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='84' height='150' viewBox='0 0 84 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M42 99L0 75L0 24L42 0L84 24L84 75L42 99Z' fill='none' stroke='rgba(124,58,237,0.08)' stroke-width='0.5'/%3E%3Cpath d='M42 150L0 126L0 75L42 51L84 75L84 126L42 150Z' fill='none' stroke='rgba(124,58,237,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
}
.framework-teaser { position: relative; overflow: hidden; }

/* Blog/Insights section - hexagons, more spaced */
.section[style*="bg-surface"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='84' height='150' viewBox='0 0 84 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M42 99L0 75L0 24L42 0L84 24L84 75L42 99Z' fill='none' stroke='rgba(167,139,250,0.06)' stroke-width='0.5'/%3E%3Cpath d='M42 150L0 126L0 75L42 51L84 75L84 126L42 150Z' fill='none' stroke='rgba(167,139,250,0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100px 180px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .section[style*="bg-surface"]::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='84' height='150' viewBox='0 0 84 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M42 99L0 75L0 24L42 0L84 24L84 75L42 99Z' fill='none' stroke='rgba(124,58,237,0.065)' stroke-width='0.5'/%3E%3Cpath d='M42 150L0 126L0 75L42 51L84 75L84 126L42 150Z' fill='none' stroke='rgba(124,58,237,0.065)' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* CTA section - circuit board traces */
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 L30 50 L38 30 L50 30' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cpath d='M50 0 L50 20 L70 20 L70 50' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='30' r='2' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='70' cy='50' r='2' fill='rgba(255,255,255,0.03)'/%3E%3Cpath d='M100 80 L75 80 L75 65 L60 65' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='0.5'/%3E%3Ccircle cx='60' cy='65' r='2' fill='rgba(255,255,255,0.035)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .cta-section::after {
  background-image:
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 L30 50 L38 30 L50 30' fill='none' stroke='rgba(124,58,237,0.08)' stroke-width='0.5'/%3E%3Cpath d='M50 0 L50 20 L70 20 L70 50' fill='none' stroke='rgba(124,58,237,0.06)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='30' r='2' fill='rgba(124,58,237,0.08)'/%3E%3Ccircle cx='70' cy='50' r='2' fill='rgba(124,58,237,0.06)'/%3E%3Cpath d='M100 80 L75 80 L75 65 L60 65' fill='none' stroke='rgba(124,58,237,0.07)' stroke-width='0.5'/%3E%3Ccircle cx='60' cy='65' r='2' fill='rgba(124,58,237,0.07)'/%3E%3C/svg%3E");
}
.cta-section { position: relative; overflow: hidden; }

/* Footer - fine dot texture */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.footer { position: relative; overflow: hidden; }

/* ── Hero ── */
.hero-bold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 10rem 0 4rem;
  overflow: hidden;
}
.hero-bold::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(217, 70, 239, 0.06) 40%, transparent 65%);
  pointer-events: none;
}
.hero-bold::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
.hero-headline {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}
.hero-headline .accent-word {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-logo img {
  height: 46px;
  width: auto;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.trust-logo img:hover { opacity: 1; }
[data-theme="light"] .trust-logo img {
  background: rgba(255,255,255,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  opacity: 0.9;
}
.trust-logo span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.stat-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.stat-badge .num {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-badge .lbl {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Proof / Why ClarenSec ── */
.proof-section {
  background: linear-gradient(180deg, #0f0520 0%, #1a0a30 50%, #0b1120 100%);
  position: relative;
  overflow: hidden;
}
.proof-section,
.proof-section h2,
.proof-section p,
.proof-section .section-label { color: #f1f5f9; }
.proof-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: start;
}
.proof-case {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.proof-case .case-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}
.proof-case p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.proof-highlight {
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(217,70,239,0.08) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1rem;
}
.proof-highlight p {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.65;
}
.proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.proof-stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.proof-stat-box .number {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.proof-stat-box .label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  line-height: 1.4;
}
[data-theme="light"] .proof-section {
  background: linear-gradient(180deg, #0f0520 0%, #1a0a30 50%, #0b1120 100%);
}
[data-theme="light"] .proof-section .section-label { color: #a78bfa; }
[data-theme="light"] .proof-section h2 { color: #f1f5f9; }
[data-theme="light"] .proof-section p { color: #cbd5e1; }
/* Stats as a clean horizontal row with dividers */
.why-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.why-stat {
  text-align: center;
  padding: 0 2.5rem;
}
.why-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.why-stat-num {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .why-stats { gap: 2rem; }
  .why-stat { padding: 0 1.5rem; }
  .why-stat-divider { display: none; }
}

/* Case study cards with left accent */
.why-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.why-case {
  border-left: 3px solid;
  border-image: var(--gradient-brand) 1;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.025);
  border-radius: 0 0.75rem 0.75rem 0;
}
.why-case-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}
.why-case p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #cbd5e1;
}
@media (max-width: 768px) {
  .why-cases { grid-template-columns: 1fr; }
}

/* ── Framework teaser ── */
.framework-teaser {
  background: var(--bg-surface);
}
.ft-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .ft-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.ft-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.ft-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ft-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.ft-pillar:hover {
  border-color: rgba(124, 58, 237, 0.25);
}
.fp-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ft-pillar h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.ft-pillar p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Light mode fixes for certs and logos ── */
[data-theme="light"] .marquee-text {
  color: #1e293b;
}
[data-theme="light"] .marquee-dot {
  background: #94a3b8;
}
[data-theme="light"] .client-logo-scroll img {
  filter: none;
  opacity: 1;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Light mode section accents - add warmth */
[data-theme="light"] .marquee-strip {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f0ff 50%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
[data-theme="light"] .section#industries {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f4ff 50%, #fdf2f8 100%) !important;
}
[data-theme="light"] .client-logos {
  background: linear-gradient(180deg, #f8fafc 0%, #faf5ff 50%, #f8fafc 100%);
}
[data-theme="light"] .testimonial-section {
  background: linear-gradient(180deg, transparent 0%, #faf5ff 50%, transparent 100%);
}
[data-theme="light"] .framework-teaser {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fdf2f8 100%) !important;
}

/* ── Client Logos ── */
/* ── Industries pills ── */
.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.industry-pill:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .industry-pill:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.industry-pill svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.industry-pill.accent-cyan svg { stroke: var(--accent-cyan); }
.industry-pill.accent-pink svg { stroke: var(--accent-magenta); }

/* ── Client Logos ── */
.client-logos {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.client-logos p {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.logo-scroll-window {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.client-logo-scroll {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo-scroll img {
  height: 45px;
  width: auto;
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0.85;
  flex-shrink: 0;
}
[data-theme="light"] .client-logo-scroll img {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  opacity: 0.9;
}
.logo-text-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  height: 45px;
}

/* ── Marquee ── */
.marquee-strip {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
}
.marquee-logo {
  height: 24px;
  opacity: 0.5;
  filter: brightness(1.8) saturate(0.3);
  flex-shrink: 0;
}
[data-theme="light"] .marquee-logo {
  filter: none;
  opacity: 0.4;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Numbered Sections ── */
.numbered-section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  margin-bottom: -0.5rem;
  letter-spacing: -0.04em;
}
.section-heading {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.section-heading span {
  color: var(--text-primary);
}

/* ── 01 Services ── */
/* ── Services (alternating rows) ── */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row.reversed .service-text { order: 2; }
.service-row.reversed .service-visual { order: 1; }
.service-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 1rem;
}
.service-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual > img {
  transition: filter 0.3s;
}
[data-theme="light"] .service-visual > img {
  filter: brightness(0.55) saturate(1.4);
}
.service-icon-box {
  width: 200px;
  height: 200px;
  border-radius: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-icon-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-subtle);
  opacity: 0.5;
}
.service-icon-box svg {
  width: 72px;
  height: 72px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .service-row.reversed .service-text,
  .service-row.reversed .service-visual { order: unset; }
  .service-visual { justify-content: flex-start; }
}

/* ── 02 Trust Grid ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.trust-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  transition: all 0.3s;
  min-height: 100px;
}
.trust-grid-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--bg-surface-hover);
}
.trust-grid-item img {
  height: 60px;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(1.8) saturate(0.3);
  opacity: 0.6;
  transition: all 0.3s;
}
[data-theme="light"] .trust-grid-item img {
  filter: none;
  opacity: 0.55;
}
.trust-grid-item:hover img {
  opacity: 1;
  filter: none;
}
[data-theme="light"] .trust-grid-item:hover img {
  opacity: 1;
}
.trust-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.trust-tagline strong {
  font-weight: 700;
  color: var(--text-primary);
}

/* ── 03 Proof / Case Study (old styles removed) ── */
.pull-quote {
  font-family: "Lora", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--accent);
}
.pull-quote-source {
  margin-top: 1.5rem;
  padding-left: 2rem;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.proof-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.proof-stat .big-num {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-stat .big-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── 04 Industries ── */
.industries-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-surface);
}
.industries-scroll::-webkit-scrollbar { height: 4px; }
.industries-scroll::-webkit-scrollbar-track { background: var(--bg-surface); border-radius: 4px; }
.industries-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.industry-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.industry-card:hover::before { opacity: 1; }
.industry-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
}
.industry-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.industry-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.5;
}
.industry-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.industry-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 05 Framework ── */
.framework-intro {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 3rem;
}
.framework-intro strong {
  color: var(--text-primary);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}
.pillar {
  background: var(--bg-surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background 0.3s;
}
.pillar:hover { background: var(--bg-surface-hover); }
.pillar-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}
.pillar h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.pillar p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Testimonials ── */
.testimonial-section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}
.testimonial-carousel {
  position: relative;
  max-width: 800px;
}
.testimonial-slide {
  display: none;
}
.testimonial-slide.active {
  display: block;
}
.testimonial-quote {
  font-family: "Lora", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.testimonial-quote::before {
  content: "\201C";
  font-size: 4rem;
  line-height: 0;
  vertical-align: -0.5em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 0.25rem;
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.testimonial-author span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}
.testimonial-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.testimonial-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dot.active {
  background: var(--gradient-brand);
  width: 48px;
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--bg-surface);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
}
.blog-card-date {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
}
.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.blog-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}
.blog-card .read-link {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.blog-card:hover .read-link { gap: 0.75rem; }

/* ── CTA ── */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.06;
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}
.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

/* ── Nav dual logo ── */
.nav-logo-light { display: none; }
.nav-logo-dark { display: block; }
[data-theme="light"] .nav-logo-light { display: block; }
[data-theme="light"] .nav-logo-dark { display: none; }
.nav-logo img { height: 58px; width: auto; }

/* ── Nav dropdowns ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown-trigger svg {
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  padding: 0.75rem 0;
  margin-top: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
[data-theme="light"] .nav-dropdown-menu {
  background: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.nav-dropdown-menu a:hover {
  color: var(--text-primary);
  background: var(--accent-glow);
  padding-left: 1.5rem;
}

/* ── Mobile menu section labels ── */
.mobile-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 0 0.5rem 0;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 768px) {
  .blog-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .blog-grid > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .blog-grid::-webkit-scrollbar { display: none; }
  /* Compact blog cards on mobile */
  .blog-grid .card img,
  .blog-grid .card > img {
    height: 120px !important;
  }
  .blog-grid .card h3 {
    font-size: 0.95rem !important;
  }
  .blog-grid .card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem !important;
  }
  .blog-grid .card > div {
    padding: 1rem !important;
  }
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-primary);
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 0.5rem;
}

/* Mobile dropdown accordion */
.mobile-dropdown {
  border-bottom: 1px solid var(--border);
}
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-dropdown-trigger svg {
  transition: transform 0.25s;
}
.mobile-dropdown-trigger.active svg {
  transform: rotate(180deg);
}
.mobile-dropdown-items {
  display: none;
  flex-direction: column;
  padding: 0 0 0.75rem 1rem;
  gap: 0.25rem;
}
.mobile-dropdown-items.open {
  display: flex;
}
.mobile-dropdown-items a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}
.mobile-dropdown-items a:hover {
  color: var(--accent-light);
}

/* Hamburger / X toggle */
.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-hamburger { display: none; }
.nav-toggle.active .icon-close { display: block; }

/* ── Hide nav dropdowns on mobile, show hamburger menu instead ── */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-toggle { display: block; }
  .nav-dropdown-menu { display: none !important; }
}

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .hero-meta { gap: 1.25rem; flex-wrap: wrap; }
  .stat-badge { padding: 0.4rem 0.85rem; }
  .stat-badge .num { font-size: 1rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trust-grid-item { padding: 1rem; min-height: 70px; }
  .trust-grid-item img { height: 40px; }
  .proof-section { grid-template-columns: 1fr; }
  .industry-card { flex: 0 0 260px; padding: 2rem 1.5rem; }
  /* Framework teaser - hide on mobile */
  .framework-teaser { display: none !important; }
  /* Why ClarenSec stats */
  .why-stats { flex-direction: column; gap: 1.5rem; }
  .why-stat-divider { display: none; }
  .why-stat { padding: 0; }
  .why-cases { grid-template-columns: 1fr !important; }
  /* Industry pills */
  .industry-pills { gap: 0.75rem; }
  .industry-pill { padding: 0.75rem 1.25rem; font-size: 0.85rem; }
  /* Testimonials */
  .testimonial-carousel { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2rem, 9vw, 3rem); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════
   TARGETED MOBILE FIXES
   Safe overrides that do NOT touch img sizing
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Grids that need to stack */
  .service-row,
  .service-row.reversed {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2.5rem 0 !important;
  }
  .service-row.reversed .service-text,
  .service-row.reversed .service-visual { order: unset !important; }
  .service-visual { justify-content: center; }

  .scope-grid-4 { grid-template-columns: 1fr !important; }
  .ps-section .ps-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .del-cols { grid-template-columns: 1fr !important; }
  .feature-grid { grid-template-columns: 1fr !important; }
  .ft-inner { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* About page */
  .story-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .team-grid { grid-template-columns: 1fr !important; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Healthcare */
  .problem-grid { grid-template-columns: 1fr !important; }

  /* Info bar */
  .info-bar-inner { grid-template-columns: repeat(2, 1fr) !important; }

  /* Blog listing - horizontal scroll */
  .blog-listing-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
  }
  .blog-listing-grid > * {
    flex: 0 0 80% !important;
    scroll-snap-align: start !important;
  }

  /* Floating badges (ngx-vapt hero) */
  .floating-badges { display: none !important; }

  /* CTA heading */
  .cta-section h2 { font-size: clamp(1.5rem, 6vw, 2.5rem) !important; }

  /* Prevent text overflow */
  pre, code { overflow-x: auto; max-width: 100vw; }
}

@media (max-width: 480px) {
  .info-bar-inner { grid-template-columns: 1fr !important; }
}
