/* ========================================
   Kairos Platform - Core Styles
   ======================================== */

/* CSS Variables - Light Theme */
:root {
  --font-size: 16px;
  --app-font-size: 14.5px;
  --app-h1-size: 28px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Colors - Light Theme */
  --background: #ffffff;
  --foreground: #2f2d2a;
  --card: #ffffff;
  --card-foreground: #2f2d2a;
  --popover: #ffffff;
  --popup-surface: #ffffff;
  --popover-foreground: #2f2d2a;
  --primary: #2f2d2a;
  --primary-foreground: #ffffff;
  --secondary: #f7f6f4;
  --secondary-foreground: #2f2d2a;
  --muted: #f7f6f4;
  --muted-foreground: #6f6a64;
  --accent: #f7f6f4;
  --accent-foreground: #2f2d2a;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --destructive-soft: rgba(220, 38, 38, 0.1);
  --success: #047857;
  --success-foreground: #ffffff;
  --success-soft: rgba(4, 120, 87, 0.1);
  --warning: #b45309;
  --warning-foreground: #ffffff;
  --warning-soft: rgba(180, 83, 9, 0.12);
  --info: #0369a1;
  --info-foreground: #ffffff;
  --info-soft: rgba(3, 105, 161, 0.1);
  --overlay: rgba(15, 23, 42, 0.48);
  --kbd-background: #ffffff;
  --kbd-foreground: #111827;
  --border: #e7e2dc;
  --input: transparent;
  --input-background: #f7f6f4;
  --switch-background: #d9d2ca;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #2f2d2a;
  --theme-accent: #2f2d2a;
  --theme-accent-hover: #171512;
  --theme-accent-soft: rgba(47, 45, 42, 0.08);
  --theme-accent-soft-strong: rgba(47, 45, 42, 0.14);
  --theme-accent-border: rgba(47, 45, 42, 0.35);
  --theme-accent-muted-border: rgba(47, 45, 42, 0.22);
  --ai-gradient-start: #2f2d2a;
  --ai-gradient-start-hover: #4f4842;
  --ai-gradient-end: #6f6a64;
  --ai-gradient-end-hover: #81766d;
  --ai-contrast: #2f2d2a;
  --ai-soft: rgba(47, 45, 42, 0.12);
  --ai-soft-strong: rgba(47, 45, 42, 0.18);
  --ai-border: rgba(47, 45, 42, 0.28);
  --chart-1: #284b63;
  --chart-2: #62929e;
  --chart-3: #9e6924;
  --chart-4: #5e6c5b;
  --chart-5: #a6445d;
  --radius: 0.5rem;
  --sidebar: #fbfaf8;
  --sidebar-foreground: #2f2d2a;
  --sidebar-primary: #2f2d2a;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e7e2dc;
  --sidebar-accent-foreground: #2f2d2a;
  --sidebar-border: #e7e2dc;
  --sidebar-ring: #2f2d2a;
}

/* Dark Theme */
.dark {
  --background: #0a0a0f;
  --foreground: #f4f4f5;
  --card: #18181b;
  --card-foreground: #f4f4f5;
  --popover: #18181b;
  --popup-surface: #18181b;
  --popover-foreground: #f4f4f5;
  --primary: #a1a1aa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #f4f4f5;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #f4f4f5;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --destructive-soft: rgba(248, 113, 113, 0.14);
  --success: #4ade80;
  --success-foreground: #052e16;
  --success-soft: rgba(134, 239, 172, 0.14);
  --warning: #fbbf24;
  --warning-foreground: #422006;
  --warning-soft: rgba(252, 211, 77, 0.15);
  --info: #38bdf8;
  --info-foreground: #082f49;
  --info-soft: rgba(125, 211, 252, 0.14);
  --overlay: rgba(0, 0, 0, 0.68);
  --kbd-background: #f8fafc;
  --kbd-foreground: #0f172a;
  --border: #3f3f46;
  --input: rgba(255, 255, 255, 0.08);
  --ring: #a1a1aa;
  --theme-accent: #3f4654;
  --theme-accent-hover: #525a6a;
  --theme-accent-soft: rgba(63, 70, 84, 0.12);
  --theme-accent-soft-strong: rgba(63, 70, 84, 0.18);
  --theme-accent-border: rgba(63, 70, 84, 0.4);
  --theme-accent-muted-border: rgba(63, 70, 84, 0.28);
  --ai-gradient-start: #3f4654;
  --ai-gradient-start-hover: #525a6a;
  --ai-gradient-end: #3f4654;
  --ai-gradient-end-hover: #525a6a;
  --ai-contrast: #94a3b8;
  --ai-soft: rgba(148, 163, 184, 0.14);
  --ai-soft-strong: rgba(148, 163, 184, 0.2);
  --ai-border: rgba(148, 163, 184, 0.34);
  --chart-1: #94d2bd;
  --chart-2: #e9d8a6;
  --chart-3: #ee9b00;
  --chart-4: #ca6702;
  --chart-5: #ae3c31;
  --sidebar: #18181b;
  --sidebar-foreground: #f4f4f5;
  --sidebar-primary: #a1a1aa;
  --sidebar-primary-foreground: #18181b;
  --sidebar-accent: #27272a;
  --sidebar-accent-foreground: #f4f4f5;
  --sidebar-border: #3f3f46;
  --sidebar-ring: #a1a1aa;
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: var(--app-font-size);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

h1 { font-size: 1.45rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.08rem; }
h4 { font-size: 0.95rem; }

/* ========================================
   Utility Classes
   ======================================== */
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }

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

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-16 { padding: 4rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 0.95rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-6 { line-height: 1.5; }
.leading-7 { line-height: 1.75; }
.leading-8 { line-height: 2; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-destructive { color: var(--destructive); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-primary { background-color: var(--primary); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-destructive { background-color: var(--destructive); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }
.bg-transparent { background-color: transparent; }

.border { border-width: 1px; border-style: solid; }
.border-border { border-color: var(--border); }
.border-primary { border-color: var(--primary); }
.border-destructive { border-color: var(--destructive); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--border); }
.border-r { border-right-width: 1px; border-right-style: solid; border-color: var(--border); }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: calc(var(--radius) + 4px); }
.rounded-xl { border-radius: calc(var(--radius) + 6px); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.transition { transition-property: color, background-color, border-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease; }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; transition-timing-function: ease; }
.ease { transition-timing-function: ease; }
.duration-160 { transition-duration: 160ms; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }

.shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.min-w-0 { min-width: 0; }
.min-width { min-width: min-content; }

.object-cover { object-fit: cover; }

.select-none { user-select: none; }
.select-text { user-select: text; }

.whitespace-nowrap { white-space: nowrap; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-1 { top: 0.25rem; }
.left-1 { left: 0.25rem; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.-z-10 { z-index: -10; }

.pointer-events-auto { pointer-events: auto; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-16 { padding: 4rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:items-end { align-items: flex-end; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:w-1\/2 { width: 50%; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:gap-8 { gap: 2rem; }
}

/* ========================================
   Layout Components
   ======================================== */
.homepage-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.font-sans { font-family: var(--font-body); }

/* ========================================
   Form Elements
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(47, 45, 42, 0.1);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

/* ========================================
   Buttons
   ======================================== */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--theme-accent-hover, var(--primary));
}

.btn-secondary {
  border-color: var(--primary);
  background: transparent;
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--theme-accent-soft);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-danger {
  border-color: var(--destructive);
  background: var(--destructive-soft);
  color: var(--destructive);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.2);
}

.btn-icon {
  width: 2.25rem;
  padding: 0;
}

/* ========================================
   Cards
   ======================================== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(47, 45, 42, 0.06);
}

.card-body {
  padding: 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.nav-link:hover {
  background: var(--muted);
}

/* ========================================
   Footer
   ======================================== */
.kairos-page-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  padding: 1.25rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.625rem;
  line-height: 1.5;
  text-align: center;
}

.kairos-page-footnote__link {
  color: var(--primary);
  text-decoration: none;
}

.kairos-page-footnote__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

/* ========================================
   Login Page Specific
   ======================================== */
.login-page {
  position: relative;
}

.login-wordmark {
  position: absolute;
  top: 1rem;
  left: clamp(1rem, 2vw, 1.5rem);
  z-index: 30;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.login-wordmark:hover {
  opacity: 0.82;
}

.wordmark-svg {
  height: 28px;
  width: auto;
}

.login-page-footnote {
  padding-right: 0;
  padding-left: 0;
}

/* ========================================
   Dashboard Specific
   ======================================== */
.dashboard-page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

.dashboard-page-shell {
  max-width: 90rem;
  margin: 0 auto;
  padding: 2rem;
}

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

.dashboard-muted-surface {
  background: var(--muted);
}

.dashboard-control {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.15s ease;
}

.dashboard-control-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.dashboard-control-primary:hover {
  opacity: 0.9;
}

.dashboard-control-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.dashboard-control-secondary:hover {
  background: var(--muted);
}

.dashboard-urgent-card {
  min-height: 9rem;
}

.dashboard-graphic {
  width: 5rem;
  height: 5rem;
}

.dashboard-graphic svg {
  width: 100%;
  height: 100%;
  fill: var(--muted-foreground);
}

.dashboard-mini-graphic {
  width: 3.5rem;
  height: 3rem;
}

.dashboard-mini-graphic svg {
  width: 100%;
  height: 100%;
  fill: var(--muted-foreground);
}

.dashboard-urgent-count {
  color: var(--destructive);
}

/* ========================================
   Landing Page Specific
   ======================================== */
.pointer-brand {
  display: inline-flex;
  align-items: center;
}

.pointer-brand__svg {
  height: 40px;
  width: auto;
}

.pointer-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.pointer-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.pointer-top-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pointer-top-nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  opacity: 0.7;
  cursor: not-allowed;
}

.pointer-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pointer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pointer-btn--solid {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.pointer-btn--solid:hover {
  opacity: 0.9;
}

.pointer-btn--ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.pointer-btn--ghost:hover {
  background: var(--muted);
}

.pointer-btn--ghost-dark {
  background: transparent;
  color: var(--background);
  border-color: var(--background);
}

.pointer-btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pointer-btn--compact {
  min-height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

.pointer-signin-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
}

.pointer-signin-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.pointer-hero-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 1rem;
  background: #005b96;
  color: var(--background);
}

.pointer-hero-surface::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 65%;
  background: radial-gradient(circle at 15% 10%, rgba(110, 193, 228, 0.35), transparent 30%), radial-gradient(circle at 80% 15%, rgba(255,255,255,0.14), transparent 35%);
  pointer-events: none;
}

.pointer-hero-surface > * {
  position: relative;
  z-index: 1;
}

.pointer-hero {
  position: relative;
  display: grid;
  min-height: 80vh;
  align-items: center;
  gap: 3rem;
  padding-block: 2rem 2rem;
  text-align: center;
}

.hero-copy-block {
  position: relative;
  z-index: 20;
}

.hero-scene-shell {
  position: relative;
  height: calc(80vh - 80px);
  overflow: visible;
}

@media (min-width: 768px) {
  .pointer-hero {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 4rem;
  }
  
  .hero-copy-block {
    max-width: 60rem;
    margin-right: -4rem;
  }
  
  .hero-scene-shell {
    width: min(70%, 40rem);
    justify-self: flex-end;
    margin-left: auto;
    margin-right: 0;
  }
}

@media (min-width: 1024px) {
  .hero-copy-block {
    max-width: 60rem;
    margin-right: -2rem;
  }
}

.pointer-hero__title {
  margin-top: 0.5rem;
  font-size: clamp(1.625rem, 4vw, 3rem);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.pointer-hero__line {
  display: inline !important;
}

.pointer-hero__line--a::after {
  content: ' ';
}

.pointer-hero__line--c {
  display: inline !important;
}

.pointer-hero__title--light {
  color: #f7fbff;
  text-shadow: 0 8px 30px rgba(7, 26, 47, 0.22);
}

.pointer-hero__copy {
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.8;
}

.pointer-hero__copy--light {
  color: rgba(255, 255, 255, 0.85);
}

.pointer-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.section-eyebrow--light {
  color: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-copy {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 48rem;
}

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

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

.section-heading--center .section-copy {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Spinner
   ======================================== */
.pi-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pi-spinner::before {
  content: "\e91b";
}

/* ========================================
   Responsive Helpers
   ======================================== */
@media (max-width: 639px) {
  .hidden\:max-sm-none { display: none; }
}

@media (min-width: 640px) {
  .max-sm\:flex { display: flex; }
  .max-sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .max-sm\:items-end { align-items: flex-end; }
}

@media (max-width: 1023px) {
  .max-lg\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .min-lg\:flex { display: flex; }
  .min-lg\:w-1\/2 { width: 50%; }
}

/* ========================================
   Placeholder Images
   ======================================== */
.placeholder-image {
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ========================================
   Avatar
   ======================================== */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-sm {
  width: 1.5rem;
  height: 1.5rem;
}

.avatar-lg {
  width: 4rem;
  height: 4rem;
}

/* ========================================
   Badge / Chip
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--foreground);
}

.badge-primary {
  background: var(--theme-accent-soft);
  color: var(--primary);
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-destructive {
  background: var(--destructive-soft);
  color: var(--destructive);
}

/* ========================================
   Progress Bar
   ======================================== */
.progress {
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.progress-bar-success { background: var(--success); }
.progress-bar-warning { background: var(--warning); }
.progress-bar-destructive { background: var(--destructive); }

/* ========================================
   Table
   ======================================== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background: var(--muted);
}

.table tbody tr:hover {
  background: var(--muted);
}

/* ========================================
   Dropdown / Popup
   ======================================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  min-width: 12rem;
  padding: 0.5rem;
  margin-top: 0.25rem;
  background: var(--popup-surface, var(--popover));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--popover-foreground);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background: var(--muted);
}

/* ========================================
   Tabs
   ======================================== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========================================
   Modal / Dialog
   ======================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ========================================
   Focus Visible
   ======================================== */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ========================================
   Smooth Transitions
   ======================================== */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-enter-active,
.slide-leave-active {
  transition: transform 0.3s ease;
}

.slide-enter-from {
  transform: translateY(-10px);
}

/* ========================================
   Hero Section Styles
   ======================================== */
.hero-section {
  background-color: #005b96;
  min-height: 100vh;
  padding: 4rem 2rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 8rem);
}

@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

.hero-left {
  flex: 1;
  color: white;
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.hero-btn-solid {
  background: #000000;
  color: #ffffff;
  border: none;
}

.hero-btn-solid:hover {
  background: #f0f0f0;
}

.hero-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
}

@media (min-width: 768px) {
  .hero-image {
    max-width: 700px;
    max-height: 500px;
  }
}

/* ========================================
   Trust Strip Styles
   ======================================== */
.pointer-trust-strip__copy-block {
  text-align: center;
}

.pointer-trust-strip__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6a64;
}

/* ========================================
   Final CTA Section Styles
   ======================================== */
.final-cta {
  padding: 8rem 2rem;
  background: #f7f6f4;
  text-align: center;
}

.final-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: #171512;
  margin: 0 0 2.5rem 0;
  line-height: 1.1;
}

.final-cta-btn {
  padding: 1.25rem 3rem;
  background: #2f2d2a;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.final-cta-btn:hover {
  background: #171512;
  transform: translateY(-2px);
}

/* ========================================
   Industry Research Section Styles
   ======================================== */
.research-section {
  padding: 6rem 2rem;
  background: #ffffff;
}

.research-container {
  max-width: 1400px;
  margin: 0 auto;
}

.research-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.research-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 1rem 0;
}

.research-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #171512;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.research-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4a4540;
  margin: 0;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.research-card {
  padding: 2.5rem;
  background: #f7f6f4;
  border-radius: 0.75rem;
  border: 1px solid #e7e2dc;
  transition: all 0.3s ease;
}

.research-card:hover {
  background: #f0ede8;
  transform: translateY(-2px);
}

.research-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.research-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #171512;
  margin: 1rem 0 0.75rem 0;
  line-height: 1.4;
}

.research-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a4540;
  margin: 0 0 1.5rem 0;
}

.research-card-stats {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #171512;
}

.stat-label {
  font-size: 0.875rem;
  color: #6f6a64;
  margin-top: 0.25rem;
}

.research-actions {
  text-align: center;
  margin-top: 3rem;
}

.research-btn {
  padding: 1rem 2rem;
  background: #2f2d2a;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.research-btn:hover {
  background: #171512;
}

/* ========================================
   Fireside Section Styles
   ======================================== */
.fireside-section {
  padding: 6rem 2rem;
  background: #f7f6f4;
}

.fireside-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .fireside-container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  
  .fireside-left {
    width: 55%;
  }
  
  .fireside-right {
    width: 45%;
  }
}

.fireside-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fireside-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0;
}

.fireside-title {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: #171512;
  margin: 0;
  line-height: 1.4;
}

.fireside-copy {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4a4540;
  margin: 0;
  max-width: 500px;
}

.fireside-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .fireside-actions {
    flex-direction: row;
  }
}

.fireside-btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1rem;
}

.fireside-btn--solid {
  background: #2f2d2a;
  color: #ffffff;
}

.fireside-btn--solid:hover {
  background: #171512;
}

.fireside-btn--ghost {
  background: transparent;
  color: #2f2d2a;
  border-color: #2f2d2a;
}

.fireside-btn--ghost:hover {
  background: #2f2d2a;
  color: #ffffff;
}

.fireside-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fireside-image-container {
  width: 100%;
  max-width: 550px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.fireside-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Product Showcase Styles
   ======================================== */
.product-showcase {
  padding: 4rem 2rem;
  background: #ffffff;
}

.product-showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-showcase-container {
    flex-direction: row;
  }
  
  .product-showcase-left {
    width: 40%;
  }
  
  .product-showcase-right {
    width: 60%;
  }
}

.product-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.product-tab {
  text-align: left;
  padding: 1.25rem;
  background: #f7f6f4;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tab:hover {
  background: #e7e2dc;
  border-color: #d9d2ca;
}

.product-tab-active {
  background: #2f2d2a;
  border-color: #2f2d2a;
  color: #ffffff;
}

.product-tab-active:hover {
  background: #171512;
  border-color: #171512;
}

.product-tab h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.product-tab p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

.product-showcase-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-container {
  width: 100%;
  max-width: 800px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Scroll Animation Styles
   ======================================== */
.scroll-container {
  overflow: hidden;
  width: 100vw;
  height: 60px;
  margin-top: 2rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
  height: 100%;
  align-items: center;
}

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

.scroll-item {
  display: inline-block;
  padding: 0 30px;
}

.scroll-item img {
  height: 35px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-item:hover img {
  opacity: 1;
}

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

/* ========================================
   Hero Image Styles
   ======================================== */
.hero-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bridge-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-leave-to {
  transform: translateY(10px);
}