/* MUCN Design System & Parody Enterprise Styling - Antiseptic Light Theme */

/* Custom Fonts Integration */
:root {
  /* Colors */
  --bg-primary: #ffffff;             /* Sterile stark white */
  --bg-secondary: #f8fafc;           /* Cold clinical light-slate */
  --text-primary: #0f172a;           /* Deep corporate slate-dark */
  --text-secondary: #475569;         /* Standard corporate grey */
  --text-muted: #64748b;             /* Subdued slate-grey */
  
  --primary: #2563eb;                /* Clinical royal blue */
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --secondary: #0891b2;              /* Sterile teal/cyan */
  --secondary-hover: #0e7490;
  --secondary-glow: rgba(8, 145, 178, 0.15);
  
  --accent-risk: #e11d48;            /* High warning red */
  --accent-risk-glow: rgba(225, 29, 72, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.85); /* Frosted sterile pane */
  --glass-border: rgba(15, 23, 42, 0.08); /* High precision thin border */
  --glass-border-focus: rgba(37, 99, 235, 0.4);
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-primary);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.btn-full {
  width: 100%;
}

/* Translucent Sticky Navigation Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 4px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Scroll-driven shrinking header styling */
@keyframes shrinkHeader {
  to {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid var(--glass-border);
  }
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(8, 145, 178, 0.03) 0%, transparent 45%),
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 99px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

/* Dashboard Mockup Container */
.dashboard-mockup {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06), 0 0 40px rgba(37, 99, 235, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-header {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.dashboard-header .dots {
  display: flex;
  gap: 0.35rem;
  margin-right: 1.5rem;
}

.dashboard-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.dashboard-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-body {
  position: relative;
  padding: 1rem;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Elegantly Styled Outside Caption */
.image-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  font-family: var(--font-body);
}

.image-caption strong {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 600;
}

/* Trust Banner */
.trust-banner {
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.trust-label {
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.badge-card:hover {
  color: var(--text-primary);
  background: #f1f5f9;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.badge-card svg {
  stroke: var(--secondary);
}

/* Stats Section */
.stats-section {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.stat-card:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header styling */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header.left-aligned {
  text-align: left;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-tagline {
  color: var(--secondary);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Copy Paragraph Stylings */
.copy-paragraph {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Features/Vision Section */
.features-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(8, 145, 178, 0.08);
  color: var(--secondary);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.checklist-item span {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.visual-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.visual-chart-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.status-indicator {
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-indicator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.chart-bar-container {
  margin-bottom: 1.25rem;
}

.chart-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.chart-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.chart-bar-fill.fill-1 {
  width: 100%;
  background: var(--secondary);
}

.chart-bar-fill.fill-2 {
  width: 120%;
  background: var(--primary);
}

.chart-bar-fill.fill-3 {
  width: 0.2%;
  background: var(--accent-risk);
}

.chart-val {
  text-align: right;
  font-size: 0.75rem;
  font-family: var(--font-title);
  margin-top: 0.25rem;
  color: var(--text-muted);
}

/* Methodology Section */
.methodology-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

/* Circular Orbit Diagram */
.circular-method-diagram {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  border-radius: 50%;
  animation: orbitRotate 30s linear infinite;
}

.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
  animation: counterOrbitRotate 30s linear infinite; /* Counteracts rotation of parent */
}

.tiny-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.orbit-node {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.04);
  animation: counterOrbitRotate 30s linear infinite;
  transition: var(--transition-normal);
}

.orbit-node:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.15);
}

/* Position nodes along circular perimeter */
.node-1 { top: -40px; left: calc(50% - 40px); }
.node-2 { right: -40px; top: calc(50% - 40px); }
.node-3 { bottom: -40px; left: calc(50% - 40px); }
.node-4 { left: -40px; top: calc(50% - 40px); }

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

@keyframes counterOrbitRotate {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Custom translate logic for node orbit since they don't use absolute translate(-50%) */
.orbit-node.node-1 { animation-name: node1Rotate; }
.orbit-node.node-2 { animation-name: node2Rotate; }
.orbit-node.node-3 { animation-name: node3Rotate; }
.orbit-node.node-4 { animation-name: node4Rotate; }

@keyframes node1Rotate {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes node2Rotate {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes node3Rotate {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes node4Rotate {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.quotes-card {
  margin-top: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-left: 3.5px solid var(--secondary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.01);
}

.quote-text {
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.quote-author {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Synergy Calculator Section */
.calculator-section {
  background-image: radial-gradient(circle at center, rgba(37, 99, 235, 0.02) 0%, transparent 60%);
}

.calculator-container {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff;
}

.calculator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calculator-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.calculator-header p {
  color: var(--text-secondary);
}

.calculator-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.control-group {
  margin-bottom: 2.5rem;
}

.control-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.slider-caption {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Slider Custom Styling */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  background: var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
  transform: scale(1.1);
}

.calc-results {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
}

.result-tile {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.result-tile:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.result-value {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
}

.result-value.warning-text {
  color: #d97706; /* Clinical dark orange */
}

.result-value.danger-text {
  color: var(--accent-risk);
  animation: glowRisk 1s infinite alternate;
}

@keyframes glowRisk {
  from { text-shadow: 0 0 2px rgba(225, 29, 72, 0.1); }
  to { text-shadow: 0 0 8px rgba(225, 29, 72, 0.3); }
}

/* Team Section */
.team-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
}

.team-img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-secondary);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Advantage Section */
.advantage-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.advantage-points {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point-item {
  display: flex;
  gap: 1rem;
}

.point-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.point-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.point-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.floating-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.advantage-logo-img {
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(15,23,42,0.12));
  animation: float 6s ease-in-out infinite;
}

.mockup-img-shadow {
  position: absolute;
  bottom: -40px;
  width: 60%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  filter: blur(5px);
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.badge-top {
  top: 10%;
  right: 5%;
  border-color: var(--secondary);
  color: var(--secondary);
  animation: float 6s ease-in-out infinite alternate;
}

.badge-bottom {
  bottom: 20%;
  left: 5%;
  border-color: var(--primary);
  color: var(--primary);
  animation: float 6s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Contact / Shady Form Section */
.contact-section {
  background-color: var(--bg-secondary);
  background-image: radial-gradient(circle at bottom right, rgba(8, 145, 178, 0.02) 0%, transparent 55%);
  border-top: 1px solid var(--glass-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.2rem;
}

.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.shady-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group select option {
  background-color: #ffffff;
  color: var(--text-primary);
}

.form-checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.warning-label {
  color: #b45309 !important; /* Clinical Warning Amber */
}

/* Spinner styling */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

.hidden {
  display: none !important;
}

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

/* Success Card styling */
.form-success-message {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.4s ease-out;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success-message p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.success-details {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.success-details p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.success-details p:last-child {
  margin-bottom: 0;
}

.success-details strong {
  color: var(--text-primary);
}

.fine-print-alert {
  color: #b45309 !important;
  font-size: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  padding-top: 0.5rem;
}

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

/* Footer styling */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.footer-tagline {
  max-width: 400px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-disclaimer {
  background-color: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: justify;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* Scroll-Driven Page Reveal Animations (with Supports feature checks) */
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      animation: revealIn auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

/* Fallback state when JS observer hides them initially until viewport entry */
.js-reveal-hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-grid,
  .features-grid,
  .methodology-grid,
  .advantage-grid,
  .contact-grid {
    gap: 3rem;
  }
  
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calculator-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .header {
    padding: 1rem 0;
  }
  
  .nav-menu {
    display: none; /* Simplifies mobile layout */
  }
  
  .hero-grid,
  .features-grid,
  .methodology-grid,
  .advantage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual,
  .features-visual,
  .methodology-visual,
  .advantage-visual {
    order: 2; /* Pushes visuals below content on mobile */
  }
  
  .section-header.left-aligned {
    text-align: center;
  }
  
  .checklist {
    align-items: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .badges-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}
