/* Modern gradient-based dark theme with 3D animations */
/* tokens moved to css/tokens.css */

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --secondary: #f59e0b;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.8);
  --card-border: rgba(148, 163, 184, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  margin: 0;
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Prevent body scroll when modal is open */
.no-scroll { overflow: hidden; }

.visually-hidden { 
  position: absolute !important; 
  height: 1px; 
  width: 1px; 
  overflow: hidden; 
  clip: rect(1px, 1px, 1px, 1px); 
  white-space: nowrap; 
}

.skip-link { 
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

.skip-link:focus { 
  left: 1rem; 
  top: 1rem; 
  width: auto; 
  height: auto; 
  padding: .5rem .75rem; 
  background: var(--accent); 
  color: #0f172a; 
  border-radius: .375rem; 
}

.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

/* Header with glassmorphism */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 50; 
  backdrop-filter: saturate(180%) blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 0; 
}

.header-actions { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

.logo { 
  font-weight: 700; 
  font-size: 20px;
  letter-spacing: .5px; 
  color: var(--text);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav ul { 
  display: flex; 
  gap: 24px; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.site-nav a { 
  color: var(--text-muted); 
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after { 
  width: 100%;
}

.site-nav a:hover, 
.site-nav a:focus { 
  color: var(--text); 
}

/* 3D Button Styles */
.btn { 
  border: 1px solid var(--card-border); 
  background: var(--card-bg); 
  color: var(--text); 
  padding: 12px 24px; 
  border-radius: var(--border-radius); 
  cursor: pointer; 
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-3d {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-3d:hover {
  transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff; 
  border-color: transparent;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 0 40px var(--accent-glow), var(--shadow-lg);
}

.btn-ghost { 
  background: transparent; 
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--card-bg);
  border-color: var(--accent);
}

.btn:focus { 
  outline: 2px solid var(--accent); 
  outline-offset: 2px; 
}

.btn-small { 
  padding: 10px 18px; 
  font-size: 14px; 
}

.icon-button { 
  background: transparent; 
  border: none; 
  color: var(--text-muted); 
  font-size: 24px; 
  cursor: pointer;
  transition: var(--transition);
}

.icon-button:hover {
  color: var(--accent);
  transform: scale(1.1);
}

#sticky-cta { 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity .3s ease; 
}

#sticky-cta.is-visible { 
  opacity: 1; 
  pointer-events: auto; 
}

/* Strong, consistent focus ring */
:where(a, button, [role="button"], input, select, textarea, details, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Animated background orbs */
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Sections */
.section { 
  padding: 100px 0; 
  position: relative;
  border-top: 1px solid var(--card-border);
}

.section.alt { 
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent 40%); 
}

.section.reveal { 
  animation: fadeUp 0.8s ease-out both; 
}

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

/* Hero Section with 3D elements */
.hero { 
  border-top: none; 
  padding-top: 120px;
  min-height: 100vh; 
  display: flex; 
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content { 
  display: flex; 
  flex-direction: column; 
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title { 
  font-size: clamp(36px, 5vw, 64px); 
  line-height: 1.1; 
  margin: 12px 0;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { 
  color: var(--text-muted); 
  font-size: 19px; 
  margin: 0 0 20px;
  line-height: 1.7;
}

.hero-ctas { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  justify-content: center;
}

.tagline-chip { 
  display: inline-block; 
  font-size: 13px; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  color: #0f172a; 
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  padding: 8px 16px; 
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.trust-chips { 
  margin-top: 20px; 
  display: flex; 
  gap: 12px; 
  color: var(--text-muted); 
  font-size: 14px; 
  flex-wrap: wrap;
  justify-content: center;
}

.trust-chips span {
  padding: 6px 12px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

/* Slide up animation */
.animate-slide-up {
  animation: slideUp 0.8s ease-out both;
}

.animate-slide-up:nth-child(1) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.3s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.4s; }
.animate-slide-up:nth-child(5) { animation-delay: 0.5s; }
.animate-slide-up:nth-child(6) { animation-delay: 0.6s; }

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

/* Flow Diagram Wrapper - Removed */

/* 3D Card Effect */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.code-to-report { 
  width: 100%; 
  background: var(--card-bg);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 32px; 
  border: 1px solid var(--card-border); 
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.code-to-report::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.fragment { 
  padding: 14px 16px; 
  border-radius: 12px; 
  margin-bottom: 12px; 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid var(--card-border);
}

.floating-card {
  animation: float-card 3s ease-in-out infinite;
}

.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: 0.5s; }
.floating-card:nth-child(3) { animation-delay: 1s; }
.floating-card:nth-child(4) { animation-delay: 1.5s; }

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

.fragment-code { 
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
  color: var(--primary-light);
}

.fragment-log { 
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--accent);
}

.fragment-chat { 
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  color: var(--secondary);
}

.fragment-report { 
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(99, 102, 241, 0.2));
  color: var(--text); 
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Problem section */
.problem-list { 
  list-style: none; 
  padding: 0; 
  display: grid; 
  gap: 16px; 
}

.problem-list li { 
  display: grid; 
  grid-template-columns: 32px 1fr; 
  gap: 14px; 
  align-items: start; 
  background: var(--card-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--card-border); 
  border-radius: var(--border-radius); 
  padding: 20px; 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.problem-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.problem .icon { 
  font-size: 24px; 
}

/* Steps */
.steps { 
  list-style: none; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  padding: 0; 
  margin: 0; 
}

.steps li { 
  background: var(--card-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--card-border); 
  padding: 24px; 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.steps li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.steps li:hover::before {
  transform: scaleX(1);
}

.steps li:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.steps h3 { 
  margin: 0 0 12px;
  color: var(--primary-light);
  font-size: 22px;
}

/* Feature grid with 3D cards */
.feature-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

.card { 
  background: var(--card-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--card-border); 
  padding: 28px; 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  transform: perspective(1000px) rotateX(0deg);
}

.card:hover {
  transform: perspective(1000px) rotateX(5deg) translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card h3 { 
  margin-top: 0;
  color: var(--text);
  font-size: 20px;
  margin-bottom: 12px;
}

.micro { 
  color: var(--text-muted); 
  font-size: 14px; 
}

/* Paths grid */
.paths-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
}

/* Pills */
.pills { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.pill { 
  border: 1px solid var(--card-border); 
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  color: var(--text); 
  padding: 10px 18px; 
  border-radius: 999px; 
  font-size: 14px; 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Gallery with 3D perspective */
.gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
}

.thumb { 
  margin: 0;
  transition: var(--transition);
}

.thumb:hover {
  transform: scale(1.05);
}

.screenshot { 
  position: relative; 
  height: 140px; 
  border-radius: var(--border-radius); 
  background: linear-gradient(135deg, var(--card-bg), rgba(99, 102, 241, 0.1));
  border: 1px solid var(--card-border); 
  overflow: hidden; 
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.screenshot:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.screenshot.is-visible { 
  animation: fadeIn 0.6s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.thumb figcaption { 
  color: var(--text-muted); 
  font-size: 13px; 
  margin-top: 10px; 
}

/* Screenshot skeleton content */
.screenshot .badge-ico { 
  position: absolute; 
  top: 10px; 
  left: 10px; 
  opacity: 0.9; 
}

.screenshot .badge-ico .iconify { 
  width: 20px; 
  height: 20px; 
  opacity: 0.9;
  color: var(--primary-light);
}

.screenshot .sk { 
  position: absolute; 
  inset: 0; 
  padding: 36px 18px 14px; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.screenshot .sk .bar { 
  height: 10px; 
  border-radius: 6px; 
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.1);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.screenshot .sk .w60 { width: 60%; }
.screenshot .sk .w40 { width: 40%; }
.screenshot .sk .w70 { width: 70%; }

/* Framework badges */
.frameworks { 
  display: flex; 
  gap: 10px; 
  margin-top: 10px; 
  flex-wrap: wrap; 
}

.fw { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  padding: 6px 12px; 
  border-radius: 999px; 
  border: 1px solid var(--card-border); 
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  color: var(--text-muted); 
  font-size: 12px;
  transition: var(--transition);
}

.fw:hover {
  background: var(--primary);
  color: var(--text);
  transform: scale(1.05);
}

.fw-ico { 
  width: 16px; 
  height: 16px; 
  color: var(--accent); 
}

/* Logo row with hover effects */
.logo-row { 
  --tile-h: 96px; 
  --icon: 44px; 
  list-style: none; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 20px; 
  padding: 0; 
  margin: 0; 
}

.logo-row li { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0; 
  border: 1px solid var(--card-border); 
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius); 
  padding: 0; 
  height: var(--tile-h); 
  color: var(--text); 
  font-weight: 700; 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  transform: perspective(1000px) rotateX(0deg);
}

.logo-row li:hover { 
  border-color: var(--primary);
  transform: perspective(1000px) rotateX(5deg) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.logo-row li::after { 
  content: attr(aria-label); 
  position: absolute; 
  bottom: -35px; 
  left: 50%; 
  transform: translateX(-50%); 
  padding: 6px 12px; 
  border-radius: 8px; 
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text); 
  font-size: 12px; 
  line-height: 1; 
  white-space: nowrap; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity .2s ease;
  box-shadow: var(--shadow-md);
}

.logo-row li:hover::after { 
  opacity: 1; 
}

.logo-row img { 
  display: inline-block; 
  width: var(--icon); 
  height: var(--icon); 
}

.logo-row .iconify { 
  width: var(--icon); 
  height: var(--icon);
  filter: grayscale(20%); 
  opacity: 0.95;
  transition: var(--transition);
}

.logo-row li:hover .iconify { 
  filter: none; 
  opacity: 1;
  transform: scale(1.1);
}

.logo-row li span:not(.iconify) { 
  display: none; 
}

/* Cloud providers row - big boxes with 3D effect */
.cloud-row { 
  --tile-h: 200px; 
  --icon: 90px; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

.cloud-row li { 
  height: var(--tile-h); 
  border-radius: var(--border-radius);
}

.cloud-row .iconify { 
  width: var(--icon); 
  height: var(--icon); 
  filter: none; 
  opacity: 1; 
}

.logo-row + .cloud-row { 
  margin-top: 24px; 
}

.logo-row .fallback { 
  width: 24px; 
  height: 24px; 
  display: inline-grid; 
  place-items: center; 
  border-radius: 6px; 
  background: var(--card-bg);
  color: var(--text-muted); 
  font-size: 11px; 
  font-weight: 700; 
}

/* Quote */
.quote { 
  font-size: 19px; 
  color: var(--text); 
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border); 
  border-left: 4px solid var(--accent); 
  padding: 24px; 
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  font-style: italic;
}

/* Pricing grid */
.pricing-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

/* Subscribe form */
.subscribe-form { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  align-items: center; 
}

.subscribe-form input[type="email"] { 
  flex: 1 1 280px; 
  padding: 14px 18px; 
  border-radius: var(--border-radius); 
  border: 1px solid var(--card-border); 
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--accent-glow);
  outline: none;
}

.subscribe-form input[type="email"][aria-invalid="true"] { 
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.small { 
  font-size: 14px; 
}

.muted { 
  color: var(--text-muted); 
}

/* Section titles */
h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modal */
.modal[hidden] { 
  display: none; 
}

.modal { 
  position: fixed; 
  inset: 0; 
  z-index: 100; 
}

.modal-backdrop { 
  position: absolute; 
  inset: 0; 
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.modal-dialog { 
  position: relative; 
  margin: 5vh auto; 
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--card-border); 
  width: min(1000px, 92vw); 
  border-radius: var(--border-radius); 
  display: grid; 
  grid-template-rows: auto 1fr auto; 
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
}

.modal-header, 
.modal-footer { 
  padding: 16px 20px; 
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.modal-header h3 {
  margin: 0;
  flex: 1;
}

.modal-footer { 
  border-bottom: none; 
  border-top: 1px solid var(--card-border);
  gap: 12px;
  justify-content: flex-end;
}

.modal-body { 
  padding: 0; 
}

.modal-body iframe { 
  width: 100%; 
  height: 70vh; 
  border: 0; 
  border-bottom-left-radius: var(--border-radius); 
  border-bottom-right-radius: var(--border-radius); 
}

/* Evidence Modal Styles */
.evidence-item {
  cursor: pointer;
  transition: var(--transition);
}

.evidence-item:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.evidence-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.evidence-dialog {
  width: min(900px, 92vw);
  max-height: 85vh;
  animation: slideUpModal 0.4s ease-out;
}

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

.evidence-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.evidence-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
}

.evidence-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
  color: var(--accent);
  border: 1px solid var(--accent);
}

.badge-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.3));
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.badge-framework {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.evidence-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.evidence-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}

.evidence-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.evidence-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 16px;
}

.section-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
}

.evidence-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.evidence-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.data-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.data-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.status-pass {
  color: var(--accent);
}

.status-warning {
  color: var(--secondary);
}

.evidence-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.evidence-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.evidence-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: bold;
}

.evidence-list li strong {
  color: var(--text);
}

.code-sample {
  margin: 20px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.code-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--card-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-sample pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.code-sample code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.control-mapping {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-card {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
}

.control-card h5 {
  margin: 0 0 12px;
  color: var(--primary-light);
  font-size: 16px;
}

.control-card p {
  margin-bottom: 16px;
  font-size: 14px;
}

.control-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.status-pass {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.status-indicator.status-warning {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.recommendation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
}

.recommendation-success {
  border-left: 4px solid var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.recommendation-warning {
  border-left: 4px solid var(--secondary);
  background: rgba(245, 158, 11, 0.05);
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rec-header .iconify {
  width: 24px;
  height: 24px;
}

.recommendation-success .rec-header {
  color: var(--accent);
}

.recommendation-warning .rec-header {
  color: var(--secondary);
}

.action-steps {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.action-steps strong {
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

.action-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.action-steps ol li {
  padding: 6px 0;
  line-height: 1.6;
}

/* Share Dropdown in Header */
.share-dropdown {
  position: relative;
}

.share-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-toggle .iconify {
  width: 18px;
  height: 18px;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 100;
  animation: slideDown 0.2s ease-out;
}

.share-menu[hidden] {
  display: none;
}

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

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

.share-menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

.share-menu-item .iconify {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-menu-item[data-share="twitter"]:hover {
  background: rgba(29, 161, 242, 0.1);
  color: #1da1f2;
}

.share-menu-item[data-share="linkedin"]:hover {
  background: rgba(0, 119, 181, 0.1);
  color: #0077b5;
}

.share-menu-item[data-share="facebook"]:hover {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.share-menu-item[data-share="whatsapp"]:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.share-menu-item[data-share="email"]:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--secondary);
}

.share-menu-item[data-share="copy"]:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.share-menu-item[data-share="copy"].copied {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--card-border); 
  padding: 32px 0;
  background: var(--glass-bg);
}

.footer-inner { 
  display: grid; 
  grid-template-columns: 1fr auto auto; 
  gap: 16px; 
  align-items: center; 
}

.site-footer ul { 
  list-style: none; 
  display: flex; 
  gap: 16px; 
  margin: 0; 
  padding: 0; 
}

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

.site-footer a:hover {
  color: var(--primary-light);
}

/* Terminal */
.terminal { 
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--text); 
  border-radius: var(--border-radius); 
  border: 1px solid var(--card-border); 
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateX(0deg);
  transition: var(--transition);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.terminal:hover {
  transform: perspective(1000px) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.term-header { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
  padding: 12px 16px; 
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.term-header .dot { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  display: inline-block; 
}

.term-header .red { 
  background: #ff5f56; 
  box-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
}

.term-header .yellow { 
  background: #ffbd2e;
  box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.term-header .green { 
  background: #27c93f;
  box-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
}

.term-header .title { 
  margin-left: auto; 
  font-size: 12px; 
  color: var(--text-muted); 
}

.term-body { 
  margin: 0; 
  padding: 16px; 
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', ui-monospace, monospace;
  font-size: 13px; 
  line-height: 1.7; 
  height: 260px; 
  max-height: 260px; 
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}

.term-body .line { 
  display: block;
  margin: 0;
  padding: 0;
}

/* Terminal text colors */
.term-prompt {
  color: #5AE3B4;
}

.term-info {
  color: #818cf8;
}

.term-success {
  color: #10b981;
}

.term-warning {
  color: #f59e0b;
}

.term-muted {
  color: #94a3b8;
}

.term-border {
  color: #6366f1;
  font-weight: 500;
}

.term-normal {
  color: var(--text-muted);
}

.term-body .iconify { 
  width: 16px; 
  height: 16px; 
  vertical-align: -2px; 
  margin-right: 8px; 
}

.cursor { 
  display: inline-block; 
  width: 8px; 
  height: 16px; 
  background: var(--accent);
  margin-left: 2px; 
  animation: blink 1s steps(1,end) infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes blink { 
  50% { 
    opacity: 0; 
  } 
}

/* Scroll progress bar */
.progress-bar { 
  position: fixed; 
  inset: 0 0 auto 0; 
  height: 3px; 
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); 
  transform-origin: 0 0; 
  z-index: 80;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Right-side nav dots */
.nav-dots { 
  position: fixed; 
  right: 24px; 
  top: 50%; 
  transform: translateY(-50%); 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  z-index: 70; 
}

.nav-dots a { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  background: rgba(148, 163, 184, 0.3);
  border: 2px solid var(--card-border); 
  display: inline-block;
  transition: var(--transition);
}

.nav-dots a.is-active, 
.nav-dots a:hover { 
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.3);
}

/* Flow Diagram Section Removed - All styles deleted */

/* ============================================================================
   MAIN FLOW DIAGRAM STYLES REMOVED
   ============================================================================ */

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { 
    gap: 20px;
  }  .steps { 
    grid-template-columns: 1fr; 
  }
  
  .feature-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .gallery-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .pricing-grid { 
    grid-template-columns: 1fr; 
  }
  
  .logo-row { 
    grid-template-columns: 1fr 1fr 1fr; 
  }
  
  .cloud-row {
    grid-template-columns: 1fr;
  }
  
  /* Flow Diagram Responsive Styles Removed */
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .hero-content {
    gap: 24px;
  }
  
  .hero-title {
    font-size: 32px;
    margin: 8px 0;
  }
  
  .hero-sub {
    font-size: 16px;
    margin: 0 0 16px;
    line-height: 1.6;
  }
  
  .tagline-chip {
    font-size: 11px;
    padding: 6px 14px;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  
  .trust-chips {
    margin-top: 16px;
    gap: 8px;
  }
  
  .trust-chips span {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  /* Terminal Mobile */
  .terminal {
    margin: 8px auto;
    max-width: 100%;
    padding: 0 16px;
  }
  
  .term-body {
    font-size: 10px;
    height: 220px;
    max-height: 220px;
    padding: 12px;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .term-header {
    padding: 10px 14px;
  }
  
  .term-header .title {
    font-size: 11px;
  }
  
  .feature-grid { 
    grid-template-columns: 1fr; 
  }
  
  .paths-grid { 
    grid-template-columns: 1fr; 
  }
  
  .logo-row { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .site-nav {
    display: none;
  }
  
  .nav-dots {
    display: none;
  }
  
  h2 {
    font-size: 28px;
  }
  
  /* Flow Diagram Mobile Styles Removed */

  .key-badge {
    bottom: -12px;
    right: -12px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .orb {
    animation: none;
  }
  
  .floating-card {
    animation: none;
  }
  

}
