/* =========================================================================
   LUAR IT — Cybersecurity & Information Technologies
   Minimalist, High-Performance, Privacy-First Architecture
   Structure:
   1) Reset & Base
   2) Design tokens (Dark default, Light theme, Terminal Green & Night Blue)
   3) Typography & Core Elements
   4) Layout & Utilities
   5) Components (Buttons, Badges, Cards, Terminal)
   6) Site Header & Mobile Drawer
   7) Cookie Consent Banner
   8) Sections (Hero, Features, Services, PGP, Contact, Legal)
   9) Responsive Layouts
   ========================================================================= */

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
a:not([class]) { text-decoration-skip-ink: auto; }

@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;
  }
}

/* ---------- 2. Design Tokens ---------- */
:root {
  /* System Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  /* Spacing Scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Geometry */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --border-w: 1px;

  /* Structural bounds */
  --content-max: 1180px;
  --content-narrow: 760px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;

  color-scheme: dark;
}

/* ----- DARK THEME (Default) ----- */
:root,
[data-theme="dark"] {
  --bg-0: #08090d;
  --bg-1: #0f1218;
  --bg-2: #161b24;
  --bg-3: #1f2633;
  --border-1: #222938;
  --border-2: #323d4f;

  --text-1: #f3f5f8;
  --text-2: #9da6b7;
  --text-3: #647086;

  /* Terminal Matrix Green */
  --green: #00e676;
  --green-dim: #00b050;
  --green-bg: rgba(0, 230, 118, 0.09);
  --green-border: rgba(0, 230, 118, 0.3);
  --green-contrast: #031408;

  /* Night Sky / Moon Blue */
  --blue: #60a5fa;
  --blue-dim: #3b82f6;
  --blue-bg: rgba(96, 165, 250, 0.09);
  --blue-border: rgba(96, 165, 250, 0.3);
  --blue-contrast: #040d1a;

  --danger: #ff5252;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
  --scrim: rgba(5, 7, 10, 0.78);
  --code-bg: #07090c;
}

/* ----- LIGHT THEME ----- */
[data-theme="light"] {
  color-scheme: light;
  --bg-0: #ffffff;
  --bg-1: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --border-1: #e2e8f0;
  --border-2: #cbd5e1;

  --text-1: #0a0e17;
  --text-2: #475569;
  --text-3: #64748b;

  /* Terminal Green in light mode (WCAG AA Compliant) */
  --green: #059669;
  --green-dim: #047857;
  --green-bg: rgba(5, 150, 105, 0.09);
  --green-border: rgba(5, 150, 105, 0.3);
  --green-contrast: #ffffff;

  /* Night / Lunar Blue in light mode */
  --blue: #1d4ed8;
  --blue-dim: #1e40af;
  --blue-bg: rgba(29, 78, 216, 0.09);
  --blue-border: rgba(29, 78, 216, 0.3);
  --blue-contrast: #ffffff;

  --danger: #dc2626;
  --shadow-1: 0 10px 30px rgba(15, 23, 42, 0.08);
  --scrim: rgba(15, 23, 42, 0.55);
  --code-bg: #0d1117;
}

/* ---------- 3. Base & Typography ---------- */
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}

h1, h2, h3, h4 {
  font-weight: 650;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--text-1);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { color: var(--text-2); max-width: 68ch; }
p.lead { font-size: var(--fs-md); color: var(--text-2); line-height: var(--lh-normal); }

.mono { font-family: var(--font-mono); }

a.text-link {
  color: var(--green);
  border-bottom: var(--border-w) solid var(--green-dim);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
a.text-link:hover { color: var(--text-1); border-color: var(--text-1); }

::selection { background: var(--green); color: var(--green-contrast); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Accessibility: Skip to main content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 500;
  background: var(--green);
  color: var(--green-contrast);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Layout Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap--narrow { max-width: var(--content-narrow); }

.section {
  padding-block: var(--sp-9);
  border-top: var(--border-w) solid var(--border-1);
}
.section:first-of-type { border-top: none; }
.section--tight { padding-block: var(--sp-7); }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head .kicker { display: block; margin-bottom: var(--sp-3); }
.section-head h2 { margin-bottom: var(--sp-3); }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kicker::before { content: "//"; color: var(--text-3); }

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

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

.text-accent-green { color: var(--green); }
.text-accent-blue { color: var(--blue); }

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

/* ---------- 5. Components ---------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: var(--border-w) solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: var(--green-contrast);
}
.btn--primary:hover {
  background: var(--green-dim);
  color: var(--green-contrast);
}

.btn--secondary {
  background: var(--bg-1);
  border-color: var(--border-2);
  color: var(--text-1);
}
.btn--secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bg-2);
}

.btn--ghost {
  color: var(--text-2);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--text-1);
  background: var(--bg-2);
}

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-xs);
}
.btn--block {
  width: 100%;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Badges & Chips */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 10px;
  background: var(--bg-2);
  border: var(--border-w) solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.security-badge svg { width: 14px; height: 14px; color: var(--green); }

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-2);
  border: var(--border-w) solid var(--border-2);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--text-2); }
.theme-toggle .toggle-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-contrast);
  transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
  transform: translateX(0);
}
[data-theme="light"] .theme-toggle .toggle-knob {
  transform: translateX(24px);
  background: var(--blue);
  color: #ffffff;
}
.theme-toggle .toggle-knob svg { width: 13px; height: 13px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* Cards */
.card {
  background: var(--bg-1);
  border: var(--border-w) solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.card:hover {
  border-color: var(--border-2);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}
.service-card .service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--green-bg);
  border: var(--border-w) solid var(--green-border);
  color: var(--green);
  flex-shrink: 0;
}
.service-card .service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: var(--fs-md); }
.service-card p { font-size: var(--fs-sm); margin: 0; line-height: var(--lh-normal); }
.service-card .service-link {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  transition: color var(--dur-fast) var(--ease);
}
.service-card:hover {
  border-color: var(--green-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.service-card:hover .service-link { color: var(--green); }
.service-card .service-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* Value / Trust Points */
.value-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--bg-1);
  border: var(--border-w) solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  height: 100%;
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-fast) var(--ease);
}
.value-item:hover {
  border-color: var(--blue-border);
  transform: translateY(-2px);
}
.value-item .value-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--blue-bg);
  border: var(--border-w) solid var(--blue-border);
  color: var(--blue);
  margin-bottom: var(--sp-1);
}
.value-item .value-icon svg { width: 22px; height: 22px; }
.value-item h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
  line-height: var(--lh-tight);
}
.value-item p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: var(--lh-normal);
  margin: 0;
}

/* Terminal Simulation */
.terminal {
  background: var(--code-bg);
  border: var(--border-w) solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  width: 100%;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-2);
  border-bottom: var(--border-w) solid var(--border-1);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .dot-red { background: #ff5f56; }
.terminal-bar .dot-yellow { background: #ffbd2e; }
.terminal-bar .dot-green { background: #27c93f; }
.terminal-bar .terminal-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-left: var(--sp-2);
}
.terminal-body {
  padding: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--text-2);
  min-height: 220px;
}
.terminal-body .prompt::before { content: "$ "; color: var(--green); }
.terminal-body .ok { color: var(--green); font-weight: 600; }
.terminal-body .info { color: var(--blue); }
.terminal-body .line { white-space: pre-wrap; word-break: break-word; margin-bottom: 4px; }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 6. Site Header & Mobile Drawer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-0) 90%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: var(--border-w) solid var(--border-1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text-1);
  flex-shrink: 0;
}
.brand .brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand .brand-mark .m-bracket { stroke: var(--blue); }
.brand .brand-mark .m-cursor { fill: var(--green); }
.brand .brand-title { font-weight: 700; letter-spacing: -0.02em; }
.brand .brand-sub {
  color: var(--text-3);
  font-weight: 400;
  font-size: var(--fs-xs);
  margin-left: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-desktop a {
  font-size: var(--fs-sm);
  color: var(--text-2);
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text-1);
}
.nav-desktop a[aria-current="page"] {
  border-color: var(--green);
  color: var(--green);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  border: var(--border-w) solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-toggle:hover,
.nav-toggle:active {
  background: var(--bg-2);
  border-color: var(--border-3);
}
.nav-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; color: var(--green); }

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

/* ---------- 7. Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  left: var(--sp-4);
  max-width: 620px;
  margin-inline: auto;
  z-index: 250;
  background: var(--bg-1);
  border: var(--border-w) solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: var(--sp-5);
  animation: slideUp 0.3s var(--ease);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cookie-icon { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.cookie-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); }
.cookie-text { font-size: var(--fs-xs); color: var(--text-2); line-height: var(--lh-normal); margin: 0; }
.cookie-links { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); margin-top: 2px; }
.cookie-divider { color: var(--text-3); font-size: 8px; }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.cookie-settings-trigger, .cookie-text-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: color var(--dur-fast) var(--ease);
}
.cookie-settings-trigger:hover, .cookie-text-btn:hover {
  color: var(--green);
}

/* ---------- 8. Sections & Pages ---------- */

/* Hero */
.hero {
  padding-block: var(--sp-9) var(--sp-8);
  border-top: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-5); letter-spacing: -0.025em; }
.hero .hero-copy p.lead { margin-bottom: var(--sp-6); max-width: 52ch; font-size: var(--fs-md); }
.hero .hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-7); }
.hero .hero-flags { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-2);
  background: var(--bg-1);
  border: var(--border-w) solid var(--border-1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}
.hero-flag svg { width: 14px; height: 14px; color: var(--green); }

/* CTA Band */
.cta-band {
  border-top: var(--border-w) solid var(--border-1);
  padding-block: var(--sp-8);
  background: var(--bg-1);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: var(--sp-2); }
.cta-band p { margin: 0; }
.cta-band .cta-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: var(--sp-8);
  margin-bottom: var(--sp-6);
}
.step:last-child { margin-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--green);
  font-weight: 700;
}
.step h4 { margin-bottom: var(--sp-1); }

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
}
.contact-card.contact-card--highlight {
  border-color: var(--green-border);
  background: color-mix(in srgb, var(--green-bg) 35%, var(--bg-1));
}
.contact-card .contact-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-card .contact-email {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-1);
  word-break: break-all;
}
.contact-card .contact-email:hover {
  color: var(--green);
}
.contact-card p { font-size: var(--fs-sm); margin: 0; }
.contact-card .contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  border: var(--border-w) solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-2);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.copy-btn:hover { color: var(--green); border-color: var(--green-dim); background: var(--bg-2); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn[data-copied="true"] { color: var(--green); border-color: var(--green-dim); background: var(--green-bg); }

/* PGP Box & Key Block */
.pgp-panel {
  border: var(--border-w) solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  background: var(--bg-1);
  box-shadow: var(--shadow-1);
}
.pgp-panel .pgp-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
  justify-content: space-between;
}
.pgp-fingerprint {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--blue);
  background: var(--blue-bg);
  border: var(--border-w) solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  letter-spacing: 0.05em;
  overflow-x: auto;
  word-break: break-all;
}
.pgp-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

details.pgp-key-details { margin-top: var(--sp-5); }
details.pgp-key-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  padding: var(--sp-2) 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
details.pgp-key-details summary:hover { color: var(--green); }
.pgp-key-block {
  margin-top: var(--sp-3);
  background: var(--code-bg);
  border: var(--border-w) solid var(--border-2);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-2);
  overflow-x: auto;
  max-height: 260px;
  overflow-y: auto;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Notices */
.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--border-1);
  background: var(--bg-1);
  font-size: var(--fs-sm);
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.notice p { margin: 0; }
.notice--green { border-color: var(--green-border); background: var(--green-bg); }
.notice--green svg { color: var(--green); }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-2);
  border: var(--border-w) solid var(--border-2);
  color: var(--text-1);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.toast svg { width: 16px; height: 16px; color: var(--green); }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* Site Footer */
.site-footer {
  border-top: var(--border-w) solid var(--border-1);
  padding-block: var(--sp-8) var(--sp-6);
  background: var(--bg-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer-brand .brand { margin-bottom: var(--sp-3); }
.footer-desc { font-size: var(--fs-sm); max-width: 36ch; line-height: var(--lh-normal); color: var(--text-2); }
.footer-gpg-badge {
  margin-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
}
.footer-gpg-badge svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--fs-sm); color: var(--text-2); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: var(--border-w) solid var(--border-1);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.footer-bottom .footer-legal-links { display: flex; gap: var(--sp-5); align-items: center; }
.footer-bottom a:hover { color: var(--text-1); }

/* Page Header & Interior Pages */
.page-header { padding-block: var(--sp-8) var(--sp-7); border-top: none; }
.page-header .kicker { margin-bottom: var(--sp-4); }
.page-header p.lead { margin-top: var(--sp-4); }

/* Service Detail Articles */
.service-detail {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: var(--border-w) solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  margin-bottom: var(--sp-6);
  scroll-margin-top: calc(var(--header-h) + var(--sp-5));
  transition: border-color var(--dur-med) var(--ease);
}
.service-detail:last-of-type { margin-bottom: 0; }
.service-detail:hover { border-color: var(--border-2); }

.service-detail .service-detail-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: var(--border-w) solid var(--border-1);
}

.service-detail .service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--green-bg);
  border: var(--border-w) solid var(--green-border);
  color: var(--green);
  margin-bottom: var(--sp-1);
}
.service-detail .service-icon svg { width: 24px; height: 24px; }

.service-detail .service-detail-head h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-1);
  line-height: var(--lh-tight);
  margin: 0;
}

.service-detail .service-detail-head p {
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  max-width: 80ch;
  margin: 0;
}

.service-detail-body {
  width: 100%;
}

.service-detail-body ul.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3) var(--sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-2);
  align-items: flex-start;
  line-height: var(--lh-normal);
  background: var(--bg-0);
  border: var(--border-w) solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.feature-list li:hover {
  border-color: var(--border-2);
  color: var(--text-1);
}

.feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Legal Content */
.legal-content h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); font-size: var(--fs-lg); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-2); max-width: 72ch; }
.legal-content ul { margin: var(--sp-3) 0; }
.legal-content li { position: relative; padding-left: var(--sp-4); margin-bottom: var(--sp-2); }
.legal-content li::before { content: "\2013"; position: absolute; left: 0; color: var(--text-3); }
.legal-content strong { color: var(--text-1); }
.legal-updated { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--sp-6); }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .wrap { text-align: left; }
.error-code {
  font-family: var(--font-mono);
  font-size: var(--fs-4xl);
  color: var(--green);
  margin-bottom: var(--sp-3);
}

/* ---------- 9. Responsive Layouts & Mobile Navigation ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .hero-visual { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .wrap { padding-inline: var(--sp-4); }

  h1, .hero h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  .hero { padding-block: var(--sp-7) var(--sp-6); }

  /* Mobile Header Bar & Controls */
  .site-header .wrap { gap: var(--sp-3); }
  .header-cta { display: none !important; }
  .nav-desktop { display: none !important; }
  .nav-toggle { display: inline-flex !important; }

  /* Mobile Drawer Root & Overlay */
  .mobile-nav-root {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.25s ease;
  }
  .mobile-nav-root.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  /* Backdrop Scrim with Blur */
  .mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .mobile-nav-root.is-open .mobile-backdrop {
    opacity: 1;
  }

  /* Drawer panel sliding in smoothly from the right */
  .mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: var(--bg-1);
    border-left: var(--border-w) solid var(--border-2);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
  }
  .mobile-nav-root.is-open .mobile-drawer {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    border-bottom: var(--border-w) solid var(--border-1);
    background: var(--bg-0);
    min-height: var(--header-h);
  }
  .mobile-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--text-1);
  }
  .mobile-drawer-brand .brand-mark {
    width: 24px;
    height: 24px;
  }
  .mobile-drawer-brand .brand-mark .m-bracket { stroke: var(--blue); }
  .mobile-drawer-brand .brand-mark .m-cursor { fill: var(--green); }

  .mobile-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-1);
    border: var(--border-w) solid var(--border-2);
    color: var(--text-1);
    cursor: pointer;
    touch-action: manipulation;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  }
  .mobile-drawer-close:hover,
  .mobile-drawer-close:active {
    background: var(--bg-2);
    color: var(--green);
    border-color: var(--green-border);
  }
  .mobile-drawer-close svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-5);
    flex: 1;
  }
  .mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-0);
    border: var(--border-w) solid var(--border-1);
    color: var(--text-1);
    font-size: var(--fs-md);
    font-weight: 500;
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
    touch-action: manipulation;
  }
  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: color var(--dur-fast) var(--ease);
  }
  .mobile-nav-item:hover,
  .mobile-nav-item:active {
    background: var(--bg-2);
    color: var(--green);
    border-color: var(--border-2);
  }
  .mobile-nav-item:hover svg,
  .mobile-nav-item:active svg {
    color: var(--green);
  }
  .mobile-nav-item[aria-current="page"] {
    background: var(--green-soft);
    color: var(--green);
    border-color: var(--green-border);
    font-weight: 600;
  }
  .mobile-nav-item[aria-current="page"] svg {
    color: var(--green);
  }

  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-5);
    border-top: var(--border-w) solid var(--border-1);
    background: var(--bg-0);
  }
  .mobile-drawer-badge {
    display: flex;
    justify-content: center;
  }
  .mobile-drawer-meta {
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-family: var(--font-mono);
  }
  .mobile-drawer-meta code {
    color: var(--blue);
  }

  /* Grid & Card Adjustments on Mobile */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .footer-bottom .footer-legal-links { flex-wrap: wrap; gap: var(--sp-3); }
  .pgp-panel .pgp-head { flex-direction: column; align-items: flex-start; }
  .service-card { padding: var(--sp-5); }
  .service-detail {
    padding: var(--sp-5) var(--sp-4);
    margin-bottom: var(--sp-4);
  }
  .service-detail .service-detail-head {
    gap: var(--sp-2-5, 10px);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-4);
  }
  .service-detail .service-icon {
    width: 42px;
    height: 42px;
  }
  .service-detail .service-detail-head h2 {
    font-size: var(--fs-lg);
    line-height: 1.25;
  }
  .service-detail .service-detail-head p {
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
  }
  .service-detail-body ul.feature-list {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .feature-list li {
    padding: 12px 14px;
    font-size: var(--fs-sm);
  }

  .cookie-banner {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: var(--sp-3);
    padding: var(--sp-4);
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner-actions button {
    flex: 1;
  }
}
