/* ==========================================================
   matemintpckbcn.xyz - Global Stylesheet
   Aesthetic: Dark Glassmorphism (dark ground, frosted panels, neon gradient edges)
   Card Style: Horizontal Split (media left, metadata + tags + CTA right)
   ========================================================== */

:root {
  /* Dark Glassmorphism Color Palette */
  --bg-deep: #070a12;
  --bg-surface: #0c1220;
  --bg-panel: rgba(18, 26, 44, 0.72);
  --bg-panel-hover: rgba(24, 35, 60, 0.82);
  --bg-input: #111a2e;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(56, 189, 248, 0.5);

  /* Neon Gradient Edges */
  --neon-cyan: #38bdf8;
  --neon-indigo: #818cf8;
  --neon-pink: #f472b6;
  --neon-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  --neon-glow: 0 0 20px rgba(56, 189, 248, 0.25);
  --neon-glow-strong: 0 0 30px rgba(129, 140, 248, 0.4);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-readable: #cbd5e1;
  --text-muted: #7e8c9f;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* Transitions */
  --trans-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 60%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(129, 140, 248, 0.07) 0%, transparent 55%),
              var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-locked {
  overflow: hidden;
}

/* Accessibility: Universal Focus Outline */
:focus-visible {
  outline: 2px solid var(--neon-cyan) !important;
  outline-offset: 3px !important;
}

/* Responsive container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  min-width: 0;
}

/* Typography & Word Break Safety */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

p {
  margin-bottom: var(--space-16);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--trans-smooth);
}

a:hover {
  color: var(--neon-pink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global Glass Card Styling */
.glass-card, .glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--trans-smooth), box-shadow var(--trans-smooth);
}

.glass-card::before, .glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--neon-gradient);
  opacity: 0.5;
  transition: opacity var(--trans-smooth);
}

.glass-card:hover, .glass-panel:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--neon-glow);
}

.glass-card:hover::before, .glass-panel:hover::before {
  opacity: 1;
}

/* ==========================================================
   Header & Navigation
   ========================================================== */
.site-header {
  min-height: 70px;
  background: rgba(7, 10, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  position: static;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 70px;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-primary);
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo:hover .brand-text {
  color: var(--neon-cyan);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  letter-spacing: -0.02em;
  transition: color var(--trans-smooth);
}

.primary-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-readable);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  transition: all var(--trans-smooth);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-link.is-active {
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

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

.header-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  transition: background var(--trans-smooth), border-color var(--trans-smooth);
}

.nav-toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--trans-smooth), opacity var(--trans-smooth);
}

.nav-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans-smooth);
  border: 1px solid transparent;
  min-width: 0;
  white-space: nowrap;
}

.btn-neon {
  background: var(--neon-gradient);
  color: #070a12;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-neon:hover {
  color: #000;
  box-shadow: 0 0 25px rgba(244, 114, 182, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #ffffff;
  border-color: var(--neon-pink);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Badges & Tags */
.pill-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: var(--space-16);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--neon-indigo);
  border: 1px solid rgba(129, 140, 248, 0.25);
}

/* Hero Section */
.hero-section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-40);
  align-items: center;
  min-width: 0;
}

.hero-title {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-24);
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 80%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-40);
}

.hero-actions {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.hero-panel {
  padding: var(--space-24);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--space-24);
}

.neon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.panel-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-grid {
  display: grid;
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  line-height: 1;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.panel-footer-note {
  padding-top: var(--space-16);
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section-container {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  min-width: 0;
}

.bg-subtle {
  background-color: rgba(12, 18, 32, 0.4);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-64) auto;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: var(--space-16);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Horizontal Split Card Style */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.h-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  min-width: 0;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.h-card-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.h-card:hover .media-img {
  transform: scale(1.04);
}

.media-badge {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(8px);
  color: var(--neon-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.h-card-content {
  padding: var(--space-40) var(--space-24) var(--space-24) var(--space-24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-24);
  min-width: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.card-title {
  font-size: 1.55rem;
  line-height: 1.3;
}

.card-title a {
  color: var(--text-primary);
}

.card-title a:hover {
  color: var(--neon-cyan);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-footer-cta {
  margin-top: auto;
}

/* Integration Section */
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
  align-items: center;
}

.integration-copy h2 {
  font-size: 2rem;
  margin-bottom: var(--space-24);
}

.matrix-box {
  padding: var(--space-24);
}

.matrix-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-24);
  color: var(--neon-cyan);
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.matrix-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 2px solid var(--neon-indigo);
  padding-left: var(--space-16);
}

.matrix-list strong {
  color: var(--text-primary);
}

/* CTA Banner */
.cta-banner-section {
  padding-bottom: var(--space-64);
}

.cta-banner {
  padding: var(--space-40);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cta-banner-content h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-8);
}

.cta-banner-btn {
  flex-shrink: 0;
}

/* Sub-page Article Layout */
.page-hero {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(12, 18, 32, 0.4);
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-16);
}

.breadcrumbs a {
  color: var(--neon-cyan);
}

.page-title {
  font-size: 2.4rem;
  margin-bottom: var(--space-16);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 820px;
}

.article-section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-40);
  align-items: start;
}

.article-content h2 {
  font-size: 1.65rem;
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  color: #ffffff;
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: var(--space-24);
  margin-bottom: var(--space-16);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: var(--space-8);
}

.quote-box {
  padding: var(--space-24);
  margin-top: var(--space-40);
  border-left: 4px solid var(--neon-cyan);
  font-size: 1.05rem;
}

/* Tables in Glass Cards */
.table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.specs-table th, .specs-table td {
  padding: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
  min-width: 140px;
}

.specs-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.specs-table td {
  color: var(--text-secondary);
}

.specs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Sidebar Widgets */
.sidebar-widget {
  padding: var(--space-24);
  margin-bottom: var(--space-24);
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-16);
  color: var(--neon-cyan);
}

.widget-list {
  list-style: none;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.widget-list strong {
  color: var(--text-primary);
}

/* Mini Cards for Cross Navigation */
.subhead-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-24);
}

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

.mini-link-card {
  padding: var(--space-24);
  text-decoration: none;
}

.mini-link-card h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}

.mini-link-card:hover h4 {
  color: var(--neon-cyan);
}

/* Legal Pages */
.legal-container {
  max-width: 900px;
}

.legal-card {
  padding: var(--space-40);
}

.legal-card h2 {
  font-size: 1.4rem;
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-8);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card ul {
  padding-left: var(--space-24);
  margin-bottom: var(--space-16);
  color: var(--text-secondary);
}

.legal-card li {
  margin-bottom: var(--space-8);
}

.action-box {
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
}

/* ==========================================================
   Contact Section & High-Contrast Input Fields
   Engineered for maximum legibility and clear write zones
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-40);
  align-items: start;
}

.form-card, .info-card, .map-card {
  padding: var(--space-24);
  margin-bottom: var(--space-24);
}

/* Distinct high-contrast card boundary for the inquiry form */
.form-card {
  background: rgba(14, 23, 42, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.12);
}

.form-heading, .info-heading {
  font-size: 1.45rem;
  margin-bottom: var(--space-8);
  color: #ffffff;
}

.form-subtext {
  font-size: 0.92rem;
  color: var(--text-readable);
  margin-bottom: var(--space-24);
  line-height: 1.6;
}

.form-group {
  margin-bottom: var(--space-24);
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f1f5f9;
  letter-spacing: 0.015em;
}

.form-label .req {
  color: var(--neon-pink);
  font-weight: 800;
  font-size: 1rem;
}

/* Clearly visible writeable input boxes with pronounced borders and illuminated backgrounds */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: #101a30;
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color var(--trans-smooth), background-color var(--trans-smooth), box-shadow var(--trans-smooth);
}

/* Distinct readable placeholder styling */
.form-input::placeholder {
  color: #94a3b8;
  opacity: 0.9;
}

/* Hover indicator highlights the target write area */
.form-input:hover {
  border-color: rgba(56, 189, 248, 0.85);
  background: #142240;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.22);
}

/* Active focus state makes the active write field immediately obvious */
.form-input:focus {
  border-color: var(--neon-cyan);
  background: #182a50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.32), 0 0 22px rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

/* Native select dropdown option elements */
.form-input option {
  background-color: #0c1424;
  color: #f8fafc;
  padding: 12px;
}

/* Validation error state */
.form-input.is-invalid {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3);
}

.error-msg {
  display: block;
  color: #fb7185;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 1.2em;
}

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

.success-alert {
  padding: var(--space-24);
  text-align: center;
  border-color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.success-icon {
  margin-bottom: var(--space-16);
}

.success-alert h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-8);
  color: #ffffff;
}

.info-block {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
}

.info-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-val {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Static Vector Map */
.map-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-16);
}

.static-map-wrapper {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0b101a;
}

.static-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-footer {
  margin-top: var(--space-8);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  font-family: var(--font-mono);
}

/* ==========================================================
   Footer: Enhanced Contrast, Typography & Spacing
   ========================================================== */
.site-footer {
  background: linear-gradient(180deg, #0a0f1d 0%, #05070d 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  margin-top: auto;
  padding-top: 56px;
  padding-bottom: 36px;
  font-size: 0.9rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand .brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-summary {
  color: var(--text-readable);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 20px;
}

.legal-identity {
  background: rgba(18, 26, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
}

.legal-identity p {
  font-size: 0.85rem;
  color: var(--text-readable);
  margin-bottom: 8px;
  line-height: 1.5;
}

.legal-identity p:last-child {
  margin-bottom: 0;
}

.legal-identity strong {
  color: #ffffff;
  font-weight: 600;
}

.footer-email-link {
  color: var(--neon-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans-smooth);
}

.footer-email-link:hover {
  color: var(--neon-pink);
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--neon-gradient);
  border-radius: 2px;
}

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

.footer-links a {
  color: var(--text-readable);
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--trans-smooth), transform var(--trans-smooth);
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--neon-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.84rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.6;
}

/* Fixed Bottom Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 10, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--neon-cyan);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  padding: var(--space-16) 0;
  z-index: 999;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-readable);
  margin-bottom: 0;
}

.cookie-actions {
  display: flex;
  gap: var(--space-8);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ==========================================================
   Responsive Breakpoints & Touch Optimization
   Targets: 1440px, 1200px, 1040px, 768px, 400px, 320px
   ========================================================== */

/* Tight desktop screens (1025px - 1180px) */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .header-cta .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Tablet & Mobile Breakpoint (<= 1040px) */
@media (max-width: 1040px) {
  .site-header {
    min-height: 64px;
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 10, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px var(--space-24) 40px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: transform var(--trans-smooth), opacity var(--trans-smooth);
    z-index: 99;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-link.is-active {
    background: rgba(56, 189, 248, 0.16);
  }

  .mobile-nav-cta {
    display: block;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
  }

  .footer-layout {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col.brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }

  .h-card {
    grid-template-columns: 1fr;
  }

  .h-card-media {
    min-height: 220px;
  }

  .h-card-content {
    padding: var(--space-24);
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-24);
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

/* Mobile Screens below 400px down to 320px */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .h-card-content {
    padding: var(--space-16);
  }

  .legal-card {
    padding: var(--space-16);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

/* Accessibility: Prefers-reduced-motion block */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}