/* ============================================================
   PCG Design System — Precision Compliance Group
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --red-400: #f87171;
  --red-500: #ef4444;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  --gradient-brand-hover: linear-gradient(135deg, var(--blue-600), var(--violet-600));
  --gradient-dark: linear-gradient(180deg, var(--slate-950) 0%, var(--slate-900) 100%);
  --gradient-hero-orb-1: radial-gradient(circle at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%);
  --gradient-hero-orb-2: radial-gradient(circle at 80% 30%, rgba(139,92,246,0.12) 0%, transparent 50%);
  --gradient-hero-orb-3: radial-gradient(circle at 60% 80%, rgba(16,185,129,0.08) 0%, transparent 40%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow-blue: 0 0 40px rgba(59,130,246,0.15);
  --shadow-glow-violet: 0 0 40px rgba(139,92,246,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.7s;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
}


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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

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


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

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}

.text-lg { font-size: 1.25rem; line-height: 1.6; }
.text-xl { font-size: 1.5rem; line-height: 1.5; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.75rem; line-height: 1.5; }

.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-white { color: var(--white); }

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

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-balance { text-wrap: balance; }


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

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

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

.section--dark {
  background: var(--slate-950);
  color: var(--slate-300);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark .subhead {
  color: var(--slate-400);
}

.section--muted {
  background: var(--slate-50);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-16);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.subhead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--slate-500);
  margin-top: var(--space-5);
  max-width: 640px;
}

.section-header.center .subhead {
  margin-left: auto;
  margin-right: auto;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-4);
}

.section--dark .label {
  color: var(--blue-400);
}


/* --- Grid --- */
.grid { display: grid; gap: var(--space-8); }

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

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


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn--primary:hover {
  background: var(--slate-800);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--gradient {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn--gradient:hover {
  background: var(--gradient-brand-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--slate-600);
  padding: 10px 16px;
}

.btn--ghost:hover {
  color: var(--slate-900);
  background: var(--slate-50);
}

.btn--white {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

.btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--lg svg {
  width: 20px;
  height: 20px;
}


/* --- Navbar --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  padding: var(--space-3) 0;
}

.nav--dark.scrolled {
  background: rgba(2,6,23,0.85);
  border-bottom-color: rgba(51,65,85,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.nav--dark .nav__logo {
  color: var(--white);
}

.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--white);
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

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

.nav__link {
  padding: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.nav__link:hover {
  color: var(--slate-900);
  background: var(--slate-50);
}

.nav--dark .nav__link {
  color: var(--slate-400);
}

.nav--dark .nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.nav__link.active {
  color: var(--slate-900);
}

.nav--dark .nav__link.active {
  color: var(--white);
}

.nav__cta {
  margin-left: var(--space-4);
}

.nav__mobile-toggle {
  display: none;
  padding: var(--space-2);
  color: var(--slate-600);
}

.nav--dark .nav__mobile-toggle {
  color: var(--slate-400);
}

.nav__mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
}

.nav--dark .nav__mobile-menu {
  background: var(--slate-900);
  border-bottom-color: var(--slate-800);
}

.nav__mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav__mobile-menu .nav__link {
  padding: var(--space-3) var(--space-4);
}

.nav__mobile-menu .btn {
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__mobile-toggle { display: block; }
}


/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-32) 0 var(--space-24);
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--gradient-hero-orb-1),
    var(--gradient-hero-orb-2),
    var(--gradient-hero-orb-3);
  pointer-events: none;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148,163,184,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero__subhead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero .btn-group {
  margin-bottom: var(--space-16);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px 6px 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-400);
  margin-bottom: var(--space-8);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(148,163,184,0.1);
}

.hero__metric {
  text-align: left;
}

.hero__metric-value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__metric-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: var(--space-1);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-24) 0 var(--space-16);
  }
  .hero__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}


/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card--dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(148,163,184,0.1);
}

.card--dark:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(148,163,184,0.2);
  box-shadow: var(--shadow-glow-blue);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--blue { background: rgba(59,130,246,0.1); color: var(--blue-500); }
.card__icon--violet { background: rgba(139,92,246,0.1); color: var(--violet-500); }
.card__icon--emerald { background: rgba(16,185,129,0.1); color: var(--emerald-500); }
.card__icon--amber { background: rgba(245,158,11,0.1); color: var(--amber-500); }
.card__icon--red { background: rgba(239,68,68,0.1); color: var(--red-500); }
.card__icon--slate { background: rgba(100,116,139,0.1); color: var(--slate-500); }

.section--dark .card__icon--blue { background: rgba(59,130,246,0.15); color: var(--blue-400); }
.section--dark .card__icon--violet { background: rgba(139,92,246,0.15); color: var(--violet-400); }
.section--dark .card__icon--emerald { background: rgba(16,185,129,0.15); color: var(--emerald-400); }
.section--dark .card__icon--amber { background: rgba(245,158,11,0.15); color: var(--amber-400); }

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

.card p {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.section--dark .card p {
  color: var(--slate-400);
}


/* --- Stat Bar --- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) var(--space-8);
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.1);
  border-radius: var(--radius-xl);
  margin-top: var(--space-12);
}

.stat-bar__item {
  text-align: center;
}

.stat-bar__value {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 800;
  color: var(--red-500);
  letter-spacing: -0.02em;
}

.stat-bar__label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: var(--space-1);
}

@media (max-width: 640px) {
  .stat-bar { grid-template-columns: 1fr; gap: var(--space-4); }
}


/* --- Feature Spotlight --- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.spotlight--reverse {
  direction: rtl;
}

.spotlight--reverse > * {
  direction: ltr;
}

.spotlight__content { }

.spotlight__content .label {
  margin-bottom: var(--space-3);
}

.spotlight__content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-4);
}

.spotlight__content p {
  color: var(--slate-500);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.spotlight__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.spotlight__list-item {
  display: flex;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.spotlight__list-item svg {
  width: 20px;
  height: 20px;
  color: var(--emerald-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.spotlight__visual {
  position: relative;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spotlight__visual--dark {
  background: var(--slate-900);
  border-color: var(--slate-800);
}

@media (max-width: 1024px) {
  .spotlight, .spotlight--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    direction: ltr;
  }
}


/* --- Workflow Steps --- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.workflow::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--slate-200);
}

.section--dark .workflow::before {
  background: var(--slate-800);
}

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

.workflow__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--slate-200);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 2;
  transition: all var(--duration-slow) var(--ease-out);
}

.section--dark .workflow__step-number {
  background: var(--slate-900);
  border-color: var(--slate-700);
  color: var(--white);
}

.workflow__step.active .workflow__step-number {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-glow-blue);
}

.workflow__step h4 {
  margin-bottom: var(--space-2);
}

.workflow__step p {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .workflow::before {
    display: none;
  }
  .workflow__step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: var(--space-4);
    text-align: left;
    align-items: start;
  }
  .workflow__step p {
    max-width: none;
  }
  .workflow__step-number {
    margin-bottom: 0;
  }
}


/* --- Comparison Cards --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.comparison-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.comparison-card__vs {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin-bottom: var(--space-4);
}

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

.comparison-card p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.65;
}

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


/* --- Security Grid --- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.security-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148,163,184,0.1);
  transition: all var(--duration-normal) var(--ease-out);
}

.security-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(148,163,184,0.2);
}

.security-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,0.1);
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-item__icon svg {
  width: 20px;
  height: 20px;
}

.security-item h4 {
  color: var(--white);
  margin-bottom: var(--space-1);
  font-size: 0.9375rem;
}

.security-item p {
  font-size: 0.8125rem;
  color: var(--slate-400);
  line-height: 1.5;
}

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


/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-24) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section .subhead {
  margin: 0 auto var(--space-10);
}

.cta-section .btn-group {
  justify-content: center;
}


/* --- Footer --- */
.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--slate-200);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-900);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--slate-500);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--slate-900);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--slate-400);
  width: 100%;
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--slate-100);
}


/* --- Visual Demos / Mock UI --- */
.mock-ui {
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.mock-ui__titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--slate-800);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.mock-ui__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-ui__dot--red { background: #ff5f57; }
.mock-ui__dot--yellow { background: #febc2e; }
.mock-ui__dot--green { background: #28c840; }

.mock-ui__body {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--slate-400);
}

.mock-ui__line {
  display: block;
  opacity: 0;
  animation: typeIn 0.3s var(--ease-out) forwards;
}

.mock-ui__line--accent { color: var(--blue-400); }
.mock-ui__line--success { color: var(--emerald-400); }
.mock-ui__line--warn { color: var(--amber-400); }
.mock-ui__line--muted { color: var(--slate-600); }

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


/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* --- Page Header (for sub-pages) --- */
.page-header {
  padding: var(--space-32) 0 var(--space-16);
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-orb-1), var(--gradient-hero-orb-2);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-5);
}

.page-header .subhead {
  color: var(--slate-400);
  max-width: 600px;
}


/* --- Module Detail Cards (Platform page) --- */
.module-detail {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--slate-100);
}

.module-detail:last-child {
  border-bottom: none;
}

.module-detail__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.module-detail__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-detail__icon svg {
  width: 28px;
  height: 28px;
}

.module-detail__header h3 {
  font-size: 1.5rem;
}

.module-detail__header p {
  color: var(--slate-500);
  margin-top: var(--space-1);
}

.module-detail__capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.module-detail__capability {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.module-detail__capability svg {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .module-detail__capabilities { grid-template-columns: 1fr; }
}


/* --- Timeline (How It Works page) --- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.timeline__item {
  display: flex;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.timeline__content {
  padding-top: var(--space-4);
}

.timeline__content h3 {
  margin-bottom: var(--space-2);
}

.timeline__content p {
  color: var(--slate-500);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .timeline::before { left: 27px; }
  .timeline__item { gap: var(--space-5); }
  .timeline__marker { width: 56px; height: 56px; font-size: 1rem; }
}


/* --- Before/After (How It Works page) --- */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  align-items: start;
}

.before-after__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-12);
}

.before-after__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-after__arrow svg { width: 24px; height: 24px; }

.before-after__panel {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.before-after__panel--before {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.12);
}

.before-after__panel--after {
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.12);
}

.before-after__panel h3 {
  margin-bottom: var(--space-5);
}

.before-after__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.before-after__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.before-after__panel--before .before-after__item svg {
  color: var(--red-400);
}

.before-after__panel--after .before-after__item svg {
  color: var(--emerald-500);
}

@media (max-width: 768px) {
  .before-after {
    grid-template-columns: 1fr;
  }
  .before-after__divider {
    flex-direction: row;
    padding: 0;
  }
}


/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--slate-900);
  background: var(--white);
  transition: all var(--duration-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-400);
}


/* --- Arch Diagram (Platform page) --- */
.arch-diagram {
  background: var(--slate-950);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
}

.arch-diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.arch-hub {
  text-align: center;
  padding: var(--space-6);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-8);
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.arch-hub h4 {
  color: var(--white);
  font-size: 1.125rem;
}

.arch-hub p {
  color: var(--blue-400);
  font-size: 0.8125rem;
  margin-top: var(--space-1);
}

.arch-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.arch-module {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148,163,184,0.08);
  transition: all var(--duration-normal) var(--ease-out);
}

.arch-module:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(148,163,184,0.15);
}

.arch-module h4 {
  color: var(--slate-200);
  font-size: 0.8125rem;
  font-weight: 600;
}

.arch-module p {
  color: var(--slate-500);
  font-size: 0.6875rem;
  margin-top: var(--space-1);
}

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

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


/* --- Utility --- */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-narrow { max-width: var(--container-narrow); }
.max-w-640 { max-width: 640px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
