/* ==========================================================================
   FrostSlope™ — Main Stylesheet
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --color-navy:        #0A1628;
  --color-navy-light:  #1C2A4A;
  --color-navy-mid:    #0F1D32;
  --color-white:       #FFFFFF;
  --color-accent:      #4A6FA5;
  --color-accent-dark: #3A5F95;
  --color-green:       #22C55E;
  --color-green-dark:  #16A34A;
  --color-gray-50:     #F6F7F8;
  --color-gray-100:    #F3F4F6;
  --color-gray-200:    #E5E7EB;
  --color-gray-300:    #CBD5E1;
  --color-gray-400:    #94A3B8;
  --color-gray-500:    #64748B;
  --color-gray-600:    #475569;
  --color-gray-700:    #334155;
  --color-red:         #EF4444;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --header-h:  72px;
  --max-w:     1280px;
  --gap:       24px;

  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-700);
  background: var(--color-white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section-padding {
  padding: 80px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-outline {
  border: 1.5px solid var(--color-gray-400);
  color: var(--color-white);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-header {
  background: var(--color-navy-light);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 10px 15px -3px rgba(28, 42, 74, 0.2), 0 4px 6px -4px rgba(28, 42, 74, 0.2);
}

.btn-header svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.btn-header:hover {
  background: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -3px rgba(28, 42, 74, 0.3), 0 4px 8px -4px rgba(28, 42, 74, 0.3);
}

/* ---------- Tech Tags ---------- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  border-radius: 4px;
  background: rgba(74, 111, 165, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(74, 111, 165, 0.2);
}

.tech-tag--dark {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gray-400);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Section Label ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-desc {
  max-width: 640px;
  color: var(--color-gray-500);
  margin-top: 16px;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ==========================================================================
   1. HEADER — white translucent (Figma)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo svg {
  height: 32px;
  width: auto;
}

.header-logo-sub {
  font-size: 0.6875rem;
  color: var(--color-gray-500);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #0F172A;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  z-index: 999;
}

.nav-overlay.open {
  display: block;
}

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

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
  background: var(--color-navy-light);
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-accent);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
  line-height: 20px;
}

.hero h1 {
  color: var(--color-white);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 72px);
  letter-spacing: -1.8px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-desc {
  color: #D1D5DB;
  font-size: 18px;
  font-weight: 300;
  line-height: 29px;
  margin-top: 20px;
  max-width: 576px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero CTA primary — white bg, navy text (Figma) */
.btn-hero-primary {
  background: var(--color-white);
  color: var(--color-navy-light);
  font-weight: 700;
  font-size: 1rem;
  padding: 17px 32px;
  border-radius: 4px;
}

.btn-hero-primary svg {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
}

.btn-hero-primary:hover {
  background: var(--color-gray-100);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Hero CTA outline — download icon + text (Figma) */
.btn-hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 4px;
}

.btn-hero-outline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-hero-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--color-gray-400);
}

.hero-trust-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero coordinate line (Figma blueprint decoration) */
.hero-coord-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gap);
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
}

.hero-coord-line span {
  position: absolute;
  top: 128px;
  left: -5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Hero visual — image + floating badges (Figma) */
.hero-visual {
  position: relative;
  max-width: 568px;
  width: 100%;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #30436c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.7;
}

.hero-image-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1C2A4A 4.49%, rgba(28, 42, 74, 0) 54.49%, rgba(28, 42, 74, 0) 104.49%);
  pointer-events: none;
}

/* Hero badge — shared */
.hero-badge {
  position: absolute;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

/* Badge: DXF_VIEW — glass card, top right (Figma absolute layout) */
.hero-badge--slope {
  top: 20%;
  right: 10%;
  left: 63.46%;
  bottom: 60.64%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge--slope .hero-badge__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 4px;
  margin: 0;
  position: absolute;
  top: 17px;
  left: 17px;
  right: 17px;
  height: 21px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge--slope .hero-badge__header svg {
  width: 11px;
  height: 7.5px;
  flex-shrink: 0;
}

.hero-badge--slope .hero-badge__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-accent);
}

.hero-badge--slope .hero-badge__value {
  position: absolute;
  top: 46px;
  left: 17px;
  right: 17px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-white);
}

.hero-badge--slope .hero-badge__desc {
  position: absolute;
  top: 78px;
  left: 17px;
  right: 17px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  color: #D1D5DB;
}

/* Badge: TOLERANCJA — dark card, bottom left (Figma) */
.hero-badge--tolerance {
  left: 5%;
  right: 73.52%;
  top: 65.56%;
  bottom: 20%;
  padding: 16px;
  background: rgba(28, 42, 74, 0.8);
  border: 1px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-badge--tolerance .hero-badge__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge--tolerance .hero-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 9999px;
  flex-shrink: 0;
}

.hero-badge--tolerance .hero-badge__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-accent);
}

.hero-badge--tolerance .hero-badge__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-white);
}

/* ==========================================================================
   3. STATS BAR
   ========================================================================== */
.stats-bar {
  background: var(--color-white);
  width: 100%;
  border-bottom: 1px solid #F3F4F6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  height: 132px;
  border-right: 1px solid #F3F4F6;
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 10.5px;
  height: 10.5px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-align: center;
  color: #64748B;
  padding-bottom: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  color: #1C2A4A;
}

/* ==========================================================================
   4. PROBLEMS & SOLUTIONS
   ========================================================================== */
.problems {
  background: #f6f7f8;
}

.problems-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 672px;
  margin-bottom: 48px;
}

.problems-header .section-label {
  margin-bottom: 0;
}

.problems-header h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.problems-header .section-desc {
  max-width: 672px;
  margin-top: 0;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--color-gray-600);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: problem-card;
}

.problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 104px 33px 33px;
  background: var(--color-white);
  border: 1px solid #eef2f6;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  counter-increment: problem-card;
}

.problem-card:hover {
  border-color: #dbe3ee;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.problem-card-counter {
  position: absolute;
  top: 17px;
  right: 17px;
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: #f1f5f9;
}

.problem-card-counter:empty::before {
  content: counter(problem-card, decimal-leading-zero) '.';
}

.problem-card-icon {
  position: absolute;
  top: 33px;
  left: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f6f7f8;
  border-radius: 4px;
  color: #1c2a4a;
}

.problem-card-icon svg {
  width: auto;
  height: auto;
  max-width: 22px;
  max-height: 20px;
}

.problem-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
}

.problem-quote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  font-style: normal;
  color: var(--color-navy);
}

.problem-quote i,
.problem-quote em {
  font-style: italic;
}

.problem-solution {
  margin: 0;
  padding-bottom: 16px;
  color: var(--color-gray-600);
  font-size: 0.875rem;
  line-height: 1.64;
}

.problem-meta {
  position: static;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.33;
  color: var(--color-accent);
}

/* ==========================================================================
   5. PRODUCTS — dark navy card grid (Figma)
   ========================================================================== */
.products {
  background: var(--color-navy-light);
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.products-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.products-header h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-white);
}

.products-header .section-label {
  color: var(--color-accent);
}

.products-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-white);
  white-space: nowrap;
}

.products-header-link svg {
  flex: 0 0 auto;
}

/* Product card grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  min-height: 356px;
  padding: 25px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(74, 111, 165, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.product-card-visual {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  margin-bottom: 24px;
}

.product-card-visual svg,
.product-card-visual img {
  width: 100%;
  max-width: 136px;
  height: auto;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.product-card-placeholder {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
}

.product-card-code {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  line-height: 1.56;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
}

.product-card-name {
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.43;
  color: #9ca3af;
}

.product-card-specs {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-spec {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.33;
  color: #6b7280;
}

.product-card-spec strong {
  color: var(--color-accent);
  font-weight: 400;
}

.product-card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.product-card-corner--tl {
  top: 1px;
  left: 1px;
}

.product-card-corner--br {
  right: 1px;
  bottom: 1px;
}

.product-card-corner svg {
  display: block;
}

/* Legacy tab styles (kept for backwards compat if needed) */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.product-tab-btn {
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gray-500);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  transition: all 0.25s var(--ease);
}

.product-tab-btn:hover {
  color: var(--color-navy);
  border-color: var(--color-gray-300);
}

.product-tab-btn.active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.product-tab-panel {
  display: none;
}

.product-tab-panel.active {
  display: block;
}

.product-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-visual {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.product-visual svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.product-info h3 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.product-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.product-desc {
  color: var(--color-gray-400);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-table td {
  color: var(--color-gray-300);
  font-weight: 500;
}

/* ==========================================================================
   6. WORKFLOW
   ========================================================================== */
.workflow {
  background: #f6f7f8;
  padding: 61px 0 96px;
}

.workflow-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 672px;
  margin-bottom: 96px;
  padding: 19px 23px;
  text-align: left;
}

.workflow-header h2 {
  margin-bottom: 0;
}

.workflow-header .section-desc {
  max-width: 626px;
  margin-top: 19px;
  font-size: 1.125rem;
  line-height: 1.56;
  color: #475569;
}

.workflow-timeline {
  position: relative;
  padding: 22px 24px 34px;
  isolation: isolate;
  max-width: 1244px;
  margin: 0 auto;
}

.workflow-timeline::before,
.workflow-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 64px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  z-index: 0;
}

.workflow-timeline::before {
  background: #f1f5f9;
}

.workflow-timeline::after {
  background: linear-gradient(180deg, #1c2a4a 0%, rgba(28, 42, 74, 0.5) 50%, #1c2a4a 100%);
}

.workflow-timeline {
  counter-reset: workflow-step;
}

.workflow-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 313px;
  counter-increment: workflow-step;
  position: relative;
  z-index: 1;
}

.workflow-step + .workflow-step {
  margin-top: 0;
}

.workflow-step-copy {
  position: relative;
  min-height: 313px;
  display: flex;
  flex-direction: column;
  padding-top: 88px;
}

.workflow-step:nth-child(odd) .workflow-step-copy {
  align-items: flex-end;
  text-align: right;
  padding-right: 80px;
}

.workflow-step:nth-child(even) .workflow-step-copy {
  order: 2;
  align-items: flex-start;
  text-align: left;
  padding-left: 80px;
}

.workflow-step-icon {
  position: absolute;
  top: 0;
  width: 64px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c2a4a;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(28, 42, 74, 0.2), 0 8px 10px -6px rgba(28, 42, 74, 0.2);
}

.workflow-step:nth-child(odd) .workflow-step-icon {
  right: 0;
}

.workflow-step:nth-child(even) .workflow-step-icon {
  left: 0;
}

.workflow-step-icon svg {
  display: block;
  flex: 0 0 auto;
}

.workflow-step-number-side {
  position: relative;
  min-height: 224px;
  display: flex;
  align-items: center;
}

.workflow-step:nth-child(odd) .workflow-step-number-side {
  justify-content: flex-start;
}

.workflow-step:nth-child(even) .workflow-step-number-side {
  order: 1;
  justify-content: flex-end;
}

.workflow-step-number {
  font-family: var(--font-sans);
  font-size: 14rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #ededed;
}

.workflow-step-number:empty::before {
  content: counter(workflow-step, decimal-leading-zero);
}

.workflow-step-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: #ffffff;
  border: 4px solid #1c2a4a;
  border-radius: 999px;
  z-index: 2;
}

.workflow-step:nth-child(odd) .workflow-step-dot {
  left: -56px;
}

.workflow-step:nth-child(even) .workflow-step-dot {
  right: -56px;
}

.workflow-step-title {
  margin-bottom: 16px;
  font-size: 1.875rem;
  line-height: 1.2;
  color: #1c2a4a;
}

.workflow-step-desc {
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.62;
  margin-bottom: 24px;
  max-width: 510px;
}

.workflow-step .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-step:nth-child(odd) .tech-tags {
  justify-content: flex-end;
}

.workflow-step:nth-child(even) .tech-tags {
  justify-content: flex-start;
}

.workflow-step .tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.33;
  text-transform: uppercase;
  color: #1c2a4a;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(28, 42, 74, 0.05);
  border: 2px solid rgba(28, 42, 74, 0.1);
}

/* ==========================================================================
   7. DARK STATS
   ========================================================================== */
.dark-stats {
  position: relative;
  isolation: isolate;
  background: #1c2a4a;
  padding: 50px 0;
}

.dark-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #2d3b59 0.08%, rgba(45, 59, 89, 0) 0.08%),
    linear-gradient(180deg, #2d3b59 0.34%, rgba(45, 59, 89, 0) 0.34%);
  opacity: 0.1;
  z-index: 0;
}

.dark-stats .container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  padding-left: 49px;
  padding-right: 48px;
}

.dark-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 107px;
  align-items: flex-start;
}

.dark-stat-item {
  min-height: 136px;
  padding: 0;
  text-align: left;
}

.dark-stat-item + .dark-stat-item {
  padding-left: 48px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-stat-value {
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.dark-stat-suffix {
  font-family: var(--font-sans);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: #4a6fa5;
}

.dark-stat-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 400;
  color: #4a6fa5;
}

.dark-stat-sublabel {
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
  color: #ffffff;
}

/* ==========================================================================
   8. COMPARISON TABLE
   ========================================================================== */
.comparison {
  background: #f6f7f8;
  padding: 66px 0;
}

.comparison-header {
  text-align: center;
  margin-bottom: 64px;
}

.comparison-header h2 {
  margin-bottom: 8px;
  font-size: 1.875rem;
  line-height: 1.2;
  color: #0f172a;
}

.comparison-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #475569;
}

.comparison-table-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 16px 24px;
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.comparison-table thead th:first-child {
  color: #64748b;
}

.comparison-table thead th:nth-child(2) {
  color: #1c2a4a;
  background: rgba(28, 42, 74, 0.05);
  border-left: 1px solid #f3f4f6;
}

.comparison-table thead th:nth-child(3) {
  color: #94a3b8;
  border-left: 1px solid #f3f4f6;
}

.comparison-table tbody td {
  padding: 16px 24px;
  font-size: 0.875rem;
  line-height: 1.43;
  border-top: 1px solid #f3f4f6;
  text-align: left;
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: #0f172a;
}

.comparison-table tbody td:nth-child(2) {
  background: rgba(28, 42, 74, 0.05);
  border-left: 1px solid rgba(28, 42, 74, 0.1);
  font-family: var(--font-mono);
  font-weight: 700;
  color: #1c2a4a;
}

.comparison-yes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comparison-yes svg {
  flex: 0 0 auto;
}

.comparison-table tbody td:nth-child(3) {
  border-left: 1px solid #f3f4f6;
  color: #64748b;
}

/* ==========================================================================
   9. FINAL CTA
   ========================================================================== */
.final-cta {
  background: #ffffff;
  padding: 96px 0;
}

.final-cta .container {
  max-width: 1000px;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  text-align: center;
}

.final-cta-inner h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  color: #1c2a4a;
}

.final-cta-lead {
  max-width: 672px;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #475569;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 0 24px;
  flex-wrap: wrap;
}

.btn-final-primary {
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 40px;
  background: #1c2a4a;
  color: #ffffff;
  font-size: 1.125rem;
  line-height: 1.56;
  font-weight: 700;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-final-primary svg {
  flex: 0 0 auto;
}

.btn-final-secondary {
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 40px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.btn-final-secondary svg {
  flex: 0 0 auto;
}

/* ==========================================================================
   10. PROJECT FORM PAGE
   ========================================================================== */
.project-form-page {
  background: #fff;
}

.project-form-hero {
  position: relative;
  overflow: hidden;
  background: #1b2a4a;
  padding: calc(var(--header-h) + 64px) 0 64px;
}

.project-form-hero-grid,
.project-form-hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-form-hero-grid {
  background: linear-gradient(90deg, #2d3b59 0.08%, rgba(45, 59, 89, 0) 0.08%),
    linear-gradient(180deg, #2d3b59 0.38%, rgba(45, 59, 89, 0) 0.38%);
  opacity: 0.1;
}

.project-form-hero-fade {
  left: 66.67%;
  background: linear-gradient(270deg, #1b2a4a 0%, rgba(27, 42, 74, 0) 100%);
}

.project-form-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.project-form-hero-label-wrap {
  display: inline-flex;
  align-items: center;
  border-left: 2px solid var(--color-accent);
  padding-left: 16px;
  margin-bottom: 24px;
}

.project-form-hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-form-hero h1 {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--color-white);
}

.project-form-hero p {
  max-width: 672px;
  margin: 32px auto 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 300;
  color: #d1d5db;
}

.project-form-steps {
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 32px 0;
}

.project-form-steps .container {
  position: relative;
}

.project-form-steps-track {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--color-gray-200);
}

.project-form-steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.project-form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
}

.project-form-step-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--color-gray-300);
  background: #fff;
  color: var(--color-gray-400);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.project-form-step-text {
  color: inherit;
}

.project-form-step.is-active {
  color: #1b2a4a;
  font-weight: 700;
}

.project-form-step.is-active .project-form-step-number {
  background: #1b2a4a;
  border: 4px solid var(--color-gray-50);
  color: #fff;
}

.project-form-content {
  padding-top: 64px;
  padding-bottom: 64px;
}

.project-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
}

.project-form-main {
  min-width: 0;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-form-required-note {
  margin-top: -12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-form-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: 24px;
}

.project-form-section-head h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1b2a4a;
}

.project-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-form-fields--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.project-form-field--full {
  grid-column: 1 / -1;
}

.project-form-field span {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  color: var(--color-gray-700);
}

.project-form-field span em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--color-gray-400);
}

.project-form-field .project-form-required-mark {
  color: #dc2626;
}

.project-form-field input,
.project-form-field select {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: var(--color-gray-700);
  font-size: 0.875rem;
  line-height: 1.2143;
}

.project-form-field input::placeholder,
.project-form-field select {
  color: #6b7280;
}

.project-form-field input:focus,
.project-form-field select:focus,
.project-upload-input:focus + .project-upload-label {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.12);
}

.project-upload-dropzone {
  position: relative;
  background: #f8fafc;
  border: 2px dashed rgba(74, 111, 165, 0.35);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.project-upload-dropzone.is-dragover {
  border-color: var(--color-accent);
  background: rgba(239, 246, 255, 0.85);
}

.project-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.project-upload-label {
  min-height: 244px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.project-upload-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.project-upload-title {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 700;
  color: #1b2a4a;
}

.project-upload-subtitle {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--color-gray-500);
}

.project-upload-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(74, 111, 165, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  color: var(--color-accent);
}

.project-upload-files {
  display: grid;
  gap: 12px;
  padding: 0 32px 32px;
}

.project-upload-empty {
  padding: 14px 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.4286;
  text-align: center;
  color: var(--color-gray-500);
  background: rgba(255, 255, 255, 0.6);
}

.project-upload-file-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.project-upload-file-badge {
  min-width: 52px;
  padding: 6px 8px;
  border-radius: 9999px;
  background: rgba(74, 111, 165, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  text-align: center;
  color: var(--color-accent);
}

.project-upload-file-copy {
  min-width: 0;
}

.project-upload-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 600;
  color: #1b2a4a;
}

.project-upload-file-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--color-gray-500);
}

.project-upload-file-remove {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(226, 232, 240, 0.75);
  font-size: 1.25rem;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.project-upload-file-remove:hover,
.project-upload-file-remove:focus-visible {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  outline: none;
}

.project-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-100);
}

.project-form-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--color-gray-500);
}

.btn-project-submit {
  justify-content: center;
  min-height: 60px;
  padding: 16px 40px;
  background: #1b2a4a;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-project-submit:hover {
  background: var(--color-navy);
}

.project-form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-form-sidebar-card,
.project-form-help-card {
  border-radius: 8px;
}

.project-form-sidebar-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  padding: 32px;
}

.project-form-sidebar-head,
.project-form-help-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-form-sidebar-head h3,
.project-form-help-head h4 {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 700;
  color: #1b2a4a;
}

.project-form-timeline {
  position: relative;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-form-timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 19px;
  width: 1px;
  background: #d1d5db;
}

.project-form-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.project-form-timeline-dot {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.project-form-timeline-item h4 {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  color: #1b2a4a;
}

.project-form-timeline-item p {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.6667;
  color: var(--color-gray-500);
}

.project-form-help-card {
  background: rgba(239, 246, 255, 0.5);
  border: 1px solid #dbeafe;
  padding: 24px 16px 17px;
}

.project-form-help-card p {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--color-gray-500);
}

.project-form-help-card a {
  display: block;
}

.project-form-help-card a:first-of-type {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  color: #1b2a4a;
}

.project-form-help-card a:last-of-type {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--color-gray-600);
}

.project-form-alert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 32px;
}

.project-form-alert strong {
  font-size: 1rem;
  line-height: 1.5;
}

.project-form-alert span {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.project-form-alert--success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #166534;
}

.project-form-alert--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

/* ==========================================================================
   12. SYSTEM PAGE — landing page
   ========================================================================== */
.system-page {
  background: #fff;
}

/* Hero */
.system-hero {
  position: relative;
  overflow: hidden;
  background: #1b2a4a;
  padding: calc(var(--header-h) + 64px) 0 64px;
}

.system-hero-grid,
.system-hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.system-hero-grid {
  background: linear-gradient(90deg, #2d3b59 0.08%, rgba(45, 59, 89, 0) 0.08%),
    linear-gradient(180deg, #2d3b59 0.38%, rgba(45, 59, 89, 0) 0.38%);
  opacity: 0.1;
}

.system-hero-fade {
  left: 66.67%;
  background: linear-gradient(270deg, #1b2a4a 0%, rgba(27, 42, 74, 0) 100%);
}

.system-hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
}

.system-hero-label-wrap {
  display: inline-flex;
  align-items: center;
  border-left: 2px solid var(--color-accent);
  padding-left: 16px;
  margin-bottom: 24px;
}

.system-hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.system-hero h1 {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--color-white);
}

.system-hero p {
  max-width: 672px;
  margin: 32px 0 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 300;
  color: #d1d5db;
}

/* Materials Section */
.system-materials {
  position: relative;
  isolation: isolate;
  background: #F8FAFC;
  padding: 96px 0;
}

.system-materials-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 111, 165, 0.1) 5%, rgba(74, 111, 165, 0) 5%),
    linear-gradient(90deg, rgba(74, 111, 165, 0.1) 5%, rgba(74, 111, 165, 0) 5%),
    #F8FAFC;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.system-materials-container {
  position: relative;
  z-index: 1;
}

.system-materials-header {
  margin-bottom: 48px;
}

.system-materials-header h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 8px;
}

.system-materials-header p {
  font-size: 1rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.system-materials-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}

/* SVG visual */
.system-materials-visual {
  flex: 0 0 560px;
  width: 560px;
  height: 600px;
}

.system-layers-svg {
  width: 100%;
  height: 100%;
}

.system-layer {
  cursor: pointer;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.system-layers-svg.has-active .system-layer {
  opacity: 0.35;
  filter: saturate(0.3);
}

.system-layers-svg.has-active .system-layer.is-active {
  opacity: 1;
  filter: saturate(1) drop-shadow(0 4px 16px rgba(28, 42, 74, 0.25));
}

/* Materials list */
.system-materials-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.system-material-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
}

.system-material-item.is-active {
  background: #FFFFFF;
  border: 1px solid rgba(28, 42, 74, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.system-material-item:not(.is-active) {
  border: 1px solid transparent;
}

.system-material-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #1E293B;
  flex-shrink: 0;
  transition: background 0.25s var(--ease);
}

.system-material-item[data-layer="2"] .system-material-badge {
  background: #1C2A4A;
}

.system-material-item[data-layer="3"] .system-material-badge {
  background: rgba(28, 42, 74, 0.8);
}

.system-material-item[data-layer="4"] .system-material-badge {
  background: #94A3B8;
}

.system-material-item[data-layer="5"] .system-material-badge {
  background: #0F172A;
}

.system-material-badge span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  color: #FFFFFF;
  text-align: center;
}

.system-material-info {
  flex: 1 1 auto;
  min-width: 0;
}

.system-material-info h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  transition: color 0.25s var(--ease);
}

.system-material-item[data-layer="2"] .system-material-info h3 {
  color: #1C2A4A;
}

.system-material-item[data-layer="3"] .system-material-info h3 {
  color: rgba(28, 42, 74, 0.8);
}

.system-material-item[data-layer="4"] .system-material-info h3 {
  color: #334155;
}

.system-material-info p {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: #64748B;
  margin: 0;
}

.system-material-line {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: #CBD5E1;
  margin-left: auto;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.system-material-item.is-active .system-material-line {
  width: 96px;
  background: #1C2A4A;
}

/* Params Table */
.system-params {
  background: #F6F7F8;
  padding: 96px 0;
}

.system-params-container {
  max-width: 1000px;
}

.system-params-header {
  text-align: center;
  margin-bottom: 48px;
}

.system-params-header h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 8px;
}

.system-params-header p {
  font-size: 1rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.system-params-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.system-params-table-wrap {
  overflow-x: auto;
}

.system-params-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.system-params-table thead {
  background: #F8FAFC;
}

.system-params-table thead th {
  padding: 16px 24px;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
  vertical-align: bottom;
}

.system-params-table thead th:first-child {
  text-align: left;
}

.system-params-th-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #64748B;
}

.system-params-th-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
  color: #64748B;
}

.system-params-th-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: lowercase;
  color: #64748B;
}

.system-params-table tbody td {
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 400;
  color: #334155;
  text-align: center;
  border-top: 1px solid #F3F4F6;
}

.system-params-table tbody td:first-child {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #1C2A4A;
}

.system-params-row-alt {
  background: rgba(239, 246, 255, 0.3);
}

.system-params-table tbody .system-params-row-highlight td {
  color: #4A6FA5;
  font-weight: 700;
}

.system-params-table tbody .system-params-row-highlight td:first-child {
  color: #4A6FA5;
}

.system-params-table tbody .system-params-row-highlight td:nth-child(4) {
  font-weight: 400;
  color: #334155;
}

/* Downloads */
.system-downloads {
  background: #FFFFFF;
  border-top: 1px solid #F3F4F6;
  padding: 96px 0;
}

.system-downloads-container {
  max-width: 1200px;
}

.system-downloads h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 48px;
}

.system-downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.system-download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 33px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  min-height: 266px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.system-download-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.system-download-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 42px;
}

.system-download-top svg {
  flex-shrink: 0;
}

.system-download-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  color: #94A3B8;
}

.system-download-card h3 {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.system-download-card p {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: #64748B;
  margin: 0 0 24px;
}

.system-download-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  color: #4A6FA5;
}

.system-download-link svg {
  flex-shrink: 0;
}

/* System CTA */
.system-cta {
  position: relative;
  isolation: isolate;
  background: #1C2A4A;
  padding: 96px 0;
  text-align: center;
}

.system-cta-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #2D3B59 0.08%, rgba(45, 59, 89, 0) 0.08%),
    linear-gradient(180deg, #2D3B59 0.17%, rgba(45, 59, 89, 0) 0.17%);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.system-cta-container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.system-cta h2 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  color: #FFFFFF;
  max-width: 720px;
  margin-bottom: 24px;
}

.system-cta-lead {
  max-width: 672px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #D1D5DB;
  margin: 0 0 24px;
}

.system-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  background: #4A6FA5;
  color: #FFFFFF;
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.system-cta-btn:hover {
  background: #3A5F95;
  transform: translateY(-1px);
}

.system-cta-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.system-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-cta-trust-item span {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4286;
  color: #9CA3AF;
}

/* ==========================================================================
   11. FOOTER — navy-light (Figma)
   ========================================================================== */
.site-footer {
  background: var(--color-navy-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 40px;
}

.footer-main {
  margin-bottom: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  align-items: flex-start;
}

.footer-brand {
  min-height: 212px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
}

.footer-logo svg {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.footer-logo svg .cls-1,
.footer-logo svg .cls-2 {
  fill: currentColor;
}

.footer-logo svg .cls-2 {
  stroke: currentColor;
}

.footer-brand p {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  line-height: 1.6429;
  margin-top: 23px;
  max-width: 243px;
}

.footer-heading {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

.footer-column {
  min-height: 212px;
}

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

.footer-links li {
  display: block;
}

.footer-links a,
.footer-contact-link,
.footer-contact-text {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--color-gray-400);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact-link:hover {
  color: var(--color-white);
}

.footer-links-engineer li {
  position: relative;
  padding-left: 20px;
}

.footer-links-engineer li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  mask: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L1.5 3.5L2.2 2.775L3.5 4.075V0H4.5V4.075L5.8 2.775L6.5 3.5L4 6ZM1 8C0.725 8 0.489583 7.90208 0.29375 7.70625C0.0979166 7.51042 0 7.275 0 7V5.5H1V7H7V5.5H8V7C8 7.275 7.90208 7.51042 7.70625 7.70625C7.51042 7.90208 7.275 8 7 8H1Z' fill='%23CBD5E1'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L1.5 3.5L2.2 2.775L3.5 4.075V0H4.5V4.075L5.8 2.775L6.5 3.5L4 6ZM1 8C0.725 8 0.489583 7.90208 0.29375 7.70625C0.0979166 7.51042 0 7.275 0 7V5.5H1V7H7V5.5H8V7C8 7.275 7.90208 7.51042 7.70625 7.70625C7.51042 7.90208 7.275 8 7 8H1Z' fill='%23CBD5E1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.footer-socials li {
  display: flex;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-white);
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding-top: 2px;
}

.footer-contact-text {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom-links li {
  display: flex;
}

.footer-bottom-links a {
  color: var(--color-gray-500);
  font-size: 0.75rem;
  line-height: 1.3333;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   12. LEGAL PAGE
   ========================================================================== */
.standard-page {
  background: var(--color-white);
}

.legal-landing {
  background: #f8fafc;
  color: #0f172a;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 72px;
  background: var(--color-navy);
  color: var(--color-white);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  padding-left: 14px;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 0.98;
  font-weight: 900;
  color: var(--color-white);
}

.legal-hero p {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #d1d5db;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.legal-body {
  padding: 72px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--color-white);
}

.legal-toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #0f172a;
}

.legal-toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #475569;
}

.legal-toc a:hover {
  color: var(--color-accent);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--color-white);
}

.legal-section h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 16px;
}

.legal-section h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #1c2a4a;
  margin: 24px 0 10px;
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section ol + p {
  margin-top: 12px;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-section ul {
  list-style: disc;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section li {
  padding-left: 4px;
}

.legal-section li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

.legal-section li + li {
  margin-top: 0;
}

.legal-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legal-company-grid div {
  padding: 14px;
  border-radius: 4px;
  background: #f8fafc;
}

.legal-company-grid dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  color: #64748b;
}

.legal-company-grid dd {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 700;
  color: #0f172a;
}

.legal-note {
  border-left: 3px solid var(--color-accent);
  padding: 16px 18px;
  background: #eff6ff;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }

  .legal-body {
    padding: 48px 0 64px;
  }

  .legal-section {
    padding: 24px;
  }

  .legal-company-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---------- ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-white);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--color-navy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 100px;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu a {
    display: block;
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 18px 0;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--color-accent);
  }

  .nav-menu a.active::after {
    display: none;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-overlay {
    display: none !important;
  }

  .header-cta {
    display: none;
  }

  .nav-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    background: var(--color-navy);
  }

  body.nav-open .nav-cta-mobile {
    opacity: 1;
    visibility: visible;
  }

  .nav-cta-mobile .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--color-white);
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 28px;
  }

  .nav-cta-mobile .btn:hover {
    background: var(--color-gray-100);
  }

  .nav-cta-mobile .btn svg path {
    fill: var(--color-navy);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-badge--slope {
    left: auto;
    right: 8px;
    top: 12px;
    bottom: auto;
    width: clamp(120px, 35%, 160px);
    min-height: 102px;
  }

  .hero-badge--slope .hero-badge__value {
    font-size: 18px;
    line-height: 24px;
    top: 40px;
    left: 12px;
    right: 12px;
  }

  .hero-badge--slope .hero-badge__header {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .hero-badge--slope .hero-badge__desc {
    top: 64px;
    left: 12px;
    right: 12px;
    font-size: 9px;
  }

  .hero-badge--tolerance {
    left: 8px;
    right: auto;
    bottom: 8px;
    top: auto;
    padding: 12px;
  }

  .hero-badge--tolerance .hero-badge__value {
    font-size: 16px;
    line-height: 22px;
  }

  .problems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .products-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-panel-grid {
    grid-template-columns: 1fr;
  }

  .workflow {
    padding: 56px 0 72px;
  }

  .workflow-header {
    margin-bottom: 56px;
    padding: 0;
  }

  .workflow-timeline {
    padding: 0;
  }

  .workflow-step {
    min-height: auto;
    gap: 32px;
  }

  .workflow-step-copy {
    min-height: auto;
  }

  .workflow-step-title {
    font-size: 1.625rem;
  }

  .workflow-step-desc {
    font-size: 1rem;
  }

  .workflow-step-number {
    font-size: 11rem;
  }

  .workflow-step:nth-child(odd) .workflow-step-dot {
    left: -40px;
  }

  .workflow-step:nth-child(even) .workflow-step-dot {
    right: -40px;
  }

  .workflow-step {
    grid-template-columns: 1fr 1fr;
  }

  .dark-stats .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dark-stats-grid {
    gap: 32px;
  }

  .dark-stat-item + .dark-stat-item {
    padding-left: 32px;
  }

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

  .project-form-sidebar {
    order: 2;
  }

  .project-form-main {
    order: 1;
  }

  .project-form-fields--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-main {
    margin-bottom: 48px;
  }

  .final-cta {
    padding: 72px 0;
  }

  .system-materials-grid {
    gap: 40px;
  }

  .system-materials-visual {
    flex: 0 0 420px;
    width: 420px;
    height: 450px;
  }

  .system-params {
    padding: 72px 0;
  }

  .system-downloads-grid {
    grid-template-columns: 1fr;
  }

  .system-downloads {
    padding: 72px 0;
  }

  .system-cta {
    padding: 72px 0;
  }

  .system-cta h2 {
    font-size: 2.5rem;
  }
}

/* ---------- ≤ 768px ---------- */
@media (max-width: 768px) {
  :root {
    --gap: 16px;
    --header-h: 64px;
  }

  .section-padding {
    padding: 56px 0;
  }

  .problems-header h2 {
    font-size: 2.25rem;
  }

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

  .problem-card {
    min-height: auto;
    padding: 104px 24px 24px;
  }

  .problem-card-icon {
    top: 24px;
    left: 24px;
  }

  .problem-card-counter {
    top: 16px;
    right: 16px;
    font-size: 2.5rem;
  }

  .problem-meta {
    margin-top: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--color-gray-100);
  }

  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

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

  .products-header h2 {
    font-size: 2.25rem;
  }

  .workflow-header h2 {
    font-size: 2.25rem;
  }

  .workflow-header .section-desc {
    font-size: 1rem;
    line-height: 1.65;
    margin-top: 16px;
  }

  .workflow-timeline::before,
  .workflow-timeline::after {
    left: 24px;
    transform: none;
    bottom: 0;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 64px;
    margin-bottom: 40px;
  }

  .workflow-step:last-child {
    margin-bottom: 0;
  }

  .workflow-step-copy,
  .workflow-step:nth-child(odd) .workflow-step-copy,
  .workflow-step:nth-child(even) .workflow-step-copy {
    order: 2;
    min-height: auto;
    align-items: flex-start;
    text-align: left;
    padding: 72px 0 0;
  }

  .workflow-step-icon,
  .workflow-step:nth-child(odd) .workflow-step-icon,
  .workflow-step:nth-child(even) .workflow-step-icon {
    left: 0;
    right: auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .workflow-step-number-side,
  .workflow-step:nth-child(odd) .workflow-step-number-side,
  .workflow-step:nth-child(even) .workflow-step-number-side {
    order: 1;
    min-height: 108px;
    justify-content: flex-start;
  }

  .workflow-step-number {
    font-size: 6.5rem;
  }

  .workflow-step-dot,
  .workflow-step:nth-child(odd) .workflow-step-dot,
  .workflow-step:nth-child(even) .workflow-step-dot {
    left: -48px;
    right: auto;
  }

  .dark-stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-form-hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }

  .project-form-hero h1 {
    font-size: 2.5rem;
  }

  .project-form-hero p {
    font-size: 1rem;
    margin-top: 24px;
  }

  .project-form-steps-grid,
  .project-form-fields,
  .project-form-fields--four {
    grid-template-columns: 1fr;
  }

  .project-form-step {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 12px;
  }

  .project-form-step-number {
    margin-bottom: 0;
  }

  .project-form-steps-track {
    left: 43px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 2px;
    height: auto;
  }

  .project-form-steps-grid {
    gap: 20px;
  }

  .project-upload-label {
    min-height: 240px;
    padding: 32px 24px;
  }

  .project-upload-files {
    padding-left: 24px;
    padding-right: 24px;
  }

  .project-upload-file-item {
    grid-template-columns: 1fr auto;
  }

  .project-upload-file-badge {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }

  .project-form-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-project-submit {
    width: 100%;
  }

  .dark-stat-item {
    min-height: auto;
    padding: 0;
  }

  .dark-stat-item + .dark-stat-item {
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .final-cta-inner h2 {
    font-size: 2.25rem;
  }

  .final-cta-lead {
    font-size: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-form-content {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .system-hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }

  .system-hero h1 {
    font-size: 2.5rem;
  }

  .system-hero p {
    font-size: 1rem;
    margin-top: 24px;
  }

  .system-materials {
    padding: 56px 0;
  }

  .system-materials-grid {
    flex-direction: column;
    gap: 40px;
  }

  .system-materials-visual {
    flex: none;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 560 / 600;
    margin: 0 auto;
  }

  .system-params {
    padding: 56px 0;
  }

  .system-params-header h2 {
    font-size: 1.5rem;
  }

  .system-downloads {
    padding: 56px 0;
  }

  .system-downloads h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .system-download-card {
    min-height: auto;
    padding: 24px;
  }

  .system-download-top {
    margin-bottom: 24px;
  }

  .system-cta {
    padding: 56px 0;
  }

  .system-cta h2 {
    font-size: 2rem;
  }

  .system-cta-lead {
    font-size: 1rem;
  }

  .system-cta-trust {
    flex-direction: column;
    gap: 16px;
  }
}

/* ---------- ≤ 480px ---------- */
@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 48px;
  }

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

  .btn {
    justify-content: center;
  }

  .workflow {
    padding-bottom: 56px;
  }

  .workflow-step {
    padding-left: 48px;
  }

  .workflow-step-title {
    font-size: 1.375rem;
  }

  .workflow-step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .workflow-step-number {
    font-size: 4.5rem;
  }

  .workflow-step .tech-tag {
    width: 100%;
    text-align: left;
  }

  .dark-stats .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dark-stat-value {
    font-size: 3.5rem;
  }

  .dark-stat-suffix {
    font-size: 1.5rem;
  }

  .final-cta {
    padding: 56px 0;
  }

  .final-cta-actions {
    width: 100%;
    flex-direction: column;
    padding-bottom: 0;
  }

  .btn-final-primary,
  .btn-final-secondary {
    width: 100%;
    max-width: 360px;
  }

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

  .product-tabs {
    gap: 6px;
  }

  .product-tab-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

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

  .stat-item {
    padding: 20px 16px;
    height: auto;
    min-height: 112px;
    border-right: none;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .stat-item:nth-child(odd) {
    border-right: none;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   REALIZACJE — Archive page
   ========================================================================== */

/* ---------- A. Hero ---------- */
.realizacje-hero {
  position: relative;
  background: var(--color-navy-light);
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 64px;
  overflow: hidden;
}

.realizacje-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74, 111, 165, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
  pointer-events: none;
}

.realizacje-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.realizacje-hero-content {
  flex: 1;
}

.realizacje-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 0;
}

.realizacje-hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
}

.realizacje-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.realizacje-hero-stat-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

.realizacje-hero-stat-plus,
.realizacje-hero-stat-unit {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 2px;
}

.realizacje-hero-stat-label {
  font-size: 12px;
  color: var(--color-gray-400);
  margin-top: 8px;
  white-space: nowrap;
}

.realizacje-hero-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

/* ---------- B. Filter bar ---------- */
.realizacje-filters {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-200);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.realizacje-filters-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.realizacje-filters-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.realizacje-filters-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.realizacje-filters-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  flex-shrink: 0;
}

.realizacje-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.realizacje-filter-btn {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #F1F5F9;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.realizacje-filter-btn:hover {
  background: #E2E8F0;
  color: var(--color-navy);
}

.realizacje-filter-btn.active {
  background: var(--color-navy-light);
  color: var(--color-white);
}

.realizacje-filters-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.realizacje-select {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-gray-600);
  background: #F8FAFC;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  padding: 8px 32px 8px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.realizacje-select:hover,
.realizacje-select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ---------- C. Featured project ---------- */
.realizacje-featured {
  background: var(--color-gray-50);
}

.realizacje-featured-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 32px;
}

.realizacje-featured-dot {
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.realizacje-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.realizacje-featured-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-navy);
}

.realizacje-featured-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transform: rotate(-1deg);
  z-index: 1;
  pointer-events: none;
}

.realizacje-featured-img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.6);
  opacity: 0.85;
}

.realizacje-featured-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.realizacje-featured-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

.realizacje-featured-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.realizacje-featured-stat-card {
  flex: 1;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.realizacje-featured-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}

.realizacje-featured-stat-lbl {
  font-size: 12px;
  color: var(--color-gray-500);
}

.realizacje-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap 0.2s var(--ease);
}

.realizacje-featured-link:hover {
  gap: 12px;
}

.realizacje-featured-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- D. Project grid ---------- */
.realizacje-grid-section {
  background: var(--color-white);
}

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.realizacje-card {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.realizacje-card:hover {
  border-color: var(--color-gray-300);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.realizacje-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-navy);
}

.realizacje-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
  transition: filter 0.3s var(--ease), transform 0.4s var(--ease);
}

.realizacje-card:hover .realizacje-card-thumb {
  filter: saturate(1);
  transform: scale(1.03);
}

.realizacje-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-navy);
}

.realizacje-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 22, 40, 0.7);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
}

.realizacje-card:hover .realizacje-card-overlay {
  opacity: 1;
}

.realizacje-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}

.realizacje-card-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  line-height: 1.4;
}

.realizacje-card-badge--cat {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--color-navy);
}

.realizacje-card-badge--year {
  background: var(--color-navy-light);
  color: var(--color-white);
}

.realizacje-card-title {
  padding: 16px 16px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
}

.realizacje-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 16px;
  margin-top: auto;
  border-top: 1px solid var(--color-gray-100);
  margin-left: 16px;
  margin-right: 16px;
  padding-left: 0;
  padding-right: 0;
}

.realizacje-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748B;
  white-space: nowrap;
}

.realizacje-card-meta-item svg {
  flex-shrink: 0;
}

/* ---------- Pagination ---------- */
.realizacje-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}

.realizacje-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-600);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  transition: all 0.2s var(--ease);
}

.realizacje-pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.realizacje-pagination .page-numbers.current {
  background: var(--color-navy-light);
  color: var(--color-white);
  border-color: var(--color-navy-light);
}

.realizacje-pagination .page-numbers svg {
  width: 16px;
  height: 16px;
}

/* ---------- Empty state ---------- */
.realizacje-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--color-gray-500);
  font-size: 18px;
}

.realizacje-empty .btn {
  margin-top: 16px;
}

/* ---------- E. CTA ---------- */
.realizacje-cta {
  position: relative;
  background: var(--color-navy);
  padding: 96px 0;
  overflow: hidden;
}

.realizacje-cta-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74, 111, 165, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
  pointer-events: none;
}

.realizacje-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.realizacje-cta-inner h2 {
  font-size: clamp(2rem, 4vw, 48px);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.realizacje-cta-inner p {
  font-size: clamp(1rem, 2vw, 20px);
  color: var(--color-gray-400);
  line-height: 1.6;
  margin-bottom: 32px;
}

.realizacje-cta-btn {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 4px;
}

.realizacje-cta-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 111, 165, 0.3);
}

/* ==========================================================================
   REALIZACJA — Single page
   ========================================================================== */

/* ---------- Hero ---------- */
.realizacja-hero {
  position: relative;
  background: var(--color-navy);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.realizacja-hero-bg {
  position: absolute;
  inset: 0;
}

.realizacja-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5);
  opacity: 0.4;
}

.realizacja-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--color-navy) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(10, 22, 40, 0.3) 100%);
}

.realizacja-hero-inner {
  position: relative;
  z-index: 1;
}

.realizacja-breadcrumb {
  font-size: 13px;
  color: var(--color-gray-400);
  margin-bottom: 16px;
}

.realizacja-breadcrumb a {
  color: var(--color-accent);
  transition: color 0.2s;
}

.realizacja-breadcrumb a:hover {
  color: var(--color-white);
}

.realizacja-breadcrumb span[aria-hidden] {
  margin: 0 8px;
  opacity: 0.4;
}

.realizacja-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}

.realizacja-hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-gray-400);
}

.realizacja-hero-location svg {
  flex-shrink: 0;
}

/* ---------- Meta bar ---------- */
.realizacja-meta-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}

.realizacja-meta-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.realizacja-meta-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(74, 111, 165, 0.1);
  border: 1px solid rgba(74, 111, 165, 0.2);
  border-radius: 3px;
}

.realizacja-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-gray-600);
}

.realizacja-meta-item svg {
  flex-shrink: 0;
}

/* ---------- Content grid ---------- */
.realizacja-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.realizacja-content-main {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-gray-700);
}

.realizacja-content-main h2,
.realizacja-content-main h3,
.realizacja-content-main h4 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.realizacja-content-main p {
  margin-bottom: 16px;
}

.realizacja-content-main ul,
.realizacja-content-main ol {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.realizacja-content-main ol {
  list-style: decimal;
}

.realizacja-content-main li {
  margin-bottom: 8px;
}

.realizacja-content-main img {
  border-radius: 4px;
  margin: 24px 0;
}

/* ---------- Sidebar ---------- */
.realizacja-sidebar-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.realizacja-sidebar-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gray-200);
}

.realizacja-sidebar-data {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.realizacja-sidebar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.realizacja-sidebar-row:last-child {
  border-bottom: none;
}

.realizacja-sidebar-row dt {
  font-size: 13px;
  color: var(--color-gray-500);
}

.realizacja-sidebar-row dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  text-align: right;
}

.realizacja-sidebar-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.realizacja-sidebar-products li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray-700);
}

.realizacja-sidebar-product-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(74, 111, 165, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ---------- Gallery ---------- */
.realizacja-gallery {
  background: var(--color-gray-50);
}

.realizacja-gallery-heading {
  margin-bottom: 32px;
}

.realizacja-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.realizacja-gallery-item {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  position: relative;
}

.realizacja-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), filter 0.3s var(--ease);
  filter: saturate(0.75);
}

.realizacja-gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.realizacja-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0);
  transition: background 0.3s var(--ease);
}

.realizacja-gallery-item:hover::after {
  background: rgba(10, 22, 40, 0.15);
}

/* ---------- Related ---------- */
.realizacja-related {
  background: var(--color-white);
}

.realizacja-related h2 {
  margin-bottom: 32px;
}

/* ---------- Lightbox ---------- */
.realizacja-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.realizacja-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.realizacja-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.realizacja-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  transition: background 0.2s;
}

.realizacja-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.realizacja-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.realizacja-lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.realizacja-lightbox-prev {
  left: 24px;
}

.realizacja-lightbox-next {
  right: 24px;
}

/* ==========================================================================
   REALIZACJE — Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .realizacje-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .realizacje-hero-stats {
    margin-top: 32px;
  }

  .realizacje-featured-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .realizacje-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .realizacja-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .realizacja-sidebar {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .realizacja-sidebar-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .realizacje-hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 40px;
  }

  .realizacje-hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .realizacje-hero-stat {
    flex-direction: row;
    gap: 12px;
    padding: 0;
  }

  .realizacje-hero-stat-divider {
    display: none;
  }

  .realizacje-filters-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .realizacje-filters-right {
    width: 100%;
  }

  .realizacje-select {
    flex: 1;
  }

  .realizacje-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .realizacja-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .realizacja-sidebar {
    grid-template-columns: 1fr;
  }

  .realizacja-hero {
    min-height: 300px;
    padding-bottom: 48px;
  }

  .realizacja-meta-bar-inner {
    gap: 12px;
  }

  .realizacje-cta {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .realizacje-hero h1 {
    font-size: 2rem;
  }

  .realizacje-hero-stat-value {
    font-size: 28px;
  }

  .realizacje-featured-title {
    font-size: 24px;
  }

  .realizacje-featured-stats {
    flex-direction: column;
  }

  .realizacja-gallery-grid {
    grid-template-columns: 1fr;
  }

  .realizacja-lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .realizacja-lightbox-prev {
    left: 8px;
  }

  .realizacja-lightbox-next {
    right: 8px;
  }
}

/* ==========================================================================
   AKADEMIA — Blog listing + single article
   ========================================================================== */

/* ---------- Hero ---------- */
.akademia-hero {
  position: relative;
  background: var(--color-navy-light);
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 72px;
  overflow: hidden;
}

.akademia-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 111, 165, 0.1) 0%, transparent 40%),
    linear-gradient(90deg, rgba(74, 111, 165, 0.1) 0%, transparent 40%),
    linear-gradient(0deg, rgba(27, 42, 74, 0.9) 0%, rgba(27, 42, 74, 0) 100%);
  pointer-events: none;
}

.akademia-hero-decor {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 200px;
  height: 200px;
  opacity: 0.2;
  pointer-events: none;
}

.akademia-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 768px;
}

.akademia-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.25rem, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1;
  margin: 0;
}

.akademia-hero-subtitle {
  max-width: 620px;
  margin: 16px 0 0;
  color: #D1D5DB;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.4;
}

/* ---------- Shared tag ---------- */
.akademia-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #E6F0FA;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ---------- Author ---------- */
.akademia-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.akademia-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  background: var(--color-gray-200);
}

.akademia-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.akademia-author-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-navy-light);
}

.akademia-author-role {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

/* ---------- Featured ---------- */
.akademia-featured-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.akademia-featured-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-accent);
}

.akademia-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.akademia-featured-card:hover {
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.12);
  transform: translateY(-2px);
}

.akademia-featured-visual {
  position: relative;
  background: #F1F5F9;
  min-height: 320px;
}

.akademia-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akademia-featured-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.akademia-featured-imgbadge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 8px;
  background: rgba(27, 42, 74, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--color-white);
  font-size: 0.75rem;
  border-radius: 4px;
}

.akademia-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.akademia-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.akademia-featured-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.akademia-featured-title {
  margin: 0 0 16px;
  color: var(--color-navy-light);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}

.akademia-featured-excerpt {
  margin: 0 0 24px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.62;
}

.akademia-featured-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.akademia-featured-date {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
}

/* ---------- Body layout ---------- */
.akademia-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 362px;
  gap: 32px;
  align-items: start;
}

.akademia-main {
  min-width: 0;
}

/* ---------- Filter pills ---------- */
.akademia-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.akademia-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 9999px;
  background: var(--color-white);
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.akademia-filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.akademia-filter-btn.active {
  background: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ---------- Card grid ---------- */
.akademia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.akademia-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.akademia-card:hover {
  box-shadow: 0 12px 28px rgba(27, 42, 74, 0.1);
  transform: translateY(-2px);
}

.akademia-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #F8FAFC;
  border-bottom: 1px solid #F3F4F6;
  overflow: hidden;
}

.akademia-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.akademia-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.akademia-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.akademia-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.akademia-card-read {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
}

.akademia-card-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.akademia-card-title a {
  color: var(--color-navy-light);
  transition: color 0.2s var(--ease);
}

.akademia-card-title a:hover {
  color: var(--color-accent);
}

.akademia-card-excerpt {
  margin: 0 0 16px;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
}

.akademia-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

.akademia-card-date {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
}

.akademia-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy-light);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.akademia-card-link:hover {
  color: var(--color-accent);
  gap: 8px;
}

/* ---------- Pagination ---------- */
.akademia-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.akademia-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  background: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #475569;
  transition: all 0.2s var(--ease);
}

.akademia-pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.akademia-pagination .page-numbers.current {
  background: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: var(--color-white);
  font-weight: 700;
}

.akademia-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--color-gray-400);
}

/* ---------- Empty ---------- */
.akademia-empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--color-gray-200);
  border-radius: 8px;
  color: var(--color-gray-500);
}

.akademia-empty p {
  margin: 0 0 16px;
}

/* ---------- Sidebar ---------- */
.akademia-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.akademia-search {
  position: relative;
}

.akademia-search-input {
  width: 100%;
  padding: 13px 48px 13px 40px;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-navy-light);
  background: var(--color-white);
}

.akademia-search-input::placeholder {
  color: #94A3B8;
}

.akademia-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.12);
}

.akademia-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
}

.akademia-search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 30px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
}

/* ---------- Sidebar CTA ---------- */
.akademia-cta {
  position: relative;
  padding: 32px;
  background: var(--color-navy-light);
  border-radius: 8px;
  overflow: hidden;
}

.akademia-cta-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.akademia-cta-corner--tl {
  top: 0;
  left: 0;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
}

.akademia-cta-corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

.akademia-cta-title {
  margin: 0 0 12px;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.akademia-cta-text {
  margin: 0 0 20px;
  color: #CBD5E1;
  font-size: 0.875rem;
  line-height: 1.62;
}

.akademia-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-accent);
  border-radius: 4px;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(74, 111, 165, 0.2), 0 4px 6px -4px rgba(74, 111, 165, 0.2);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.akademia-cta-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   AKADEMIA — Single article
   ========================================================================== */
.akademia-single-hero {
  position: relative;
  background: var(--color-navy-light);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 56px;
  overflow: hidden;
}

.akademia-single-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.akademia-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.akademia-breadcrumb a {
  color: var(--color-gray-300);
  transition: color 0.2s var(--ease);
}

.akademia-breadcrumb a:hover {
  color: var(--color-white);
}

.akademia-single-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.akademia-single-hero-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
}

.akademia-single-hero h1 {
  margin: 0 0 24px;
  color: var(--color-white);
  font-size: clamp(1.875rem, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}

.akademia-single-hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.akademia-single-hero-author .akademia-author-avatar {
  width: 40px;
  height: 40px;
}

.akademia-single-hero-author .akademia-author-name {
  color: var(--color-white);
  font-size: 0.875rem;
}

.akademia-single-hero-author .akademia-author-role {
  color: var(--color-gray-400);
}

.akademia-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.akademia-single-thumb {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.akademia-single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.akademia-prose {
  min-width: 0;
  color: var(--color-gray-700);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.akademia-prose > h2,
.akademia-prose > h3,
.akademia-prose > h4 {
  margin: 2em 0 0.75em;
  color: var(--color-navy-light);
}

.akademia-prose > h2 { font-size: 1.75rem; }
.akademia-prose > h3 { font-size: 1.375rem; }

.akademia-prose > p { margin: 0 0 1.25em; }

.akademia-prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.akademia-prose ul,
.akademia-prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.akademia-prose ul { list-style: disc; }
.akademia-prose ol { list-style: decimal; }

.akademia-prose li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.akademia-prose li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

.akademia-prose ul ul { list-style: circle; }

/* --- Images & figures in article body --- */
.akademia-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.akademia-prose figure {
  margin: 2em 0;
}

/* Standalone images: centered, with a sensible height cap so tall
   9:16 (portrait) photos don't overflow the column. Landscape images
   stay full width because they hit max-width before max-height. */
.akademia-prose > img,
.akademia-prose > p > img,
.akademia-prose figure:not(.alignleft):not(.alignright) > img {
  display: block;
  width: auto;
  margin-inline: auto;
  max-height: 640px;
}

/* Captions (block editor <figcaption> or a plain paragraph right after
   an image are both styled as a subtle mono caption). */
.akademia-prose figcaption,
.akademia-prose .wp-element-caption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-gray-500);
}

/* WordPress alignment classes — let editors wrap text around a portrait
   photo (alignleft / alignright) or break out wide/full. */
.akademia-prose .aligncenter {
  display: block;
  margin-inline: auto;
}

.akademia-prose .alignleft {
  float: left;
  margin: 0.4em 2em 1.2em 0;
  max-width: 45%;
}

.akademia-prose .alignright {
  float: right;
  margin: 0.4em 0 1.2em 2em;
  max-width: 45%;
}

.akademia-prose figure.alignleft,
.akademia-prose figure.alignright {
  max-width: 320px;
}

.akademia-prose figure.alignleft img,
.akademia-prose figure.alignright img {
  width: 100%;
  max-height: none;
}

.akademia-prose .alignwide {
  max-width: min(1000px, 90vw);
  margin-inline: auto;
}

.akademia-prose .alignfull {
  max-width: none;
}

/* Clear floats so following headings/sections aren't pulled up beside a
   floated image. */
.akademia-prose::after {
  content: "";
  display: block;
  clear: both;
}

.akademia-prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--color-accent);
  color: var(--color-gray-600);
  font-style: italic;
}

.akademia-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-200);
}

.akademia-single-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.akademia-related-heading {
  margin: 0 0 32px;
  color: var(--color-navy-light);
}

/* ==========================================================================
   AKADEMIA — Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .akademia-body-grid {
    grid-template-columns: 1fr;
  }

  .akademia-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .akademia-search {
    flex: 1 1 100%;
  }

  .akademia-cta {
    flex: 1 1 100%;
  }

  .akademia-single-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .akademia-single-sidebar {
    position: static;
  }

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

@media (max-width: 720px) {
  .akademia-featured-card {
    grid-template-columns: 1fr;
  }

  .akademia-featured-visual {
    min-height: 220px;
  }

  .akademia-featured-content {
    padding: 28px;
  }

  .akademia-grid,
  .akademia-grid--3 {
    grid-template-columns: 1fr;
  }

  .akademia-hero-decor {
    display: none;
  }

  /* Portrait photos: stop floating on narrow screens, center full width */
  .akademia-prose .alignleft,
  .akademia-prose .alignright,
  .akademia-prose figure.alignleft,
  .akademia-prose figure.alignright {
    float: none;
    max-width: 100%;
    margin-inline: auto;
  }
}
