/* ================================================================
   CSS CUSTOM PROPERTIES
   Consistent theming (Nielsen #4: Consistency & Standards)
   ================================================================ */
:root {
  --bg-primary: #0B0E1A;
  --bg-secondary: #111527;
  --bg-card: #161A2E;
  --bg-card-hover: #1C2140;
  --border-subtle: rgba(108, 99, 255, 0.15);
  --border-active: rgba(108, 99, 255, 0.4);

  --text-primary: #F0F0F5;
  --text-secondary: #A0A3B5;
  --text-muted: #6B6F85;

  --accent-violet: #6C63FF;
  --accent-violet-light: #8B83FF;
  --accent-cyan: #00E5CC;
  --accent-cyan-light: #33FFDD;
  --accent-red: #FF6B6B;
  --accent-amber: #FFBE5C;
  --accent-green: #4ADE80;

  --gradient-hero: linear-gradient(135deg, #6C63FF 0%, #00E5CC 100%);
  --gradient-glow: radial-gradient(ellipse at 30% 0%, rgba(108,99,255,0.12) 0%, transparent 60%);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.15);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --max-width: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================================
   RESET & BASE
   (Tognazzi: Consistency of interface elements)
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Skip-to-content link (Carreras: Keyboard accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--accent-violet);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-sm);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Focus visible styles (Carreras: visible focus indicators) */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ================================================================
   TYPOGRAPHY SCALE
   (Rosenfeld: Clear content hierarchy)
   ================================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* ================================================================
   NAVIGATION
   (Nielsen #1: Visibility of system status — active state)
   (Nielsen #6: Recognition rather than recall — persistent nav)
   (Rosenfeld: Global navigation pattern)
   (Tognazzi: Discoverability of actions)
   ================================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-tru { color: var(--text-primary); }
.logo-dev { color: var(--accent-violet); }

nav { display: flex; align-items: center; gap: var(--space-lg); }

/* Accessible navigation links with adequate touch targets
   (Carreras: Minimum 44x44 touch target)
   (Tognazzi: Fitts's Law — large enough targets) */
nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-violet);
  transition: width var(--transition-fast);
}
nav a:hover, nav a:focus-visible {
  color: var(--text-primary);
}
nav a:hover::after, nav a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-violet);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-violet-light);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* ================================================================
   HERO SECTION
   (Nielsen #2: Match between system and real world — clear value prop)
   (Rosenfeld: Inverted pyramid — most important info first)
   (Hypertext: Hub structure — hero as primary navigation hub)
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(108,99,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0,229,204,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* Decorative grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: rgba(108,99,255,0.06);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease both;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s 0.3s ease both;
}

/* Buttons with adequate contrast (WCAG AA 4.5:1)
   (Carreras: Color contrast requirements)
   (Tognazzi: Visible affordances) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  min-height: 48px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-violet);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-violet-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(108,99,255,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-active);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--accent-violet-light);
  border-color: var(--accent-violet);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(108,99,255,0.4);
}

.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: fadeInUp 0.6s 0.4s ease both;
}
.hero-services .tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

/* ================================================================
   PROBLEM SECTION
   (Nielsen #2: Speak the user's language)
   (Rosenfeld: Problem-solution IA pattern)
   ================================================================ */
.problem {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.problem-header h2 {
  margin-top: var(--space-sm);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  opacity: 0.6;
}
.problem-card:hover {
  border-color: rgba(255,107,107,0.3);
  transform: translateY(-3px);
}

.problem-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,107,107,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.problem-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ================================================================
   SOLUTION / WHAT WE ARE
   (Nielsen #4: Consistency — same card pattern as problem but green)
   (Rosenfeld: Clear labeling system)
   ================================================================ */
.solution-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.solution-header h2 { margin-top: var(--space-sm); }
.solution-header p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  font-size: 1.05rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.pillar-card:nth-child(1)::before { background: var(--accent-violet); }
.pillar-card:nth-child(2)::before { background: var(--accent-cyan); }
.pillar-card:nth-child(3)::before { background: var(--accent-green); }

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.pillar-card:nth-child(1) .pillar-icon { background: rgba(108,99,255,0.12); }
.pillar-card:nth-child(2) .pillar-icon { background: rgba(0,229,204,0.12); }
.pillar-card:nth-child(3) .pillar-icon { background: rgba(74,222,128,0.12); }

.pillar-card h3 { margin-bottom: var(--space-xs); }
.pillar-card p { color: var(--text-secondary); font-size: 0.92rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ================================================================
   SERVICES
   (Nielsen #6: Recognition — icon + label combos)
   (Rosenfeld: Card-based IA — scannable, non-linear browsing)
   (Tognazzi: Exploration without penalty)
   ================================================================ */
.services-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.services-header h2 { margin-top: var(--space-sm); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
  position: relative;
}
.service-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(108,99,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}

.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p { color: var(--text-secondary); font-size: 0.92rem; }

.service-tag {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(0,229,204,0.2);
  background: rgba(0,229,204,0.05);
}

/* ================================================================
   DOMAIN EXPERIENCE
   (Nielsen #7: Flexibility — compact but expandable info)
   (Rosenfeld: Faceted classification)
   ================================================================ */
.domain {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.domain-header {
  text-align: center;
  margin-bottom: var(--space-sm);
}
.domain-header h2 { margin-top: var(--space-sm); }
.domain-header p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.domain-origin {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108,99,255,0.15);
  background: rgba(108,99,255,0.04);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.domain-origin strong {
  color: var(--accent-violet-light);
}
.domain-origin p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.domain-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.domain-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 24px;
  transition: all var(--transition-fast);
  cursor: default;
}
.domain-pill:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.domain-pill .pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108,99,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.domain-pill span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ================================================================
   PROCESS / HOW WE WORK
   (Nielsen #1: Visibility of status — numbered steps)
   (Nielsen #10: Help & documentation — clear expectations per step)
   (Tognazzi: Latency reduction — show progress)
   (Hypertext: Linear structure — sequential process)
   ================================================================ */
.process-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.process-header h2 { margin-top: var(--space-sm); }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 var(--space-xs);
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-violet-light);
  transition: all var(--transition-smooth);
}
.process-step:hover .step-number {
  background: var(--accent-violet);
  color: #fff;
  border-color: var(--accent-violet);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(108,99,255,0.35);
}

.process-step h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}
.process-step p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ================================================================
   CASE STUDIES SECTION
   Two real products built in-house: truME and truPRO
   Shows development, infrastructure, and compliance expertise
   ================================================================ */
.cases {
  background: var(--bg-primary);
}
.cases-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.cases-header h2 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}
.cases-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.cases .container {
  max-width: 1450px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.1);
}

.case-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(108,99,255,0.05) 0%, rgba(0,229,204,0.05) 100%);
  overflow: hidden;
  position: relative;
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.case-content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.highlight {
  color: var(--accent-violet);
}
.highlight-cyan {
  color: var(--accent-cyan);
}

.case-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.case-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0,229,204,0.3);
  background: rgba(0,229,204,0.06);
  white-space: nowrap;
}

.case-description {
  margin-bottom: var(--space-md);
  flex-grow: 1;
}
.case-description p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.case-highlights {
  background: rgba(108,99,255,0.04);
  border-left: 3px solid var(--accent-violet);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}
.case-highlights h4 {
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 600;
}
.case-highlights ul {
  list-style: none;
  padding: 0;
}
.case-highlights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}
.case-highlights strong {
  color: var(--text-primary);
}

.case-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.case-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}
.case-actions .btn-secondary:hover {
  background: var(--accent-violet-light);
  border-color: var(--accent-violet);
  color: #fff;
}

.cases-callout {
  background: rgba(108,99,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ================================================================
   COMPARISON TABLE
   (Nielsen #4: Consistency — table for structured comparison)
   (Nielsen #6: Recognition — checkmarks vs crosses)
   (Carreras: Accessible table with proper headers and scope)
   ================================================================ */
.compare {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.compare-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.compare-header h2 { margin-top: var(--space-sm); }

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.compare-table thead th {
  background: var(--bg-card);
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody td {
  padding: var(--space-md);
  text-align: left;
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(108,99,255,0.02);
}

.compare-table tbody tr:hover {
  background: rgba(108,99,255,0.05);
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 30%;
}

.icon-check, .icon-partial, .icon-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
}

.icon-check { color: var(--accent-green); }
.icon-partial { color: var(--accent-amber); }
.icon-cross { color: var(--accent-red); }

/* ================================================================
   PRICING / ENGAGEMENT MODELS
   (Rosenfeld: Progressive disclosure — tier summaries)
   (Tognazzi: Provide defaults — highlight recommended)
   (Nielsen #5: Error prevention — clear scoping per tier)
   ================================================================ */
.pricing {
  background: var(--bg-primary);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.pricing-header h2 { margin-top: var(--space-sm); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-tier-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.pricing-tier-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  text-align: left;
}

.pricing-features li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: var(--space-xs) 0;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* ================================================================
   CTA SECTION
   (Nielsen #3: User control — multiple contact paths)
   (Carreras: Accessible links with clear labels)
   (Hypertext: Convergent node — all paths lead here)
   ================================================================ */
.cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  margin-bottom: var(--space-md);
}

.cta-content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-fast);
}
.contact-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-value a {
  transition: color var(--transition-fast);
}
.contact-value a:hover {
  color: var(--accent-violet-light);
}

/* ================================================================
   FOOTER
   (Rosenfeld: Utility navigation / site-wide closure)
   (Carreras: Semantic HTML for screen readers)
   ================================================================ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-right {
  text-align: right;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ================================================================
   ANIMATIONS
   (Tognazzi: Continuity through progressive reveal)
   ================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Reveal elements animation */
.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
.reveal.visible {
  opacity: 1;
}

/* ================================================================
   RESPONSIVE DESIGN
   (Nielsen #8: Aesthetic & minimalist design)
   (Rosenfeld: Scalable information hierarchy)
   ================================================================ */
@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }

  .nav-inner {
    height: 56px;
  }

  .mobile-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
  }

  nav.open {
    max-height: calc(100vh - 56px);
  }

  nav a {
    width: 100%;
    text-align: left;
    padding: var(--space-sm) 0;
  }

  nav a::after {
    display: none;
  }

  nav a.active {
    color: var(--accent-violet);
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process-timeline::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .compare-table-wrap {
    border-radius: 0;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }

  .hero {
    padding-top: 56px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}
