/* MAR Insight AI - Static HTML/CSS Version */
/* Converted from Next.js/Tailwind */

/* ========================================
   CSS RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
  /* Core palette - using hex for max compatibility */
  --background: #f8f9fa;
  --foreground: #1a2332;
  --card: #ffffff;
  --card-foreground: #1a2332;
  --primary: #2a3f5f;
  --primary-foreground: #f8f9fa;
  --secondary: #f0f2f4;
  --muted: #e8eaed;
  --muted-foreground: #6b7280;
  --border: #e2e4e8;
  
  /* Brand colors */
  --navy: #2a3f5f;
  --navy-deep: #1e2d45;
  --teal: #3d9a8b;
  --teal-light: #d4ede9;
  --amber: #d4a04a;
  --alert-red: #c9544d;
  --warm-gray: #eceef0;
  --surface: #f5f6f7;
  --sage-green: #6a9a7e;
  --clinical-blue: #4a7cc9;
  --blue-light: #dce8f5;
  --indigo-soft: #8b9dc3;
  --cyan-pale: #cce5ed;
  
  /* Radius */
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  
  /* Font */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.125rem; }

p { line-height: 1.6; }

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

/* ========================================
   UTILITIES
   ======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-balance { text-wrap: balance; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.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; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.02em; }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-amber { color: var(--amber); }
.text-sage { color: var(--sage-green); }
.text-alert { color: var(--alert-red); }
.text-white { color: #ffffff; }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-surface { background-color: var(--surface); }
.bg-warm-gray { background-color: var(--warm-gray); }
.bg-navy { background-color: var(--navy); }
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-teal { background-color: var(--teal); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.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-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing */
.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-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.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-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-20 { padding-top: 5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Border & Radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

/* Misc */
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes fluxGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
  opacity: 0;
  animation: slideInRight 0.6s ease forwards;
}

.animate-scale-in {
  opacity: 0;
  animation: scaleIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-progress {
  animation: progressFill 2.5s ease forwards;
}

.animate-flux {
  animation: fluxGlow 4s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--navy);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--navy-deep);
}

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

.btn-secondary:hover {
  background-color: var(--warm-gray);
}

.btn-teal {
  background-color: var(--teal);
  color: #ffffff;
}

.btn-teal:hover {
  background-color: #358578;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

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

.btn-white {
  background-color: #ffffff;
  color: var(--navy);
}

.btn-white:hover {
  background-color: #f0f2f4;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* ========================================
   PILLS / BADGES
   ======================================== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}

.pill-navy {
  background-color: rgba(42, 63, 95, 0.1);
  color: var(--navy);
}

.pill-teal {
  background-color: rgba(61, 154, 139, 0.1);
  color: var(--teal);
}

.pill-amber {
  background-color: rgba(212, 160, 74, 0.1);
  color: var(--amber);
}

.pill-alert {
  background-color: rgba(201, 84, 77, 0.1);
  color: var(--alert-red);
}

.pill-sage {
  background-color: rgba(106, 154, 126, 0.1);
  color: var(--sage-green);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.header-logo-text {
  font-size: 1rem;
}

.header-logo-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.header-nav-link:hover {
  color: var(--foreground);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background-color: var(--card);
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu-link {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
  .header-cta {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #dce8f5, var(--background), var(--background));
  z-index: -2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.4;
  z-index: -1;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}

.hero-headline .highlight {
  color: var(--teal);
}

.hero-subheadline {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.hero-value-props {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-value-icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-trust {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Hero Preview Card */
.hero-preview {
  position: relative;
}

.hero-preview-glow {
  position: absolute;
  inset: -12px;
  background-color: rgba(61, 154, 139, 0.08);
  border-radius: 1.5rem;
  filter: blur(24px);
  z-index: -1;
}

.hero-preview-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  overflow: hidden;
}

.hero-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, var(--warm-gray), rgba(236, 238, 240, 0.6));
  border-bottom: 1px solid var(--border);
}

.hero-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
}

.hero-preview-title {
  margin-left: 0.75rem;
  font-size: 0.6875rem;
  font-family: monospace;
  color: var(--muted-foreground);
}

.hero-preview-content {
  padding: 1rem;
}

/* Patient Info */
.patient-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.patient-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42, 63, 95, 0.2), rgba(61, 154, 139, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.patient-avatar svg {
  color: rgba(42, 63, 95, 0.6);
}

.patient-details {
  flex: 1;
  min-width: 0;
}

.patient-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.patient-meta {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.patient-status {
  text-align: right;
}

.patient-status-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--teal);
}

.patient-status-value {
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

/* Document Card */
.document-card {
  padding: 0.75rem;
  background-color: rgba(236, 238, 240, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

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

.document-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.document-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(42, 63, 95, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-icon svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
}

.document-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.document-meta {
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.document-status {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--sage-green);
}

.progress-bar {
  height: 6px;
  background-color: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--teal), rgba(61, 154, 139, 0.8));
  border-radius: 9999px;
  width: 0%;
}

.progress-fill.animated {
  animation: progressFill 2.5s ease forwards;
  animation-delay: 0.8s;
}

/* Medication Table */
.med-table {
  margin-bottom: 1rem;
}

.med-table-header {
  display: grid;
  grid-template-columns: 1fr 60px 50px 50px;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.med-row {
  display: grid;
  grid-template-columns: 1fr 60px 50px 50px;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.6875rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.med-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.med-row.highlight {
  background-color: rgba(212, 160, 74, 0.08);
}

.med-row.critical {
  background-color: rgba(201, 84, 77, 0.06);
}

.med-name {
  font-weight: 500;
  color: var(--foreground);
}

.med-dose {
  color: var(--muted-foreground);
}

.med-schedule {
  font-family: monospace;
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.med-status {
  font-size: 0.5625rem;
  font-weight: 500;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  text-align: center;
}

.med-status.es1 {
  background-color: rgba(61, 154, 139, 0.15);
  color: var(--teal);
}

.med-status.es2 {
  background-color: rgba(74, 124, 201, 0.15);
  color: var(--clinical-blue);
}

.med-status.gap {
  background-color: rgba(212, 160, 74, 0.15);
  color: var(--amber);
}

/* Insight Cards */
.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.insight-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.insight-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.insight-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.insight-value.teal { color: var(--teal); }
.insight-value.amber { color: var(--amber); }
.insight-value.sage { color: var(--sage-green); }

.insight-label {
  font-size: 0.5625rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

/* PDPM Callout */
.pdpm-callout {
  position: absolute;
  right: -8px;
  top: 33%;
  background-color: var(--card);
  border: 1px solid rgba(212, 160, 74, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 0.625rem;
  max-width: 140px;
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pdpm-callout.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.pdpm-callout-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.pdpm-callout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

.pdpm-callout-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--amber);
}

.pdpm-callout-text {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 5rem;
  }
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 9rem 0 6rem;
  }
}

/* ========================================
   CHALLENGE / PROBLEM SECTION
   ======================================== */
.challenge {
  padding: 4rem 0 5rem;
  background: linear-gradient(to bottom, rgba(212, 160, 74, 0.03), var(--background));
}

.challenge-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.challenge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 1rem;
}

.challenge-eyebrow-dot {
  width: 6px;
  height: 6px;
  background-color: var(--amber);
  border-radius: 50%;
}

.challenge-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
}

.challenge-headline .highlight {
  color: var(--amber);
}

.challenge-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.challenge-stat {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.challenge-stat-value {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.challenge-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.challenge-stat-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.challenge-footer {
  text-align: center;
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.challenge-footer strong {
  color: var(--foreground);
  font-weight: 600;
}

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

/* ========================================
   WORKFLOW / TRANSFORMATION SECTION
   ======================================== */
.workflow {
  padding: 4rem 0 5rem;
  background: linear-gradient(to bottom, rgba(204, 229, 237, 0.04), var(--background));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.workflow-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.workflow-headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.workflow-subheadline {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--border);
  gap: 1px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.workflow-card {
  background-color: var(--card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.workflow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflow-card-step {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.workflow-card-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(61, 154, 139, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.workflow-card-icon svg {
  width: 18px;
  height: 18px;
}

.workflow-card-content {
  flex: 1;
}

.workflow-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.workflow-card-subtitle {
  font-size: 0.8125rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.workflow-card-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

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

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  padding: 4rem 0 5rem;
}

.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.features-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.features-headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.features-subheadline {
  font-size: 1rem;
  color: var(--muted-foreground);
}

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

.feature-card {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  border-color: rgba(61, 154, 139, 0.2);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(61, 154, 139, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.feature-list-item svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

.feature-preview {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .feature-card {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card:nth-child(even) .feature-content {
    order: 2;
  }
  .feature-card:nth-child(even) .feature-preview {
    order: 1;
  }
}

/* ========================================
   PRODUCT WORKSPACE SECTION
   ======================================== */
.product-workspace {
  padding: 4rem 0 5rem;
  background: linear-gradient(to bottom, var(--background), rgba(204, 229, 237, 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-workspace-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.product-workspace-headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.product-workspace-subheadline {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.workspace-preview {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.workspace-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, var(--warm-gray), rgba(236, 238, 240, 0.5));
  border-bottom: 1px solid var(--border);
}

.workspace-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
}

.workspace-title {
  margin-left: 0.75rem;
  font-size: 0.6875rem;
  font-family: monospace;
  color: var(--muted-foreground);
}

.workspace-body {
  display: grid;
  min-height: 400px;
}

.workspace-sidebar {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.workspace-main {
  padding: 1rem;
}

.workspace-panel {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

@media (min-width: 768px) {
  .workspace-body {
    grid-template-columns: 220px 1fr 240px;
  }
  .workspace-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .workspace-panel {
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

/* ========================================
   VALUE SECTION
   ======================================== */
.value {
  padding: 4rem 0 5rem;
}

.value-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.value-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.value-headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
}

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

.value-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  border-color: rgba(61, 154, 139, 0.2);
}

.value-card-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.value-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

/* ========================================
   SECURITY SECTION
   ======================================== */
.security {
  padding: 4rem 0 5rem;
  background-color: #1e2d45;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.security-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
}

.security-glow.left {
  top: -100px;
  left: -100px;
  background-color: var(--teal);
}

.security-glow.right {
  bottom: -100px;
  right: -100px;
  background-color: var(--cyan-pale);
}

.security-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  z-index: 0;
}

.security-content {
  position: relative;
  z-index: 1;
}

.security-header {
  margin-bottom: 2.5rem;
}

.security-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.security-headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.security-subheadline {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
}

.security-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.security-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
}

.security-trust-dot {
  width: 6px;
  height: 6px;
  background-color: var(--teal);
  border-radius: 50%;
}

.security-cards {
  display: grid;
  gap: 1rem;
}

.security-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-card-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(61, 154, 139, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.security-card-icon svg {
  width: 20px;
  height: 20px;
}

.security-card-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.security-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.security-card-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.security-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

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

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
  padding: 4rem 0 5rem;
}

.pricing-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.pricing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.pricing-headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.pricing-subheadline {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  border-color: rgba(61, 154, 139, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(42, 63, 95, 0.2);
}

.pricing-card-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background-color: var(--teal);
  color: #ffffff;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.pricing-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.pricing-card.featured .pricing-card-desc {
  color: rgba(255,255,255,0.7);
}

.pricing-card-price {
  margin-bottom: 1.5rem;
}

.pricing-card-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-card-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-card.featured .pricing-card-period {
  color: rgba(255,255,255,0.6);
}

.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-card-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pricing-card-feature svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card.featured .pricing-card-feature svg {
  color: rgba(61, 154, 139, 0.8);
}

.pricing-card-cta {
  margin-top: auto;
}

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

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta {
  padding: 4rem 0 5rem;
  background-color: #1e2d45;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.final-cta-accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  background: linear-gradient(to right, var(--teal), var(--cyan-pale), var(--teal));
  border-radius: 0 0 9999px 9999px;
}

.final-cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  z-index: 0;
}

.final-cta-glow.left {
  top: -150px;
  left: -150px;
  background-color: var(--teal);
}

.final-cta-glow.right {
  bottom: -150px;
  right: -150px;
  background-color: var(--cyan-pale);
  animation: fluxGlow 4s ease-in-out infinite;
}

.final-cta-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  z-index: 0;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.final-cta-subheadline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.final-cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.final-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.final-cta-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

/* ========================================
   RESPONSIVE HELPERS
   ======================================== */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
  .hide-desktop {
    display: none;
  }
}
