/*
Theme Name: SobNet Theme
Theme URI: https://sobnet.pl
Author: Claude
Description: Ciemny motyw tech inspirowany identyfikacją wizualną SOBNET — siatka, hexagony, cyan.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sobnet-theme
Tags: dark, tech, business, minimal, network
*/

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

/* ─── DESIGN TOKENS ────────────────────────────────────── */
:root {
  --bg:          #080d12;
  --bg2:         #0d1520;
  --bg3:         #111c2b;
  --surface:     #0f1a26;
  --surface2:    #162131;

  --cyan:        #00b4d8;
  --cyan-dim:    #0090ae;
  --cyan-glow:   rgba(0, 180, 216, 0.18);
  --cyan-border: rgba(0, 180, 216, 0.25);

  --white:       #eef4f8;
  --text:        #c8dce8;
  --text-dim:    #6a8fa8;
  --text-muted:  #374d5e;

  --grid-color:  rgba(0, 180, 216, 0.045);
  --border:      rgba(0, 180, 216, 0.12);

  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-body:   'Outfit', sans-serif;

  --container:   1140px;
  --r:           2px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── MOTYW JASNY ──────────────────────────────────────── */
body.theme-light {
  --bg:          #f0f4f8;
  --bg2:         #e2eaf2;
  --bg3:         #d6e2ee;
  --surface:     #ffffff;
  --surface2:    #eaf0f7;

  --cyan:        #0077a8;
  --cyan-dim:    #005f88;
  --cyan-glow:   rgba(0, 119, 168, 0.15);
  --cyan-border: rgba(0, 119, 168, 0.25);

  --white:       #0d1a26;
  --text:        #1a2e3d;
  --text-dim:    #4a6a82;
  --text-muted:  #8aaabb;

  --grid-color:  rgba(0, 119, 168, 0.06);
  --border:      rgba(0, 119, 168, 0.18);
}

/* ─── WYSOKI KONTRAST CIEMNY ───────────────────────────── */
body.contrast-high {
  --bg:          #000000;
  --bg2:         #0a0a0a;
  --bg3:         #111111;
  --surface:     #0d0d0d;
  --surface2:    #1a1a1a;

  --cyan:        #00ffff;
  --cyan-dim:    #00cccc;
  --cyan-glow:   rgba(0, 255, 255, 0.3);
  --cyan-border: rgba(0, 255, 255, 0.5);

  --white:       #ffffff;
  --text:        #ffffff;
  --text-dim:    #cccccc;
  --text-muted:  #888888;

  --grid-color:  rgba(0, 255, 255, 0.07);
  --border:      rgba(0, 255, 255, 0.35);
}

/* ─── WYSOKI KONTRAST JASNY ────────────────────────────── */
body.theme-light.contrast-high {
  --bg:          #ffffff;
  --bg2:         #f5f5f5;
  --bg3:         #eeeeee;
  --surface:     #ffffff;
  --surface2:    #f0f0f0;

  --cyan:        #004f7a;
  --cyan-dim:    #003a5c;
  --cyan-glow:   rgba(0, 79, 122, 0.2);
  --cyan-border: rgba(0, 79, 122, 0.5);

  --white:       #000000;
  --text:        #000000;
  --text-dim:    #1a1a1a;
  --text-muted:  #444444;

  --grid-color:  rgba(0, 79, 122, 0.08);
  --border:      rgba(0, 79, 122, 0.4);
}

/* ─── BASE ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* Dot-grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ─── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); letter-spacing: 0.06em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.1rem; letter-spacing: 0.1em; }
p  { color: var(--text); font-size: 0.95rem; line-height: 1.75; }

/* ─── CONTAINER ────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  -webkit-font-smoothing: antialiased;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  z-index: -1;
}
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

/* ─── THEME & CONTRAST TOGGLES ─────────────────────────── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}

.theme-toggle,
.contrast-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover,
.contrast-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.contrast-toggle.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* Ikona słońca/księżyca */
.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
}

body.theme-light .theme-toggle-icon {
  background: transparent;
  border: 2px solid var(--cyan);
  box-shadow: inset -4px -1px 0 0 var(--cyan);
}

body:not(.theme-light) .theme-toggle-icon {
  background: var(--text-dim);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--text-dim);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

/* ─── HEADER ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 13, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-svg {
  height: 48px;
  width: auto;
  display: block;
  filter: none;
  transition: filter 0.3s;
}

body.theme-light .logo-svg {
  filter: invert(1);
}

body.theme-light.contrast-high .logo-svg {
  filter: invert(1) brightness(0);
}


  border: 2px solid var(--cyan);
  padding: 6px 12px;
  position: relative;
}
.logo-box::before,
.logo-box::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--cyan);
  border-style: solid;
}
.logo-box::before { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.logo-box::after  { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo-text em {
  font-style: normal;
  color: var(--cyan);
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  -webkit-font-smoothing: antialiased;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--cyan); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--white); }

.nav-cta {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--cyan) !important;
  border: 1px solid var(--cyan-border);
  padding: 8px 18px;
  letter-spacing: 0.15em;
  transition: all 0.2s !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--cyan-glow) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--cyan);
  transition: all 0.25s;
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* SVG hex pattern background */
.hero-hexbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-hexbg svg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  opacity: 0.12;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Scan line animation */
.hero-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
  animation: scanline 6s linear infinite;
}

@keyframes scanline {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 0.3; }
  95%  { opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}
.hero-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s forwards;
  text-shadow: 0 0 40px rgba(0, 180, 216, 0.15);
}

.hero h1 .hl {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 180, 216, 0.5);
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.9s forwards;
}

/* Typing cursor blink on hero tag */
.cursor-blink {
  display: inline-block;
  width: 2px; height: 0.85em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── SECTION BASE ─────────────────────────────────────── */
section { padding: 96px 0; position: relative; z-index: 1; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.sec-label::before {
  content: '◇';
  font-size: 0.6rem;
}

/* ─── SERVICES HEXGRID ─────────────────────────────────── */
.services {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header h2 { margin-bottom: 14px; }
.services-header p  { color: var(--text-dim); max-width: 480px; margin: 0 auto; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; }

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 680px;
  margin: 0 auto;
}

.hex-item {
  position: relative;
  width: 180px;
  height: 207px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: default;
  transition: transform 0.3s var(--ease);
}

/* Hex shape via clip-path */
.hex-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.hex-item:hover { transform: translateY(-6px); }
.hex-item:hover::before {
  background: var(--surface2);
  border-color: var(--cyan);
  box-shadow: 0 0 32px var(--cyan-glow), inset 0 0 24px rgba(0,180,216,0.04);
}

.hex-icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  line-height: 1;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0,180,216,0.5));
  transition: filter 0.3s;
}
.hex-item:hover .hex-icon {
  filter: drop-shadow(0 0 16px var(--cyan));
}

.hex-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  padding: 0 12px;
  transition: color 0.3s;
}
.hex-item:hover .hex-label { color: var(--white); }

/* hex rows — 3 góra + 2 dół wyśrodkowane centralnie */
.hex-grid-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 8px auto 0;
  width: fit-content;
  transform: none;
}
.hex-row { display: flex; gap: 4px; justify-content: center; }
/* dolny rząd wyśrodkowany centralnie — bez przesunięcia */
.hex-row-bottom { transform: translateX(0); margin-top: -20px; }

/* ─── ABOUT ─────────────────────────────────────────────── */
.about { background: var(--bg); }

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

.about-content .sec-label { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p  { margin-bottom: 32px; color: var(--text-dim); font-size: 0.9rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.stat-box {
  background: var(--surface);
  padding: 20px 24px;
  transition: background 0.2s;
}
.stat-box:hover { background: var(--surface2); }
.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 16px rgba(0,180,216,0.4);
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-visual {
  position: relative;
}
.about-img-frame {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
/* Corner brackets */
.about-img-frame::before,
.about-img-frame::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--cyan);
  border-style: solid;
  z-index: 2;
}
.about-img-frame::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.about-img-frame::after  { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.about-img-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

/* placeholder when no image */
.about-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg3),
    var(--bg3) 2px,
    var(--surface) 2px,
    var(--surface) 28px
  );
}
.about-img-placeholder svg { opacity: 0.15; }

/* ─── FEATURES LIST ────────────────────────────────────── */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  transition: background 0.2s, padding-left 0.25s;
}
.feature-row:hover {
  background: var(--surface2);
  padding-left: 28px;
}
.feature-row:hover .fr-icon { color: var(--white); }

.fr-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  width: 20px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.fr-text {
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ─── STARLINK ───────────────────────────────────────────── */
.starlink-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}

.starlink-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.starlink-content .sec-label { margin-bottom: 16px; }

.starlink-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.starlink-lead {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.starlink-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.starlink-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

.starlink-check {
  color: var(--cyan);
  font-size: 1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.starlink-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.starlink-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 280px;
  height: 322px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow 0.3s;
  box-shadow: 0 0 60px rgba(0,180,216,0.08), inset 0 0 40px rgba(0,180,216,0.03);
}

.starlink-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 12px var(--cyan));
  margin-bottom: 8px;
}

.starlink-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.starlink-stat span {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.starlink-stat small {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.starlink-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.starlink-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .starlink-inner { grid-template-columns: 1fr; gap: 48px; }
  .starlink-visual { order: -1; }
  .starlink-badge { width: 200px; height: 230px; }
  .starlink-stat span { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .starlink-badge {
    width: 160px;
    height: 184px;
    gap: 4px;
  }
  .starlink-icon {
    font-size: 1.8rem;
    margin-bottom: 2px;
  }
  .starlink-stat span {
    font-size: 1.1rem;
  }
  .starlink-stat small {
    font-size: 0.65rem;
  }
  .starlink-stat-label {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }
  .starlink-divider {
    width: 28px;
    margin: 2px 0;
  }
}

.starlink-content .btn {
  text-transform: none;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
}

/* ─── CTA ───────────────────────────────────────────────── */
.cta-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,180,216,0.06) 0%, transparent 65%);
  pointer-events: none;
}

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

.cta-inner .sec-label { justify-content: center; margin-bottom: 20px; }
.cta-inner h2 { margin-bottom: 18px; }
.cta-inner p  {
  color: var(--text-dim);
  margin-bottom: 44px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a,
.footer-links span {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover { color: var(--cyan); padding-left: 6px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ─── SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── WP CORE ───────────────────────────────────────────── */
.wp-caption-text { font-size: 0.75rem; color: var(--text-dim); margin-top: 6px; }
.alignleft   { float: left; margin: 0 20px 12px 0; }
.alignright  { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin: 0 auto 12px; display: block; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: rgba(8,13,18,0.98);
    padding: 40px 24px;
    gap: 28px;
    align-items: flex-start;
    z-index: 190;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .nav-menu.open a {
    font-size: 0.9rem;
    color: var(--text);
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  .hex-grid-wrap { transform: none; }
  .hex-row-bottom { transform: translateX(0); margin-top: -16px; }
  .hex-item { width: 140px; height: 161px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr; }

  /* Hexagony — zamiana na siatke 2-kolumnowa w stylu stat-box */
  .hex-grid-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    width: 100%;
  }
  .hex-row,
  .hex-row-bottom {
    display: contents;
  }
  .hex-item {
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--surface);
    transition: background 0.2s;
  }
  .hex-item:hover {
    transform: none;
    background: var(--surface2);
  }
  .hex-item::before {
    display: none;
  }
  .hex-icon {
    font-size: 1.5rem;
    filter: none;
    flex-shrink: 0;
  }
  .hex-item:hover .hex-icon {
    filter: none;
  }
  .hex-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 0;
    color: var(--text-dim);
  }
  .hex-item:hover .hex-label {
    color: var(--white);
  }
}

/* ─── ABOUT GALLERY ─────────────────────────────────────── */
.about-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

/* Slides */
.about-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.about-gallery__slide.is-active {
  opacity: 1;
}
.about-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  display: block;
}

/* Scan-line overlay */
.about-gallery__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* Corner dots */
.about-gallery__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
  z-index: 4;
  box-shadow: 0 0 6px var(--cyan);
}
.about-gallery__dot--tl { top: 10px; left: 10px; }
.about-gallery__dot--tr { top: 10px; right: 10px; }
.about-gallery__dot--bl { bottom: 10px; left: 10px; }
.about-gallery__dot--br { bottom: 10px; right: 10px; }

/* Progress bar */
.about-gallery__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0,180,216,0.12);
  z-index: 5;
}
.about-gallery__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: gallery-progress linear infinite;
}
@keyframes gallery-progress {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* Slide counter */
.about-gallery__counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.7;
}
.about-gallery__counter-sep {
  opacity: 0.4;
  margin: 0 1px;
}
