/* CSS Variables for GitHub-inspired theme */
:root {
  /* GitHub Colors */
  --github-dark: #0d1117;
  --github-gray: #161b22;
  --github-border: #30363d;
  --github-text: #c9d1d9;
  --github-blue: #58a6ff;
  --github-green: #3fb950;
  
  /* CSV Workbench Brand Colors */
  --csv-primary: #2563eb;
  --csv-secondary: #7c3aed;
  
  /* Additional Colors */
  --white: #ffffff;
  --red-500: #ef4444;
  --yellow-500: #eab308;
  
  /* Typography */
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Inconsolata, monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background-color: var(--github-dark);
  color: var(--github-text);
  line-height: 1.6;
  overflow-x: hidden; /* Guard: prevent any horizontal overflow on small devices */
  width: 100%;
}

/* Utility Classes */
.font-inter { font-family: var(--font-inter); }
.font-mono { font-family: var(--font-mono); }

.bg-github-dark { background-color: var(--github-dark); }
.bg-github-gray { background-color: var(--github-gray); }
.text-github-text { color: var(--github-text); }
.text-white { color: var(--white); }
.border-github-border { border-color: var(--github-border); }

.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-md {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Grid System */
.grid {
  display: grid;
}

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

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Flexbox */
/* Mobile-only strong hide for the 'hidden' utility to prevent any accidental overrides */
@media (max-width: 767.98px) {
  .hidden,
  [class~="hidden"] {
    display: none !important;
  }
}
/* Display utilities */
.hidden { display: none; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-8 { bottom: 2rem; }
.left-1\/2 { left: 50%; }
.transform { transform: var(--tw-transform); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-8 { width: 2rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.w-4 { width: 1rem; }
.w-2 { width: 0.5rem; }
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.h-2 { height: 0.5rem; }
.min-h-screen { min-height: 100vh; }

/* Padding and Margin */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
/* Padding utilities used by security cards */
.p-8 { padding: 2rem; }           /* 32px on all sides */
.pt-10 { padding-top: 2.5rem; }   /* 40px top spacing (for gradient bar clearance) */
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-24 { padding-top: 6rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-12 { padding-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-10 { margin-left: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-20 { margin-top: 5rem; }
.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-16 { margin-bottom: 4rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

/* Fluid typography for headings (Phase 3) */
.fluid-text-h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); line-height: 1.1; }
.fluid-text-h2 { font-size: clamp(1.875rem, 3.5vw + 0.75rem, 2.5rem); line-height: 1.2; }
.fluid-text-h3 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem); line-height: 1.3; }

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

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

/* List utilities */
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-none { list-style: none; }
.list-inside { list-style-position: inside; }
.list-outside { list-style-position: outside; }

.text-center { text-align: center; }
.text-transparent { color: transparent; }

/* Background and Gradients */
.bg-clip-text { background-clip: text; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-csv-primary { --tw-gradient-from: var(--csv-primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)); }
.from-csv-secondary { --tw-gradient-from: var(--csv-secondary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 58, 237, 0)); }
.from-github-green { --tw-gradient-from: var(--github-green); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(63, 185, 80, 0)); }
.from-github-dark { --tw-gradient-from: var(--github-dark); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(13, 17, 23, 0)); }
.from-red-500 { --tw-gradient-from: var(--red-500); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0)); }
.from-yellow-500 { --tw-gradient-from: var(--yellow-500); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(234, 179, 8, 0)); }

.to-csv-secondary { --tw-gradient-to: var(--csv-secondary); }
.to-csv-primary { --tw-gradient-to: var(--csv-primary); }
.to-github-green { --tw-gradient-to: var(--github-green); }
.to-github-dark { --tw-gradient-to: var(--github-dark); }
.via-github-gray { --tw-gradient-stops: var(--tw-gradient-from), var(--github-gray), var(--tw-gradient-to, rgba(22, 27, 34, 0)); }

/* Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }

/* Effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.overflow-hidden { overflow: hidden; }
.flex-shrink-0 { flex-shrink: 0; }

/* Animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-fade-in { animation: fadeIn 0.8s ease-out; }

/* Navigation Styles */
nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100vw;
  overflow-x: hidden; /* Prevent header from creating horizontal scroll on small devices */
}

/* Ensure header flex containers can shrink to avoid overflow */
nav .flex { min-width: 0; }

/* Truncate brand text if space is tight on very small widths */
nav .logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Allow brand to shrink and avoid horizontal overflow on small screens */
/* Contain nav row to viewport width and prevent horizontal push */
nav > .max-w-7xl { overflow-x: hidden; }

/* Ensure the header row can shrink within viewport */
nav .h-16 { min-width: 0; }

/* Guard: never render any md: display utilities below md */
@media (max-width: 767.98px) {
  nav .md\:block,
  nav .md\:flex { display: none !important; }
}
nav .flex-shrink-0 { flex-shrink: 1; min-width: 0; }
nav .logo-link { min-width: 0; }

/* Constrain brand text so it can't push the hamburger off-screen */
@media (max-width: 767.98px) {
  nav .logo-text { max-width: calc(100vw - 7rem); }
}

/* Force-hide desktop nav (links/buttons) below md regardless of class cascade or specificity issues) */
@media (max-width: 767.98px) {
  /* Hide any element intended for md+ even if "hidden md:block" got overridden */
  nav [class*="md:block"],
  nav [class*="md:flex"] {
    display: none !important;
  }

  /* Remove left gap reserved for desktop nav so brand + hamburger fit */
  nav .ml-10 { margin-left: 0 !important; }

  /* Ensure hamburger is visible */
  nav .mobile-menu-button { display: inline-flex !important; }
}

.nav-link {
  color: var(--github-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  display: block;
  color: var(--github-text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
  color: var(--github-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  /* Phase 1: Ensure minimum 44x44px hit target on small screens */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100vw;     /* Keep dropdown within viewport */
  box-sizing: border-box;
  overflow-x: hidden;
}

.mobile-menu.hidden {
  display: none;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--github-text);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--github-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--github-text);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-secondary-large {
  background: transparent;
  color: var(--github-text);
  padding: 1rem 2rem;
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-secondary-large:hover {
  color: var(--white);
  border-color: var(--github-text);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Hero Section */
.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--csv-primary);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.floating-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: -2s;
}

.floating-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: -4s;
  background: var(--csv-secondary);
}

/* Feature Cards */
.feature-card {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--csv-primary), var(--csv-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.feature-metrics {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  background: rgba(255, 255, 255, 0.1);
  color: var(--github-text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pipeline Steps */
.pipeline-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.code-example {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
}

.code-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--github-border);
}

.code-lang {
  color: var(--github-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.code-content {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--github-text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric-card {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--github-text);
}

/* Audience Cards */
.audience-card {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.audience-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.use-case-callout {
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  color: var(--white);
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  font-style: italic;
  margin-top: 1rem;
}

/* Social Proof Section */
.metric-showcase {
  text-align: center;
  padding: 1.5rem;
}

.metric-showcase .metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-showcase .metric-label {
  font-size: 1rem;
  color: var(--github-text);
  font-weight: 500;
}

.community-stat {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.community-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--github-text);
  font-weight: 500;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  color: var(--github-text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.compliance-badge:hover {
  border-color: var(--github-green);
  color: var(--github-green);
}

.badge-icon {
  color: var(--github-green);
}

/* Testimonials */
.testimonial-card {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  color: var(--github-text);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.author-name {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-title {
  color: var(--github-text);
  font-size: 0.875rem;
}

/* Pricing Section */
.pricing-card {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--csv-primary);
  box-shadow: 0 0 0 1px var(--csv-primary);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.featured-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--csv-primary), var(--csv-secondary));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.coming-soon-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow-500), #f97316);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  margin: 1rem 0;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}

.price-period {
  font-size: 1.25rem;
  color: var(--github-text);
  font-weight: 500;
}

.pricing-features {
  flex: 1;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--github-text);
}

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

/* Plan Comparison Table */
.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.comparison-header-cell {
  background: var(--github-dark);
  color: var(--white);
  font-weight: 600;
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 2px solid var(--github-border);
  font-size: 1.125rem;
}

.comparison-header-cell:first-child {
  text-align: left;
  width: 30%;
}

.comparison-highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  border-left: 2px solid var(--csv-primary);
  border-right: 2px solid var(--csv-primary);
}

.comparison-category-row {
  background: rgba(255, 255, 255, 0.05);
}

.comparison-category-cell {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--github-border);
}

.comparison-row {
  transition: background-color 0.2s ease;
}

.comparison-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-cell {
  padding: 1rem;
  color: var(--github-text);
  border-bottom: 1px solid var(--github-border);
  vertical-align: middle;
}

.comparison-cell:first-child {
  font-weight: 500;
  color: var(--white);
}

.comparison-check {
  color: var(--github-green);
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.comparison-cross {
  color: #8b5cf6;
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.comparison-na {
  color: var(--github-text);
  font-style: italic;
  opacity: 0.7;
}

.comparison-callout {
  background: var(--github-gray);
  border: 2px solid var(--csv-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-top: 4rem;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

/* Responsive comparison table */
@media (max-width: 1024px) {
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-header-cell,
  .comparison-cell {
    padding: 0.75rem 0.5rem;
  }
  
  .comparison-header-cell {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .comparison-header-cell:first-child {
    min-width: 200px;
  }
  
  .comparison-header-cell {
    min-width: 150px;
  }
  
  .comparison-cell {
    min-width: 150px;
  }
  
  .comparison-cell:first-child {
    min-width: 200px;
  }
}


/* FAQ Section */
.faq-item {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
  /* Add top padding so content doesn't crowd the divider/focus outline */
  padding: 1rem 1.5rem 1.5rem;
  color: var(--github-text);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Footer */
.social-link {
  color: var(--github-text);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.social-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.footer-link {
  color: var(--github-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

/* Footer layout cleanup */
footer ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Align footer columns to the top to avoid uneven vertical centering */
footer .grid {
  align-items: flex-start;
}

/* Footer spacing simplification: provide extra separation between company info and Product column */
@media (min-width: 768px) {
  footer .footer-col-product {
    margin-left: 1.5rem; /* 24px */
  }
}
@media (min-width: 1024px) {
  footer .footer-col-product {
    margin-left: 2rem; /* 32px */
  }
}
/* Responsive Design */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:space-y-0 > * + * { margin-top: 0; }
  .sm\:space-x-8 > * + * { margin-left: 2rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:mt-0 { margin-top: 0; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  /* Large screen responsive classes */
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  
  
  /* Sticky positioning */
  .sticky { position: sticky; }
  .top-24 { top: 6rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* Interactive Elements */
.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Ensure documentation content is always visible */
section.pt-24,
section.py-20 {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-primary-large:focus,
.btn-secondary:focus,
.btn-secondary-large:focus,
.nav-link:focus,
.mobile-nav-link:focus,
.footer-link:focus,
.mobile-menu-button:focus,
.faq-question:focus {
  outline: 2px solid var(--csv-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .fixed { position: static; }
  .bg-github-dark,
  .bg-github-gray { background: white !important; }
  .text-github-text,
  .text-white { color: black !important; }
  .border-github-border { border-color: #ccc !important; }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --github-text: #ffffff;
    --github-border: #ffffff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Disable smooth scrolling for reduced motion */
  html {
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support (already implemented) */
@media (prefers-color-scheme: light) {
  /* Light mode overrides would go here if needed */
}

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

::-webkit-scrollbar-track {
  background: var(--github-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--github-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--github-text);
}

/* Selection Styles */
::selection {
  background: var(--csv-primary);
  color: var(--white);
}

::-moz-selection {
  background: var(--csv-primary);
  color: var(--white);
}
/* Logo Styles */
.logo-link {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link:hover {
  text-decoration: none !important;
}

.logo-link:visited {
  text-decoration: none !important;
}

.logo-link:focus {
  text-decoration: none !important;
  outline: 2px solid var(--csv-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.logo-container {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo-svg:hover {
  filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.3));
}

.logo-container-small {
  width: 2rem;
  height: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.logo-container-small:hover {
  transform: scale(1.05);
}

.logo-svg-small {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo-svg-small:hover {
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.logo-text:hover {
  transform: translateX(2px);
}

/* Logo Animation */
@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  }
  50% {
    filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.4));
  }
}

.logo-svg:hover {
  animation: logoGlow 2s ease-in-out infinite;
}
/* Phase 4: Responsive media helpers and overflow utilities */
/* Ensure raster and embedded media scale within their containers */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* Utility for explicitly responsive inline images when added */
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Component-level overflow helpers (apply to specific wrappers as needed) */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overscroll-x-contain { overscroll-behavior-x: contain; }
.overscroll-y-contain { overscroll-behavior-y: contain; }
.scroll-touch { -webkit-overflow-scrolling: touch; }
/* Mobile header width guards */
nav .items-center > * { min-width: 0; }

/* Prefer truncation over horizontal overflow on narrow phones */
@media (max-width: 767.98px) {
  /* Ensure the header row can shrink within viewport */
  nav .h-16 { min-width: 0; }
  nav .logo-link { min-width: 0; gap: 0.5rem; }

  /* Constrain brand text so it can't push the hamburger off-screen */
  nav .logo-text {
    max-width: calc(100vw - 6.5rem); /* leaves room for button + padding */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* Ultra-narrow devices: hide the "Workbench" word to avoid overflow */
@media (max-width: 400px) {
  nav .logo-text span:nth-child(2) { display: none; }
}
/* Mobile nav enforcement guard (last-resort; placed at end for precedence) */
@media (max-width: 767.98px) {
  /* Hide desktop nav links/buttons unconditionally on phones */
  .hidden.md\:block,
  .hidden.md\:flex {
    display: none !important;
  }

  /* Ensure hamburger remains visible and spacing is tight */
  nav .mobile-menu-button { display: inline-flex !important; }
  nav .ml-10 { margin-left: 0 !important; }

  /* Prevent any header overflow from brand text */
  nav .logo-text {
    max-width: calc(100vw - 6.5rem) !important; /* reserves space for button/padding */
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
}