/* =============================================================================
   PICOTELLIGENCE DESIGN SYSTEM - COMPLETE STYLESHEET
   Extracted from index_V0001.html - New Design Implementation
   "Subtle Signals - Governed Growth"
   ============================================================================= */

/* =============================================================================
   CSS CUSTOM PROPERTIES & VARIABLES
   ============================================================================= */

:root{
  --bg: #0a0c1a;
  --bg-accent: #0d1128;
  --bg-gradient-start: #20004a;
  --bg-gradient-mid: #3c4283d9;
  --bg-gradient-end: #622455;
  --fg: #e8ecf5;
  --muted: #ffffff;
  --brand: #7aa2ff;
  --brand-2: #9bffd6;
  --brand-dark: #5a82df;
  --purple-accent: #8a6bff;
  --ok: #7dffa7;
  --err: #ff8a8a;
  --card: #121623;
  --stroke: #1c2336;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --radius: 16px;

  /* Typography */
  --font-display: 'Baumans', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Enhanced spacing system for visual rhythm */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  
  /* Responsive font sizes for better visual hierarchy */
  --text-xs: clamp(12px, 2vw, 14px);
  --text-sm: clamp(14px, 2.2vw, 16px);
  --text-base: clamp(16px, 2.5vw, 18px);
  --text-lg: clamp(18px, 3vw, 22px);
  --text-xl: clamp(22px, 4vw, 28px);
  --text-2xl: clamp(28px, 5vw, 36px);
  --text-3xl: clamp(32px, 6vw, 44px);
  
  /* Enhanced brand gradient system */
  --gradient-brand: linear-gradient(180deg, #6b94ff 0%, #aaadc9 100%);
  --gradient-brand-hover: linear-gradient(135deg, #6b94ff 0%, #aaadc9 100%);
  --gradient-brand: linear-gradient(135deg, #7aa2ff 0%, #9bffd6 100%);
  --gradient-brand-hover: linear-gradient(135deg, #6b94ff 0%, #8bffc6 100%);
  --gradient-accent: linear-gradient(135deg, #8a6bff 0%, #7aa2ff 100%);
  --gradient-surface: linear-gradient(145deg, rgb(173 79 127 / 95%), rgb(25 30 121 / 98%));
  --gradient-card: linear-gradient(145deg, rgb(173 79 127 / 95%), rgb(25 30 121 / 98%));
}

/* =============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================= */

* { box-sizing: border-box; }
html, body { height: auto; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--fg);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 45%, var(--bg-gradient-end) 100%);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  font-synthesis: none;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* =============================================================================
   AMBIENT BACKGROUND ANIMATION
   ============================================================================= */

/* Refined ambient background with better visual depth */
.bg-ambient{
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 800px at 25% 15%, rgba(122, 162, 255, 0.12), transparent 60%),
    radial-gradient(1000px 600px at 75% 10%, rgba(138, 107, 255, 0.08), transparent 55%),
    radial-gradient(1400px 900px at 50% 90%, rgba(90, 130, 223, 0.15), transparent 65%),
    radial-gradient(800px 500px at 80% 60%, rgba(155, 255, 214, 0.06), transparent 50%);
  pointer-events:none; z-index:-1;
  filter: blur(1px);
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%,100%{ transform: translateY(0) rotate(0deg); }
  33%{ transform: translateY(-12px) rotate(1deg); }
  66%{ transform: translateY(8px) rotate(-0.5deg); }
}

/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */

.site-header, .site-footer{
  display:flex; align-items:center; justify-content:space-between;
  padding: var(--space-sm) var(--space-md); max-width: 1100px; margin: 0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--fg);
  font-weight: 700; letter-spacing: 0.02em; font-size: var(--text-lg);
}
.brand-mark{ 
  display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#081220; font-weight:800; font-size: 18px;
  box-shadow: 0 2px 8px rgba(122, 162, 255, 0.3);
}
.brand-word{ opacity:.95; }

.site-nav .nav-link, .site-footer .nav-link{
  color: var(--fg); 
  opacity:.9; 
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.site-nav .nav-link:hover, .site-footer .nav-link:hover{ opacity:1; text-decoration:underline; }

/* =============================================================================
   MAIN LAYOUT
   ============================================================================= */

.main{ 
  max-width: 1100px; 
  margin: var(--space-md) auto var(--space-2xl); 
  padding: 0 clamp(var(--space-sm), 5vw, var(--space-xl)); 
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero{ margin: var(--space-xl) 0; text-align: left; }
.hero h1{
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-xs);
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero h1 .recruiting-text{ 
  font-style: normal; 
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffb3b3 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .readiness-text{ 
  font-style: normal; 
  background: var(--gradient-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline{ 
  color: var(--brand-2); 
  margin: 0 0 var(--space-sm); 
  font-weight: 600; 
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
}
.lede{ 
  color: #cbd3e6; 
  max-width: 760px; 
  margin: var(--space-xs) 0 var(--space-md); 
  line-height: 1.6; 
  font-size: var(--text-sm);
  font-weight: 400;
}
.lede-secondary{ 
  color: #b8c4db; 
  max-width: 760px; 
  margin: var(--space-xs) 0 var(--space-lg); 
  line-height: 1.5; 
  font-size: var(--text-sm);
  font-weight: 400;
}

/* =============================================================================
   STEPPER COMPONENT
   ============================================================================= */

.stepper{
  list-style: none; 
  display:flex; 
  gap: 14px; 
  padding:0; 
  margin: var(--space-md) 0 0;
  color: var(--muted); 
  font-size: var(--text-xs);
}
.stepper .step{
  display:flex; 
  align-items:center; 
  gap: var(--space-2xs); 
  opacity:.6;
  transition: opacity 0.2s ease;
}
.stepper .step span:first-child{
  display:inline-grid; 
  place-items:center; 
  width:28px; 
  height:28px; 
  border-radius:50%;
  border: 2px solid rgba(122, 162, 255, 0.3); 
  background: rgba(11, 17, 28, 0.8); 
  font-weight:700;
  font-size: 14px;
  transition: all 0.2s ease;
}
.stepper .step.is-active{ opacity:1; color: var(--fg); }
.stepper .step.is-active span:first-child{ 
  background: var(--gradient-brand);
  border-color: var(--brand-2);
  color: #0b1320;
  box-shadow: 0 2px 12px rgba(122, 162, 255, 0.3);
}

/* =============================================================================
   EXPLAINER SECTION
   ============================================================================= */

.explainer-section {
  margin: var(--space-md) 0 var(--space-lg);
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(var(--space-sm), 3vw, var(--space-lg));
  margin: var(--space-lg) 0;
}

.explainer-item {
  padding: var(--space-md) 0;
}

.explainer-item h3 {
  color: var(--brand-2);
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  letter-spacing: 0.01em;
}

.explainer-item p {
  color: #cbd3e6;
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

/* CTA Section - Decisive responsive layout */
.cta-section {
    margin: var(--space-xl) 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: var(--space-lg);
}

.cta-section > * {
    flex: 1 1 0;
    min-width: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* =============================================================================
   INFO LINKS SECTION
   ============================================================================= */

.info-section {
  margin: var(--space-xl) 0;
}

.info-links {
  display: flex;
  flex-direction: column;
}

.info-link {
  color: var(--brand-2);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(122, 162, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-link:hover {
  color: var(--brand);
  border-bottom-color: rgba(122, 162, 255, 0.3);
  transform: translateX(4px);
}

.info-link::after {
  content: '→';
  font-size: var(--text-lg);
  color: var(--brand);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.info-link:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

/* =============================================================================
   TIMELINE SECTION
   ============================================================================= */

/* Timeline pill styling */
.timeline-header-pill {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.timeline-pill {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1320;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(122,162,255,0.3);
}

/* Enhanced embossed styling for timeline boxes */
.timeline-embossed {
  background: var(--gradient-surface);
  border: 1px solid rgba(122, 162, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(20px) saturate(120%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-embossed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(122, 162, 255, 0.4) 50%, 
    transparent 100%);
}

.timeline-embossed:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.card-embossed {
  background: var(--gradient-card);
  border: 1px solid rgba(122, 162, 255, 0.15);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(110%);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-embossed:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 12px 25px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   CARD COMPONENT
   ============================================================================= */

.card{
  background: var(--gradient-card);
  border: 1px solid rgba(122, 162, 255, 0.15);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  backdrop-filter: blur(16px) saturate(110%);
  transition: all 0.2s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 12px 25px rgba(0, 0, 0, 0.25);
}
.card h2{ 
  margin: var(--space-2xs) 0 var(--space-sm); 
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.card .lead{ font-size: var(--text-base); }

/* =============================================================================
   FORM COMPONENTS
   ============================================================================= */

.stack{ display:grid; gap: var(--space-xs); max-width: 560px; }
.label{ 
  font-size: var(--text-sm); 
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--space-2xs);
  display: block;
}
input[type="email"], input[type="text"]{
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(122, 162, 255, 0.2);
  color:var(--bg-accent);
  border-radius: 12px; 
  padding: var(--space-sm) 20px; 
  font-size: var(--text-base); 
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
input:focus{ 
  border-color: var(--brand); 
  box-shadow: 
    0 0 0 3px rgba(122, 162, 255, 0.2),
    0 4px 20px rgba(122, 162, 255, 0.1);
}

/* Enhanced form validation states */
input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--err);
  box-shadow: 0 0 0 2px rgba(255, 138, 138, 0.2);
}

input:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--ok);
  box-shadow: 0 0 0 2px rgba(125, 255, 167, 0.2);
}

/* Honeypot fields (hidden from users, visible to bots) */
.honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* =============================================================================
   BUTTON COMPONENTS
   ============================================================================= */

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px var(--space-md); 
  border-radius: 12px; 
  border: 1px solid rgba(122, 162, 255, 0.2);
  background:#0f1423; 
  color:var(--fg); 
  cursor:pointer; 
  text-decoration:none; 
  font-weight:600;
  font-size: var(--text-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  transition: left 0.5s ease;
}

.btn:hover {
  filter: brightness(1.08); 
  transform: translateY(-1px);
}

.btn:hover::before {
  left: 100%;
}

.btn.primary{
  background: var(--gradient-brand);
  border: none;
  color:#0b1320;
  box-shadow: 
    0 4px 20px rgba(122, 162, 255, 0.3),
    0 2px 8px rgba(122, 162, 255, 0.2);
}

.btn.primary:hover{
  background: var(--gradient-brand-hover);
  box-shadow: 
    0 6px 30px rgba(122, 162, 255, 0.4),
    0 4px 12px rgba(122, 162, 255, 0.3);
  transform: translateY(-1px);
}
.btn.ghost{ background: transparent; }

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.privacy, .muted, .help, .small{ 
  color: var(--muted); 
  font-size: var(--text-xs);
  line-height: 1.4;
  opacity: 0.8;
}
.muted strong{ color: var(--fg); font-weight:600; }

.actions{ display:flex; gap: var(--space-sm); flex-wrap:wrap; margin-top: var(--space-xs); }

.is-hidden{ display:none !important; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* =============================================================================
   TIMELINE COMPONENT
   ============================================================================= */

.timeline{ margin: var(--space-2xl) 0; }
.timeline h2{ 
  font-size: var(--text-2xl); 
  color: var(--fg); 
  margin-bottom: var(--space-lg);
  text-align: center;
}
.timeline-grid{ 
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-lg), 5vw, var(--space-xl)); 
  margin: var(--space-xl) 0; 
}
.timeline-item{
  padding: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.timeline-header{
  color: var(--brand);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.timeline-subheader{
  color: var(--fg);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}
.timeline-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-bullets li{
  position: relative;
  padding-left: 20px;
  color: #d2daee;
  margin-bottom: var(--space-2xs);
  line-height: 1.5;
  font-size: var(--text-sm);
}
.timeline-bullets li::before{
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: bold;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer{ 
  border-top:1px solid var(--stroke); 
  color: var(--muted); 
  margin-top: var(--space-3xl);
  backdrop-filter: blur(10px);
  font-size: var(--text-xs);
}
.site-footer .dot{ display:inline-block; width:4px; height:4px; background:#556; border-radius:50%; margin:0 var(--space-2xs); }

/* =============================================================================
   MODAL COMPONENTS
   ============================================================================= */

dialog{
  width:min(820px, 92vw); 
  border:none; 
  border-radius: 20px; 
  padding:0;
  background: var(--gradient-surface);
  border: 1px solid rgba(122, 162, 255, 0.2);
  color: var(--fg); 
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}
dialog::backdrop{ 
  background: rgba(2, 6, 15, 0.8); 
  backdrop-filter: blur(4px); 
}
.modal-body{ padding: 18px; }
.modal-close{
  position:absolute; right: 8px; top: 6px; background: transparent; border: 0; color: var(--fg);
  font-size: 26px; cursor: pointer; opacity:.8;
}
.pill-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:12px; margin: 12px 0;
}
.pill{
  background: #0d1526; border:1px solid var(--stroke); border-radius: 12px; padding: 12px;
}
.pill h4{ margin:0 0 6px; font-size: 15px; }

/* =============================================================================
   FOCUS & ACCESSIBILITY
   ============================================================================= */

/* Enhanced focus states with better visual hierarchy */
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Enhanced loading states */
@keyframes shimmer {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* =============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================= */

/* Visual loading state refinement */
@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(122, 162, 255, 0.3);
  }
  50% { 
    box-shadow: 0 0 30px rgba(122, 162, 255, 0.5);
  }
}

/* Stagger animation for timeline items */
.timeline-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

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

/* Enhanced modal animations */
dialog[open] {
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Smooth page transitions */
.main {
  animation: fadeIn 0.8s ease-in-out;
}

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

/* Enhanced typography hierarchy with subtle animations */
.hero h1 .recruiting-text,
.hero h1 .readiness-text {
  position: relative;
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Success state enhancement */
.success-celebration {
  display: inline-block;
  animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Particle animation for celebration effect */
@keyframes celebrate-particle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--random-x), var(--random-y)) scale(0);
  }
}

/* =============================================================================
   MOTION PREFERENCES & ACCESSIBILITY
   ============================================================================= */

/* Enhanced ambient background with motion preference respect */
@media (prefers-reduced-motion: no-preference) {
  .bg-ambient {
    animation: float 25s ease-in-out infinite;
  }
  
  .hero h1 .readiness-text,
  .hero h1 .recruiting-text {
    animation: gradientShift 4s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .main {
    animation: none;
  }
  
  .hero h1 .recruiting-text,
  .hero h1 .readiness-text {
    animation: none;
    background-position: 0% 50%;
  }
  
  .bg-ambient {
    animation: none;
  }
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Enhanced responsive design for tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .explainer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .cta-section {
    gap: var(--space-xl);
  }
  
  .timeline-item {
    padding: var(--space-lg);
    margin-top: 2%;
  }
  
  .card {
    padding: var(--space-lg);
  }

  .timeline-grid{ 
    grid-template-columns: repeat(3, 1fr);
    display: block;
  }

}

/* Decisive breakpoint at 768px */
@media (max-width: 768px) {
  .cta-section {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: var(--space-md);
  }
  
  .cta-section > * {
    flex: none;
    width: 100%;
  }
  
  .timeline-grid{ 
    grid-template-columns: 1fr; 
    gap: var(--space-lg); 
    display: block;
  }
  .timeline-item{
    padding: var(--space-md);
    margin-top: 2%;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .explainer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .info-links {
    gap: var(--space-sm);
  }
  .info-link {
    padding: var(--space-sm);
    font-size: var(--text-sm);
  }
  .main{ padding: 0 var(--space-sm); }
  .site-header, .site-footer{ padding: var(--space-sm); }
}

@media (max-width: 640px){
  .hero {
    margin: var(--space-lg) 0;
  }
  
  .explainer-item {
    padding: var(--space-md) 0;
  }
  
  .card {
    padding: var(--space-md);
    margin: var(--space-md) 0;
  }
  
  .timeline-item {
    padding: var(--space-md);
  }
  
  .actions{ flex-direction: column; }
  .timeline h2{ font-size: var(--text-xl); }
  .timeline-subheader{ font-size: var(--text-base); }
}

/* Additional breakpoint for very narrow screens */
@media (max-width: 480px) {
  .cta-section {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .main {
    padding: 0 var(--space-xs);
  }
  
  .card {
    padding: var(--space-sm);
  }
  
  .hero h1 {
    font-size: clamp(22px, 8vw, 28px);
  }
  
  .stepper {
    gap: var(--space-2xs);
    font-size: 12px;
  }
  
  .stepper .step span:first-child {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
  .main {
    max-width: 1200px;
  }
  
  .hero {
    margin: var(--space-2xl) 0;
  }
  
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================================================
   HIGH CONTRAST & ACCESSIBILITY MODES
   ============================================================================= */

@media (prefers-contrast: high) {
  .card, .timeline-embossed, .card-embossed {
    border-width: 2px;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .stepper .step span:first-child {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .bg-ambient,
  .modal-close,
  dialog {
    display: none !important;
  }
  
  .main {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .card {
    border: 1px solid #000;
    background: transparent;
    box-shadow: none;
  }
}

/* =============================================================================
   END OF STYLESHEET
   ============================================================================= */