/**
 * DIGI-METER Landing Page Core Stylesheet
 * Incorporates the Bricks design system and adds page-specific layout,
 * interactive states, animations, and accessibility themes.
 */

@import url('fonts.css?v=20260612b'); /* self-hosted Inter + JetBrains Mono (GDPR: no external font requests) */

/* ==========================================================================
   1. Import Core Design System Variables
   ========================================================================== */
:root {
  --c-sky: #53C8EA;
  --c-purple: #734099;
  --c-charcoal: #0D182B;
  --c-off: #F0EFEF;
  --c-bg: #FAFAFA;
  --c-slate: #5A6578;
  --grad: linear-gradient(125deg, #53C8EA 0%, #734099 100%);
  --grad-soft: linear-gradient(125deg, rgba(83, 200, 234, 0.12) 0%, rgba(115, 64, 153, 0.12) 100%);
  --pad: clamp(20px, 4vw, 56px);
  --ff-sans: 'Inter', Arial, Helvetica, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Fluid Space Scale */
  --space-2xs: clamp(0.82rem, calc(0.000185 * (100vw - 36rem) + 0.82rem), 0.84rem);
  --space-xs: clamp(1.02rem, calc(0.001019 * (100vw - 36rem) + 1.02rem), 1.13rem);
  --space-s: clamp(1.28rem, calc(0.002037 * (100vw - 36rem) + 1.28rem), 1.5rem);
  --space-m: clamp(1.6rem, calc(0.003704 * (100vw - 36rem) + 1.6rem), 2rem);
  --space-l: clamp(2rem, calc(0.006204 * (100vw - 36rem) + 2rem), 2.67rem);
  --space-xl: clamp(2.5rem, calc(0.009722 * (100vw - 36rem) + 2.5rem), 3.55rem);
  --space-2xl: clamp(3.13rem, calc(0.014907 * (100vw - 36rem) + 3.13rem), 4.74rem);

  /* Fluid Typography Scale */
  --text-2xs: clamp(0.82rem, calc(0.000185 * (100vw - 36rem) + 0.82rem), 0.84rem);
  --text-xs: clamp(1.02rem, calc(0.001019 * (100vw - 36rem) + 1.02rem), 1.13rem);
  --text-s: clamp(1.28rem, calc(0.002037 * (100vw - 36rem) + 1.28rem), 1.5rem);
  --text-m: clamp(1.6rem, calc(0.003704 * (100vw - 36rem) + 1.6rem), 2rem);
  --text-l: clamp(2rem, calc(0.006204 * (100vw - 36rem) + 2rem), 2.67rem);
  --text-xl: clamp(2.5rem, calc(0.009722 * (100vw - 36rem) + 2.5rem), 3.55rem);
  --text-2xl: clamp(3.13rem, calc(0.014907 * (100vw - 36rem) + 3.13rem), 4.74rem);

  /* Layout Constants */
  --header-height: 80px;
  --top-bar-height: 44px;
}

/* Accessibility overrides */
html.font-large {
  font-size: 115%;
}

html.font-xlarge {
  font-size: 130%;
}

/* ==========================================================================
   2. Accessibility Utilities
   ========================================================================== */

/* Skip-to-content: visually hidden until focused — WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  background: var(--c-charcoal);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--c-sky);
  transition: top 0.12s ease;
}
.skip-link:focus {
  top: 0;
}

/* Screen-reader-only utility — visually hidden but in DOM for AT */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-sans);
  background-color: var(--c-bg);
  color: var(--c-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--c-purple);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #1a7fa0; /* accessible hover on light backgrounds (4.6:1) */
}

.section-dark a:hover,
.site-footer a:hover,
.top-bar a:hover,
.hero-section a:hover {
  color: var(--c-sky); /* sky passes 9.1:1 on charcoal */
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-sky);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--c-charcoal); /* dark inner ring keeps indicator >=3:1 on light backgrounds */
}

/* ==========================================================================
   3. Grid & Layout Helpers
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-m);
}

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

@media (min-width: 576px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

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

/* Row-col flex structures */
.row {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  width: 100%;
}

@media (min-width: 992px) {
  .row-side {
    flex-direction: row;
    align-items: center;
  }
  .row-side > .col-main {
    flex: 1.3;
  }
  .row-side > .col-side {
    flex: 0.7;
  }
  .row-side-even {
    flex-direction: row;
    align-items: center;
  }
  .row-side-even > * {
    flex: 1;
  }
}

.align-center { text-align: center; align-items: center; }
.justify-between { justify-content: space-between; }
.flex-row { display: flex; flex-direction: row; gap: var(--space-xs); align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ==========================================================================
   4. Section & Container Defaults
   ========================================================================== */
.section {
  display: block;
  position: relative;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.block {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* Section Modifiers */
.section-dark {
  background-color: var(--c-charcoal);
  color: #ffffff;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-light {
  background-color: var(--c-off);
  color: var(--c-charcoal);
}

.section-purple {
  background-color: var(--c-purple);
  color: #ffffff;
}

.section-pad {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.section-pad-sm {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* ==========================================================================
   5. Design System Typography & Utilities
   ========================================================================== */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  column-gap: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-slate);
}

.section-dark .eyebrow {
  color: var(--c-sky);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--grad);
  flex: none;
}

.mono {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-white { color: #ffffff !important; }
.text-sky { color: var(--c-sky) !important; }
.text-slate { color: var(--c-slate) !important; }

h1, h2, h3, h4 {
  font-family: var(--ff-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: var(--text-2xl); font-weight: 800; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-l); }
h4 { font-size: var(--text-m); }

.lead-p {
  font-size: var(--text-s);
  color: var(--c-slate);
  max-width: 720px;
}

.section-dark .lead-p {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  gap: 10px;
}

.btn-primary {
  background: var(--grad) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 24px -10px rgba(83, 200, 234, 0.5), 0 12px 28px -14px rgba(115, 64, 153, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(83, 200, 234, 0.55), 0 18px 32px -14px rgba(115, 64, 153, 0.55);
}

.btn-ghost {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.btn-outline-dark {
  background: transparent !important;
  color: var(--c-charcoal) !important;
  border: 1px solid rgba(13, 24, 43, 0.3) !important;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-outline-dark:hover {
  border-color: var(--c-charcoal) !important;
  background: rgba(13, 24, 43, 0.03) !important;
}

/* ==========================================================================
   7. Top Utility Bar & Navigation Header
   ========================================================================== */
.top-bar {
  background-color: var(--c-charcoal);
  color: #ffffff;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  position: relative;
}

.top-bar .container {
  flex-direction: row;
  height: var(--top-bar-height);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Top bar: mobile responsive ──────────────────────────────────────── */
@media (max-width: 639px) {
  .top-bar .container {
    height: auto;
    min-height: var(--top-bar-height);
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Full-width EU badge row */
  .top-bar-left {
    flex: 0 0 100%;
  }

  /* Controls row: left-aligned, wrappable */
  .top-bar-right {
    flex: 0 0 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .a11y-widget {
    gap: 4px;
  }

  /* Search shrinks to fit; hide on very narrow screens */
  .search-input {
    width: 80px;
  }

  .search-input:focus {
    width: 100px;
  }
}

@media (max-width: 400px) {
  /* Hide search entirely below 400px — too cramped */
  .search-box {
    display: none;
  }
}

.eu-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 10px 4px 6px;
}

.eu-flag {
  width: 22px;
  height: 15px;
  background-color: #003399;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Styled star representation for EU flag */
.eu-flag::after {
  content: '★';
  color: #FFCC00;
  font-size: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.eu-text {
  font-size: 0.58rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.a11y-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 6px 10px;
  min-height: 28px;
  font-size: 0.75rem;
  font-family: var(--ff-mono);
  transition: all 0.15s ease;
}

.a11y-btn:hover {
  background: var(--c-sky);
  color: var(--c-charcoal);
  border-color: var(--c-sky);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
}

.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.7rem;
  outline: none;
  width: 100px;
  transition: width 0.2s ease;
}

.search-input:focus {
  width: 140px;
}

.search-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.7rem;
}

.search-btn:hover {
  color: #ffffff;
}

/* Header Navbar */
.site-header {
  background-color: #070e1b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background-color: rgba(7, 14, 27, 0.98);
  box-shadow: 0 10px 30px -15px rgba(7, 14, 27, 0.3);
}

.site-header .container {
  flex-direction: row;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  height: 48px;
}

.site-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 16px;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.nav-link.active {
  color: var(--c-sky) !important;
  border: 1px solid rgba(83, 200, 234, 0.45);
  background: rgba(83, 200, 234, 0.06);
}

.header-cta {
  display: none;
}

@media (min-width: 992px) {
  .header-cta {
    display: block;
  }
}

/* Mobile menu toggle */
.burger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 20px;
  justify-content: space-between;
  width: 24px;
  z-index: 1002;
}

@media (min-width: 992px) {
  .burger-menu {
    display: none;
  }
}

.burger-bar {
  background-color: var(--c-charcoal);
  height: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
  width: 100%;
}

.burger-menu.active .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Sidebar */
.mobile-nav-panel {
  background-color: var(--c-charcoal);
  bottom: 0;
  box-shadow: -10px 0 40px -10px rgba(13, 24, 43, 0.4);
  display: flex;
  flex-direction: column;
  left: 100%;
  padding: 80px var(--space-m) 50px var(--space-m);
  position: fixed;
  right: -100%;
  top: 0;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mobile-nav-panel.active {
  left: 20%;
  right: 0;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  list-style: none;
}

.mobile-link {
  color: #ffffff;
  font-size: var(--text-s);
  font-weight: 600;
  padding: 8px 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link:hover {
  color: var(--c-sky);
}

.mobile-cta {
  margin-top: var(--space-m);
  width: 100%;
}

/* ==========================================================================
   8. Specific Section Layouts
   ========================================================================== */

/* Hero */
.hero-section {
  padding-top: clamp(27px, 4vw, 50px);
  padding-bottom: clamp(60px, 9vw, 110px);
  position: relative;
  background-color: #070e1b !important; /* Extremely dark charcoal backdrop */
  background-image: linear-gradient(90deg, #070e1b 32%, rgba(7, 14, 27, 0.45) 75%, rgba(7, 14, 27, 0) 100%), 
                    url('../assets/hero-cover.jpg') !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .hero-section {
    background-image: linear-gradient(180deg, rgba(7, 14, 27, 0.85) 60%, rgba(7, 14, 27, 0.95) 100%), 
                      url('../assets/hero-cover.jpg') !important;
    background-position: right center !important;
  }
}


.hero-section .container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.hero-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  width: 100%;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-title .grad-text-comp {
  background: linear-gradient(125deg, #53C8EA 20%, #734099 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: var(--text-s);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: 6px;
}

.hero-image-block {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-block img {
  max-width: 105%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(83, 200, 234, 0.12)) drop-shadow(0 0 60px rgba(115, 64, 153, 0.1));
  animation: floatLight 6s ease-in-out infinite;
}

@keyframes floatLight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 4 Stats Cards Grid inside Hero */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

@media (min-width: 576px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat-card {
  background: rgba(13, 24, 43, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  overflow: hidden;
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(83, 200, 234, 0.9) 35%,
    rgba(115, 64, 153, 0.85) 65%,
    transparent 100%
  );
  animation: heroLineRun 3.5s linear infinite;
}

/* Stagger each card so beams are never in sync */
#glance .hero-stat-card:nth-child(2)::before { animation-delay: -0.875s; }
#glance .hero-stat-card:nth-child(3)::before { animation-delay: -1.75s;  }
#glance .hero-stat-card:nth-child(4)::before { animation-delay: -2.625s; }

@keyframes heroLineRun {
  0%   { left: -50%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat-card::before {
    animation: none;
    left: 0;
    width: 24px;
    background: var(--grad);
  }
}

.hero-stat-card .label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--c-slate);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
}

.hero-stat-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stat-card .value .sky {
  color: var(--c-sky);
}

/* Nav Entry Cards */
.entry-card {
  background-color: #ffffff;
  border: 1px solid rgba(13, 24, 43, 0.06);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.entry-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -16px rgba(13, 24, 43, 0.12);
}

.entry-card:hover::after {
  transform: scaleX(1);
}

.entry-icon {
  display: flex;
  align-items: center;
  color: var(--c-purple);
  margin-bottom: var(--space-2xs);
}

.entry-card:not(.entry-card--primary) .entry-icon {
  color: var(--c-slate);
}

.entry-card--primary::after {
  transform: scaleX(1);
}

.entry-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.entry-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-charcoal);
  line-height: 1.3;
}

.entry-card-tag {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-slate);
  font-weight: 700;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  color: var(--c-charcoal);
  padding-top: var(--space-2xs);
}

.entry-card:hover .entry-link {
  color: var(--c-purple);
}

/* ── About section: subtle brand background ───────────────────────────── */
.section-brand {
  background-color: #F4F6FB;
  background-image:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(83, 200, 234, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(115, 64, 153, 0.08) 0%, transparent 70%);
}

/* ── About: alternating block spacing & separator ─────────────────────── */
.about-block + .about-block {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(13, 24, 43, 0.07);
}

/* ── About section: column proportions ───────────────────────────────── */
@media (min-width: 992px) {
  .about-row > .col-main {
    flex: 1.1;
  }
  .about-row > .col-side {
    flex: 0.9;
  }
  /* Block 2: flip image to left, text to right */
  .about-row--reverse {
    flex-direction: row-reverse;
  }
  /* Reposition blob for the left-side media column */
  .about-row--reverse .about-media-col::before {
    right: auto;
    left: -50px;
  }
}

/* ── About: image media column ─────────────────────────────────────────── */
.about-media-col {
  position: relative;
}

/* Decorative gradient blob behind photos */
.about-media-col::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(83, 200, 234, 0.16) 0%, rgba(115, 64, 153, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Blob on the left side when media column is on the left */
.about-media-col--left::before {
  right: auto;
  left: -50px;
}

/* ── Wrapper for single image + floating chip ─────────────────────────── */
.about-img-wrap {
  position: relative;
  z-index: 1;
}

/* ── Base image box ────────────────────────────────────────────────────── */
.about-img-box {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 32px -10px rgba(13, 24, 43, 0.18);
  aspect-ratio: 4/3;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.about-img-box:hover img {
  transform: scale(1.04);
}

/* Block 1: portrait crop for the hero image */
.about-img-portrait {
  aspect-ratio: 4/5;
}

/* ── Block 2: 2-up side-by-side grid ─────────────────────────────────── */
.about-grid-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .about-grid-display {
    grid-template-columns: 1fr;
  }
}

/* ── Floating stat chip over image ────────────────────────────────────── */
.about-stat-chip {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--c-charcoal);
  box-shadow: 0 2px 14px rgba(13, 24, 43, 0.14);
  white-space: nowrap;
  line-height: 1;
}

/* Consortium Partner Grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 576px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(6, 1fr); }
}

.partner-card {
  background-color: #ffffff;
  border: 1px solid rgba(13, 24, 43, 0.08);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: auto;
  min-height: 160px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.25s ease;
  cursor: pointer;
}

.partner-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: 0 14px 30px -16px rgba(13, 24, 43, 0.25);
  transform: translateY(-2px);
  border-color: rgba(115, 64, 153, 0.3);
}

.partner-logo-container {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.partner-logo-container img {
  max-height: 100%;
  max-width: 85%;
  object-fit: contain;
}

.partner-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-charcoal);
  margin-bottom: 2px;
}

.partner-card-country {
  font-size: 0.7rem;
  color: var(--c-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--ff-mono);
}

.partner-card-role-badge {
  font-size: 0.6rem;
  padding: 1px 6px;
  background-color: var(--c-off);
  color: var(--c-purple);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
}

.partner-card:hover .partner-card-role-badge {
  background-color: var(--grad-soft);
  background: var(--grad);
  color: #ffffff;
}

/* Outputs & Resources */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  border-bottom: 1px solid rgba(13, 24, 43, 0.08);
  padding-bottom: var(--space-2xs);
  margin-bottom: var(--space-xs);
}

.filter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-slate);
  padding: 6px 16px;
  position: relative;
  transition: color 0.15s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.filter-btn:hover {
  color: var(--c-charcoal);
}

.filter-btn.active {
  color: var(--c-purple);
}

.filter-btn.active::after {
  transform: scaleX(1);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-xs);
}

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

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

.card-feature {
  background-color: #ffffff;
  color: var(--c-charcoal);
  border: 1px solid rgba(13, 24, 43, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.section-dark .card-feature {
  background-color: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.card-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -16px rgba(13, 24, 43, 0.1);
}

.card-feature::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 32px;
  width: 32px;
  height: 2px;
  background: var(--grad);
}

.resource-tag {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--c-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--space-2xs);
}

.section-dark .resource-tag {
  color: var(--c-sky);
}

.card-feature h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2xs);
  line-height: 1.3;
}

.card-feature p {
  font-size: 0.88rem;
  color: var(--c-slate);
  line-height: 1.5;
  margin-bottom: var(--space-s);
}

.section-dark .card-feature p {
  color: rgba(255, 255, 255, 0.7);
}

.resource-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(13, 24, 43, 0.06);
  padding-top: var(--space-xs);
  font-size: 0.75rem;
  color: var(--c-slate);
  font-family: var(--ff-mono);
}

.section-dark .resource-meta {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.resource-download-link {
  font-weight: 700;
  color: var(--c-purple);
  text-transform: uppercase;
  font-family: var(--ff-sans);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-dark .resource-download-link {
  color: var(--c-sky);
}

.resource-download-link:hover {
  text-decoration: underline;
}

/* Dynamic Event Tabs */
.event-tabs {
  display: flex;
  gap: var(--space-2xs);
  margin-bottom: var(--space-s);
}

.event-tab-btn {
  background: var(--c-off);
  border: 1px solid rgba(13, 24, 43, 0.08);
  color: var(--c-slate);
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.event-tab-btn.active {
  background-color: var(--c-charcoal);
  color: #ffffff;
  border-color: var(--c-charcoal);
}

.event-panes {
  width: 100%;
}

.event-pane {
  display: none;
}

.event-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.event-card {
  background-color: #ffffff;
  border: 1px solid rgba(13, 24, 43, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xs);
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .event-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.event-card:hover {
  transform: translateX(3px);
  border-color: rgba(115, 64, 153, 0.2);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--grad);
  color: #ffffff;
  text-align: center;
  font-family: var(--ff-mono);
  flex-shrink: 0;
}

.event-date-day {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.event-details {
  flex: 1;
  padding: 0 var(--space-s);
}

.event-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--c-purple);
  font-weight: 700;
  font-family: var(--ff-mono);
  letter-spacing: 0.08em;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 4px 0 6px 0;
}

.event-info-line {
  font-size: 0.78rem;
  color: var(--c-slate);
}

.event-action {
  flex-shrink: 0;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .event-action {
    margin-top: 0;
  }
}

/* Platform Access Teaser */
/* ── Platform section: two-column layout ─────────────────────────────── */
.platform-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .platform-layout {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }
  .platform-text-col { flex: 1.1; }
  .platform-media-col { flex: 0.9; }
}

/* ── Text column ─────────────────────────────────────────────────────── */
.platform-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* ── Features list ───────────────────────────────────────────────────── */
.platform-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.platform-feature-icon {
  color: var(--c-sky);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
}

/* ── Early access signup ─────────────────────────────────────────────── */
.platform-early-access {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: var(--space-xs);
}

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 576px) {
  .early-access-form { flex-direction: row; }
  .early-access-form input[type="email"] { flex: 1; }
}

.early-access-form input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--ff-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.early-access-form input[type="email"]:focus {
  border-color: var(--c-sky);
}

.early-access-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Platform mockup frame ───────────────────────────────────────────── */
.platform-mockup {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(83, 200, 234, 0.08),
    0 32px 72px -20px rgba(0, 0, 0, 0.6);
}

.platform-mockup-bar {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.platform-mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.platform-mockup-dots span:nth-child(1) { background: #FF6057; }
.platform-mockup-dots span:nth-child(2) { background: #FFBD2E; }
.platform-mockup-dots span:nth-child(3) { background: #28C840; }

.platform-mockup-label {
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.platform-mockup-img {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.platform-mockup-img img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Fade bottom of image into section dark bg */
.platform-mockup-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #0D182B 0%, transparent 100%);
  pointer-events: none;
}

/* ── Launch status badge ─────────────────────────────────────────────── */
.platform-launch-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(83, 200, 234, 0.07);
  border: 1px solid rgba(83, 200, 234, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.platform-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--c-sky);
  border-radius: 50%;
  flex-shrink: 0;
  animation: platformPulse 2.4s ease-in-out infinite;
}

@keyframes platformPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--c-sky); }
  50% { opacity: 0.55; box-shadow: 0 0 14px var(--c-sky); }
}

/* Latest News / Blog Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.card-news {
  background-color: #ffffff;
  border: 1px solid rgba(13, 24, 43, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card-news:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 24, 43, 0.12);
  box-shadow: 0 14px 28px -15px rgba(13, 24, 43, 0.1);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background-color: var(--c-charcoal);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-news:hover .news-thumb img {
  transform: scale(1.03);
}

.news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-tag {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--c-purple);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: 0.8rem;
  color: var(--c-slate);
  line-height: 1.5;
  margin-bottom: 14px;
}

.news-card-meta {
  margin-top: auto;
  border-top: 1px solid rgba(13, 24, 43, 0.06);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--c-slate);
  font-family: var(--ff-mono);
}

.news-card-link {
  font-weight: 700;
  color: var(--c-charcoal);
  font-family: var(--ff-sans);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.news-card-link:hover {
  color: var(--c-purple);
}

/* Media & Press Explainer Teaser */
.media-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--c-charcoal);
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.media-video-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.media-video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-video-play-btn {
  width: 68px;
  height: 68px;
  background: var(--grad);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 24px -5px rgba(83, 200, 234, 0.5), 0 10px 24px -5px rgba(115, 64, 153, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.media-video-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px -5px rgba(83, 200, 234, 0.6), 0 14px 28px -5px rgba(115, 64, 153, 0.6);
}

.media-video-overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(13, 24, 43, 0.5);
}

.media-video-overlay-text h4 {
  font-size: 1rem;
}

.media-video-overlay-text p {
  font-size: 0.72rem;
  font-family: var(--ff-mono);
  color: var(--c-sky);
  text-transform: uppercase;
}

/* ==========================================================================
   9. Accessible Interactive Forms
   ========================================================================== */
.contact-form {
  background-color: #ffffff;
  border: 1px solid rgba(13, 24, 43, 0.06);
  padding: 32px;
  width: 100%;
  box-shadow: 0 10px 30px -15px rgba(13, 24, 43, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-slate);
}

.form-input,
.form-textarea {
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid rgba(13, 24, 43, 0.12);
  border-radius: 0;
  background-color: var(--c-bg);
  color: var(--c-charcoal);
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(115, 64, 153, 0.12);
}

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

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-checkbox {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--c-purple);
}

.form-checkbox-label {
  font-size: 0.78rem;
  color: var(--c-slate);
  line-height: 1.4;
  cursor: pointer;
}

/* ==========================================================================
   10. Footer Section
   ========================================================================== */
.site-footer {
  background-color: var(--c-charcoal);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: var(--c-sky);
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

@media (min-width: 992px) {
  .footer-top-row {
    flex-direction: row;
  }
  .footer-brand-col {
    flex: 1.2;
  }
  .footer-nav-col {
    flex: 0.8;
  }
  .footer-newsletter-col {
    flex: 1;
  }
}

.footer-brand-logo {
  height: 38px;
  margin-bottom: 16px;
}

.footer-brand-logo img {
  height: 100%;
}

.footer-p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: var(--space-2xs);
}

.social-icon-link {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  border-radius: 0;
  transition: all 0.15s ease;
}

.social-icon-link:hover {
  background-color: var(--c-sky);
  color: var(--c-charcoal) !important;
  border-color: var(--c-sky);
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-newsletter-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.8rem;
  outline: none;
  flex: 1;
}

.footer-newsletter-input:focus {
  border-color: var(--c-sky);
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-s);
}

@media (min-width: 768px) {
  .footer-disclaimer-box {
    flex-direction: row;
    align-items: center;
  }
}

.footer-disclaimer-flag {
  flex-shrink: 0;
}

.footer-disclaimer-text {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-s);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   11. Interactive Slide-in Drawer Modal
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 24, 43, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background-color: #ffffff;
  color: var(--c-charcoal);
  box-shadow: -15px 0 40px -10px rgba(13, 24, 43, 0.2);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  box-sizing: border-box;
}

.drawer-backdrop.open .drawer-panel {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(13, 24, 43, 0.08);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.drawer-title {
  font-size: var(--text-m);
  font-weight: 800;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--c-slate);
  padding: 4px;
  line-height: 1;
}

.drawer-close-btn:hover {
  color: var(--c-charcoal);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-right: 6px;
}

.drawer-meta-section {
  background-color: var(--c-off);
  padding: 16px;
  border-left: 2px solid var(--c-purple);
  font-size: 0.85rem;
  line-height: 1.5;
}

.drawer-meta-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--c-slate);
  margin-bottom: 4px;
}

.drawer-logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.drawer-logo-wrap img {
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   12. High Contrast Theme Scheme
   ========================================================================== */
html.high-contrast {
  --c-bg: #000000;
  --c-charcoal: #000000;
  --c-off: #111111;
  --c-slate: #ffffff;
  --c-sky: #ffff00; /* Accessibility yellow */
  --c-purple: #00ffff; /* Accessibility cyan */
  --grad: linear-gradient(125deg, #ffff00 0%, #00ffff 100%);
  --grad-soft: rgba(0, 0, 0, 0.8);
}

html.high-contrast body {
  background-color: #000000;
  color: #ffffff;
}

html.high-contrast .site-header {
  background-color: #000000;
  border-bottom: 2px solid #ffffff;
}

html.high-contrast .site-header.scrolled {
  background-color: #000000;
}

html.high-contrast .nav-link {
  color: #ffffff;
}

html.high-contrast .nav-link:hover,
html.high-contrast .nav-link.active {
  color: #ffff00;
}

html.high-contrast .entry-card,
html.high-contrast .partner-card,
html.high-contrast .event-card,
html.high-contrast .card-news,
html.high-contrast .contact-form {
  background-color: #111111;
  border: 2px solid #ffffff;
  color: #ffffff;
}

html.high-contrast .partner-card {
  filter: none;
  opacity: 1;
}

html.high-contrast .btn-primary {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

html.high-contrast .btn-ghost {
  border: 2px solid #ffffff !important;
  background: transparent !important;
}

html.high-contrast .btn-outline-dark {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast .form-input,
html.high-contrast .form-textarea {
  background-color: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
}

/* ── HC: Section text colour fixes ───────────────────────────────────────
   section-light sets color: var(--c-charcoal) which becomes #000000 in HC
   → black text on near-black (#111111) bg; force white for all content
   ─────────────────────────────────────────────────────────────────────── */
html.high-contrast .section-light {
  color: #ffffff;
}

/* section-brand keeps its hardcoded light hex bg — override to dark */
html.high-contrast .section-brand {
  background: #111111;
  background-image: none;
  color: #ffffff;
}

/* ── HC: About section ────────────────────────────────────────────────── */
html.high-contrast .about-block + .about-block {
  border-top-color: rgba(255, 255, 255, 0.15);
}

html.high-contrast .about-img-box {
  box-shadow: none;
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── HC: Entry card explicit-colour children ─────────────────────────── */
html.high-contrast .entry-card-header h3 {
  color: #ffffff;
}

html.high-contrast .entry-link {
  color: #ffff00;
}

html.high-contrast .entry-card-tag {
  color: rgba(255, 255, 255, 0.65);
}

/* ── HC: Partner logo monogram ───────────────────────────────────────── */
html.high-contrast .partner-logo-monogram {
  background: #000000;
  border: 2px solid #ffffff;
  color: #00ffff;
}

/* ── HC: Partner role badge ──────────────────────────────────────────── */
html.high-contrast .partner-card-role-badge {
  background: #000000;
  border: 1px solid #ffff00;
  color: #ffff00;
}

/* ── HC: Resource cards (dark section) ───────────────────────────────── */
html.high-contrast .section-dark .card-feature {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── HC: Platform section ────────────────────────────────────────────── */
html.high-contrast .platform-early-access {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
}

html.high-contrast .early-access-form input[type="email"] {
  background: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
}

html.high-contrast .platform-launch-badge {
  background: rgba(255, 255, 0, 0.08);
  border-color: rgba(255, 255, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

/* Fade uses hardcoded charcoal — swap to pure black */
html.high-contrast .platform-mockup-fade {
  background: linear-gradient(to top, #000000 0%, transparent 100%);
}

html.high-contrast .platform-mockup {
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── HC: Hero stat card beam (hardcoded rgba → HC-aware colours) ─────── */
html.high-contrast .hero-stat-card::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 0, 0.9) 35%,
    rgba(0, 255, 255, 0.85) 65%,
    transparent 100%
  );
}

/* ── HC: Footer ──────────────────────────────────────────────────────── */
html.high-contrast .footer-newsletter-input {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.4);
}

html.high-contrast .footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

html.high-contrast .footer-bottom-row {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

/* ── HC: a11y button active state ────────────────────────────────────── */
html.high-contrast .a11y-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   13. EU Flag SVG, Partner Monogram, Toast System & Dark-Section Overrides
   ========================================================================== */

/* Proper EU Flag SVG sizing */
.eu-flag-svg {
  width: 32px;
  height: 21px;
  flex-shrink: 0;
  display: block;
}

/* Partner logo text monogram placeholder */
.partner-logo-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  background: var(--grad-soft);
  color: var(--c-purple);
  border: 1.5px solid rgba(115, 64, 153, 0.3);
  width: 80px;
  height: 38px;
}

/* Section-dark filter tab overrides (Resources section) */
.section-dark .filter-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section-dark .filter-btn {
  color: rgba(255, 255, 255, 0.55);
}

.section-dark .filter-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.section-dark .filter-btn.active {
  color: var(--c-sky);
}

.section-dark .filter-btn.active::after {
  background: var(--c-sky);
}


/* Toast notification system */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 360px;
}

.toast {
  background-color: var(--c-charcoal);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--c-sky);
  padding: 14px 18px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  box-shadow: 0 12px 30px -10px rgba(13, 24, 43, 0.5);
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: all;
}

.toast.success { border-left-color: var(--c-sky); }
.toast.info    { border-left-color: var(--c-purple); }
.toast.warning { border-left-color: #F5A623; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(24px); }
}


/* ==========================================================================
   Accessibility additions (audit fixes)
   ========================================================================== */

/* Respect reduced-motion preference globally (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually hidden, available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Native-button resets so interactive cards keep their design */
button.partner-card,
button.faq-question {
  font: inherit;
  color: inherit;
  background-color: #ffffff;
  width: 100%;
}
button.faq-question {
  background: none;
  border: none;
  text-align: left;
}

/* ==========================================================================
   High-contrast mode — comprehensive negative-design fixes (audit follow-up)
   Catches inline styles and global components that hardcode brand colours so
   nothing renders dark-on-dark, light-on-light, or with an invisible logo.
   ========================================================================== */

/* 1. Entry-card icons: accent colour on EVERY card (was white on secondary) */
html.high-contrast .entry-card .entry-icon,
html.high-contrast .entry-card:not(.entry-card--primary) .entry-icon {
  color: #00ffff;
}

/* 2. Inline dark text (color: var(--c-charcoal) / var(--c-slate)) → white.
   Also forces white on dark CTA boxes that hardcode charcoal as background. */
html.high-contrast [style*="--c-charcoal"],
html.high-contrast [style*="--c-slate"] {
  color: #ffffff !important;
}

/* 3. Inline hardcoded white backgrounds → dark card, white text, visible border */
html.high-contrast [style*="background:#fff"],
html.high-contrast [style*="background: #fff"],
html.high-contrast [style*="background-color:#fff"],
html.high-contrast [style*="background-color: #fff"] {
  background: #111111 !important;
  background-color: #111111 !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

/* 4. Partner logos: white chip so any logo colour (incl. dark UBITECH) stays
   legible on the black HC background. Inversion is avoided as it breaks
   multi-colour logos. */
html.high-contrast .partner-logo-container,
html.high-contrast .pcf-logo,
html.high-contrast .drawer-logo-wrap {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 8px;
  padding: 8px 12px;
  box-sizing: border-box;
}

/* 5. Partner detail drawer: dark panel like the rest of the HC theme
   (was a white panel with yellow accents = unreadable). */
html.high-contrast .drawer-panel {
  background-color: #000000;
  color: #ffffff;
  border-left: 2px solid #ffffff;
}
html.high-contrast .drawer-title,
html.high-contrast .drawer-meta-title,
html.high-contrast #drawer-role-text,
html.high-contrast #drawer-desc-text {
  color: #ffffff !important;
}
html.high-contrast .drawer-meta-section {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.3);
}
html.high-contrast .drawer-close-btn {
  color: #ffffff;
}

/* 6. Hero gradient text → pure white in HC (gradient + text-clip is unreadable) */
html.high-contrast .hero-title .grad-text-comp,
html.high-contrast .grad-text-comp {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 7. Event date badge (homepage): black text on the bright HC accent.
   The !important background also overrides the inline var(--c-slate) on past
   badges (which would otherwise be white-on-white in HC). */
html.high-contrast .event-date-badge {
  background: var(--grad) !important;
  color: #000000 !important;
}
html.high-contrast .event-date-badge .event-date-day,
html.high-contrast .event-date-badge .event-date-month {
  color: #000000 !important;
}

/* ==========================================================================
   Language selector (top bar) — project languages
   ========================================================================== */
.language-selector { display: flex; align-items: center; }
.language-selector select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  min-height: 28px;
  outline: none;
}
.language-selector select:focus-visible { outline: 2px solid var(--c-sky); outline-offset: 2px; }
.language-selector select option { background: var(--c-charcoal); color: #fff; }
html.high-contrast .language-selector select { background: #000; border-color: #fff; color: #fff; }
