/* Ashcoil - Sovereign AI Brand Platform
   AWARD-WINNING TASTE-SKILL & APPLE DESIGN ENGINE (apple-design.md + taste-skill)
   Cyber Yellow (#FEEC04), Lime Green (#8DC63F) & Gold Tint (#FFF27A)
   Touch-First · Gapless Bento · Faux-macOS Windows · 60fps
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Ashcoil Brand Tokens (Taste-Skill Certified) */
  --apple-brand-yellow: #FEEC04;
  --apple-brand-lime: #8DC63F;
  --apple-brand-highlight: #FFF27A;
  
  --apple-charcoal-dark: #07090E;
  --apple-charcoal-surface: rgba(18, 22, 31, 0.45);
  --apple-charcoal-card: rgba(24, 29, 42, 0.52);
  --apple-charcoal-solid: #0E121A;
  
  --apple-glass-border: rgba(255, 255, 255, 0.16);
  --apple-brand-border: rgba(254, 236, 4, 0.28);
  --apple-brand-glow: rgba(254, 236, 4, 0.45);
  
  --apple-text-primary: #FFFFFF;
  --apple-text-secondary: rgba(255, 255, 255, 0.82);
  --apple-text-muted: rgba(255, 255, 255, 0.68);
  
  /* Typography Hierarchy (Taste Skill §4.1) */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
/* 🔍 HIGH-CONTRAST ACCESSIBILITY FOCUS RING (WCAG 2.2 AAA & ui-ux-pro-max) */
:focus-visible {
  outline: 2px solid var(--apple-brand-yellow) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px rgba(254, 236, 4, 0.6) !important;
}


html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* 📡 RETROFUTURISTIC CRT OPTICAL SCANLINE FILTER */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.16;
}

body {
  background-color: var(--apple-charcoal-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(254, 236, 4, 0.07) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: var(--apple-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shaders WebGPU Cursor Trail Background Container - Full Vertical Length & Viewport Coverage */
#cursor-trail-bg-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Legacy Ambient Canvas (Superseded by Shaders WebGPU) */
#ambient-canvas {
  display: none !important;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Classes (Taste Skill 2-Line Hero Constraint) */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.75vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--apple-text-primary);
  max-width: 1240px;
  margin: 0 auto;
}

.hero-line-1,
.hero-line-2 {
  display: inline-block;
}

.hero-line-2 {
  filter: drop-shadow(0 0 24px rgba(254, 236, 4, 0.18));
}

@media (min-width: 992px) {
  .hero-line-1,
  .hero-line-2 {
    white-space: nowrap;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--apple-text-primary);
}

.section-desc {
  font-size: 16px;
  color: var(--apple-text-secondary);
  line-height: 1.65;
  max-width: 680px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--apple-text-secondary);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin: 0 auto;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Inline Typography Badges (Taste Skill §6) */
.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 980px;
  background: rgba(254, 236, 4, 0.12);
  border: 1px solid rgba(254, 236, 4, 0.35);
  color: var(--apple-brand-highlight);
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
  vertical-align: middle;
}

/* Physical Keystroke Badges (Taste Skill §5) */
kbd, .kbd-badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--apple-brand-highlight);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* 🛸 FROSTED MATTE GLASS ENCLOSURE HEADER */
.glass-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 100;
  background: rgba(12, 15, 22, 0.75);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(254, 236, 4, 0.24);
  border-radius: 980px;
  padding: 10px 24px;
  min-height: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(254, 236, 4, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.glass-header > div {
  width: 100%;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--apple-text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 980px;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--apple-brand-yellow);
  background: rgba(254, 236, 4, 0.14);
}

/* Mobile Header Elements */
.mobile-header-status {
  display: none;
  align-items: center;
  gap: 7px;
  background: rgba(254, 236, 4, 0.08);
  border: 1px solid rgba(254, 236, 4, 0.25);
  border-radius: 980px;
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--apple-brand-highlight);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-action-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-action-btn .btn-text-mobile {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--apple-brand-border);
  border-radius: 980px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFF;
  transition: all 0.25s ease;
}

.mobile-nav-toggle:active {
  transform: scale(0.92);
  background: rgba(254, 236, 4, 0.2);
}

/* Mobile Navigation Drawer Sheet */
.mobile-nav-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-sheet.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--apple-brand-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(254, 236, 4, 0.15);
  border-color: var(--apple-brand-yellow);
  color: var(--apple-brand-yellow);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto 0;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--apple-text-secondary);
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 54px;
}

.mobile-nav-link:active, .mobile-nav-link.active {
  color: var(--apple-brand-yellow);
  background: rgba(254, 236, 4, 0.12);
  border-color: var(--apple-brand-border);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🏢 APPLE DESIGN SYSTEM: TRANSLUCENT ENCLOSURE FOOTER */
.glass-footer {
  margin-top: 120px;
  margin-bottom: 48px;
  background: rgba(14, 18, 26, 0.52);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid var(--apple-brand-border);
  border-right: 1px solid var(--apple-brand-border);
  border-bottom: 1px solid var(--apple-brand-border);
  border-radius: 36px;
  padding: 56px 48px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 30px rgba(254, 236, 4, 0.08);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--apple-text-secondary);
  line-height: 1.6;
  max-width: 460px;
}

.footer-cta-card {
  background: rgba(22, 27, 39, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--apple-brand-border);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.footer-cta-card:hover {
  border-color: rgba(254, 236, 4, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 40px rgba(254, 236, 4, 0.12);
  transform: translateY(-2px);
}

.footer-cta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-cta-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--apple-brand-highlight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(254, 236, 4, 0.08);
  border: 1px solid rgba(254, 236, 4, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.footer-cta-desc {
  font-size: 13px;
  color: var(--apple-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.footer-cta-card .open-audit-trigger {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--apple-brand-highlight);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--apple-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
  min-height: 32px;
}

.footer-link:hover {
  color: var(--apple-brand-yellow);
  transform: translateX(4px);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--apple-text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 980px;
  color: var(--apple-text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-status-pill:hover {
  border-color: rgba(254, 236, 4, 0.35);
  color: #FFF;
}

/* Apple Buttons (Taste Skill Tactile Feedback + Retrofuturistic Telemetry Glow) */
.btn-primary {
  background: linear-gradient(135deg, #8DC63F 0%, #FEEC04 100%);
  color: #0A0D04;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: 0 6px 24px rgba(254, 236, 4, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
  touch-action: manipulation;
  min-height: 44px;
}

.btn-primary:active {
  transform: scale(0.96) translateY(1px);
  box-shadow: 0 2px 10px rgba(254, 236, 4, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FEEC04 0%, #FFF27A 100%);
  transform: translateY(-2deg);
  box-shadow: 0 10px 32px rgba(254, 236, 4, 0.5), inset 0 0 12px rgba(255, 242, 122, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--apple-text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: 980px;
  border: 1px solid var(--apple-brand-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  box-sizing: border-box;
  vertical-align: middle;
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  touch-action: manipulation;
  min-height: 44px;
}

.btn-secondary:active {
  transform: scale(0.96) translateY(1px);
}

.btn-secondary:hover {
  background: rgba(254, 236, 4, 0.14);
  border-color: var(--apple-brand-highlight);
  color: var(--apple-brand-yellow);
}

/* 🎯 HERO CTA GROUP ENGINE (Zero-jitter dual button alignment) */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* 🧱 GAPLESS ASYMMETRICAL BENTO GRIDS (Taste Skill §4) */
.gapless-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 24px;
}

.bento-card {
  background: var(--apple-charcoal-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-left: 1px solid var(--apple-brand-border);
  border-right: 1px solid var(--apple-brand-border);
  border-bottom: 1px solid var(--apple-brand-border);
  border-radius: 28px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  transform: translateZ(0);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(254, 236, 4, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  border-color: rgba(254, 236, 4, 0.55);
  box-shadow: 0 24px 60px rgba(254, 236, 4, 0.18);
}

/* 📡 Retrofuturistic Corner Crosshair Alignment Accents */
.bento-card::after {
  content: '+';
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(254, 236, 4, 0.28);
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: all 0.35s ease;
}

.bento-card:hover::after {
  color: var(--apple-brand-yellow);
  transform: scale(1.2);
  text-shadow: 0 0 8px rgba(254, 236, 4, 0.7);
}

/* Bento Grid Spans */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

/* 🖥️ FAUX-macOS WINDOW CHROME (Taste Skill §5 & §6) */
.faux-window {
  background: rgba(11, 14, 21, 0.88);
  border: 1px solid var(--apple-brand-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.window-header {
  background: rgba(16, 20, 29, 0.95);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-dot.red { background: #FF5F56; }
.traffic-dot.yellow { background: #FFBD2E; }
.traffic-dot.green { background: #27C93F; }

.window-body {
  padding: 24px;
}

/* 🔍 LIVE FTS5 SEARCH SIMULATOR (Taste Skill Interactive Arsenal) */
.fts5-search-input {
  width: 100%;
  background: rgba(16, 21, 31, 0.85);
  border: 1px solid var(--apple-brand-border);
  border-radius: 14px;
  padding: 14px 18px 14px 44px;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fts5-search-input:focus {
  border-color: var(--apple-brand-yellow);
  box-shadow: 0 0 20px rgba(254, 236, 4, 0.25);
}

.fts5-record-item {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  font-size: 12px;
}

.fts5-record-item.matched {
  border-color: var(--apple-brand-yellow);
  background: rgba(254, 236, 4, 0.08);
}

.fts5-highlight {
  background: rgba(254, 236, 4, 0.3);
  color: var(--apple-brand-highlight);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* 🎛️ TAB SWITCHER PILLS (Taste Skill Architecture Showcase) */
.taste-tab-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 23, 33, 0.7);
  padding: 6px;
  border-radius: 980px;
  border: 1px solid var(--apple-brand-border);
  flex-wrap: wrap;
}

.tab-pill {
  background: transparent;
  border: none;
  color: var(--apple-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-pill.active {
  background: var(--apple-brand-yellow);
  color: #0A0D04;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(254, 236, 4, 0.35);
}

.tab-pill:hover:not(.active) {
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

/* 📑 APPLE CLEAN ACCORDIONS */
.taste-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.taste-accordion-item {
  background: var(--apple-charcoal-card);
  border: 1px solid var(--apple-brand-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.taste-accordion-item.active {
  border-color: rgba(254, 236, 4, 0.55);
}

.taste-accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.taste-accordion-header:hover {
  color: var(--apple-brand-highlight);
}

.taste-accordion-header:focus-visible {
  outline: 2px solid var(--apple-brand-yellow);
  outline-offset: -2px;
}

.taste-accordion-header svg,
.taste-accordion-header [data-lucide="chevron-down"] {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.taste-accordion-item.active .taste-accordion-header svg,
.taste-accordion-item.active .taste-accordion-header [data-lucide="chevron-down"] {
  transform: rotate(180deg);
}

.taste-accordion-content {
  padding: 0 24px 22px;
  color: var(--apple-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.taste-accordion-item.active .taste-accordion-content {
  display: block;
}

/* Apple Pills & Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 236, 4, 0.12);
  border: 1px solid rgba(254, 236, 4, 0.35);
  color: var(--apple-brand-highlight);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 980px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--apple-brand-yellow);
  box-shadow: 0 0 10px var(--apple-brand-yellow);
  animation: applePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes applePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Apple Modal Scrim & Materialized Transition (§7 & §12) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border: 1px solid var(--apple-brand-border);
  border-radius: 28px;
  width: 90%;
  max-width: 560px;
  padding: 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.hidden { display: none !important; }

/* Responsive Orientation & Layout Adaptability (Mobile-First / Apple HIG) */
@media (max-width: 960px) {
  .hero-title {
    font-size: clamp(1.98rem, 5.4vw, 3.42rem);
  }
  .gapless-bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 6;
  }
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none !important;
  }
  .header-action-btn .btn-text-full {
    display: none !important;
  }
  .header-action-btn .btn-text-mobile {
    display: inline !important;
  }
  .mobile-header-status {
    display: inline-flex !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .header-action-btn {
    padding: 7px 12px !important;
    font-size: 11px !important;
    min-height: 36px !important;
    border-radius: 980px !important;
  }
  .header-action-btn .btn-text-full {
    display: none !important;
  }
  .header-action-btn .btn-text-mobile {
    display: inline !important;
  }
  .mobile-header-status {
    display: inline-flex !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
  .glass-header {
    width: calc(100% - 20px);
    top: 10px;
    padding: 8px 14px;
    min-height: 52px;
    border-radius: 980px;
  }
  .hero-section {
    padding-top: 118px !important;
  }
  .hero-title {
    font-size: clamp(1.89rem, 6.75vw, 2.88rem);
    letter-spacing: -0.03em;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero-cta-group {
    flex-direction: column !important;
    width: 100%;
    gap: 12px !important;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-starfield,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .gapless-bento-grid {
    grid-template-columns: 1fr !important;
  }
  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 1 !important;
  }
  .bento-card {
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }
  .glass-footer {
    padding: 36px 20px 24px;
    margin-top: 60px;
    border-radius: 28px;
    gap: 36px;
  }
  .footer-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cta-card .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .modal-content {
    width: 100% !important;
    max-height: 90vh !important;
    border-radius: 28px 28px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
  }
  .modal-overlay {
    align-items: flex-end !important;
  }
  input, select, textarea {
    font-size: 16px !important;
    min-height: 48px;
  }
  .badge-pill {
    font-size: 10px;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 1.98rem;
  }
  .glass-footer {
    padding: 28px 16px 20px;
  }
}

@media (max-width: 400px) {
  .mobile-header-status span:last-child {
    display: none;
  }
  .mobile-header-status {
    padding: 6px 8px;
  }
}

/* Reduced Motion Accessibility (§14) */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .modal-content, .mobile-nav-sheet { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-header, .glass-footer, .bento-card, .modal-content, .mobile-nav-sheet {
    background: var(--apple-charcoal-solid) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* ⚡ CYBERNETIC TOAST NOTIFICATION (Taste Skill & ui-ux-pro-max) */
.cyber-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  background: rgba(14, 18, 26, 0.94);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--apple-brand-border);
  border-radius: 14px;
  padding: 14px 22px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(254, 236, 4, 0.2);
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cyber-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cyber-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--apple-brand-yellow);
  box-shadow: 0 0 10px var(--apple-brand-yellow);
  flex-shrink: 0;
}

/* ⚠️ ACCESSIBLE FORM VALIDATION STYLES */
.input-invalid {
  border-color: #FF5F56 !important;
  box-shadow: 0 0 14px rgba(255, 95, 86, 0.45) !important;
  animation: cyberShake 0.3s ease;
}

.input-valid {
  border-color: rgba(52, 199, 89, 0.7) !important;
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.2) !important;
}

.input-feedback-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
  display: none;
}

.input-feedback-msg.error {
  color: #FF5F56;
}

.input-feedback-msg.success {
  color: #34C759;
}

@keyframes cyberShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ⏳ TACTILE SUBMIT BUTTON LOADING STATE */
.btn-primary.loading,
button[type="submit"].loading {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: saturate(0.7);
  position: relative;
}

.btn-primary.loading::after,
button[type="submit"].loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #06070a;
  border-radius: 50%;
  animation: btnSpinner 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes btnSpinner {
  to { transform: rotate(360deg); }
}

/* 📱 TOUCH ERGONOMICS & HOVER SHIELDING (ui-ux-pro-max Priority 2) */
@media (hover: hover) {
  .btn-primary:hover {
    background: linear-gradient(135deg, #FEEC04 0%, #FFF27A 100%);
    transform: translateY(-2deg);
    box-shadow: 0 10px 32px rgba(254, 236, 4, 0.5), inset 0 0 12px rgba(255, 242, 122, 0.35);
  }
  .btn-secondary:hover {
    background: rgba(254, 236, 4, 0.14);
    border-color: var(--apple-brand-highlight);
    color: var(--apple-brand-yellow);
    transform: translateY(-1px);
  }
}

.btn-primary:active, .btn-secondary:active, .bento-card:active {
  transform: scale(0.98);
}

#close-audit-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

#close-audit-modal:hover {
  background: rgba(254, 236, 4, 0.15);
  border-color: var(--apple-brand-yellow);
  color: var(--apple-brand-yellow);
}


/* 🛸 FLOATING EXECUTIVE ACTION DOCK (CRO & Sales Vector) */
.floating-exec-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 90;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(254, 236, 4, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 24px rgba(254, 236, 4, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

.floating-exec-dock.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-dock-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--apple-text-secondary);
  white-space: nowrap;
  user-select: none;
}

.floating-dock-badge {
  color: var(--apple-brand-highlight);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.floating-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.floating-dock-btn {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.floating-dock-cta {
  background: #07090E;
  color: #FFFFFF;
  border: 1px solid rgba(254, 236, 4, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(254, 236, 4, 0.15);
}

.floating-dock-cta:hover {
  background: #FEEC04;
  color: #07090E;
  border-color: #FEEC04;
  box-shadow: 0 6px 20px rgba(254, 236, 4, 0.45);
  transform: translateY(-1px);
}

.floating-dock-cta:active {
  transform: scale(0.97) translateY(1px);
}

.floating-dock-mail {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--apple-text-secondary);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  margin-right: 2px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.floating-dock-mail:hover {
  background: rgba(254, 236, 4, 0.18);
  border-color: #FEEC04;
  color: #FEEC04;
  transform: translateY(-1px);
}

.floating-dock-mail:active {
  transform: scale(0.96) translateY(1px);
}

@media (max-width: 680px) {
  .floating-exec-dock {
    padding: 6px 8px;
    gap: 8px;
  }
  .floating-dock-telemetry {
    display: none;
  }
}

/* 📊 MODAL ZEIGARNIK TELEMETRY PROGRESS BAR */
.modal-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  overflow: hidden;
  margin-bottom: 20px;
}

.modal-progress-bar {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #8DC63F, #FEEC04);
  box-shadow: 0 0 10px var(--apple-brand-yellow);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🛡️ DELIVERABLES GUARANTEE RIBBON */
.modal-guarantee-ribbon {
  background: rgba(254, 236, 4, 0.06);
  border: 1px solid rgba(254, 236, 4, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--apple-brand-highlight);
  flex-wrap: wrap;
}

/* 🎛️ MODAL INTERACTIVE CHIP SELECTOR (Commitment & Consistency) */
.modal-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .modal-chip-grid {
    grid-template-columns: 1fr;
  }
}

.modal-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--apple-text-secondary);
  transition: all 0.2s ease;
  user-select: none;
}

.modal-chip:hover {
  background: rgba(254, 236, 4, 0.08);
  border-color: rgba(254, 236, 4, 0.35);
  color: #FFF;
}

.modal-chip.active {
  background: rgba(254, 236, 4, 0.14);
  border-color: var(--apple-brand-yellow);
  color: var(--apple-brand-highlight);
  box-shadow: 0 0 16px rgba(254, 236, 4, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.modal-chip-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modal-chip.active .modal-chip-dot {
  border-color: var(--apple-brand-yellow);
  background: var(--apple-brand-yellow);
}

/* ⚔️ SOVEREIGN MOAT COMPARISON MATRIX (Category Contrast) */
.comparison-matrix-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid var(--apple-brand-border);
  background: rgba(11, 14, 21, 0.7);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13px;
  text-align: left;
}

.comparison-table th {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 22, 32, 0.85);
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(254, 236, 4, 0.05);
  border-left: 1px solid rgba(254, 236, 4, 0.3);
  border-right: 1px solid rgba(254, 236, 4, 0.3);
}

.comparison-table th.highlight-col {
  color: var(--apple-brand-yellow);
  font-weight: 700;
  border-bottom: 1px solid rgba(254, 236, 4, 0.35);
}

.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--apple-text-secondary);
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.dimmed {
  color: var(--apple-text-muted);
}


/* 📐 ROI CALCULATOR FLUSH HEIGHT ARCHITECTURE */
.roi-calculator-container {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 24px;
  align-items: stretch;
}

.roi-sliders-column {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  height: 100%;
}

.roi-slider-card {
  background: rgba(10, 13, 20, 0.85);
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--apple-brand-border);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.roi-slider-header label {
  color: var(--apple-text-secondary);
  cursor: pointer;
}

.roi-slider-header span {
  color: var(--apple-brand-highlight);
  font-weight: 700;
}

.roi-slider-card input[type="range"] {
  width: 100%;
  accent-color: var(--apple-brand-yellow);
  cursor: pointer;
}

.roi-impact-panel {
  background: rgba(14, 18, 26, 0.95);
  border: 1px solid var(--apple-brand-border);
  padding: 24px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.5);
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 880px) {
  .roi-calculator-container {
    grid-template-columns: 1fr;
  }
  .roi-sliders-column {
    grid-template-rows: auto;
  }
}

/* ==========================================================================
   THE 19 UX LAWS ARCHITECTURAL ENHANCEMENTS
   Hick's, Fitts's, Jakob's, Proximity, Miller's, Doherty, Von Restorff,
   Target Distance, Serial Position, Peak-End, Zeigarnik, Prägnanz,
   Similarity, Uniform Connectedness, Tesler's, Postel's, Parkinson's, Occam's, Pareto
   ========================================================================== */

/* 1. Hick's Law & Tesler's Law: Calculator Presets Bar */
.roi-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.roi-presets-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--apple-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.roi-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--apple-text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.roi-preset-btn:hover {
  background: rgba(254, 236, 4, 0.08);
  border-color: rgba(254, 236, 4, 0.4);
  color: #FFF;
}

.roi-preset-btn.active {
  background: rgba(254, 236, 4, 0.14);
  border-color: var(--apple-brand-yellow);
  color: var(--apple-brand-yellow);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(254, 236, 4, 0.2);
}

/* 2. Fitts's Law & Doherty Threshold: Sub-100ms Tactile Micro-Interactions */
button, .btn-primary, .btn-secondary, .modal-chip, .roi-preset-btn {
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

button:active, .btn-primary:active, .btn-secondary:active, .modal-chip:active, .roi-preset-btn:active {
  transform: scale(0.97) !important;
}

.roi-slider-card input[type="range"]::-webkit-slider-thumb {
  cursor: grab;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.roi-slider-card input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 14px rgba(254, 236, 4, 0.8);
}

.roi-slider-card input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

/* 3. Zeigarnik Effect: Dual-Segment Progress Indicator */
.modal-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.modal-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  gap: 4px;
}

.modal-progress-step {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.modal-progress-step.completed {
  background: #8DC63F;
  box-shadow: 0 0 10px rgba(141, 198, 63, 0.4);
}

.modal-progress-step.active {
  background: var(--apple-brand-yellow);
  box-shadow: 0 0 12px rgba(254, 236, 4, 0.6);
}

/* 4. Peak-End Rule & Doherty Threshold: Luminous Numeric Pulse */
@keyframes numericPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.025);
    filter: brightness(1.25) drop-shadow(0 0 12px rgba(141, 198, 63, 0.5));
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.savings-pulse {
  animation: numericPulse 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Von Restorff Effect & Pareto Principle: Salient High-Conversion Trigger */
.btn-salient {
  background: var(--apple-brand-yellow) !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(254, 236, 4, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-salient:hover {
  background: #FFF !important;
  box-shadow: 0 6px 28px rgba(254, 236, 4, 0.55) !important;
}

/* 💫 ASHCOIL STARFIELD KINETIC BUTTON ENGINE (Originkit Sovereign Customization) */
.btn-starfield {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #07090E !important;
  color: #FFFFFF !important;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: 980px;
  border: 1px solid rgba(254, 236, 4, 0.32) !important;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  min-height: 44px;
  line-height: 1.2;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(254, 236, 4, 0.18) !important;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 1;
}

.btn-starfield:active {
  transform: scale(0.96) translateY(1px);
}

.btn-starfield:hover {
  border-color: rgba(254, 236, 4, 0.75) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 28px rgba(254, 236, 4, 0.4) !important;
  color: #FFF27A !important;
}

.btn-starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-starfield:hover .btn-starfield-canvas {
  opacity: 1;
}

.btn-starfield-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--apple-brand-yellow);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-starfield:hover .btn-starfield-glow {
  opacity: 0.65;
}

.btn-starfield-orbit {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
}

.btn-starfield-orbit::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 270deg,
    rgba(141, 198, 63, 0.45) 305deg,
    #FEEC04 360deg
  );
  animation: starfieldOrbit 3s linear infinite;
}

@keyframes starfieldOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-starfield > span,
.btn-starfield > i,
.btn-starfield > svg {
  position: relative;
  z-index: 2;
}

.btn-starfield > i,
.btn-starfield > svg {
  color: var(--apple-brand-highlight);
  transition: transform 0.25s ease, color 0.25s ease;
}

.btn-starfield:hover > i,
.btn-starfield:hover > svg {
  transform: translate(2px, -2px);
  color: #FFF;
}

/* 6. Miller's Law: Thematic Tenet Cluster Headers in Manifesto */
.tenet-cluster-header {
  grid-column: 1 / -1;
  padding: 12px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
  margin-bottom: 8px;
}

.tenet-cluster-header:first-of-type {
  margin-top: 0;
}

.tenet-cluster-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--apple-brand-highlight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tenet-cluster-desc {
  font-size: 12px;
  color: var(--apple-text-muted);
}

/* 📝 APPLE SPATIAL MODAL FORM PRECISION (Taste Skill §4.5 & §4.6) */
#audit-form input,
#audit-form select {
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  min-height: 46px;
  box-sizing: border-box;
}

#audit-form input:hover,
#audit-form select:hover {
  border-color: rgba(254, 236, 4, 0.45) !important;
}

#audit-form input:focus,
#audit-form input:focus-visible,
#audit-form select:focus,
#audit-form select:focus-visible {
  outline: none !important;
  border-color: var(--apple-brand-yellow) !important;
  box-shadow: 0 0 0 3px rgba(254, 236, 4, 0.24), 0 0 16px rgba(254, 236, 4, 0.12) !important;
  background-color: rgba(14, 18, 28, 0.96) !important;
}

#audit-form input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.modal-chip:focus-visible {
  outline: 2px solid var(--apple-brand-yellow);
  outline-offset: 2px;
}

.modal-chip:active,
#audit-form button:active {
  transform: scale(0.985);
}

/* ==========================================================================
   INSTITUTIONAL PRINT & DOCUMENT CONVERSION HARDENING (Taste Skill §12)
   Removes dynamic WebGL surfaces, modals, fixed navbars, and interactive halos.
   Renders clear high-contrast typography for executive print briefs and PDF conversion.
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  #ambient-canvas,
  #hero-canvas,
  #canvas-container,
  #cursor-trail-bg-root,
  .glass-header,
  .floating-exec-dock,
  #floating-exec-dock,
  .modal-backdrop,
  #modal-backdrop,
  #audit-modal,
  .spotlight-glow,
  .btn-primary,
  .btn-secondary,
  .pill-badge-glow,
  #status-indicator-beacon,
  #transition-veil {
    display: none !important;
  }

  a, a:visited {
    text-decoration: underline;
    color: #000000 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
    color: #000000 !important;
  }

  .bento-card,
  .faux-window,
  .feature-card,
  .pricing-card,
  .tenet-cluster-card {
    border: 1px solid #cccccc !important;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 16pt;
    padding: 12pt !important;
    background: #ffffff !important;
  }
}
