/* =============================================
   TEPLI — Premium Landing Page
   Dark theme · Blue/Orange · PS Coat
   ============================================= */

/* ---- FONTS & ROOT VARIABLES ---- */
:root {
  --bg:         #050509;
  --bg-2:       #0b0b12;
  --bg-3:       #111120;
  --surface:    #141425;
  --surface-2:  #1c1c30;
  --blue:       #3b9eff;
  --blue-dim:   #1a5fa8;
  --blue-glow:  rgba(59, 158, 255, 0.25);
  --orange:     #ff7a2f;
  --orange-dim: #9a3d08;
  --orange-glow:rgba(255, 122, 47, 0.25);
  --gradient:   linear-gradient(120deg, #3b9eff 0%, #ff7a2f 100%);
  --text:       #f0f0f8;
  --text-muted: #8080a8;
  --text-dim:   #4a4a70;
  --border:     rgba(255, 255, 255, 0.07);
  --border-2:   rgba(255, 255, 255, 0.12);
  --font-h:     'Montserrat', sans-serif;
  --font-b:     'Inter', sans-serif;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);
  --radius:     16px;
  --radius-sm:  8px;
  --transition: 0.3s var(--ease-in-out);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
ul { list-style: none; }
input, textarea, select {
  font-family: var(--font-b);
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}
::selection { background: var(--blue); color: #fff; }

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  z-index: 1000;
  transition: none;
  transform-origin: left;
  will-change: width;
}

/* ---- CUSTOM CURSOR (desktop) ---- */
#cursor-dot,
#cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  top: 0; left: 0;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(59, 158, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s, opacity 0.3s;
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--orange);
}
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(36px, 4.5vw, 68px); }
h2 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }

.eyebrow-label {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.section-header h2 { margin-bottom: 20px; }
.section-desc {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 158, 255, 0.35), 0 4px 12px rgba(255, 122, 47, 0.2);
}
.btn-primary svg { flex-shrink: 0; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  color: var(--text-muted);
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 50px;
  border: 1.5px solid var(--border-2);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* =============================
   NAVIGATION
============================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, padding 0.3s;
  padding: 0;
}
#navbar.scrolled {
  background: rgba(5, 5, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 48px;
  height: 72px;
}
.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: auto;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gradient);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px clamp(20px, 5vw, 80px) 24px;
  background: rgba(5, 5, 9, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}
.nav-mobile-menu.open {
  display: flex;
  max-height: 400px;
}
.mobile-link {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-h);
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }
.mobile-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

/* =============================
   HERO SECTION
============================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* Gradient fallback widoczny NATYCHMIAST zanim załaduje się wideo */
  background: linear-gradient(135deg, #07071a 0%, #0d1a35 40%, #1a0d07 70%, #07071a 100%);
}

.hero-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
  /* Gradient widoczny natychmiast — zanim wideo się załaduje */
  background: linear-gradient(135deg, #0a0820 0%, #0d1b38 35%, #1c1005 65%, #0a0820 100%);
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform, opacity;
  /* Startuje niewidoczne — pojawia się dopiero gdy wideo gotowe */
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 9, 0.55) 0%,
    rgba(5, 5, 9, 0.35) 40%,
    rgba(5, 5, 9, 0.65) 75%,
    rgba(5, 5, 9, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: 1000px;
  /* CSS fallback: jeśli GSAP nie uruchomi animacji */
  animation: heroFallbackShow 0.1s 2.5s forwards;
}
/* Gdy GSAP działa poprawnie, animacja CSS nie ma efektu
   (GSAP ustawia inline style z !important via willChange).
   Jeśli GSAP zawiedzie, po 2.5s elementy stają się widoczne. */
@keyframes heroFallbackShow {
  to { opacity: 1; }
}
.hero-content > * {
  /* Elementy domyślnie widoczne — GSAP nadpisuje inline stylem */
  opacity: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 8px 18px;
  border: 1px solid var(--border-2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(60px, 9vw, 130px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 0.12em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-line {
  display: block;
  will-change: transform, opacity;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero stats floating chips */
.hero-stats {
  position: absolute;
  bottom: 48px; right: clamp(20px, 4vw, 60px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform, opacity;
}
.stat-chip {
  background: rgba(20, 20, 37, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: right;
  min-width: 130px;
}
.stat-value {
  display: block;
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  animation: scroll-cue-anim 2s ease-in-out infinite;
}
@keyframes scroll-cue-anim {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* =============================
   TRUST BAR (marquee)
============================= */
.trust-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.trust-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2), transparent);
}
.trust-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2), transparent);
}
.marquee-wrapper { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track span {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 40px;
}
.marquee-track span:nth-child(odd) { color: var(--blue); }
.marquee-track span:nth-child(even) { color: var(--text-dim); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================
   ABOUT SECTION
============================= */
#about {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon-wrap {
  width: 52px; height: 52px;
  background: var(--surface-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue);
  transition: color 0.3s, background 0.3s;
}
.feature-card:hover .feature-icon-wrap { color: var(--orange); background: rgba(255,122,47,0.1); }
.feature-icon-wrap svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 12px; font-size: 17px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* =============================
   PROCESS SECTION (pinned)
============================= */
#process {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-pin {
  padding: clamp(80px, 10vw, 140px) 0;
}

.process-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 120px;
  align-items: start;
}
.process-left h2 { margin-bottom: 40px; }

.process-timeline {
  display: flex;
  align-items: center;
  gap: 24px;
}
.timeline-bar {
  width: 3px;
  height: 200px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.timeline-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--gradient);
  border-radius: 3px;
  transition: height 0.05s linear;
  will-change: height;
}
.timeline-steps-nav {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.t-nav {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: color 0.3s;
  cursor: pointer;
  padding: 0;
}
.t-nav.active { color: var(--blue); }

/* Process steps on the right */
.process-right {
  position: relative;
  min-height: 340px;
}
.process-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.process-step.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  position: relative;
}
.step-number {
  font-family: var(--font-h);
  font-size: 80px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.8;
}
.step-body h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  margin-bottom: 16px;
  color: var(--text);
}
.step-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.step-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* =============================
   APPLICATIONS SECTION
============================= */
#applications {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}
/* Rząd 1: Domy (span 2) + Rury */
.app-card--large {
  grid-column: span 2;
}
/* Rząd 2: Bloki + Kościoły (span 2) — układ lustrzany */
.app-card:nth-child(4) {
  grid-column: span 2;
}
/* Rząd 3: Posadzki (span 2) + Zbiorniki (span 1) — wzór [2+1] */
.app-card:nth-child(5) { grid-column: span 2; }
.app-card:nth-child(6) { grid-column: span 1; }

.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  cursor: pointer;
  will-change: transform, opacity;
}
.app-card--large { aspect-ratio: 16/9; }

.app-media {
  position: absolute;
  inset: 0;
}
.app-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.app-card:hover .app-media video { transform: scale(1.05); }

.app-media--gradient {
  background: linear-gradient(135deg, var(--g1, #1a3a5c), var(--g2, #0a1628));
}
.app-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,9,0.9) 0%, rgba(5,5,9,0.2) 60%, transparent 100%);
}

.app-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 1;
}
.app-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.app-info h3 {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text);
  margin-bottom: 6px;
}
.app-info p {
  font-size: 13px;
  color: rgba(240,240,248,0.65);
  line-height: 1.5;
  display: none;
}
.app-card:hover .app-info p { display: block; }
.app-card--large .app-info p { display: block; }

/* =============================
   PRODUCTS (horizontal scroll)
============================= */
#products {
  padding-top: clamp(80px, 10vw, 140px);
  background: var(--bg-2);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.products-header {
  text-align: center;
  margin-bottom: 48px;
}
.products-header h2 { margin-bottom: 12px; }
.products-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.products-outer {
  overflow-x: auto;
  overflow-y: visible;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.products-outer::-webkit-scrollbar { display: none; }
.products-outer:active { cursor: grabbing; }

.products-track {
  display: flex;
  gap: 20px;
  padding: 20px clamp(20px, 5vw, 80px) 40px;
  width: max-content;
  will-change: transform;
}

.product-card {
  flex-shrink: 0;
  width: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  padding: 36px 28px 32px;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  will-change: transform, opacity;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.product-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  opacity: 0.5;
  transition: opacity 0.3s;
}
.product-card:hover .product-bg { opacity: 0.7; }

.product-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--gc, var(--blue));
  filter: blur(60px);
  opacity: 0.15;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover .product-glow { opacity: 0.3; }

.product-content { position: relative; z-index: 1; }

.product-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  margin-bottom: 20px;
}
.product-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.product-card > .product-content > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.product-uses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.product-uses li {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-uses li::before {
  content: '→';
  color: var(--orange);
  font-size: 11px;
}

.products-footer {
  padding: 48px clamp(20px, 5vw, 80px) clamp(80px, 10vw, 140px);
  text-align: center;
  display: flex;
  justify-content: center;
}

/* =============================
   VIDEO SHOWCASE
============================= */
#video-showcase {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}

.video-stage {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16/9;
  margin-bottom: 24px;
}
.video-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.vthumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.vthumb:hover, .vthumb.active {
  color: var(--text);
  border-color: var(--blue);
  background: rgba(59,158,255,0.08);
}
.vthumb-icon { color: var(--blue); font-size: 10px; }

/* =============================
   CERTIFICATIONS
============================= */
#certifications {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  will-change: transform, opacity;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--border-2); }

.cert-logo {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  line-height: 1.1;
}
.cert-logo span { font-size: 10px; font-weight: 600; opacity: 0.8; }
.cert-logo.tuv { background: rgba(59,158,255,0.12); color: var(--blue); border: 1px solid rgba(59,158,255,0.25); }
.cert-logo.icimb { background: rgba(255,122,47,0.12); color: var(--orange); border: 1px solid rgba(255,122,47,0.25); font-size: 14px; }
.cert-logo.eu { background: rgba(139,92,246,0.12); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.25); }
.cert-logo.hyg { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); font-size: 14px; }
.cert-logo.fire { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); font-size: 12px; }
.cert-logo.lambda { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); font-size: 28px; }

.cert-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.cert-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* =============================
   WHY TEPLI
============================= */
#why-tepli {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-left .eyebrow-label { margin-bottom: 16px; }
.why-left h2 { margin-bottom: 20px; }
.why-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  will-change: transform, opacity;
}
.why-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-top: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.why-icon svg { width: 18px; height: 18px; }
.why-item:hover .why-icon { background: rgba(59,158,255,0.1); border-color: rgba(59,158,255,0.3); }
.why-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.why-text p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Why right – video */
.why-right { will-change: transform, opacity; }
.why-video-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.why-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.why-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,158,255,0.15), rgba(255,122,47,0.15));
  mix-blend-mode: color;
}
.why-badge {
  position: absolute;
  bottom: 28px; left: 28px;
  background: rgba(5,5,9,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 16px 20px;
}
.badge-top {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.badge-main {
  display: block;
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.badge-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================
   CONTACT SECTION
============================= */
#contact {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

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

.contact-info-col { will-change: transform, opacity; }
.contact-info-col h2 { margin-bottom: 16px; }
.contact-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover { border-color: var(--blue); transform: translateX(4px); }

.ci-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: rgba(59,158,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.ci-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Contact Form */
.contact-form-col { will-change: transform, opacity; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-field:last-of-type { margin-bottom: 24px; }
label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.req { color: var(--orange); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-b);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,158,255,0.12);
  outline: none;
}
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select option { background: var(--bg-3); color: var(--text); }
textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 15px;
  margin-bottom: 16px;
}
.form-note {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  color: #10b981;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}
.form-success.visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================
   FOOTER
============================= */
#footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding-top: clamp(60px, 8vw, 100px);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand img {
  height: 72px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-phones a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-phones a:hover { color: var(--blue); }

.footer-nav h5,
.footer-products h5,
.footer-area h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-nav a,
.footer-products span,
.footer-area p {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-area .footer-cta-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}
.footer-area .footer-cta-link:hover { color: var(--orange); }

.footer-divider {
  height: 1px;
  background: var(--border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
}
.footer-copy, .footer-note {
  font-size: 12px;
  color: var(--text-dim);
}

/* =============================
   REVEAL ANIMATIONS (base)
============================= */
.reveal-up {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.88) translate3d(0, 20px, 0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

/* =============================
   RESPONSIVE — TABLET
============================= */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .process-layout { grid-template-columns: 280px 1fr; gap: 48px; }
  .why-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .nav-links, .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .applications-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-card--large { grid-column: span 2; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-right { display: none; } /* hide video on mobile */

  .process-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-timeline { display: none; }
}

/* =============================
   RESPONSIVE — MOBILE
============================= */
@media (max-width: 640px) {
  .hero-title { font-size: clamp(48px, 12vw, 80px); }
  .hero-stats { display: none; }
  .hero-scroll-cue { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: 1fr; }
  .app-card--large,
  .app-card:nth-child(4),
  .app-card:nth-child(5),
  .app-card:nth-child(6) { grid-column: span 1; aspect-ratio: 4/3; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .video-thumbs { gap: 8px; }
  .vthumb { font-size: 12px; padding: 8px 14px; }
  .section-header { margin-bottom: 48px; }
  .process-right { min-height: auto; }
}

/* =============================
   REDUCED MOTION
============================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .marquee-track { animation: none; }
  .scroll-cue-line { animation: none; }
}
