/* ==========================================================================
   NEXQORA SOLUTIONS PVT LTD — DESIGN SYSTEM & STYLESHEET
   Palette: Dark Base + Cyan Signature + Light Theme Extensions
   ========================================================================== */

:root {
  /* Default / Dark Theme Color Palette */
  --bg-dark: #0a0d12;
  --bg-surface: #111620;
  --bg-surface-elevated: #18202e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(0, 229, 255, 0.3);

  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --blue-muted: #3b82f6;
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --emerald: #10b981;

  --grid-pattern-color: rgba(255, 255, 255, 0.02);
  --radial-glow: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, rgba(10, 13, 18, 0) 70%);

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LIGHT THEME OVERRIDES (USES SAME VARIABLES FOR SEAMLESS ADAPTATION) */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 180, 216, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --cyan: #0088a3; /* Hardened cyan for crisp accessible light mode contrast */
  --cyan-glow: rgba(0, 136, 163, 0.12);
  --blue-muted: #2563eb;
  --amber: #d97706;
  --amber-glow: rgba(217, 119, 6, 0.12);
  --emerald: #059669;

  --grid-pattern-color: rgba(0, 0, 0, 0.03);
  --radial-glow: radial-gradient(circle, rgba(0, 136, 163, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Registered custom property so the neon border angle animates smoothly */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Grids & Radial Lights */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, var(--grid-pattern-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-pattern-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

.bg-radial-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: var(--radial-glow);
  pointer-events: none;
  z-index: -1;
}

/* Layout Helpers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 4.25rem 0;
  position: relative;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

.text-cyan { color: var(--cyan); }

body.dark-theme .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

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

.section-header.center {
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--cyan);
  color: #000;
  box-shadow: 0 0 15px var(--cyan-glow);
}

body.light-theme .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-color-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--cyan);
  border-color: var(--border-color-hover);
}

.btn-outline:hover {
  background-color: var(--cyan-glow);
  border-color: var(--cyan);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 10000;
  background-color: color-mix(in srgb, var(--bg-dark) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background-color: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* THEME SWITCHER DROPDOWN STYLES */
.theme-switcher-dropdown {
  position: relative;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn:hover {
  border-color: var(--cyan);
}

.theme-icon {
  display: none;
}

body.dark-theme .theme-icon-dark { display: block; }
body.light-theme .theme-icon-light { display: block; }
body[data-theme-preference="system"] .theme-icon-system { display: block; }
body[data-theme-preference="system"] .theme-icon-dark,
body[data-theme-preference="system"] .theme-icon-light { display: none !important; }

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: var(--transition);
  z-index: 1001;
}

.theme-switcher-dropdown.open .theme-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.theme-option:hover, .theme-option.active {
  background-color: var(--bg-surface-elevated);
  color: var(--cyan);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* HERO SECTION */
.hero {
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cyan-glow);
  border: 1px solid var(--border-color-hover);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--cyan);
}

/* HERO VISUAL: NEXQORA SOLUTIONS SECURITY SURFACE */
.surface-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.surface-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-indicator.live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  margin-right: 4px;
}

.surface-canvas {
  position: relative;
  height: 380px;
  width: 100%;
  margin: 1rem 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* CURSOR-REACTIVE BACKGROUND GLOW (element injected by script.js) */
.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  margin-left: -120px;
  margin-top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 72%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.12s ease-out;
  will-change: transform, opacity;
}

.cursor-glow.active {
  opacity: 1;
}

.surface-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.surface-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--cyan);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.core-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.surface-node {
  position: absolute;
  z-index: 2;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  min-width: 130px;
  transition: var(--transition);
  cursor: grab;
  touch-action: none;
  user-select: none;
  --border-angle: 0deg;
}

.surface-node:hover {
  border-color: var(--cyan);
  transform: scale(1.03);
}

.surface-node.is-dragging {
  cursor: grabbing;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 20px var(--cyan-glow);
}

/* NEON BORDER LOOP — a small glowing "orb" travels around the full perimeter */
.surface-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 300deg,
    var(--cyan-glow) 328deg,
    var(--cyan) 344deg,
    var(--cyan-glow) 356deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
  animation: node-neon-spin 2.6s linear infinite;
}

.node-webapp::before { animation-delay: -0.3s; }
.node-api::before { animation-delay: -1.1s; }
.node-cloud::before { animation-delay: -1.7s; }
.node-network::before { animation-delay: -0.8s; }
.node-database::before { animation-delay: -2.1s; }

@keyframes node-neon-spin {
  to { --border-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .surface-node::before {
    animation: none;
    opacity: 0.5;
  }
}

.node-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0.1rem 0;
}

.node-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.badge-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 2px;
}

.badge-status.secure { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.badge-status.testing { background: var(--amber-glow); color: var(--amber); }
.badge-status.monitored { background: var(--cyan-glow); color: var(--cyan); }
.badge-status.review { background: rgba(59, 130, 246, 0.15); color: var(--blue-muted); }

.surface-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* WHAT WE DO (PILLARS) */
.pillar-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}

.pillar-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}

.pillar-icon {
  margin-bottom: 1.5rem;
}

.pillar-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pillar-list {
  list-style: none;
  margin-bottom: 2rem;
  margin-top: auto;
}

.pillar-list li {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.pillar-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* SOLUTIONS SECTION */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.solution-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.solution-card:hover {
  border-color: var(--cyan);
}

.solution-card-wide {
  grid-column: span 2;
}

.solution-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.solution-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.solution-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.solution-cta {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  transition: var(--transition);
}

.solution-cta:hover {
  letter-spacing: 0.03em;
}

/* WHY NEXQORA SOLUTIONS (ASYMMETRIC GRID) */
.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.asymmetric-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  overflow: hidden;
}

.asymmetric-card:hover {
  border-color: var(--border-color-hover);
}

.asymmetric-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border-color: var(--border-color-hover);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.asymmetric-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.asymmetric-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* NEXQORA SOLUTIONS DIFFERENCE (LIFECYCLE) */
.lifecycle-container {
  overflow-x: auto;
  padding: 2rem 0;
}

.lifecycle-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 800px;
}

.lifecycle-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.step-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.step-tooltip {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: 145px;
  max-width: 145px;
  background-color: var(--cyan);
  color: #000;
  padding: 0.42rem 0.58rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.light-theme .step-tooltip {
  color: #ffffff;
}

.step-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: var(--cyan) transparent;
}

.lifecycle-step:hover .step-node {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.lifecycle-step:hover .step-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lifecycle-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 0.5rem;
  margin-bottom: 1.75rem;
}

/* EDITORIAL GRID (CYBERSECURITY) */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.editorial-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  overflow: hidden;
}

.editorial-card:hover {
  border-color: var(--border-color-hover);
}

.editorial-card.featured-service {
  grid-column: span 1;
  border-color: var(--border-color-hover);
  background: var(--bg-surface-elevated);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.service-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SEGMENTED TABS (ENGINEERING) */
.tabs-wrapper {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-dark);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  position: relative;
  width: fit-content;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  z-index: 2;
}

.tab-btn.active {
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tab-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.tab-card:hover {
  border-color: var(--border-color-hover);
}

.tab-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tab-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* TECH STACK */
.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-group {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
}

.tech-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  width: 180px;
  flex-shrink: 0;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* SELECTED WORK / PORTFOLIO */
.work-card {
  position: relative;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.work-card:hover {
  border-color: var(--border-color-hover);
}

.work-card.real-project-card {
  border-color: var(--border-color-hover);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge-sample {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--amber-glow);
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 2px 6px;
  border-radius: 2px;
}

.badge-real {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--cyan-glow);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 600;
}

.work-category {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.work-preview-window {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.window-bar {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.window-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.4;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.window-content {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-height: 100px;
}

.window-content.live-preview-style {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-browser-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-hero-bar {
  height: 24px;
  background-color: var(--cyan-glow);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}

.mock-hero-bar.secondary {
  background-color: var(--amber-glow);
  border-left-color: var(--amber);
}

.mock-text-line {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 2px;
  width: 90%;
}

.mock-text-line.short {
  width: 60%;
}

.mock-code .c-cyan { color: var(--cyan); }
.mock-code .c-amber { color: var(--amber); }
.mock-code .c-desc { color: var(--text-secondary); }

.mock-nav { height: 12px; background: var(--bg-surface); margin-bottom: 8px; border-radius: 2px; }
.mock-grid { display: flex; gap: 8px; }
.mock-box { flex: 1; height: 50px; background: var(--bg-surface); border-radius: 2px; }

.work-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.work-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.work-action {
  margin-top: auto;
}

/* TRUST ARCHITECTURE PLACEHOLDERS */
.trust-placeholder-section {
  background-color: var(--bg-surface-elevated);
  border-top: 1px dashed var(--amber);
  border-bottom: 1px dashed var(--amber);
}

.trust-placeholder-group {
  margin-bottom: 2rem;
}

.placeholder-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.placeholder-grid {
  display: grid;
  gap: 1rem;
}

.logos-grid {
  grid-template-columns: repeat(4, 1fr);
}

.badges-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid {
  grid-template-columns: repeat(2, 1fr);
}

.placeholder-box {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonial-box {
  text-align: left;
}

.placeholder-text {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.placeholder-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* TIMELINE (HOW WE WORK) */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
}

.timeline-item {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: var(--border-color-hover);
}

.timeline-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* FOUNDER CARD */
.founder-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  align-items: center;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.founder-bio {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.founder-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.credentials-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cred-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-trigger:hover {
  color: var(--cyan);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active .faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* CONTACT FORM */
.contact-form {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.form-status {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.notice {
  display: block;
  background-color: var(--amber-glow);
  border: 1px solid var(--amber);
  color: var(--amber);
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

/* FOOTER */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 2.75rem;
  padding-bottom: 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* SOCIAL LINKS IN FOOTER */
.social-links-wrapper {
  margin-top: 1rem;
}

.social-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icon-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--cyan);
}

.legal-placeholder-link {
  position: relative;
}

.careers-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   NEON ANIMATED BORDER SYSTEM (site-wide)
   Applied to every card-style component across the site. A small bright
   cyan light continuously travels around the full rounded perimeter of
   each card via a masked conic-gradient pseudo-element. The real CSS
   `border` property is never animated — it stays static and subtle while
   this pseudo-element carries the moving highlight.
   ========================================================================== */
.pillar-card::before,
.solution-card::before,
.asymmetric-card::before,
.editorial-card::before,
.tab-card::before,
.work-card::before,
.timeline-item::before,
.faq-item::before,
.founder-card::before,
.contact-form::before,
.tech-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 300deg,
    var(--cyan-glow) 328deg,
    var(--cyan) 344deg,
    var(--cyan-glow) 356deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: node-neon-spin 2.8s linear infinite;
}

/* Gentle per-card desync so nearby cards don't pulse in unison */
.solution-card:nth-of-type(2n)::before,
.editorial-card:nth-of-type(2n)::before,
.tab-card:nth-of-type(2n)::before,
.timeline-item:nth-of-type(2n)::before { animation-delay: -1.4s; }

.editorial-card:nth-of-type(3n)::before,
.asymmetric-card:nth-of-type(3n)::before { animation-delay: -0.9s; }

@media (prefers-reduced-motion: reduce) {
  .pillar-card::before,
  .solution-card::before,
  .asymmetric-card::before,
  .editorial-card::before,
  .tab-card::before,
  .work-card::before,
  .timeline-item::before,
  .faq-item::before,
  .founder-card::before,
  .contact-form::before,
  .tech-group::before {
    animation: none;
    opacity: 0.35;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .asymmetric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .asymmetric-card.featured {
    grid-column: span 2;
  }
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .brand-col {
    grid-column: span 3;
  }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }

  .surface-node {
    min-width: 108px;
    padding: 0.4rem 0.6rem;
  }

  .tab-list {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.75rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 1.25rem);
    padding-bottom: 2.75rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .grid-2, .solutions-grid, .editorial-grid, .tab-content-grid, .work-grid {
    grid-template-columns: 1fr;
  }

  .surface-wrapper {
    padding: 1rem;
  }

  .surface-canvas {
    height: 320px;
  }

  .surface-node {
    min-width: 96px;
    padding: 0.4rem 0.55rem;
  }

  .node-title {
    font-size: 0.68rem;
  }

  .node-meta {
    display: none;
  }

  .surface-core {
    padding: 0.75rem 1rem;
  }

  .tabs-wrapper {
    padding: 1.25rem;
  }

  .tab-list {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .founder-card {
    padding: 2rem 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .lifecycle-container {
    padding: 1.5rem 0;
  }

  .solution-card-wide {
    grid-column: span 1;
  }

  .asymmetric-grid {
    grid-template-columns: 1fr;
  }

  .asymmetric-card.featured {
    grid-column: span 1;
  }

  .tech-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-avatar {
    margin: 0 auto;
  }

  .credentials-row {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-col {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .badges-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-icon {
    height: 32px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    grid-template-columns: 1fr;
  }

  .tech-group-title {
    width: auto;
  }

  .founder-avatar {
    width: 90px;
    height: 90px;
  }

  .founder-title {
    font-size: 1.5rem;
  }

  .surface-node {
    min-width: 84px;
    font-size: 0.9rem;
  }

  .node-title {
    font-size: 0.62rem;
  }
  .theme-val-text {
  display: none;   /* "System" text hide, sirf icon dikhega */
}

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-actions .btn-sm {
    display: none;   /* Hero section already has its own big CTA button below */
  }
}



@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ========================================================================== 
   FINAL POLISH — LEGAL MODALS, LEADERSHIP, TESTIMONIALS & NAV SPACING
   ========================================================================== */

/* Slight breathing room between the brand/theme controls on compact layouts */
.theme-switcher-dropdown {
  margin-left: 0.35rem;
}

/* Leadership cards */
.leadership-header {
  margin-bottom: 2.25rem;
}

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

.leader-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.leader-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}

.leader-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.leader-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: radial-gradient(circle at 35% 25%, rgba(0, 229, 255, 0.18), transparent 55%), var(--bg-surface);
  border: 1px solid rgba(0, 229, 255, 0.45);
}

.leader-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.leader-content h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.leader-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.leader-tags span {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

/* Testimonials */
.testimonials-group {
  margin-top: 2.25rem;
}

.testimonials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  min-height: 215px;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-surface-elevated));
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
}

.testimonial-sample {
  opacity: 0.82;
}

.testimonial-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonial-brand strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.testimonial-brand small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.testimonial-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-ba {
  color: #e6f7ff;
  border-color: rgba(0, 229, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.04));
}

.logo-pf {
  color: #e8fff7;
  border-color: rgba(87, 230, 170, 0.35);
  background: linear-gradient(135deg, rgba(87, 230, 170, 0.18), rgba(87, 230, 170, 0.04));
}

.logo-sample {
  color: var(--text-muted);
}

.testimonial-quote {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-meta {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.testimonial-meta em {
  color: var(--amber);
  font-style: normal;
}

/* Legal footer buttons look like normal footer links */
.legal-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.legal-link:hover {
  color: var(--cyan);
}

.footer-bottom .legal-link {
  color: var(--text-muted);
}

.footer-bottom .legal-link:hover {
  color: var(--cyan);
}

/* Legal modal */
body.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.legal-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 13, 0.78);
  backdrop-filter: blur(8px);
}

.legal-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.985);
  transition: transform 220ms ease;
}

.legal-modal.open .legal-modal-dialog {
  transform: translateY(0) scale(1);
}

.legal-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.legal-modal-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.legal-modal-kicker {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

.legal-modal-dialog h2 {
  margin: 0 2.5rem 1.2rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.legal-modal-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-modal-body h3 {
  margin: 1.25rem 0 0.35rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.legal-modal-body p {
  margin-bottom: 0.75rem;
}

.legal-modal-body ul {
  margin: 0.5rem 0 1rem 1.15rem;
}

.legal-modal-body a {
  color: var(--cyan);
}

.legal-updated {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .theme-switcher-dropdown {
    margin-left: 0.55rem;
  }

  .leadership-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
  }

  .leader-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
  }

  .legal-modal-dialog {
    padding: 1.4rem;
    max-height: 88vh;
  }
}

@media (max-width: 480px) {
  .theme-switcher-dropdown {
    margin-left: 0.35rem;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }
}


/* ========================================================================== 
   FINAL INTERACTION POLISH — TESTIMONIAL CAROUSEL + GLOBAL CURSOR GLOW
   ========================================================================== */

/* FINAL TESTIMONIAL CAROUSEL — show 3 cards at once on desktop */
.testimonials-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.65rem;
}
.testimonials-viewport {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  touch-action: pan-y;
}
.testimonials-grid {
  display: flex !important;
  gap: 1rem;
  width: 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.testimonials-grid .testimonial-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  width: calc((100% - 2rem) / 3);
  min-width: 0;
  min-height: 205px;
  box-sizing: border-box;
}
.testimonial-nav {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border-color); border-radius: 50%;
  background: var(--bg-surface-elevated); color: var(--text-secondary);
  cursor: pointer; font-size: 1rem; transition: var(--transition);
}
.testimonial-nav:hover:not(:disabled) { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px var(--cyan-glow); transform: translateY(-1px); }
.testimonial-nav:disabled { opacity: .32; cursor: default; }
.testimonial-dots { display:flex; justify-content:center; gap:.45rem; margin-top:.85rem; }
.testimonial-dot { width:7px; height:7px; padding:0; border:1px solid var(--border-color); border-radius:50%; background:var(--bg-surface-elevated); cursor:pointer; transition:var(--transition); }
.testimonial-dot.active { width:22px; border-radius:999px; border-color:var(--cyan); background:var(--cyan); box-shadow:0 0 10px var(--cyan-glow); }
@media (max-width: 1024px) {
  .testimonials-grid .testimonial-card { flex-basis: calc((100% - 1rem) / 2); width: calc((100% - 1rem) / 2); }
}
@media (max-width: 640px) {
  .testimonials-carousel { grid-template-columns: 34px minmax(0,1fr) 34px; gap:.45rem; }
  .testimonials-grid .testimonial-card { flex-basis: 100%; width:100%; }
  .testimonial-nav { width:34px; height:34px; font-size:.9rem; }
}


/* The cursor glow now covers the full page, not just the architecture panel. */
.global-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  margin-top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 68%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  will-change: transform, opacity;
}

.global-cursor-glow.active { opacity: 0.42; }

/* Keep page content above the global glow. */
.navbar { position: fixed !important; z-index: 10000 !important; }
main, .footer { position: relative; z-index: 1; }
.bg-grid-overlay { position: fixed !important; z-index: -2 !important; }
.bg-radial-glow { position: fixed !important; z-index: -1 !important; }
.global-cursor-glow { position: fixed !important; z-index: 0 !important; }
.global-cursor-glow { z-index: 0 !important; }

.testimonials-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.65rem;
}

.testimonials-viewport {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.testimonials-grid {
  display: flex !important;
  gap: 1rem;
  width: 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonials-grid .testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

.testimonial-nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition);
}

.testimonial-nav:hover:not(:disabled) {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan-glow);
  transform: translateY(-1px);
}

.testimonial-nav:disabled {
  opacity: 0.32;
  cursor: default;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.testimonial-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  width: 22px;
  border-radius: 999px;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

@media (max-width: 600px) {
  .testimonials-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 0.35rem;
  }

  .testimonial-nav {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-cursor-glow,
  .testimonials-grid {
    transition: none !important;
  }
}


/* ========================================================================
   FINAL CORRECTION — COMPACT SPACING + FIXED NAV + 3-UP TESTIMONIALS
   ======================================================================== */
html { scroll-padding-top: var(--nav-height); }

/* Keep the navbar truly fixed and prevent content from creating a fake gap. */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--nav-height) !important;
  z-index: 10000 !important;
}

/* Restore a compact, balanced vertical rhythm. */
.section { padding: 3.25rem 0; }
.hero {
  padding-top: calc(var(--nav-height) + 1.75rem);
  padding-bottom: 2.75rem;
}
.hero-container { align-items: start; }

/* Compact trust area so the footer does not look separated by a large void. */
.trust-placeholder-section .section-header { margin-bottom: 2rem; }
.trust-placeholder-group { margin-bottom: 1.5rem; }
.testimonials-group { margin-top: 1.5rem; }

/* Desktop: exactly 3 testimonial cards visible at once. */
.testimonials-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: .65rem;
  align-items: center;
}
.testimonials-viewport { min-width: 0; overflow: hidden; }
.testimonials-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  width: 100%;
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.testimonials-grid .testimonial-card {
  flex: 0 0 calc((100% - 2rem) / 3) !important;
  width: calc((100% - 2rem) / 3) !important;
  min-width: 0;
  min-height: 205px;
}

/* Footer: compact, with no unnecessary empty vertical space. */
.footer {
  padding-top: 2rem;
  padding-bottom: .85rem;
}
.footer-grid { margin-bottom: 1.25rem; }
.footer-bottom { padding-top: 1.25rem; }

@media (max-width: 1024px) {
  .section { padding: 3rem 0; }
  .testimonials-grid .testimonial-card {
    flex-basis: calc((100% - 1rem) / 2) !important;
    width: calc((100% - 1rem) / 2) !important;
  }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .hero {
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 2.25rem;
  }
  .footer { padding-top: 1.75rem; padding-bottom: .75rem; }
  .footer-grid { margin-bottom: 1rem; }
  .footer-bottom { padding-top: 1rem; }
}

@media (max-width: 640px) {
  .testimonials-carousel { grid-template-columns: 34px minmax(0,1fr) 34px; gap: .4rem; }
  .testimonials-grid .testimonial-card {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

/* FINAL VIEWPORT/STACKING FIX — prevent background layers from occupying page flow */
.bg-grid-overlay, .bg-radial-glow { pointer-events: none; }
main { min-height: 0; }
.footer { min-height: 0; }
