/* ==========================================================================
   MUJEEB UL HAQ QADRI (v2) - Core Design System & Tokens
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;

  /* Color Palette - Obsidian Noir & Warm Studio Ember (Harmonized with 9:16 Video) */
  --bg-base: #060406;
  --bg-surface: #0c080b;
  --bg-elevated: #140d12;
  --bg-glass: rgba(12, 8, 11, 0.84);
  --bg-glass-card: rgba(19, 13, 17, 0.75);
  --bg-glass-hover: rgba(30, 20, 27, 0.88);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #94a3b8;
  --text-dim: #475569;

  --accent-primary: #6366f1;       /* Electric Indigo */
  --accent-primary-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-ember: #ed5e4d;         /* Studio Rim Light Coral/Ember */
  --accent-ember-glow: rgba(237, 94, 77, 0.35);
  --accent-cyan: #06b6d4;          /* Cyber Cyan */
  --accent-cyan-hover: #0891b2;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-emerald: #10b981;       /* QA Telemetry Green */
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;         /* Champagne Gold */
  --accent-gold: #fbbf24;
  --accent-purple: #a855f7;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(237, 94, 77, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--accent-glow);

  --max-width: min(94vw, 1440px);
  --nav-height: 76px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  line-height: 1.65;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: clip;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Ambient Radial Glow */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  width: min(85vw, 1100px);
  height: 45vw;
  background: radial-gradient(ellipse at center, rgba(237, 94, 77, 0.10) 0%, rgba(99, 102, 241, 0.08) 35%, rgba(6, 182, 212, 0.04) 65%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* Top Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-ember), var(--accent-primary), var(--accent-cyan));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  word-break: break-word;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 900;
  background-color: rgba(6, 4, 6, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(6, 4, 6, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(237, 94, 77, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: #fff;
  line-height: 1.2;
  font-size: 1rem;
}

.brand-role {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Button Variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  white-space: nowrap;
  min-height: 44px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #3730a3 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-inline: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6366f1 0%, var(--accent-primary) 100%);
  box-shadow: 0 6px 28px rgba(79, 70, 229, 0.5);
  transform: translateY(-2px);
}

/* Specular Halo Ambient Animated Button (Harmonized Motion & Depth) */
.btn-halo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #0c080b;
  color: #fff;
  border: none;
  box-shadow: 0 4px 22px rgba(237, 94, 77, 0.35);
}

.btn-halo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, var(--accent-ember) 320deg, var(--accent-cyan) 360deg);
  animation: ctaRotateHalo 4s linear infinite;
  z-index: -2;
}

.btn-halo::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(135deg, #140d12 0%, #0c080b 100%);
  border-radius: inherit;
  z-index: -1;
  transition: background 0.25s ease;
}

.btn-halo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(237, 94, 77, 0.45), 0 0 20px rgba(6, 182, 212, 0.25);
}

.btn-halo:hover::after {
  background: linear-gradient(135deg, #1d121a 0%, #100b0f 100%);
}

@keyframes ctaRotateHalo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-inline: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #fff;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer (Full-Height Glass Overlay) */
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(6, 5, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  gap: 1.25rem;
  z-index: 890;
  overflow-y: auto;
  transform: translateY(-105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid var(--border-medium);
}

.mobile-nav-menu.open {
  transform: translateY(0);
}

.mobile-nav-menu .nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Direct Answer Callout Boxes (AEO Engine) */
.aeo-callout {
  background: linear-gradient(135deg, rgba(12, 8, 11, 0.95) 0%, rgba(18, 12, 16, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(237, 94, 77, 0.38);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem 2.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.aeo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.aeo-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.aeo-question svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.aeo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.aeo-answer {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

.aeo-answer strong {
  color: #fff;
  font-weight: 600;
}

.aeo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0.85rem 1.5rem;
}

.aeo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.aeo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.aeo-step-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ==========================================================================
   OPTION A VISUAL ELEVATION: Credential Marquee, Specular Borders & Living UI
   ========================================================================== */

/* Infinite Credential Marquee */
.credential-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 2.25rem;
  padding-block: 0.6rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.15rem;
  animation: marqueeGlide 42s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(17, 23, 35, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.83rem;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.marquee-pill:hover {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(26, 36, 54, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(6, 182, 212, 0.2);
  color: #fff;
}

.marquee-pill strong {
  color: #fff;
  font-weight: 600;
}

@keyframes marqueeGlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Living UI: Live Simulated Telemetry Beacon Pill */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-top: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.74rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.beacon-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.beacon-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: beaconPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.3); opacity: 0; }
}

/* Living UI: Animated SVG Score Gauge Box */
.score-gauge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(17, 23, 35, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.score-gauge-wrapper {
  position: relative;
  width: 154px;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-gauge-svg {
  width: 154px;
  height: 154px;
  transform: rotate(-90deg);
}

.score-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.score-gauge-ring {
  fill: none;
  stroke: url(#scoreGaugeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 364.4;
  stroke-dashoffset: 364.4;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.score-gauge-val {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
  text-align: center;
}

.score-gauge-pct {
  font-size: 0.82em;
  opacity: 0.92;
  margin-left: 1px;
  font-weight: 700;
}

.score-gauge-sub {
  font-size: 0.68rem;
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* General Section Layout */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag.emerald {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.section-title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
}

/* Glass Card (Enhanced Optical Tactile Depth) */
.glass-panel {
  background: linear-gradient(145deg, rgba(20, 14, 19, 0.88) 0%, rgba(10, 7, 11, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 48px -12px rgba(0, 0, 0, 0.85),
    0 8px 16px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.glass-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 94, 77, 0.4);
  border-top-color: rgba(237, 94, 77, 0.7);
  box-shadow: 
    0 28px 60px -10px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(237, 94, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding-block: 4rem 2.5rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-bio p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

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

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-cyan);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.15);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* Appraisals Stacking Container & Cards */
.appraisals-stack-container,
.appraisals-grid {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
}

.appraisal-card {
  position: sticky;
  top: calc(88px + var(--card-index, 0) * 14px);
  margin-bottom: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.85rem 2rem;
  background: linear-gradient(155deg, rgba(18, 14, 22, 0.96) 0%, rgba(9, 7, 12, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 28px 65px -12px rgba(0, 0, 0, 0.92),
    0 0 25px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.appraisal-card:last-child {
  margin-bottom: 1.5rem;
}

.appraisal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
  border-top-color: var(--accent-cyan);
  box-shadow: 
    0 32px 75px -10px rgba(0, 0, 0, 0.96),
    0 0 30px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.appraisal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.appraisal-manager {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.appraisal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.appraisal-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.appraisal-cycle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.rating-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.rating-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.rating-stars {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* 5.0 Rating: Emerald Glow */
.rating-badge.rating-5 {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.rating-badge.rating-5 .rating-stars {
  color: #10b981;
}

/* 4.0 Rating: Cyan Glow */
.rating-badge.rating-4 {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
}
.rating-badge.rating-4 .rating-stars {
  color: #06b6d4;
}

/* 3.0 Rating: Amber Glow */
.rating-badge.rating-3 {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.rating-badge.rating-3 .rating-stars {
  color: #f59e0b;
}

.appraisal-quote {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.appraisal-quote strong {
  color: #fff;
  font-style: normal;
}

.appraisal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.appraisal-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.cta-contact-btn {
  padding: 0.9rem 2rem;
  font-size: 1.02rem;
}

.faq-card, .experience-card {
  padding: 1.5rem 1.75rem;
}

@media (max-width: 768px) {
  .section {
    padding-block: 2.25rem 1.75rem;
  }
  .section-header {
    margin-bottom: 1.75rem;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .appraisals-stack-container,
  .appraisals-grid {
    margin-top: 1.5rem;
    gap: 0;
  }
  .appraisal-card {
    position: sticky !important;
    top: calc(68px + var(--card-index, 0) * 8px) !important;
    margin-bottom: 2rem !important;
    padding: 1.15rem 1rem !important;
    border-radius: var(--radius-lg);
    box-shadow: 
      0 18px 45px -10px rgba(0, 0, 0, 0.95),
      0 0 18px rgba(99, 102, 241, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .appraisal-card:last-child {
    margin-bottom: 1rem !important;
  }
  .site-footer {
    padding-block: 2.5rem 1.75rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 62px;
  }
  .nav-inner {
    gap: 0.5rem;
  }
  .brand-badge {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .brand-name {
    font-size: 0.92rem;
  }
  .brand-role {
    font-size: 0.62rem;
  }
  #unlockContactBtn {
    padding: 0.45rem 0.65rem;
    min-height: 36px;
    min-width: 36px;
    font-size: 0.8rem;
  }
  #unlockContactBtn .btn-text {
    display: none;
  }
  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .aeo-callout {
    padding: 1rem 1.15rem;
    margin-block: 1rem 1.5rem;
  }
  .cta-contact-btn {
    width: 100% !important;
    max-width: 335px !important;
    padding: 0.8rem 1.25rem !important;
    font-size: 0.92rem !important;
    white-space: normal !important;
  }
  .faq-card, .experience-card {
    padding: 1.15rem 1rem !important;
  }
  .faq-card h3, .experience-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  .faq-card p, .experience-card ul {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
  }
}
