/* ================================================
   Proqnostix — Design System & Styles
   ================================================ */

/* --- Custom Properties (Design Tokens) --- */
:root {
  --color-midnight: #0A1726;
  --color-data-blue: #123A63;
  --color-cloud: #F8FAFC;
  --color-graphite: #334155;
  --color-mist: #CBD5E1;
  --color-fog: #EAF0F6;
  --color-teal: #14B8A6;
  --color-cyan: #38BDF8;
  --color-amber: #F59E0B;
  --gradient-brand: linear-gradient(135deg, #0A1726 0%, #123A63 55%, #14B8A6 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(10, 23, 38, 0.08);
  --shadow-lg: 0 8px 32px rgba(10, 23, 38, 0.12);
  --transition: 250ms ease;

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-graphite);
  background: var(--color-cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
}

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

.section-title {
  max-width: 700px;
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 640px;
  margin-top: var(--space-sm);
  color: var(--color-graphite);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
}

.btn-primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-data-blue);
  border: 1.5px solid var(--color-mist);
}

.btn-secondary:hover {
  border-color: var(--color-data-blue);
  background: rgba(18, 58, 99, 0.04);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* --- Focus States --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* ================================================
   A. HEADER
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px rgba(10, 23, 38, 0.06);
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-midnight);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-graphite);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-midnight);
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  z-index: 110;
}

.lang-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.lang-current:hover,
.lang-current:focus-visible {
  border-color: var(--color-mist);
}

.lang-current svg {
  width: 24px;
  height: 24px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--color-cloud);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(10, 23, 38, 0.12);
  min-width: 40px;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lang-option:hover,
.lang-option:focus-visible {
  border-color: var(--color-teal);
  background: var(--color-fog);
}

.lang-option svg {
  width: 24px;
  height: 24px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 110;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-midnight);
  border-radius: 2px;
  transition: all var(--transition);
  position: absolute;
  left: 5px;
}

.hamburger {
  top: 15px;
}

.hamburger::before {
  content: '';
  top: -7px;
}

.hamburger::after {
  content: '';
  top: 7px;
}

.mobile-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ================================================
   B. HERO
   ================================================ */
.hero {
  padding: calc(var(--space-3xl) + 60px) 0 var(--space-3xl);
  background: var(--gradient-brand);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-headline {
  color: #fff;
  margin-bottom: var(--space-md);
}

.hero-subline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.9);
}

.hero-bullets li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--color-teal);
}

.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-dots span:first-child { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:last-child { background: #22c55e; }

.mockup-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.mockup-body {
  display: flex;
  min-height: 260px;
}

.mockup-sidebar {
  width: 48px;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-nav-item {
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-nav-item.active {
  background: rgba(20, 184, 166, 0.3);
  border-left: 2px solid var(--color-teal);
}

.mockup-main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-kpis {
  display: flex;
  gap: 0.75rem;
}

.mockup-kpi {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.kpi-delta {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.kpi-delta.positive {
  color: var(--color-teal);
}

.mockup-chart {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.chart-svg {
  flex: 1;
  width: 100%;
}

.chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.teal { background: var(--color-teal); }
.legend-dot.cyan { background: var(--color-cyan); }

.mockup-ai-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.ai-icon-small {
  background: var(--color-teal);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.ai-prompt-text {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* ================================================
   C. TRUST STRIP
   ================================================ */
.trust-strip {
  padding: var(--space-lg) 0;
  background: var(--color-cloud);
  border-bottom: 1px solid var(--color-fog);
}

.trust-list {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-graphite);
}

.trust-icon {
  flex-shrink: 0;
}

/* ================================================
   D. PROBLEM / SOLUTION
   ================================================ */
.problem-solution {
  padding: var(--space-3xl) 0;
  background: var(--color-cloud);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.ps-col-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-midnight);
}

.ps-solution-intro {
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.ps-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ps-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ps-list--problem li::before {
  background: var(--color-mist);
}

.ps-list--solution li::before {
  background: var(--color-teal);
}

.ps-problem {
  background: var(--color-fog);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.ps-solution {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid var(--color-fog);
}

/* ================================================
   E. CAPABILITY CARDS
   ================================================ */
.capabilities {
  padding: var(--space-3xl) 0;
  background: var(--color-fog);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.cap-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid transparent;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

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

.cap-icon {
  margin-bottom: var(--space-md);
}

.cap-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.cap-desc {
  font-size: 0.9375rem;
  color: var(--color-graphite);
}

/* ================================================
   F. HOW IT WORKS
   ================================================ */
.how-it-works {
  padding: var(--space-3xl) 0;
  background: var(--color-cloud);
}

.hiw-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hiw-step {
  flex: 1;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.hiw-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.hiw-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.hiw-desc {
  font-size: 0.9375rem;
  color: var(--color-graphite);
}

.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
}

/* ================================================
   G. AUDIENCES
   ================================================ */
.audiences {
  padding: var(--space-3xl) 0;
  background: var(--color-fog);
}

.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.aud-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.aud-icon {
  margin-bottom: var(--space-md);
}

.aud-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--color-midnight);
}

.aud-desc {
  font-size: 0.9375rem;
  color: var(--color-graphite);
}

/* ================================================
   H. PRODUCT PREVIEW
   ================================================ */
.product-preview {
  padding: var(--space-3xl) 0;
  background: var(--color-cloud);
}

/* Tabs */
.pp-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-fog);
  overflow-x: auto;
}

.pp-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-graphite);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.pp-tab:hover {
  color: var(--color-midnight);
}

.pp-tab.active {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

/* Panels */
.pp-panel {
  animation: fadeUp 300ms ease;
}

.pp-panel[hidden] {
  display: none;
}

.pp-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.pp-text h3 {
  margin-bottom: var(--space-xs);
}

.pp-text p {
  font-size: 0.9375rem;
  color: var(--color-graphite);
}

/* Mockup screens */
.pp-screen {
  background: var(--color-midnight);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pp-screen-bar {
  display: flex;
  gap: 5px;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
}

.pp-screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pp-screen-bar span:nth-child(1) { background: #ef4444; }
.pp-screen-bar span:nth-child(2) { background: #f59e0b; }
.pp-screen-bar span:nth-child(3) { background: #22c55e; }

.pp-screen-content {
  padding: 1.25rem;
  min-height: 200px;
}

/* Dashboard panel */
.pp-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.pp-mini-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}

.pp-kpi-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-kpi-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pp-kpi-val.accent { color: var(--color-amber); }
.pp-kpi-val.teal { color: var(--color-teal); }

.pp-chart-area {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.pp-chart-area svg {
  width: 100%;
  height: 80px;
}

/* Scenario panel */
.pp-scenarios {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pp-scenario-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  width: var(--bar-w);
  transition: width 600ms ease;
}

.pp-scenario-bar.best { background: var(--color-teal); }
.pp-scenario-bar.base { background: var(--color-data-blue); }
.pp-scenario-bar.worst { background: var(--color-graphite); }

.pp-scenario-delta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-conf {
  color: var(--color-teal);
}

/* AI Chat panel */
.pp-ai-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pp-chat-msg {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.pp-chat-msg.user {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  align-self: flex-end;
  max-width: 80%;
}

.pp-chat-msg.ai {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.15);
  color: rgba(255, 255, 255, 0.8);
  max-width: 90%;
}

.ai-badge {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.pp-chat-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* Report panel */
.pp-report {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pp-report-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.pp-report-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pp-dot.green { background: var(--color-teal); }
.pp-dot.amber { background: var(--color-amber); }

.pp-report-action {
  font-size: 0.75rem;
  color: var(--color-teal);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ================================================
   I. DIFFERENTIATOR (Dark Section)
   ================================================ */
.differentiator {
  padding: var(--space-3xl) 0;
  background: var(--color-midnight);
  color: #fff;
}

.differentiator .section-title {
  color: #fff;
}

.differentiator .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.diff-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all var(--transition);
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(20, 184, 166, 0.3);
}

.diff-title {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.diff-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ================================================
   J. FINAL CTA
   ================================================ */
.final-cta {
  padding: var(--space-3xl) 0;
  background: var(--gradient-brand);
  text-align: center;
  color: #fff;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-headline {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* ================================================
   K. FOOTER
   ================================================ */
.site-footer {
  background: var(--color-midnight);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-xl);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-tagline {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

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

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.footer-social {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-social:hover {
  color: var(--color-teal);
}

/* ================================================
   REFERENCES
   ================================================ */
.references {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--color-fog);
}

.ref-list {
  list-style: none;
  counter-reset: ref-counter;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ref-item {
  counter-increment: ref-counter;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-cloud);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-teal);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-graphite);
}

.ref-item em {
  color: var(--color-midnight);
}

.ref-item a {
  color: var(--color-data-blue);
  word-break: break-all;
}

.ref-item a:hover {
  color: var(--color-teal);
}

/* ================================================
   SCROLL REVEAL ANIMATION
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

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

/* ================================================
   RESPONSIVE — TABLET (<=1024px)
   ================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .ps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .aud-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pp-panel-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

/* ================================================
   RESPONSIVE — MOBILE (<=768px)
   ================================================ */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
    --space-lg: 1.5rem;
  }

  /* Mobile nav */
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 105;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .lang-dropdown {
    margin-bottom: var(--space-sm);
  }

  .lang-current {
    width: 40px;
    height: 40px;
  }

  .lang-current svg {
    width: 32px;
    height: 32px;
  }

  .lang-menu {
    left: 50%;
    transform: translateX(-50%);
  }

  .lang-option {
    width: 40px;
    height: 40px;
  }

  .lang-option svg {
    width: 32px;
    height: 32px;
  }

  /* Layout adjustments */
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .hiw-grid {
    flex-direction: column;
    align-items: center;
  }

  .hiw-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .pp-tabs {
    -webkit-overflow-scrolling: touch;
  }

  .mockup-body {
    min-height: 200px;
  }

  .mockup-kpis {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ================================================
   PREFERS REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
