/* ══════════════════════════════════════════════════════════════
   TERMINAL — A Developer / IT / Network Theme
   ITSWEBER CMS v3.4.0
   Dark. Technical. Precise.
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Core Palette */
  --bg:            #0d1117;
  --bg-raised:     #161b22;
  --bg-surface:    #1c2128;
  --bg-overlay:    #21262d;
  --border:        #30363d;
  --border-light:  #3d444d;
  --border-active: #10b981;

  /* Text */
  --text:          #e6edf3;
  --text-muted:    #9da5b0;
  --text-dim:      #484f58;
  --text-link:     #3b82f6;

  /* Brand / Syntax */
  --green:         #10b981;
  --green-dim:     #059669;
  --green-glow:    rgba(16, 185, 129, 0.15);
  --blue:          #3b82f6;
  --blue-dim:      #2563eb;
  --amber:         #f59e0b;
  --amber-dim:     #d97706;
  --red:           #ef4444;
  --purple:        #a78bfa;
  --cyan:          #22d3ee;
  --pink:          #f472b6;
  --comment:       #6b7280;

  /* Terminal chrome */
  --dot-red:       #ff5f57;
  --dot-yellow:    #febc2e;
  --dot-green:     #28c840;
  --titlebar:      #1c2128;
  --titlebar-text: #7d8590;

  /* Typography */
  --font-mono:    Consolas, 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: var(--font-mono);

  /* Sizing */
  --content-width: 860px;
  --wide-width:    1200px;
  --full-width:    1400px;

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

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(48,54,61,0.5);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(16,185,129,0.2);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;

  /* Glows */
  --glow-green:    0 0 20px rgba(16, 185, 129, 0.25), 0 0 60px rgba(16, 185, 129, 0.08);
  --glow-green-sm: 0 0 8px rgba(16, 185, 129, 0.2);
  --glow-blue:     0 0 20px rgba(59, 130, 246, 0.25), 0 0 60px rgba(59, 130, 246, 0.08);

  /* Semantic aliases for CMS compatibility */
  --bg-page:       var(--bg);
  --bg-header:     rgba(13, 17, 23, 0.85);
  --text-primary:  var(--text);
  --text-secondary: var(--text-muted);
  --text-light:    var(--text-dim);
  --accent:        var(--green);
  --accent-hover:  var(--green-dim);

  /* ── Section Color Scheme Tokens (PFLICHT) ── */
  --scheme-primary-bg:    var(--green);
  --scheme-primary-text:  var(--bg);
  --scheme-primary-muted: rgba(13,17,23,0.8);
  --scheme-alt-bg:        var(--bg-raised);
  --scheme-alt-text:      var(--text);
  --scheme-dark-bg:       var(--bg);
  --scheme-dark-text:     var(--text);
  --scheme-dark-muted:    var(--text-muted);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Background dot pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--green-dim); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

picture { display: contents; }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--green);
  color: var(--bg);
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}
.skip-link:focus { top: var(--space-sm); }

/* ── Containers ────────────────────────────────────────────── */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}
.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Cursor Blink Animation ────────────────────────────────── */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
.cursor--wide {
  width: 0.6em;
  height: 1.15em;
  opacity: 0.7;
}

/* ── Terminal Window Chrome ────────────────────────────────── */
.terminal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}

.terminal__titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: var(--titlebar);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.terminal__dots {
  display: flex;
  gap: 6px;
}
.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal__dot--red    { background: var(--dot-red); }
.terminal__dot--yellow { background: var(--dot-yellow); }
.terminal__dot--green  { background: var(--dot-green); }

.terminal__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--titlebar-text);
  letter-spacing: 0.02em;
}

.terminal__tabs {
  display: flex;
  gap: 0;
}
.terminal__tab {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--duration), color var(--duration);
}
.terminal__tab:first-child { border-left: 1px solid var(--border); }
.terminal__tab:hover { background: var(--bg-overlay); color: var(--text); }
.terminal__tab--active {
  background: var(--bg-raised);
  color: var(--text);
  border-bottom: 2px solid var(--green);
}

.terminal__body {
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  min-height: 120px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: background var(--duration), box-shadow var(--duration);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

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

/* Logo: Terminal_ with cursor */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-logo:hover { color: var(--green); }
.site-logo img { height: 32px; width: auto; }
.logo-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

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

/* Navigation: file-tab style */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > .nav-item { position: relative; }
.nav-list > .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid transparent;
  transition: color var(--duration), border-color var(--duration), background var(--duration);
  height: 56px;
  white-space: nowrap;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  min-height: 44px;
  line-height: 28px;
}
.nav-list > .nav-item > a:hover,
.nav-list > .nav-item.is-open > a {
  color: var(--text);
  border-bottom-color: var(--border-light);
  background: rgba(16, 185, 129, 0.04);
}
.nav-list > .nav-item > a.active {
  color: var(--text);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.nav-list > .nav-item > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}
.nav-list a::after { display: none; }

/* Nav icon prefix (file type indicator) */
.nav-icon {
  font-size: 0.7rem;
  opacity: 0.6;
  color: var(--text-dim);
}

/* Dropdown Navigation */
.nav-item.has-children > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-chevron, .nav-flyout-chevron { transition: transform var(--duration) var(--ease); }
.nav-item.has-children.is-open > a .nav-chevron { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
  z-index: 50;
  list-style: none;
}
.sub-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.nav-item.has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  border-left: 3px solid transparent;
  transition: background var(--duration), color var(--duration), border-color var(--duration);
  min-height: 44px;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover {
  background: rgba(16, 185, 129, 0.06);
  color: var(--green);
  border-left-color: var(--green);
}
.sub-menu a.active {
  color: var(--green);
  border-left-color: var(--green);
}
.sub-menu .sub-menu { top: -0.5rem; left: 100%; }

/* Invisible bridge to prevent hover gap close */
.nav-item.has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 12px;
}

/* Flyout Panel (Level 3) */
.sub-menu--flyout {
  top: -8px;
  left: calc(100% + 4px);
  transform: translateX(-8px);
}
.sub-menu--flyout::before {
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.nav-item.has-children.is-open > .sub-menu--flyout {
  transform: translateX(0);
}
.sub-menu--flyout::after {
  content: '';
  position: absolute;
  top: 16px;
  left: -6px;
  width: 12px; height: 12px;
  background: var(--bg-surface);
  transform: rotate(45deg);
  box-shadow: -2px 2px 4px rgba(0,0,0,0.15);
  z-index: -1;
}

/* Focus visible (keyboard) */
.nav-list a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header Search */
.header-search { position: relative; }
.header-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration);
}
.header-search-toggle:hover { color: var(--green); }

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  min-width: 280px;
}
.header-search-dropdown form { display: flex; gap: var(--space-xs); }
.header-search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  outline: none;
}
.header-search-dropdown input[type="search"]:focus { border-color: var(--green); }
.header-search-dropdown button[type="submit"] {
  background: var(--green);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Theme Toggle (hidden by default on dark theme, but CMS may enable it) */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--duration);
}
.theme-toggle:hover { background: var(--bg-overlay); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

/* Header CTA: "$ git clone" style */
.header-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bg);
  background: var(--green);
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--duration), box-shadow var(--duration);
  white-space: nowrap;
  text-decoration: none;
}
.header-cta:hover {
  background: var(--green-dim);
  box-shadow: var(--glow-green-sm);
  color: var(--bg);
}
.header-cta svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
  padding: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════ */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--text-dim);
}
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--green); }
.breadcrumb-current { font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   PAGE SECTIONS (Page Builder)
   ══════════════════════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
}

.page-section {
  padding: var(--space-3xl) 0;
}
.page-section:nth-child(even) {
  background: var(--bg-raised);
}
.page-section--title-only {
  padding: var(--space-2xl) 0 var(--space-lg);
}

/* Section labels: monospace comment style */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--comment);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.page-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.page-content { font-size: 1rem; line-height: 1.7; }
.page-content p { margin-bottom: var(--space-md); }

/* Section heading syntax highlighting */
.section-heading {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xl);
  line-height: 1.3;
}
.section-heading .syntax-keyword { color: var(--blue); }
.section-heading .syntax-string  { color: var(--amber); }
.section-heading .syntax-fn      { color: var(--green); }
.section-heading .syntax-comment { color: var(--comment); }
.section-heading .syntax-var     { color: var(--purple); }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: var(--bg);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,0.9) 0%, rgba(13,17,23,0.6) 50%, rgba(22,27,34,0.8) 100%);
  z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; max-width: var(--content-width); margin: 0 auto; }

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.hero-title em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}
.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  line-height: 1.7;
}
.hero-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--comment);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Buttons */
.btn, .btn-hero, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}
.btn:hover, .btn-hero:hover, .btn-primary:hover {
  background: var(--green-dim);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn-cta { background: var(--green); color: var(--bg); }
.btn-cta:hover { background: var(--green-dim); text-decoration: none; color: var(--bg); }

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Hero layout modes */
.hero--text-white .hero-title,
.hero--text-white .hero-subtitle { color: white; }
.hero--text-white .hero-subtitle { color: rgba(255,255,255,0.7); }
.hero--hsize-sm .hero-title { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.hero--hsize-lg .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero--hweight-bold .hero-title { font-weight: 700; }
.hero--hweight-light .hero-title { font-weight: 400; }
.hero--body-lg .hero-subtitle { font-size: 1.15rem; }
.hero--align-center .container { text-align: center; }
.hero--align-center .hero-subtitle { margin-left: auto; margin-right: auto; }
.hero--align-center .hero-ctas { justify-content: center; }
.hero--tall { min-height: 90vh; }
.hero--cta-stacked .hero-ctas { flex-direction: column; align-items: flex-start; }

/* Hero overlay strengths */
.hero--overlay-light::before  { background: rgba(0,0,0,0.20); }
.hero--overlay-medium::before { background: rgba(0,0,0,0.45); }
.hero--overlay-heavy::before  { background: rgba(0,0,0,0.65); }
.hero--has-bg .hero-title,
.hero--has-bg .hero-subtitle { color: white; }
.hero--has-bg .hero-subtitle { color: rgba(255,255,255,0.7); }
.hero--has-bg::before { background: rgba(0,0,0,0.5); }

/* Split layout */
.hero--layout-split .hero-split-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.hero--layout-split .hero-text { flex: 1; }
.hero-portrait-wrap { flex: 0 0 auto; }
.hero-portrait { max-width: 300px; border-radius: var(--radius-lg); }
.hero-portrait-inline { margin-bottom: var(--space-lg); }
.hero--portrait-rounded .hero-portrait { border-radius: 50%; }

/* Boxed layout */
.hero--layout-boxed .container {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  background-size: cover;
  background-position: center;
}

/* Hero Video Background */
.hero-section .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero-section.hero--video-contain .hero-video-bg { object-fit: contain; }
.hero-section.hero--has-video > .container { position: relative; z-index: 2; }
.hero-section.hero--has-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.hero-section.hero--has-video.hero--overlay-light::after  { background: rgba(0,0,0,0.25); }
.hero-section.hero--has-video.hero--overlay-medium::after { background: rgba(0,0,0,0.5); }
.hero-section.hero--has-video.hero--overlay-heavy::after  { background: rgba(0,0,0,0.7); }

/* Hero Inline Video */
.hero-video-inline-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
  aspect-ratio: 16 / 9;
}
.hero-video-inline-wrap--center {
  display: block;
  margin: 2rem auto 0;
  width: min(540px, 90%);
}
.hero-video-inline {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero--video-inline .hero-split-inner .hero-video-inline-wrap {
  flex: 0 0 auto;
  width: clamp(200px, 28vw, 360px);
  aspect-ratio: 16 / 9;
}
.hero--video-size-sm   .hero-video-inline-wrap--center { width: min(380px, 90%); }
.hero--video-size-md   .hero-video-inline-wrap--center { width: min(560px, 90%); }
.hero--video-size-lg   .hero-video-inline-wrap--center { width: min(820px, 94%); }
.hero--video-size-full .hero-video-inline-wrap--center { width: 100%; }

/* ── Terminal Hero Extras ─────────────────────────────────── */
/* Typing animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.type-writer {
  overflow: hidden;
  white-space: nowrap;
  border-right: none;
  animation: typing 2.5s steps(40) 0.5s forwards;
  width: 0;
  display: inline-block;
}

/* Hero terminal prompt */
.hero__prompt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.hero__prompt-symbol {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.hero__typed-text {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.5;
}

/* Hero output lines */
.hero__output {
  margin-top: var(--space-lg);
  padding-left: var(--space-xl);
}
.hero__output-line {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}
.hero__output-line .check { color: var(--green); }
.hero__output-line .arrow { color: var(--blue); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__output-line {
  opacity: 0;
  animation: fadeInUp 0.4s var(--ease) forwards;
}
.hero__output-line:nth-child(1) { animation-delay: 2.8s; }
.hero__output-line:nth-child(2) { animation-delay: 3.2s; }
.hero__output-line:nth-child(3) { animation-delay: 3.6s; }
.hero__output-line:nth-child(4) { animation-delay: 4.0s; }
.hero__output-line:nth-child(5) { animation-delay: 4.4s; }

/* Hero metadata badges */
.hero__meta {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero__meta-item .value {
  color: var(--green);
  font-weight: 600;
}

/* Hero stats (reused from hero meta) */
.hero-stats {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Hero search (optional, for compatibility) */
.hero-search {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  max-width: 600px;
}
.hero-search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
}
.hero-search-input:focus { border-color: var(--green); box-shadow: var(--glow-green-sm); }
.hero-search-select {
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-mono);
}
.hero-search-btn {
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.hero-search-btn:hover { background: var(--green-dim); }

/* ══════════════════════════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════════════════════════ */
.intro-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.intro-section .container { max-width: var(--content-width); }
.intro-section h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}
.intro-section p,
.intro-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}
.intro-section .section-subtitle,
.cta-section .section-subtitle { max-width: 680px; margin-left: auto; margin-right: auto; }
.intro-cta { margin-top: 2rem; }

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION — package.json style
   ══════════════════════════════════════════════════════════════ */
.features-section { padding: var(--space-3xl) 0; }
.features-section h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; margin-bottom: 1rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0;
  transition: opacity var(--duration);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green);
}
.feature-card:hover::before { opacity: 1; }

.feature-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.feature-card-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--space-md);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--green); font-family: var(--font-mono); }
.feature-card-link:hover { text-decoration: underline; }

/* package.json dependency list style */
.feature-list {
  list-style: none;
}
.feature-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .dep-name { color: var(--text); }
.feature-list .dep-version { color: var(--green); font-size: 0.75rem; }

/* Feature card with terminal titlebar */
.feature-card .terminal__titlebar + .terminal__body {
  padding: var(--space-lg);
  font-size: 0.82rem;
}
.feature-card__title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.feature-card__title .icon { font-size: 1.1rem; }

/* Feature-Card im Terminal-Chrome: kein doppelter Rahmen, dediziertes Innen-Padding.
   Das aeussere .terminal liefert bereits Border/Background – die innere .feature-card
   darf nicht nochmal "Box" sein, sondern nur Content mit Luft zum Chrome. */
.terminal .terminal__body .feature-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--space-lg);
  overflow: visible;
}
.terminal .terminal__body .feature-card::before { display: none; }
.terminal .terminal__body .feature-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════ */
.service-cards-section { padding: var(--space-3xl) 0; }
.scs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.scs-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.scs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0;
  transition: opacity var(--duration);
}
.scs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--green); }
.scs-card:hover::before { opacity: 1; }
.scs-card-visual {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.scs-card-title { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; margin-bottom: var(--space-md); }
.scs-card-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION — Terminal prompt style
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text);
  margin-bottom: var(--space-md);
}
.cta-section p,
.cta-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn,
.cta-section .btn-hero {
  background: var(--green);
  color: var(--bg);
}
.cta-section .btn:hover,
.cta-section .btn-hero:hover {
  background: var(--green-dim);
  box-shadow: var(--glow-green);
}
.cta-section > .container { position: relative; z-index: 1; }
.cta--has-bg { background-size: cover; background-position: center; position: relative; }
.cta--has-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 0; }
.cta--has-bg > .container { position: relative; z-index: 1; }
.cta--has-bg h2, .cta--has-bg .cta-text, .cta--has-bg .cta-eyebrow { color: #fff; }
.cta--overlay-light::after { background: rgba(0,0,0,0.3); }
.cta--overlay-medium::after { background: rgba(0,0,0,0.5); }
.cta--overlay-heavy::after { background: rgba(0,0,0,0.7); }
.cta-eyebrow { display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; color: var(--comment); }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CTA terminal input line */
.cta__input-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 1rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.cta__input-line:hover { border-color: var(--green); }
.cta__input-line:focus-within { border-color: var(--green); box-shadow: var(--glow-green-sm); }
.cta__prompt { color: var(--green); font-weight: 700; flex-shrink: 0; }
.cta__command { color: var(--text); flex: 1; white-space: nowrap; }
.cta__hint { font-family: var(--font-mono); font-size: 0.75rem; color: var(--comment); }

/* ══════════════════════════════════════════════════════════════
   BLOG SECTION
   ══════════════════════════════════════════════════════════════ */
.blog-section { padding: var(--space-3xl) 0; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.blog-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.blog-category-link:hover,
.blog-category-link.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}
.blog-category-count { font-size: 0.6875rem; opacity: 0.7; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* Blog card as terminal window */
.blog-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image-link img,
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-image-link img,
.blog-card:hover .blog-card-image { transform: scale(1.05); }

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.blog-card-placeholder svg { width: 40px; height: 40px; }

.blog-card-body { padding: var(--space-lg); }
.blog-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: var(--space-sm);
  display: inline-block;
}
.blog-card-body h2 { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: var(--space-sm); }
.blog-card-body h2 a { color: var(--text); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--green); }
.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Post card file-type badges */
.post-card__ext {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}
.post-card__ext--md { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.post-card__ext--js { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.post-card__ext--py { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.post-card__ext--php { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.post-card__ext--css { background: rgba(244, 114, 182, 0.15); color: var(--pink); }

/* Tags */
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration), color var(--duration);
}
.tag:hover { border-color: var(--green); color: var(--green); }

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.pagination-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.pagination-link:hover { border-color: var(--green); color: var(--green); }
.pagination-link.disabled { opacity: 0.4; pointer-events: none; }
.pagination-info { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted); }

.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; justify-content: center; }
.pagination-btn { padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.875rem; }
.pagination-btn:hover { background: var(--bg-overlay); text-decoration: none; }
.pagination-btn.active { background: var(--green); color: var(--bg); border-color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   BLOG SINGLE — Article
   ══════════════════════════════════════════════════════════════ */
.blog-article { padding: var(--space-2xl) 0 var(--space-3xl); }
.article-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
}
.article-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.article-category {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-size: 0.6875rem;
}
.article-reading-time { display: flex; align-items: center; gap: 0.25rem; }

/* Table of Contents */
.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.article-toc-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.article-toc-list { padding-left: var(--space-lg); margin: 0; list-style: disc; }
.article-toc-list li { margin-bottom: var(--space-xs); font-size: 0.875rem; }
.article-toc-list a { color: var(--text-muted); }
.article-toc-list a:hover { color: var(--green); }
.toc-level-3 { padding-left: var(--space-md); }

/* Article Content */
.article-content { font-size: 1rem; line-height: 1.8; }
.article-content h2 { font-size: 1.5rem; margin: var(--space-2xl) 0 var(--space-md); }
.article-content h3 { font-size: 1.25rem; margin: var(--space-xl) 0 var(--space-md); }
.article-content p { margin-bottom: var(--space-lg); }
.article-content ul, .article-content ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); }
.article-content li { margin-bottom: var(--space-sm); }
.article-content blockquote {
  border-left: 3px solid var(--green);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content pre {
  background: var(--bg-surface);
  color: var(--text);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-surface);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.article-content pre code { background: none; padding: 0; border: none; }
.article-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

/* Related Posts */
.article-related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}
.article-related-title { font-family: var(--font-mono); font-size: 1.25rem; margin-bottom: var(--space-lg); }
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}
.related-post-card {
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.related-post-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.related-post-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-post-img { width: 100%; height: 100%; object-fit: cover; }
.related-post-body { padding: var(--space-md); }
.related-post-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }
.related-post-body h4 { font-family: var(--font-mono); font-size: 0.95rem; margin-top: var(--space-xs); }

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════
   BLOG PREVIEW SECTION (Homepage)
   ══════════════════════════════════════════════════════════════ */
.blog-preview-section { padding: var(--space-3xl) 0; }
.blog-preview-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; margin-bottom: 1rem; }
.blog-preview-cta { text-align: center; margin-top: 2rem; }

/* ══════════════════════════════════════════════════════════════
   STATS SECTION — git log style
   ══════════════════════════════════════════════════════════════ */
.stats-section { padding: var(--space-3xl) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stats-item { padding: var(--space-md); }
.stats-item-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stats-item-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Git log entry style (Terminal-specific stats) */
.git-log-entry {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.git-log-entry:last-child { border-bottom: none; }
.git-hash { color: var(--amber); font-weight: 600; flex-shrink: 0; min-width: 60px; }
.git-message { color: var(--text); flex: 1; }
.git-stat { color: var(--green); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; min-width: 80px; text-align: right; }
.git-branch { color: var(--cyan); font-size: 0.75rem; flex-shrink: 0; }
.git-prompt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-md); }
.git-prompt .cmd { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   CODE SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.showcase-section,
.code-showcase-section { padding: var(--space-3xl) 0; }

.code-block {
  padding: var(--space-lg) var(--space-xl);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  counter-reset: line;
}
.code-line {
  display: flex;
  gap: var(--space-md);
  padding: 1px 0;
  transition: background var(--duration);
}
.code-line:hover { background: rgba(16, 185, 129, 0.04); }
.code-line__number {
  color: var(--text-dim);
  text-align: right;
  min-width: 30px;
  flex-shrink: 0;
  user-select: none;
}
.code-line__content { flex: 1; white-space: pre; }

/* Syntax colors */
.syn-keyword  { color: var(--blue); font-weight: 500; }
.syn-fn       { color: var(--purple); }
.syn-string   { color: var(--amber); }
.syn-comment  { color: var(--comment); font-style: italic; }
.syn-prop     { color: var(--cyan); }
.syn-value    { color: var(--green); }
.syn-tag      { color: var(--red); }
.syn-attr     { color: var(--amber); }
.syn-number   { color: var(--pink); }
.syn-punct    { color: var(--text-dim); }
.syn-selector { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   HIGHLIGHT GRID
   ══════════════════════════════════════════════════════════════ */
.highlight-grid-section { padding: var(--space-3xl) 0; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.highlight-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.highlight-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.highlight-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
}
.highlight-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.highlight-card:hover .highlight-card-image img { transform: scale(1.05); }
.highlight-card-body { padding: 0; }
.highlight-card-icon { margin-bottom: var(--space-sm); color: var(--green); }
.highlight-card h3 { font-family: var(--font-mono); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.highlight-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   TOPIC CARDS
   ══════════════════════════════════════════════════════════════ */
.topic-cards-section { padding: var(--space-3xl) 0; }
.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.topic-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.topic-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: var(--green); color: var(--text); }
.topic-card-icon { margin-bottom: var(--space-md); color: var(--green); }
.topic-card-title { font-family: var(--font-mono); font-size: 1rem; margin-bottom: var(--space-sm); }
.topic-card-text { font-size: 0.85rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   FEATURE SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.feature-showcase-section { padding: var(--space-3xl) 0; }
.fss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.fss-grid.reverse { direction: rtl; }
.fss-grid.reverse > * { direction: ltr; }
.fss-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.fss-card img { width: 100%; height: auto; }
.fss-title { font-family: var(--font-mono); font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: var(--space-md); }
.fss-card-text { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-md); }

/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════ */
.process-steps-section { padding: var(--space-3xl) 0; }
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}
.process-step { text-align: center; counter-increment: step; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-sm);
}
.process-step-title { font-family: var(--font-mono); font-size: 1rem; margin-bottom: var(--space-sm); }
.process-step-text { font-size: 0.9rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   TEAM SECTION
   ══════════════════════════════════════════════════════════════ */
.team-section { padding: var(--space-3xl) 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
}
.team-card { text-align: center; }
.team-card-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 2px solid var(--border);
}
.team-card-image img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-family: var(--font-mono); font-size: 1rem; margin-bottom: var(--space-xs); }
.team-card-role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card-bio { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-sm); }

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.testimonials-section { padding: var(--space-3xl) 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--green);
  opacity: 0.5;
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  line-height: 1;
}
.testimonial-quote-mark { display: none; }
.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.testimonial-stars { margin-bottom: var(--space-sm); color: var(--amber); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar--initials,
.testimonial-avatar-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.22);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.45);
  flex-shrink: 0;
}
.testimonial-author-name { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; color: var(--text); }
.testimonial-author-role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   TRUST SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.trust-showcase-section { padding: var(--space-3xl) 0; }
.tss-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
  align-items: center;
}
.tss-card {
  opacity: 0.4;
  transition: opacity var(--duration) var(--ease);
  max-height: 48px;
  width: auto;
  filter: grayscale(100%);
}
.tss-card:hover { opacity: 1; filter: grayscale(0%); }

/* ══════════════════════════════════════════════════════════════
   RATING / BEFORE-AFTER / VIDEO / SOCIAL EMBED / HTML
   ══════════════════════════════════════════════════════════════ */
.rating-highlight-section { padding: var(--space-3xl) 0; }
.before-after-section { padding: var(--space-3xl) 0; }
.video-section { padding: var(--space-3xl) 0; }
.social-embed-section { padding: var(--space-3xl) 0; }
.html-section { padding: var(--space-3xl) 0; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ══════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════ */
.gallery-section,
.gallery-album-section { padding: var(--space-3xl) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.gallery-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.gallery-card-image { aspect-ratio: 4/3; overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-card:hover .gallery-card-image img { transform: scale(1.05); }
.gallery-card-body { padding: var(--space-md); }
.gallery-card-placeholder { height: 220px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; }
.gallery-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; color: var(--text-dim); }
.gallery-card-info { padding: 1rem; }
.gallery-card-info h3 { font-family: var(--font-mono); font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-card-info p { font-size: 0.875rem; color: var(--text-muted); }

.gallery-preview-section { padding: var(--space-3xl) 0; }
.gallery-preview-section h2 { text-align: center; margin-bottom: 2.5rem; }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gallery-preview-card { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; position: relative; text-decoration: none; background: var(--bg-surface); }
.gallery-preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-preview-card:hover img { transform: scale(1.05); }
.gallery-preview-placeholder { width: 100%; height: 100%; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 2rem; }
.gallery-preview-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.gallery-preview-card span { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-preview-cta { text-align: center; }

/* Gallery album images */
.gallery-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.gallery-image-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  margin: 0;
}
.gallery-image-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-image-item:hover img,
.gallery-image-item:focus img { transform: scale(1.05); }
.gallery-image-item:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.gallery-image-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 2rem 0.75rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.gallery-image-item:hover figcaption,
.gallery-image-item:focus figcaption { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════════════════════════ */
.events-section { padding: var(--space-3xl) 0; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.event-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease);
}
.event-card:hover { box-shadow: var(--shadow-card-hover); }
.event-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card picture { display: block; }
.event-card picture img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.event-card-body h3 { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.event-card-body h3 a { color: var(--text); }
.event-card-body h3 a:hover { color: var(--green); text-decoration: none; }
.event-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.event-card--featured { border-color: var(--green); }
.event-card--featured .event-card-body h3 a { color: var(--green); }
.event-card--postponed { border-color: var(--amber); }
.event-card--cancelled { opacity: 0.7; border-color: var(--red); }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.event-date, .event-time, .event-location { white-space: nowrap; }
.event-category { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); }
.event-category a { color: inherit; }
.event-category a:hover { text-decoration: underline; }
.event-status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 3px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-status-badge--postponed { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.event-status-badge--cancelled { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.event-card-link { margin-top: auto; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--green); }
.event-card-link:hover { text-decoration: underline; }
.event-card-placeholder { width: 100%; height: 200px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.event-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.events-header { margin-bottom: 2rem; }
.events-category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.events-category-filter a { padding: 0.3rem 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; transition: background 0.15s var(--ease), color 0.15s; }
.events-category-filter a:hover, .events-category-filter a.active { background: var(--green); color: var(--bg); border-color: var(--green); text-decoration: none; }
.events-featured { margin-bottom: 3rem; padding: 2rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.events-featured-title { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.events-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.events-all-title { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }

.events-preview-section { padding: var(--space-3xl) 0; }
.events-preview-section h2 { text-align: center; margin-bottom: 2rem; }
.events-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.events-preview-cta { text-align: center; margin-top: 2rem; }

/* Event detail */
.event-detail { padding: 4rem 0; }
.event-status-notice { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 2rem; font-size: 0.95rem; }
.event-status-notice--postponed { background: rgba(245, 158, 11, 0.1); color: var(--amber); border-left: 3px solid var(--amber); }
.event-status-notice--cancelled { background: rgba(239, 68, 68, 0.1); color: var(--red); border-left: 3px solid var(--red); }
.event-detail-header { margin-bottom: 2rem; }
.event-detail-header h1 { font-family: var(--font-mono); font-size: 1.75rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
.event-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.event-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.meta-icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--green); opacity: 0.7; }
.meta-icon svg { width: 100%; height: 100%; }
.event-detail-image { margin-bottom: 2rem; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.event-detail-image img, .event-detail-image picture img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.event-detail-image picture { display: block; }
.event-detail-excerpt { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; }
.event-detail-content { margin-bottom: 2rem; }
.event-detail-content.prose { line-height: 1.75; }
.event-detail-content.prose p { margin-bottom: 1rem; }
.event-detail-content.prose h2, .event-detail-content.prose h3 { margin: 1.5rem 0 0.75rem; }
.event-detail-footer { padding-top: 2rem; border-top: 1px solid var(--border); }
.btn-back { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.875rem; }
.btn-back:hover { color: var(--green); }

/* Date block */
.event-date-block {
  text-align: center;
  min-width: 64px;
  padding: var(--space-md);
  background: var(--green);
  color: var(--bg);
  border-radius: var(--radius-md);
}
.event-date-day { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-month { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact-section { padding: var(--space-3xl) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}
.contact-form .form-group { margin-bottom: var(--space-md); }
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: border-color var(--duration), box-shadow var(--duration);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--green);
  box-shadow: var(--glow-green-sm);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.contact-info-card h3 { font-family: var(--font-mono); margin-bottom: var(--space-md); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}
.contact-info-item svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.contact-info { margin-top: 2rem; }
.contact-info p { margin-bottom: 0.5rem; }

/* ══════════════════════════════════════════════════════════════
   DOWNLOADS
   ══════════════════════════════════════════════════════════════ */
.downloads-section { padding: var(--space-3xl) 0; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.download-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration);
}
.download-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--green); }
.download-card h3 { font-family: var(--font-mono); font-size: 1rem; margin-bottom: var(--space-sm); }
.download-card h3 a { color: var(--text); text-decoration: none; }
.download-card h3 a:hover { color: var(--green); }
.download-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════════════════════════ */
.search-section { padding: var(--space-3xl) 0; }
.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-surface);
  color: var(--text);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--green); box-shadow: var(--glow-green-sm); }

.search-results-list { list-style: none; padding: 0; }
.search-result-item { padding: var(--space-lg) 0; border-bottom: 1px solid var(--border); }
.search-result-item h2 { font-family: var(--font-mono); font-size: 1.1rem; margin-bottom: var(--space-xs); }
.search-result-item h2 a { color: var(--text); }
.search-result-item h2 a:hover { color: var(--green); }
.search-result-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.error-page, .error-section { text-align: center; padding: var(--space-3xl) 0; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--green);
  opacity: 0.15;
  line-height: 1;
}
.error-page h1 { font-family: var(--font-mono); font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: var(--space-md); }
.error-page p { color: var(--text-muted); margin-bottom: var(--space-xl); }
.error-message { font-size: 1.1rem; color: var(--text-muted); margin: 1rem 0 2rem; }

/* ══════════════════════════════════════════════════════════════
   MAINTENANCE PAGE
   ══════════════════════════════════════════════════════════════ */
.maintenance-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg);
}
.maintenance-page h1 { font-family: var(--font-mono); font-size: 1.75rem; margin-bottom: var(--space-md); }
.maintenance-page p { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   FOOTER — Terminal style
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}
.site-footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

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

.footer-brand { min-width: 200px; }
.footer-brand-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-brand-logo img { height: 32px; width: auto; }
.footer-brand-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
  transform: translateY(-2px);
}
.footer-social a svg { width: 18px; height: 18px; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--comment);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-nav { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration), padding-left var(--duration);
}
.footer-nav a:hover { color: var(--green); padding-left: 4px; }
.footer-nav a::before { content: '~/'; color: var(--text-dim); margin-right: 2px; }

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
.footer-contact-line a { color: var(--text-muted); }
.footer-contact-line a:hover { color: var(--green); }
.footer-hours {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.7;
  margin-top: var(--space-sm);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--comment);
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-copyright::before { content: '// '; color: var(--text-dim); }
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); transition: color var(--duration); }
.footer-legal a:hover { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   STATUS BAR (Terminal bottom bar)
   ══════════════════════════════════════════════════════════════ */
.statusbar {
  position: relative;
  z-index: 1;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 4px var(--space-lg);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.statusbar__left,
.statusbar__right {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.statusbar__item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.statusbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.statusbar__dot--warn { background: var(--amber); }

/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.vis,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Green line left accent */
.accent-line {
  position: relative;
  padding-left: var(--space-lg);
}
.accent-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   MODULE INTRO / UTILITY
   ══════════════════════════════════════════════════════════════ */
.module-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: var(--content-width);
}
.text-muted { color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Consent banner */
.consent-reopen { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.7rem; }
.consent-reopen:hover { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   COLOR SCHEME MODIFIERS (for page builder sections)
   ══════════════════════════════════════════════════════════════ */
/* === Section Color Schemes (Unified v3.4) === */
.section--scheme-primary { background: var(--scheme-primary-bg); color: var(--scheme-primary-text); }
.section--scheme-primary h2,
.section--scheme-primary h3 { color: var(--scheme-primary-text); }
.section--scheme-primary p,
.section--scheme-primary .section-subtitle,
.section--scheme-primary .intro-text { color: var(--scheme-primary-muted); }
.section--scheme-primary .testimonial-card,
.section--scheme-primary .feature-card,
.section--scheme-primary .highlight-card { color: var(--text); }
.section--scheme-primary .testimonial-text,
.section--scheme-primary .feature-card p { color: var(--text-muted); }
.section--scheme-primary .testimonial-author-name { color: var(--text); }
.section--scheme-primary .testimonial-author-role { color: var(--text-muted); }

.section--scheme-alt { background: var(--scheme-alt-bg); color: var(--scheme-alt-text); }

.section--scheme-dark { background: var(--scheme-dark-bg); color: var(--scheme-dark-text); }
.section--scheme-dark h2,
.section--scheme-dark h3,
.section--scheme-dark p { color: var(--scheme-dark-text); }
.section--scheme-dark .testimonial-card,
.section--scheme-dark .feature-card { color: var(--scheme-dark-text); }

.section--scheme-none,
.section--scheme-transparent { background: transparent; }
.section--text-light { color: var(--text); }
.section--text-light .section-title,
.section--text-light h2,
.section--text-light h3 { color: var(--text); }
.section--text-dark { color: var(--bg); }

/* ══════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX (overrides for dark theme)
   ══════════════════════════════════════════════════════════════ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open { opacity: 1; pointer-events: all; }
.gallery-lightbox-inner {
  position: relative;
  max-width: min(90vw, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4rem;
}
.gallery-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: var(--shadow-lg);
}
.gallery-lightbox-info { margin-top: 0.875rem; text-align: center; min-height: 2.5rem; }
.gallery-lightbox-caption { color: rgba(255, 255, 255, 0.9); font-family: var(--font-mono); font-size: 0.875rem; margin: 0; }
.gallery-lightbox-counter { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.75rem; margin-top: 0.25rem; }
.gallery-lightbox-close {
  position: fixed;
  top: 1.125rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
  z-index: 9001;
}
.gallery-lightbox-close:hover, .gallery-lightbox-close:focus { color: #fff; outline: none; }
.gallery-lightbox-prev, .gallery-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.375rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 9001;
  user-select: none;
}
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
.gallery-lightbox-prev:hover, .gallery-lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }
.gallery-lightbox-prev:disabled, .gallery-lightbox-next:disabled { opacity: 0.2; cursor: default; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid > *:last-child:nth-child(odd) { grid-column: span 2; }
  .fss-grid { grid-template-columns: 1fr; }
  .fss-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list > .nav-item { display: block; }
  .nav-list > .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    min-height: 48px;
    border-radius: 0;
    background: none;
  }
  .nav-list > .nav-item > a:hover { background: rgba(16, 185, 129, 0.06); }
  .nav-list > .nav-item > a.active {
    border-left-color: var(--green);
    border-bottom: 1px solid var(--border);
    padding-left: 12px;
  }
  .nav-list > .nav-item > a.active::after { display: none; }
  .nav-list a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-search { display: none; }

  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
  }
  .sub-menu::before, .sub-menu::after { display: none; }
  .nav-item.has-children.is-open > .sub-menu { display: block; }
  .sub-menu .nav-item > a { padding: 10px 20px 10px 40px; border-left: none; border-bottom: 1px solid var(--border); }
  .sub-menu .nav-item > a:hover { background: rgba(16, 185, 129, 0.06); color: var(--green); border-left: none; }
  .sub-menu--flyout { position: static !important; margin-left: 0; }

  .hero-section { min-height: auto; padding: var(--space-2xl) 0; }
  .hero__meta { gap: var(--space-md); }
  .posts__grid, .features-grid { grid-template-columns: 1fr; }
  .features-grid > *:last-child:nth-child(odd) { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .event-card { grid-template-columns: 1fr; }
  .git-log-entry { flex-wrap: wrap; gap: var(--space-sm); }
  .git-stat { min-width: auto; text-align: left; }
  .hero-video-inline-wrap--center { margin-top: 1.5rem; }
  .hero--video-inline .hero-split-inner { flex-direction: column; align-items: center; }
  .hero--video-inline .hero-split-inner .hero-video-inline-wrap { width: min(480px, 90%); flex: none; }
  .gallery-images-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.375rem; }
  .gallery-lightbox-inner { padding: 0 3rem; }
  .gallery-lightbox-prev { left: 0.25rem; }
  .gallery-lightbox-next { right: 0.25rem; }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }
  .hero__terminal .terminal__body { padding: var(--space-md); font-size: 0.85rem; }
  .hero__typed-text { font-size: 1rem; }
  .terminal__body { padding: var(--space-md); }
  .code-block { padding: var(--space-md); font-size: 0.72rem; }
  .code-line__number { min-width: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .statusbar { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .animate-on-scroll { opacity: 1; transform: none; }
  .hero__output-line { opacity: 1; animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .scroll-to-top, .nav-toggle, .theme-toggle,
  .breadcrumbs, .blog-pagination, .article-toc, .statusbar { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  body::before { display: none; }
  .container, .container-narrow { max-width: 100%; padding: 0; }
  a { color: inherit; text-decoration: underline; }
}
