:root {
  --bg: #030712;
  --card: rgba(13, 20, 38, 0.65);
  --card-hover: rgba(22, 32, 54, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(56, 189, 248, 0.3);

  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-dark: rgba(56, 189, 248, 0.05);

  --glow-card: 0 10px 30px -10px rgba(56, 189, 248, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(
      circle at 50% -10%,
      rgba(56, 189, 248, 0.12),
      transparent 60%
    ),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    100% 100%,
    64px 64px,
    64px 64px;
}

a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
.container {
  width: min(1220px, calc(100% - 48px));
  margin: auto;
}
.section {
  padding: 100px 0;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.02rem;
}

/* --- HEADER & NAV --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
}
.logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-name b {
  color: var(--accent);
}
.logo-sub {
  font-size: 0.56rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: -2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
  padding: 6px 2px;
  position: relative;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  background: var(--card);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-card);
  transform: translateY(-2px);
  color: #fff;
}
.btn-primary {
  background: var(--accent);
  color: #030712;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
  color: #fff;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* HERO SECTION */
.hero {
  padding: 90px 0 50px;
  position: relative;
  text-align: center;
}
.hero-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.2rem);
  margin: 14px 0 22px;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 span {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
}
.point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.88rem;
  text-align: left;
}
.point-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-dark);
  font-size: 1rem;
}

/* STATS BAR */
.stats {
  padding: 10px 0 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(16px);
}
.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.stat:last-child {
  border: 0;
}
.stat b {
  font-size: 1.05rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

/* CARDS & PANELS GENERAL */
.b2b-box,
.panel,
.value-card,
.finish-card,
.viewer-section-wrap,
.contact,
.trust-card,
.sector-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel:hover,
.value-card:hover,
.finish-card:hover,
.trust-card:hover,
.sector-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--glow-card);
}

.b2b-box {
  padding: 44px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.step {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.3);
  position: relative;
}
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0.35;
}
.step-num {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
}
.step h3 {
  font-size: 1rem;
  margin: 10px 0 6px;
}
.step p {
  color: var(--muted);
  font-size: 0.84rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.panel {
  padding: 32px;
}
.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-dark);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.panel h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.panel p {
  font-size: 0.9rem;
  color: var(--muted);
}
.list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.list li {
  font-size: 0.85rem;
  color: #cbd5e1;
  padding-left: 18px;
  position: relative;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* FDM + MATERIAŁY */
.fdm-materials-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.3);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-dark);
  border: 1px solid var(--border-accent);
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.feature p {
  font-size: 0.82rem;
  color: var(--muted);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.material {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.material-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.material h3 {
  font-size: 1rem;
  color: #fff;
}
.pill {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 8px;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  background: var(--accent-dark);
}
.material p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* VALUE ADD & FINISH */
.value-add-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value-card b {
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.value-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.finish-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.finish-img {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background: #010308;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-lines {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #070b14;
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
}
.visual-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 6px,
    rgba(56, 189, 248, 0.3) 6px,
    rgba(56, 189, 248, 0.3) 8px
  );
}
.v-0.visual-lines::after {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    rgba(56, 189, 248, 0.6) 10px,
    rgba(56, 189, 248, 0.6) 14px
  );
}
.v-1.visual-lines::after {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 5px,
    rgba(56, 189, 248, 0.4) 5px,
    rgba(56, 189, 248, 0.4) 7px
  );
}
.v-2.visual-lines::after {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(56, 189, 248, 0.2) 2px,
    rgba(56, 189, 248, 0.2) 3px
  );
}
.v-3.visual-lines::after {
  background: none;
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.6);
}

.finish-card h3 {
  font-size: 0.95rem;
  color: #fff;
}
.finish-card p {
  font-size: 0.8rem;
  color: var(--muted);
}
.finish-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-dark);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  align-self: flex-start;
}

/* SEKCJE DOWODU KOMPETENCJI */
.trust-card,
.sector-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-card h3,
.sector-card h3 {
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-card p,
.sector-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* VIEWERS 3D & MEDIA SHOWCASE */
.viewer-section-wrap {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.viewer-main-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
}
.viewer {
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #010308;
  border: 1px solid var(--border);
}
.viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.viewer-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.85);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.2s;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.icon-btn.active {
  background: var(--accent);
  color: #030712;
  border-color: var(--accent);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.project {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.3);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}
.project:hover,
.project.active {
  border-color: var(--border-accent);
  background: var(--accent-dark);
}
.project b {
  font-size: 0.92rem;
  display: block;
}
.project span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}

/* MEDIA SLOTS POD SPODEM 3D (GRAFIKA + TIMELAPSE) */
.media-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.media-slot {
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-slot-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.media-slot-header h4 {
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-slot-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-accent);
}
.media-preview-box {
  height: 240px;
  background: #010206;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  overflow: hidden;
}
.media-preview-box img,
.media-preview-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Styl dla nakładki wideo z pauzą / przyciskiem play */
.video-container {
  position: relative;
  cursor: pointer;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 2;
}
.video-container:hover .video-overlay {
  background: rgba(3, 7, 18, 0.45);
}
.video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #030712;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.2s ease;
}
.video-container:hover .video-play-btn {
  transform: scale(1.1);
}
.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* FORMULARZ & KONTAKT */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: 44px;
}
.contact-copy p {
  color: var(--muted);
  margin: 14px 0 28px;
  font-size: 1rem;
}
.contact-mini {
  display: grid;
  gap: 14px;
}
.contact-mini div {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 600;
  display: grid;
  gap: 5px;
}
input,
textarea,
select {
  width: 100%;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--border);
  color: white;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.form-note {
  font-size: 0.74rem;
  color: var(--muted);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  margin-top: 90px;
  padding: 56px 0 32px;
  background: #01040a;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}
.footer-grid h4 {
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a:hover {
  color: var(--accent);
}
.copy {
  text-align: center;
  color: #475569;
  font-size: 0.76rem;
  margin-top: 40px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
}

@media (max-width: 1024px) {
  .feature-row,
  .materials-grid,
  .finish-grid,
  .value-add-grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    background: #070b14;
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }
  .nav-links a.active::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .viewer-main-row,
  .contact {
    grid-template-columns: 1fr;
  }
  .media-showcase-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step::after {
    display: none !important;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1220px);
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero-points {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .steps,
  .grid-3,
  .grid-4,
  .feature-row,
  .materials-grid,
  .finish-grid,
  .value-add-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .viewer {
    height: 320px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
