/* FileRidge Marketing Site - CSS Styling */

/* ============================================
   CSS Custom Properties & Design Tokens
   ============================================ */
:root {
  color-scheme: light;

  /* FileRidge Spruce Palette */
  --primary-50: #e7f1ed;
  --primary-100: #d7e6df;
  --primary-200: #b9d1c6;
  --primary-300: #8fb5a4;
  --primary-400: #638e78;
  --primary-500: #3f725f;
  --primary-600: #245f51;
  --primary-700: #0f4a3f;
  --primary-800: #07362f;
  --primary-900: #0f1416;

  /* Warm Operational Neutrals */
  --stone-50: #fffaf2;
  --stone-100: #f6f0e4;
  --stone-200: #e5dbc4;
  --stone-300: #d3c6aa;
  --stone-400: #8f9a93;
  --stone-500: #5b665f;
  --stone-600: #3f4a44;
  --stone-700: #26362f;
  --stone-800: #171f1c;
  --stone-900: #111716;

  /* FileRidge Signal Colors */
  --accent-400: #e0aa34;
  --accent-500: #c85e2e;
  --accent-600: #9d3f1d;
  --signal-blue: #276b9f;

  /* Status Colors */
  --status-open: #0f4a3f;
  --status-progress: #276b9f;
  --status-pending: #e0aa34;
  --status-complete: #3f725f;

  /* 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;

  /* Typography */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.82) inset, 0 1px 2px rgba(17, 23, 22, 0.05);
  --shadow-md: 0 12px 26px rgba(15, 74, 63, 0.12), 0 2px 8px rgba(17, 23, 22, 0.06);
  --shadow-lg: 0 18px 44px rgba(15, 74, 63, 0.14), 0 5px 16px rgba(17, 23, 22, 0.08);
  --shadow-xl: 0 28px 74px rgba(15, 74, 63, 0.18), 0 8px 18px rgba(17, 23, 22, 0.08);
  --shadow-glow: 0 0 0 1px rgba(15, 74, 63, 0.16), 0 18px 42px rgba(15, 74, 63, 0.16);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.625rem;
  --radius-2xl: 0.75rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  font-size: 16px;
  background: var(--stone-100);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--stone-800);
  background:
    linear-gradient(90deg, rgba(17, 23, 22, 0.046) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(17, 23, 22, 0.034) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #fffaf2 0%, #f6f0e4 54%, #ece2cf 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 9% 0%, rgba(15, 74, 63, 0.16) 0%, transparent 42%),
    radial-gradient(ellipse at 85% 100%, rgba(200, 94, 46, 0.13) 0%, transparent 46%);
  z-index: -2;
  animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Noise Texture Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

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

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-500);
}

::selection {
  color: white;
  background: var(--primary-700);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(200, 94, 46, 0.62);
  outline-offset: 3px;
}

/* ============================================
   Layout Components
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 23, 22, 0.12);
  transition: all var(--transition-base);
}

.nav.scrolled {
  padding: var(--space-sm) var(--space-xl);
  box-shadow: 0 18px 44px rgba(17, 23, 22, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--stone-900);
  letter-spacing: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: transparent;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 800;
  font-size: 0;
  box-shadow: none;
  overflow: hidden;
}

.logo-icon > * {
  display: none;
}

.logo-icon::before {
  content: '';
  width: 100%;
  height: 100%;
  background: url("favicon.svg") center / contain no-repeat;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
}

.nav-links a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--stone-600);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-800);
  background: rgba(15, 74, 63, 0.1);
}

.nav-cta {
  margin-left: var(--space-md);
  padding: var(--space-sm) var(--space-lg) !important;
  font-size: 0.9rem !important;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 250, 242, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(17, 23, 22, 0.12);
  padding: var(--space-sm);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  margin-top: var(--space-xs);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--stone-600);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 74, 63, 0.32);
  border-radius: var(--radius-md);
  color: var(--primary-700);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--stone-500);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Floating Elements */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-300);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-200);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-400);
  top: 50%;
  left: 10%;
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-5deg); }
  75% { transform: translate(30px, 10px) rotate(3deg); }
}

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

/* ============================================
   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-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-700);
  color: white;
  box-shadow: 0 12px 26px rgba(15, 74, 63, 0.24);
}

.btn-primary:hover {
  background: var(--primary-800);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 74, 63, 0.28);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-800);
  border: 1px solid rgba(15, 74, 63, 0.26);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: white;
  border-color: rgba(15, 74, 63, 0.44);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
  background: var(--primary-50);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17, 23, 22, 0.14);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 74, 63, 0.28);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary-700);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: var(--primary-100);
  transform: scale(1.1);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

/* ============================================
   Flow/Timeline Visualization
   ============================================ */
.flow-container {
  position: relative;
  padding: var(--space-2xl) 0;
}

.flow-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-200));
  border-radius: var(--radius-full);
}

.flow-step {
  display: flex;
  gap: var(--space-xl);
  position: relative;
  animation: fadeInLeft 0.5s ease-out both;
}

.flow-step:nth-child(1) { animation-delay: 0.1s; }
.flow-step:nth-child(2) { animation-delay: 0.2s; }
.flow-step:nth-child(3) { animation-delay: 0.3s; }
.flow-step:nth-child(4) { animation-delay: 0.4s; }
.flow-step:nth-child(5) { animation-delay: 0.5s; }
.flow-step:nth-child(6) { animation-delay: 0.6s; }
.flow-step:nth-child(7) { animation-delay: 0.7s; }
.flow-step:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.flow-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: white;
  border: 3px solid var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-700);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.flow-step:hover .flow-number {
  background: var(--primary-700);
  color: white;
  transform: scale(1.1);
}

.flow-content {
  flex: 1;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.flow-step:hover .flow-content {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
}

.flow-content h4 {
  color: var(--stone-900);
  margin-bottom: var(--space-sm);
}

.flow-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.flow-meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.flow-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--stone-100);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--stone-600);
  font-weight: 500;
}

.flow-tag.highlight {
  background: var(--primary-50);
  color: var(--primary-700);
}

/* ============================================
   Screen Preview Cards
   ============================================ */
.screen-preview {
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--stone-200);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.screen-preview:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.screen-header {
  background: var(--stone-800);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.screen-dots {
  display: flex;
  gap: 6px;
}

.screen-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stone-600);
}

.screen-dots span:nth-child(1) { background: #ff5f57; }
.screen-dots span:nth-child(2) { background: #febc2e; }
.screen-dots span:nth-child(3) { background: #28c840; }

.screen-url {
  flex: 1;
  background: var(--stone-700);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone-400);
}

.screen-body {
  padding: var(--space-xl);
  min-height: 300px;
  background: linear-gradient(135deg, var(--stone-50), white);
}

/* ============================================
   Stats & Metrics
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--stone-500);
  font-weight: 500;
}

/* ============================================
   Role Cards
   ============================================ */
.role-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

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

.role-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--stone-100);
}

.role-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.role-info h4 {
  margin-bottom: var(--space-xs);
}

.role-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-permissions {
  list-style: none;
}

.role-permissions li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--stone-600);
  font-size: 0.9rem;
}

.role-permissions li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--status-complete);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================================
   Status Badges
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-open {
  background: rgba(15, 74, 63, 0.14);
  color: var(--status-open);
}
.status-open::before { background: var(--status-open); }

.status-progress {
  background: rgba(39, 107, 159, 0.14);
  color: var(--status-progress);
}
.status-progress::before { background: var(--status-progress); }

.status-pending {
  background: rgba(224, 170, 52, 0.18);
  color: var(--status-pending);
}
.status-pending::before { background: var(--status-pending); }

.status-complete {
  background: rgba(63, 114, 95, 0.17);
  color: var(--status-complete);
}
.status-complete::before { background: var(--status-complete); }

/* ============================================
   Page Header
   ============================================ */
.page-header {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  text-align: center;
  position: relative;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--stone-500);
}

.breadcrumb span {
  color: var(--stone-400);
}

.breadcrumb .current {
  color: var(--primary-700);
  font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

/* ============================================
   Quote/Highlight Box
   ============================================ */
.highlight-box {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 23, 22, 0.14);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  color: var(--stone-900);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-700);
}

.highlight-box h3 {
  color: var(--stone-900);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  position: relative;
}

.highlight-box p {
  color: var(--stone-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ============================================
   Table of Contents
   ============================================ */
.toc {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-xl);
  position: sticky;
  top: 100px;
}

.toc h4 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--stone-100);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: var(--space-sm);
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--stone-600);
  font-size: 0.9rem;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.toc-list a::before {
  content: '→';
  color: var(--stone-400);
  transition: all var(--transition-fast);
}

.toc-list a:hover::before {
  color: var(--primary-500);
  transform: translateX(4px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: var(--stone-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--primary-700); }
.text-muted { color: var(--stone-500); }

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

.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); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   Mobile Navigation
   ============================================ */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--stone-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    padding-top: 80px;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    overflow-y: auto;
  }

  .mobile-menu-checkbox:checked ~ .mobile-nav-menu {
    display: flex;
  }

  .mobile-nav-menu a {
    display: block;
    padding: var(--space-md) var(--space-xl);
    color: var(--stone-700);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    width: 80%;
    max-width: 300px;
  }

  .mobile-nav-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-700);
  }

  .mobile-nav-menu .mobile-nav-divider {
    width: 60%;
    max-width: 200px;
    height: 1px;
    background: var(--stone-200);
    margin: var(--space-sm) 0;
  }

  .mobile-nav-menu .mobile-nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
  }

  .mobile-nav-menu .btn-primary {
    margin-top: var(--space-lg);
    width: 80%;
    max-width: 300px;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-2xl)) var(--space-md) var(--space-2xl);
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-timeline::before {
    display: none;
  }

  .flow-number {
    margin-bottom: var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Trust Page Components
   ============================================ */
.trust-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary-50), rgba(204, 251, 241, 0.5));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.trust-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.trust-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.trust-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.trust-detail-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.trust-detail-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.trust-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--stone-100);
}

.trust-detail-header h4 {
  margin: 0;
}

.trust-detail-list {
  list-style: none;
  padding: 0;
}

.trust-detail-list li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
  color: var(--stone-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.trust-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--primary-500);
  border-radius: 50%;
}

.trust-detail-list li + li {
  border-top: 1px solid var(--stone-50);
}

.trust-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.trust-column-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.trust-column-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
}

.trust-table thead tr {
  border-bottom: 2px solid var(--stone-200);
}

.trust-table th {
  padding: var(--space-sm);
  color: var(--stone-500);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-table td {
  padding: var(--space-md) var(--space-sm);
  font-size: 0.9rem;
  color: var(--stone-700);
}

.trust-table tbody tr {
  border-bottom: 1px solid var(--stone-100);
}

.trust-table tbody tr:last-child {
  border-bottom: none;
}

.trust-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.trust-criteria-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.trust-criteria-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.trust-criteria-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.trust-criteria-card h4 {
  margin-bottom: var(--space-sm);
}

.trust-criteria-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .trust-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-detail-grid,
  .trust-columns {
    grid-template-columns: 1fr;
  }

  .trust-criteria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .trust-criteria-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FileRidge Visual Rebrand Overrides
   ============================================ */
.page-header {
  text-align: left;
}

.page-header .breadcrumb,
.section-header {
  justify-content: flex-start;
  text-align: left;
  margin-left: 0;
}

.section-header p,
.page-header p {
  margin-left: 0;
}

.section-tag {
  border: 1px solid rgba(15, 74, 63, 0.32);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.055em;
}

.features-grid,
.stats-grid,
.trust-detail-grid,
.trust-columns,
.trust-criteria-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.flow-timeline::before {
  width: 2px;
  background: linear-gradient(180deg, var(--primary-700), var(--stone-200));
}

.flow-number {
  border-radius: var(--radius-md);
  border: 2px solid rgba(15, 74, 63, 0.28);
  background: white;
}

.flow-step:hover .flow-number {
  background: var(--primary-700);
}

.flow-content,
.screen-preview,
.stat-card,
.role-card,
.toc,
.trust-banner,
.trust-detail-card,
.trust-column-card,
.trust-criteria-card {
  border-color: rgba(17, 23, 22, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.screen-header {
  background: var(--primary-900);
}

.screen-url {
  background: rgba(255, 255, 255, 0.08);
  color: var(--stone-300);
}

.screen-body {
  background:
    linear-gradient(135deg, rgba(15, 74, 63, 0.08), transparent 38%),
    var(--stone-100);
}

.stat-value {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--primary-700);
  font-variant-numeric: tabular-nums;
}

.role-avatar {
  border-radius: var(--radius-md);
  background: var(--primary-700);
}

.status-badge {
  border-radius: 5px;
}

.highlight-box {
  border: 1px solid rgba(17, 23, 22, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  color: var(--stone-900);
}

.highlight-box::before {
  background: var(--primary-700);
}

.highlight-box h3 {
  color: var(--stone-900);
}

.highlight-box p {
  color: var(--stone-600);
}

.footer {
  background: var(--primary-900);
  color: rgba(255, 250, 242, 0.66);
}

.footer-links a {
  color: rgba(255, 250, 242, 0.66);
}

.footer-links a:hover {
  color: white;
}

.mobile-nav-menu {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(246, 240, 228, 0.96)),
    var(--stone-100);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .nav, .footer {
    display: none;
  }

  body::before, body::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl);
  }

  .card, .flow-content, .screen-preview {
    break-inside: avoid;
  }
}
