/* Hallmark · checked: 2026-11-19 · genre: modern-minimal · built: the project · redesign: restyle · v2.0.0 */
/* critique: Restyled from gaudy glowing neon to restrained B2B luxury obsidian; fixed window fitting, removed AI tells and glued arrows */

@import "./tokens.css";
@import "./base.css";

/* Hallmark Floor Controls: Accessibility & Motion */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 2px !important;
}

@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;
  }
}

/* Brand Identity */
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.brand-emblem-glow {
  transition: transform var(--dur-short) var(--ease-out);
}
.brand-emblem-glow:hover {
  transform: scale(1.04);
}

/* Atmospheric Subtle Starfield / Background */
.space-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: transparent;
}

.silk-bg-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Ensure all interactive layers & content render in front of background */
main,
#hero-root,
#header-root,
.site-header,
.site-footer,
header,
footer,
nav,
section {
  position: relative;
  z-index: 10;
}

#nodeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Floating Glowing Orbs */
.orb-glow-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.glow-magenta {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.45) 0%, rgba(244, 63, 94, 0.1) 50%, transparent 70%);
  top: -80px;
  left: 12%;
}

.glow-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  bottom: 8%;
  right: 8%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-pink-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.5) 0%, transparent 70%);
  top: 35%;
  left: 5%;
  animation-duration: 16s;
}

.orb-pink-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.45) 0%, transparent 70%);
  top: 60%;
  right: 18%;
  animation-duration: 20s;
  animation-delay: -7s;
}

.orb-blue-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
  bottom: 22%;
  left: 28%;
  animation-duration: 24s;
  animation-delay: -11s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 45px) scale(1.08); }
  100% { transform: translate(-25px, -30px) scale(0.95); }
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-35px, 25px) scale(1.12) rotate(45deg); }
  100% { transform: translate(30px, -40px) scale(0.92) rotate(-30deg); }
}

/* Hero mesh gradient pulse */
.hero-gradient-pulse {
  animation: heroPulse 14s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% {
    transform: rotate(30deg) scale(1) translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: rotate(33deg) scale(1.07) translateY(-18px);
    opacity: 0.45;
  }
  100% {
    transform: rotate(27deg) scale(0.95) translateY(15px);
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-glow-ambient,
  .orb,
  .hero-gradient-pulse {
    animation: none !important;
  }
}

/* Restyled Architectural Glass Panels */
.cyber-panel {
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.cyber-panel:hover {
  border-color: var(--color-rule-2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav, 300);
  background: color-mix(in oklab, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* Navigation Links */
.nav-link {
  color: var(--color-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: color var(--dur-short) var(--ease-out);
  padding: var(--space-xs) var(--space-2xs);
  position: relative;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--color-ink);
}
.nav-link.active {
  color: var(--color-ink);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   AUTHENTIC APPLE TAHOE / VISIONOS LIQUID GLASS DESIGN SYSTEM
   ========================================================================== */

/* 1. Primary Luminous Liquid Glass Button */
.liquid-glass-btn-primary,
.pill-btn,
.btn-pill-glow {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.85rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.75) 0%, rgba(219, 39, 119, 0.65) 50%, rgba(225, 29, 72, 0.7) 100%), rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(220%);
  -webkit-backdrop-filter: blur(24px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 24px -2px rgba(244, 63, 94, 0.5),
    0 8px 32px -4px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.liquid-glass-btn-primary:hover,
.pill-btn:hover,
.btn-pill-glow:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.9) 0%, rgba(219, 39, 119, 0.8) 50%, rgba(225, 29, 72, 0.85) 100%), rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.65);
  border-top-color: #ffffff;
  box-shadow:
    0 0 32px 0 rgba(244, 63, 94, 0.7),
    0 16px 48px -4px rgba(0, 0, 0, 0.7),
    inset 0 2px 2.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-2px) scale(1.02);
}

.liquid-glass-btn-primary:active,
.pill-btn:active,
.btn-pill-glow:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 2px 12px rgba(244, 63, 94, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.liquid-glass-btn-primary:disabled,
.pill-btn:disabled,
.btn-pill-glow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 2. Secondary Crystal Liquid Glass Button */
.liquid-glass-btn-secondary,
.btn-pill-subtle {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.85rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.liquid-glass-btn-secondary:hover,
.btn-pill-subtle:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 12px 40px 0 rgba(0, 0, 0, 0.5),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
}

.liquid-glass-btn-secondary:active,
.btn-pill-subtle:active {
  transform: translateY(1px) scale(0.99);
}

/* 3. Liquid Glass Capsule Badge */
.liquid-glass-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #e2e8f0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.liquid-glass-badge:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border-color: rgba(255, 255, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.65);
}

/* 4. Liquid Glass Panels & Cards */
.liquid-glass-panel,
.cyber-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.015) 100%
  ), rgba(10, 12, 20, 0.72) !important;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: var(--radius-card, 1.5rem);
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.liquid-glass-panel:hover,
.cyber-panel:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  border-top-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow:
    0 28px 70px -10px rgba(0, 0, 0, 0.65),
    0 0 35px -6px rgba(244, 63, 94, 0.18),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

/* 5. Liquid Glass Quote Container */
.liquid-glass-quote {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(192, 38, 211, 0.06) 50%,
    rgba(56, 189, 248, 0.04) 100%
  );
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 36px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
  border-radius: 1.25rem;
}

/* Form Inputs */
.cyber-input {
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 8px;
  color: var(--color-ink);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  outline: none;
  width: 100%;
  transition: border-color var(--dur-short) var(--ease-out);
}
.cyber-input:focus {
  border-color: var(--color-accent);
}
.cyber-input:focus-visible {
  outline: 2px solid var(--color-focus);
}

/* Restyled Sliders */
input[type=range].cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-rule);
  border-radius: var(--radius-pill);
  outline: none;
  transition: background var(--dur-short) var(--ease-out);
}
input[type=range].cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-ink);
  transition: transform var(--dur-micro) var(--ease-out);
}
input[type=range].cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type=range].cyber-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-ink);
}

/* Equalizer Bars */
.equalizer-bar {
  display: inline-block;
  width: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: eqPulse 1.2s ease-in-out infinite;
}
.equalizer-bar:nth-child(2) { animation-delay: 0.18s; height: 16px; }
.equalizer-bar:nth-child(3) { animation-delay: 0.36s; height: 22px; }
.equalizer-bar:nth-child(4) { animation-delay: 0.08s; height: 14px; }
.equalizer-bar:nth-child(5) { animation-delay: 0.45s; height: 19px; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* OCR Bounding Boxes */
.ocr-bbox {
  position: absolute;
  border: 1px solid var(--color-cool);
  background: var(--color-cool-soft);
  border-radius: 4px;
  pointer-events: none;
}
.ocr-bbox.active {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* Tabs */
.partner-tab-btn.active {
  background: var(--color-rule-2);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

/* Toast */
.cyber-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-toast, 500);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule-2);
  box-shadow: var(--shadow-card);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Mobile Drawer */
.mobile-drawer-sheet {
  position: fixed;
  inset-x: 0;
  top: 57px;
  bottom: 0;
  background: var(--color-paper);
  z-index: var(--z-modal, 400);
  border-top: var(--rule-hair) solid var(--color-rule);
  overflow-y: auto;
}

/* Window Fitting Discipline */
.hero-viewport-fit {
  min-height: calc(100dvh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: var(--space-xl);
}

/* ==========================================================================
   Widescreen Full-Page Viewport Expansion (Zero Letterboxing)
   ========================================================================== */
html, body {
  width: 100%;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

/* Fluid Responsive Expansive Container System */
.container,
main,
.max-w-7xl {
  max-width: min(96vw, 1536px) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Ensure auto margins and text-center are strictly honored for heroes & content */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.text-center {
  text-align: center !important;
}

.text-center h1,
.text-center h2,
.text-center h3,
.text-center p,
.text-center span,
.text-center div {
  text-align: inherit;
}

/* Widescreen padding discipline */
main > section,
header > .max-w-7xl {
  padding-left: clamp(1rem, 3vw, 3rem) !important;
  padding-right: clamp(1rem, 3vw, 3rem) !important;
}

/* Hero sections window-fitting discipline */
section.hero-viewport,
.hero-viewport-fit {
  min-height: calc(100dvh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: clamp(2rem, 5vh, 4rem) !important;
  padding-bottom: clamp(2rem, 4vh, 4rem) !important;
  box-sizing: border-box;
}

main > section:first-of-type {
  box-sizing: border-box;
}

/* Interactive Simulator / Cockpit Widescreen Expansion */
#simulator,
#roi-calculator,
.cyber-panel,
.cockpit-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Widescreen 2-column flex for interactive cockpits & consoles */
.aura-grid-cockpit,
#aura-container,
.finance-grid,
.roi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .aura-grid-cockpit,
  #aura-container {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

/* Ensure text-heavy legal policies remain readable without giant line runs */
.legal-prose,
article.prose {
  max-width: 78ch !important;
  margin-inline: auto;
}

/* ==========================================================================
   shadcn & React Hero Component Compatibility Classes
   ========================================================================== */
.bg-primary {
  background-color: var(--color-accent, oklch(68% 0.22 355)) !important;
}
.text-primary-foreground {
  color: #ffffff !important;
}
.hover\:bg-primary\/90:hover {
  background-color: color-mix(in oklab, var(--color-accent) 88%, white) !important;
}
.text-foreground {
  color: var(--color-ink, #ffffff) !important;
}
.text-muted-foreground {
  color: var(--color-ink-faint, #94a3b8) !important;
}
.hover\:text-muted-foreground:hover {
  color: #cbd5e1 !important;
}
.bg-card {
  background-color: var(--color-paper-2, #0c101d) !important;
}
.text-card-foreground {
  color: var(--color-ink, #ffffff) !important;
}
.ring-border {
  border-color: var(--color-rule, rgba(255, 255, 255, 0.12)) !important;
}
.sm\:ring-ring:hover, .hover\:ring-ring:hover {
  border-color: var(--color-accent, oklch(68% 0.22 355)) !important;
}
.text-primary {
  color: var(--color-accent, oklch(68% 0.22 355)) !important;
}
.hover\:text-primary\/80:hover {
  color: color-mix(in oklab, var(--color-accent) 80%, white) !important;
}
.focus-visible\:outline-ring:focus-visible {
  outline-color: var(--color-accent, oklch(68% 0.22 355)) !important;
}
