/* LobbyScape Marketing Website - Capitol Noir Theme v2.0 */
/* Enhanced Edition - Refined Legislative Elegance */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
  /* Colors - Capitol Noir Theme */
  --color-brass: #d4af37;
  --color-brass-light: #e8c95c;
  --color-brass-dark: #b8942e;
  --color-brass-glow: rgba(212, 175, 55, 0.3);
  --color-brass-subtle: rgba(212, 175, 55, 0.08);

  --color-bg-primary: #08090b;
  --color-bg-secondary: #0d0e12;
  --color-bg-tertiary: #141519;
  --color-bg-card: rgba(20, 21, 25, 0.85);
  --color-bg-elevated: rgba(30, 31, 38, 0.9);

  --color-text-primary: #f8f8f8;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;

  --color-border: rgba(212, 175, 55, 0.25);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-glow: rgba(212, 175, 55, 0.4);

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-2xl: clamp(1.375rem, 1.15rem + 1.125vw, 1.875rem);
  --text-3xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.7rem + 2.75vw, 3.75rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 5rem);
  --text-6xl: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 12rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px var(--color-brass-glow);
  --shadow-glow-sm: 0 0 20px var(--color-brass-glow);
  --shadow-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
}

::selection {
  background: var(--color-brass);
  color: var(--color-bg-primary);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

.section--lg {
  padding: var(--space-6xl) 0;
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

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

@media (max-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-1 { grid-template-columns: 1fr; }
  .md\:flex-col { flex-direction: column; }
}

@media (max-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: 1fr; }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

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

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

.lead {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brass);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-brass));
}

/* ============================================
   COMPONENTS - BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-brass-glow);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-brass) 0%, var(--color-brass-dark) 100%);
  color: var(--color-bg-primary);
  border-color: var(--color-brass);
  box-shadow: var(--shadow-inner-glow), 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-brass-light) 0%, var(--color-brass) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-sm), 0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover {
  border-color: var(--color-brass);
  color: var(--color-brass);
  background: rgba(212, 175, 55, 0.05);
}

.btn--ghost {
  background: transparent;
  color: var(--color-brass);
  border-color: transparent;
  padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

/* ============================================
   COMPONENTS - CARDS
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card:hover {
  border-color: var(--color-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

.card--glass {
  background: linear-gradient(
    135deg,
    rgba(26, 27, 33, 0.85) 0%,
    rgba(17, 18, 23, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card--featured {
  border-color: var(--color-brass);
  background: linear-gradient(
    165deg,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(20, 21, 25, 0.95) 40%
  );
}

.card--featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brass), transparent);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--color-brass);
  transition: all var(--transition-base);
}

.card:hover .card__icon {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-sm);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.card__description {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ============================================
   COMPONENTS - NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(8, 9, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--space-xl);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-brass);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-sm) 0;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-brass);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: var(--space-sm);
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .nav__actions .btn--secondary {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary);
  padding: var(--space-xl);
  z-index: var(--z-fixed);
}

.mobile-menu.is-open {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu__link {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--color-brass);
}

/* ============================================
   COMPONENTS - HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
}

/* Animated particles effect */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-brass);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 20s linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero__content {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  animation: fadeInUp 1s ease 0.2s both;
}

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

.hero__eyebrow {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero__title {
  margin-bottom: var(--space-xl);
  line-height: 1.05;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero__title-highlight {
  color: var(--color-brass);
  position: relative;
  display: inline-block;
}

.hero__title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: linear-gradient(90deg, var(--color-brass-glow), transparent);
  border-radius: var(--radius-full);
  opacity: 0.5;
}

.hero__description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.75;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  margin-top: var(--space-5xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border-subtle);
  animation: fadeInUp 1s ease 0.7s both;
}

.hero__stat {
  text-align: center;
  position: relative;
}

.hero__stat::after {
  content: '';
  position: absolute;
  right: calc(var(--space-4xl) / -2);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--color-border-subtle), transparent);
}

.hero__stat:last-child::after {
  display: none;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-brass);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .hero__stats {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .hero__stat::after {
    display: none;
  }
}

/* ============================================
   COMPONENTS - FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: var(--space-2xl);
}

.feature-card__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

/* ============================================
   COMPONENTS - SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4xl);
}

.section-header__eyebrow {
  margin-bottom: var(--space-lg);
}

.section-header__title {
  margin-bottom: var(--space-lg);
}

.section-header__description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.75;
}

/* ============================================
   COMPONENTS - LOGO CLOUD
   ============================================ */
.logo-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3xl);
  opacity: 0.5;
}

.logo-cloud__item {
  height: 32px;
  filter: grayscale(100%) brightness(200%);
  transition: all var(--transition-base);
}

.logo-cloud__item:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

/* ============================================
   COMPONENTS - TABS
   ============================================ */
.tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: var(--space-md) var(--space-xl);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

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

.tab.is-active {
  color: var(--color-brass);
  border-bottom-color: var(--color-brass);
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================
   COMPONENTS - TESTIMONIALS
   ============================================ */
.testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  position: relative;
}

.testimonial__quote {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-left: var(--space-xl);
}

.testimonial__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  color: var(--color-brass);
  position: absolute;
  top: -10px;
  left: -5px;
  opacity: 0.2;
  line-height: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
  border: 2px solid var(--color-border-subtle);
}

.testimonial__info {
  flex: 1;
}

.testimonial__name {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: var(--text-base);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   COMPONENTS - PRICING CARDS
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
}

.pricing-card--featured {
  border-color: var(--color-brass);
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(20, 21, 25, 0.95) 25%
  );
  transform: scale(1.03);
  position: relative;
  box-shadow: var(--shadow-glow-sm);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--color-brass-light) 0%, var(--color-brass) 100%);
  color: var(--color-bg-primary);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.pricing-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.pricing-card__price {
  margin-bottom: var(--space-xl);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.pricing-card__feature-icon {
  color: var(--color-brass);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   COMPONENTS - FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-brass);
}

.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-brass);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  display: none;
  padding-bottom: var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.faq-item.is-open .faq-item__answer {
  display: block;
  animation: slideDown 0.3s ease;
}

/* ============================================
   COMPONENTS - CTA SECTION
   ============================================ */
.cta-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-brass), transparent);
}

.cta-section__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* ============================================
   COMPONENTS - FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.footer__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-brass);
  border-color: var(--color-brass);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
}

.footer__column-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-brass);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-xl);
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================
   COMPONENTS - FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-brass);
  box-shadow: 0 0 0 3px var(--color-brass-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   UTILITIES
   ============================================ */
.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;
}

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

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

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

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered animations */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* ============================================
   ICONS
   ============================================ */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

.icon--xl {
  width: 48px;
  height: 48px;
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* Glow text effect */
.text-glow {
  text-shadow: 0 0 20px var(--color-brass-glow);
}

/* Gradient border */
.gradient-border {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-brass) 0%, transparent 50%, var(--color-brass) 100%);
  z-index: -1;
  opacity: 0.5;
}

/* Shine effect on hover */
.shine-on-hover {
  position: relative;
  overflow: hidden;
}

.shine-on-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.shine-on-hover:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* ============================================
   RESPONSIVE - COMPREHENSIVE MOBILE STYLES
   ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  /* Force all inline 2-column grids to stack */
  .grid[style*="grid-template-columns: 1fr 1fr"],
  .grid[style*="grid-template-columns:1fr 1fr"],
  .grid[style*="grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix inline grids with gap-3xl that are 2-col content layouts */
  .grid.gap-3xl[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix large minmax grids that overflow */
  .grid[style*="minmax(400px"],
  .grid[style*="minmax(350px"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce section padding */
  .section {
    padding: var(--space-3xl) 0;
  }

  .section--lg {
    padding: var(--space-4xl) 0;
  }

  /* Hero adjustments */
  .hero {
    min-height: 70vh !important;
  }

  .hero__title br {
    display: none;
  }

  .hero__stats {
    gap: var(--space-2xl);
  }

  .hero__stat::after {
    right: calc(var(--space-2xl) / -2);
  }

  /* Nav container */
  .nav__container {
    padding: 0 var(--space-md);
  }

  /* Footer grid - 3 cols on tablet */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer__brand {
    grid-column: 1 / -1;
    margin-bottom: var(--space-lg);
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Base typography - ensure readable minimum */
  body {
    font-size: 1rem; /* 16px minimum */
    line-height: 1.7;
  }

  /* Container - smaller side padding on mobile */
  .container {
    padding: 0 var(--space-md);
  }

  /* Force ALL grids to single column on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Also fix grids inside inline styles */
  .grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Features grid single col */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Section padding reduction */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section--sm {
    padding: var(--space-xl) 0;
  }

  .section--lg {
    padding: var(--space-3xl) 0;
  }

  /* Section headers */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Hero - scale down on mobile */
  .hero {
    min-height: auto !important;
    padding-top: 100px;
    padding-bottom: var(--space-2xl);
  }

  .hero__content {
    padding: 0;
  }

  .hero__description {
    font-size: var(--text-lg);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
  }

  .hero__stat::after {
    display: none;
  }

  .hero__stat-value {
    font-size: var(--text-2xl);
  }

  /* Navigation */
  .nav__container {
    height: 64px;
    padding: 0 var(--space-md);
  }

  .nav__logo {
    font-size: var(--text-lg);
  }

  .nav__logo-icon {
    width: 28px;
    height: 28px;
  }

  /* Mobile menu */
  .mobile-menu {
    top: 64px;
    padding: var(--space-lg);
    overflow-y: auto;
  }

  .mobile-menu__link {
    font-size: var(--text-lg);
    padding: var(--space-md) 0;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Mobile menu actions */
  .mobile-menu__links {
    margin-bottom: var(--space-xl);
  }

  /* Buttons - ensure proper touch targets */
  .btn {
    min-height: 44px;
    padding: var(--space-md) var(--space-lg);
  }

  .btn--lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
  }

  .btn--sm {
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
  }

  /* Cards */
  .card {
    padding: var(--space-lg);
  }

  .card:hover {
    transform: none; /* Disable hover lift on mobile (no hover state) */
  }

  .feature-card {
    padding: var(--space-xl);
  }

  /* Footer */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
  }

  .footer__brand {
    margin-bottom: var(--space-md);
    max-width: none;
  }

  .footer__column-title {
    margin-bottom: var(--space-sm);
  }

  .footer__links {
    gap: var(--space-sm);
  }

  .footer__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .footer__social-link {
    width: 44px;
    height: 44px;
  }

  /* Pricing grid */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: none;
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  /* Testimonials */
  .testimonial {
    padding: var(--space-xl);
  }

  .testimonial__quote {
    font-size: var(--text-base);
    padding-left: var(--space-lg);
  }

  /* FAQ */
  .faq-item__question {
    font-size: var(--text-base);
    padding: var(--space-lg) 0;
    min-height: 48px;
  }

  /* Forms - full width */
  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-md);
    font-size: 1rem; /* Prevents iOS zoom */
    min-height: 48px;
  }

  /* CTA Section */
  .cta-section__content {
    max-width: none;
  }

  .cta-benefits {
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-md) !important;
  }

  /* Flex wrapping */
  .flex {
    flex-wrap: wrap;
  }

  /* Inline flex layouts that should stack */
  [style*="display: flex"][style*="justify-content: center"][style*="gap"] {
    flex-direction: column;
    align-items: center;
  }

  /* Contact page grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Aide section */
  .aide-content {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
    text-align: center;
  }

  .aide-visual {
    order: -1;
  }

  .aide-capabilities {
    grid-template-columns: 1fr !important;
    text-align: left;
  }

  .aide-text h2 {
    font-size: var(--text-2xl) !important;
  }

  /* Relationship section */
  .relationship-grid {
    grid-template-columns: 1fr !important;
  }

  .relationship-insight__content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .relationship-pillars {
    grid-template-columns: 1fr !important;
  }

  /* Logo cloud */
  .logo-cloud {
    gap: var(--space-xl);
  }

  /* Tab overflow scrolling */
  .tabs {
    gap: 0;
    padding-bottom: var(--space-xs);
  }

  .tab {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    min-height: 44px;
  }

  /* Prevent any horizontal overflow */
  main {
    overflow-x: hidden;
  }

  /* Word break for long text */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* --- Small phones (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  /* Even smaller headings */
  h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.75rem) !important;
  }

  /* Buttons stack full width */
  .hero__actions .btn,
  .cta-section .btn {
    width: 100%;
  }

  /* Card padding reduction */
  .card {
    padding: var(--space-md);
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .feature-card__number {
    font-size: var(--text-4xl);
  }

  /* Footer columns */
  .footer__grid {
    gap: var(--space-lg);
  }

  /* Stat values */
  .hero__stat-value {
    font-size: var(--text-xl);
  }

  /* Testimonial */
  .testimonial {
    padding: var(--space-lg);
  }

  .testimonial__quote::before {
    font-size: var(--text-4xl);
    top: -5px;
    left: -2px;
  }

  /* Nav */
  .nav__container {
    height: 56px;
  }

  .mobile-menu {
    top: 56px;
  }

  /* Eyebrow */
  .eyebrow {
    font-size: clamp(0.625rem, 2.5vw, 0.8rem);
  }

  .lead {
    font-size: var(--text-base);
  }

  /* Section header description */
  .section-header__description {
    font-size: var(--text-base);
  }

  /* Pricing card */
  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-card__amount {
    font-size: var(--text-3xl);
  }
}

/* --- Ensure no horizontal scrolling at any size --- */
html, body {
  max-width: 100vw;
}

/* --- Touch target minimum size --- */
@media (hover: none) and (pointer: coarse) {
  a, button, [role="button"], input[type="submit"], select {
    min-height: 44px;
  }

  .nav__link {
    padding: var(--space-md) var(--space-sm);
  }

  .footer__link {
    padding: var(--space-xs) 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .faq-item__question {
    min-height: 48px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .nav,
  .footer,
  .btn,
  .cta-section {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
