/* ═══════════════════════════════════════════════════════════════
   LoonLevel — Shared Stylesheet
   Font: Montserrat (headlines) + DM Sans (body)
   ═══════════════════════════════════════════════════════════════ */

/* ── LOCAL FONTS ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-LightItalic.ttf') format('truetype');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── SPLASH SCREEN ───────────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #040c1a);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
}
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
#splash-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(14,165,233,0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
#splash-logo {
  position: relative;
  z-index: 1;
  height: clamp(100px, 20vw, 180px);
  width: auto;
  opacity: 0;
  transform: scale(0.92) translateY(6px);
  animation: splashLogoIn 0.8s cubic-bezier(0.34,1.4,0.64,1) 0.2s forwards;
}
@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg:          #040c1a;
  --bg2:         #07122a;
  --bg3:         #0b1a38;
  --card:        rgba(255,255,255,0.04);
  --card-hover:  rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.16);

  --text:        #edf4ff;
  --text2:       #8daac8;
  --text3:       #4a6580;

  --blue:        #0ea5e9;
  --blue-bright: #38bdf8;
  --blue-dim:    rgba(14,165,233,0.12);
  --blue-glow:   rgba(14,165,233,0.28);
  --teal:        #2dd4bf;
  --teal-dim:    rgba(45,212,191,0.12);

  --r:    16px;
  --r-sm: 10px;
  --r-xs: 6px;
  --nav-h: 96px;
  --max-w: 1200px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(14,165,233,0.35);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section    { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-alt { background: var(--bg2); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #020c18;
  box-shadow: 0 0 28px rgba(14,165,233,0.4), 0 4px 16px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(14,165,233,0.6), 0 8px 24px rgba(0,0,0,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  background: var(--card-hover);
  border-color: rgba(14,165,233,0.4);
  transform: translateY(-2px);
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(4,12,26,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img  { height: 64px; width: auto; }
.nav-sep       { width: 1px; height: 26px; background: var(--border); }
.nav-imago-img {
  height: 32px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}
.nav-brand:hover .nav-imago-img { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text2);
  transition: all 0.18s;
  background: transparent;
  border: none;
  font-family: 'Montserrat', sans-serif;
}
.lang-btn.active,
.lang-btn:hover {
  background: rgba(14,165,233,0.2);
  color: var(--blue);
}
.nav-cta { font-size: 0.76rem; padding: 10px 20px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(4,12,26,0.98);
  backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-lang {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.mobile-lang a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text2);
}
.mobile-lang a.active { color: var(--blue); }

/* ── HERO ────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Full-bleed background photo */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: calc(28% - 300px) center;
  will-change: transform;
}

/* Gradient overlay: trasparente a sx (monitor visibile), scuro a dx (testo leggibile) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(4,12,26,0.10)  0%,
      rgba(4,12,26,0.28)  36%,
      rgba(4,12,26,0.90)  54%,
      rgba(4,12,26,0.98) 100%
    ),
    linear-gradient(to bottom, rgba(4,12,26,0.55) 0%, transparent 20%),
    linear-gradient(to top,    rgba(4,12,26,0.40) 0%, transparent 16%);
  pointer-events: none;
}

/* Left grid cell: transparent spacer — shows photo */
.hero-spacer {
  position: relative;
  z-index: 2;
}

/* Right grid cell: text */
.hero-content-side {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) max(28px, calc((100vw - var(--max-w)) / 2 + 28px)) 80px 52px;
}

.hero-content { width: 100%; }

.hero-tag {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.25s forwards;
}
.hero-h1 {
  font-size: clamp(2.4rem, 3.6vw, 4rem);
  font-weight: 900;
  margin: 20px 0 24px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.35s forwards;
}
.hero-h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.45s forwards;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.55s forwards;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.65s forwards;
  flex-wrap: wrap;
}
.hero-stat-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.hero-stat-val span { color: var(--blue); }
.hero-stat-label {
  font-size: 0.74rem;
  color: var(--text2);
  margin-top: 5px;
  letter-spacing: 0.04em;
}

/* ── SECTION HEADER ─────────────────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 560px;
}
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── BEFORE/AFTER SLIDER ─────────────────────────────────────────── */
.ba-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ba-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 860px;
}
.ba-label-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
}
.ba-label-pill.active {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.35);
  color: var(--blue);
}
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: var(--r);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  border: 1px solid rgba(14,165,233,0.2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(14,165,233,0.08);
}
.ba-img-back {
  display: block;
  width: 100%;
  height: auto;
}
.ba-front-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  overflow: hidden;
}
.ba-front-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}
.ba-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.9);
}
.ba-handle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
  color: #1a1a1a;
}
.ba-hint {
  font-size: 0.74rem;
  color: var(--text3);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── CONTROLS GRID ───────────────────────────────────────────────── */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── Optional controls divider ── */
.controls-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 52px 0 24px;
}
.controls-divider::before,
.controls-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.controls-divider-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(45,212,191,0.35);
  border-radius: 100px;
  padding: 5px 16px;
  white-space: nowrap;
}
.controls-divider-label::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Optional controls grid (3 cols) ── */
.controls-optional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Teal variant for optional cards */
.control-card.optional {
  border-style: dashed;
}
.control-card.optional::after {
  background: linear-gradient(135deg, rgba(45,212,191,0.07), transparent 60%);
}
.control-card.optional:hover {
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(45,212,191,0.15);
}
.control-card.optional .control-icon {
  background: var(--teal-dim);
  border-color: rgba(45,212,191,0.25);
}
.control-card.optional .control-icon svg { color: var(--teal); }
.control-card.optional .control-num { color: rgba(45,212,191,0.45); }
.control-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 22px;
  transition: all 0.32s ease;
  position: relative;
  overflow: hidden;
}
.control-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.32s;
}
.control-card:hover {
  border-color: rgba(14,165,233,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(14,165,233,0.15);
}
.control-card:hover::after { opacity: 1; }
.control-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text3);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.control-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-dim);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.control-icon svg { color: var(--blue); }
.control-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.control-card p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── TECH SECTION ────────────────────────────────────────────────── */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tech-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin: 20px 0 24px;
}
.tech-text p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tech-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
}
.tech-pill.accent {
  background: var(--blue-dim);
  border-color: rgba(14,165,233,0.3);
  color: var(--blue);
}
.tech-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.metric-card:hover {
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-3px);
}
.metric-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-unit {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: middle;
}
.metric-label {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.4;
}

/* ── GALLERY ─────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 320px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--card);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.wide {
  grid-column: 1 / -1;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(transparent, rgba(4,12,26,0.92));
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.04em;
}

/* ── LABEL SECTION ───────────────────────────────────────────────── */
.label-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.label-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(45,212,191,0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 40px rgba(45,212,191,0.08);
}
.label-img-wrap img { display: block; width: 100%; height: auto; }
.label-img-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(4,12,26,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin: 20px 0 24px;
}
.label-text p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
}
.label-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.label-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 0.2s;
}
.label-feature:hover { border-color: rgba(45,212,191,0.3); }
.label-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(45,212,191,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.label-feat-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.label-feat-text p {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}

/* ── ABOUT ───────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  aspect-ratio: 4/3;
  position: relative;
}
.about-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  margin: 20px 0 24px;
}
.about-text p {
  font-size: 0.97rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text a {
  color: var(--blue);
  text-decoration: none;
}
.about-text a:hover { text-decoration: underline; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.about-fact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.about-fact:hover { border-color: var(--border-hi); }
.about-fact-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 5px;
}
.about-fact-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.about-fact-val a {
  color: var(--blue);
  text-decoration: none;
}

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.contact-info-block h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin: 20px 0 20px;
}
.contact-info-block > p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: rgba(14,165,233,0.3); }
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--blue-dim);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-item-content {}
.contact-item-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 2px;
}
.contact-item-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.contact-item-val a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item-val a:hover { color: var(--blue); }

/* FORM */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text3); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(14,165,233,0.5);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.08);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--teal);
  font-weight: 600;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}
.footer-brand-logo {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-imago-note {
  font-size: 0.78rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-imago-logo {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}
.footer-imago-note a { color: var(--blue); text-decoration: none; }
.footer-imago-note a:hover { text-decoration: underline; }
.footer-col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.83rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── SCROLL PROGRESS ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── DIAGONAL SEPARATOR ──────────────────────────────────────────── */
.diag-separator {
  height: 64px;
  background: var(--bg2);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  position: relative;
  z-index: 4;
  margin-top: -63px;
  pointer-events: none;
}

/* ── LIGHTBOX ─────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2,8,18,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-content {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  transform: scale(0.96);
  transition: transform 0.28s ease;
}
.lightbox.open .lb-img { transform: scale(1); }
.lb-caption {
  font-size: 0.8rem;
  color: var(--text2);
  text-align: center;
  letter-spacing: 0.04em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.15);
}
.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { display: none; }
  .lb-img { max-height: 75vh; }
}

/* ── PROBLEM SECTION ─────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.problem-card:hover {
  border-color: rgba(14,165,233,0.35);
  transform: translateY(-4px);
}
.problem-stat {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ── RESULTS / SOCIAL PROOF ──────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.result-card:hover {
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-3px);
}
.result-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
}
.result-unit {
  font-size: 1.4rem;
  font-weight: 700;
  vertical-align: middle;
}
.result-label {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r);
  padding: 32px 40px;
  margin-bottom: 48px;
}
.testimonial p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial cite {
  font-size: 0.76rem;
  color: var(--text3);
  font-style: normal;
  letter-spacing: 0.04em;
}
.sectors-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sectors-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  flex-shrink: 0;
  white-space: nowrap;
}
.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sector-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: border-color 0.2s, color 0.2s;
}
.sector-tag:hover {
  border-color: rgba(14,165,233,0.3);
  color: var(--text);
}

/* ── INTEGRATION ROW ─────────────────────────────────────────────── */
.integration-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}
.integration-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  flex-shrink: 0;
  white-space: nowrap;
}
.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.int-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--blue-dim);
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--blue);
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 30px;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(14,165,233,0.25); }
.faq-item h3 {
  font-size: 0.97rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq-item p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.75;
}

/* ── COMPARISON TABLE ────────────────────────────────────────────── */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.comparison-table {
  min-width: 620px;
  width: 100%;
}
.ct-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  border-bottom: 1px solid var(--border);
}
.ct-row:last-child { border-bottom: none; }

/* Header row */
.ct-header {
  background: var(--bg3);
}
.ct-header .ct-feature { border-radius: var(--r) 0 0 0; }
.ct-header .ct-col {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  padding: 18px 20px;
  text-align: center;
  letter-spacing: 0.02em;
  border-left: 1px solid var(--border);
}
.ct-header .ct-highlight {
  background: var(--blue);
  color: #020c18;
  border-radius: 0 var(--r) 0 0;
  border-left: none;
  font-size: 0.88rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 24px;
}

.ct-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(2,12,24,0.2);
  border-radius: 100px;
  padding: 3px 10px;
  color: rgba(2,12,24,0.8);
}

/* Feature column */
.ct-feature {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.01);
}

/* Data columns */
.ct-col {
  border-left: 1px solid var(--border);
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.82rem;
}
.ct-col small {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.04em;
}

/* Highlighted LoonLevel column */
.ct-row:not(.ct-header) .ct-highlight {
  background: rgba(14,165,233,0.06);
  border-left: 1px solid rgba(14,165,233,0.2);
  border-right: 1px solid rgba(14,165,233,0.2);
}
.ct-last .ct-highlight {
  border-radius: 0 0 var(--r) 0;
}
.ct-last .ct-feature {
  border-radius: 0 0 0 var(--r);
}

/* Alternating row background */
.ct-row:not(.ct-header):nth-child(even) {
  background: rgba(255,255,255,0.015);
}

/* Status colors */
.ct-good    { color: #22c55e; font-weight: 700; font-size: 0.85rem; }
.ct-mid     { color: #f59e0b; font-weight: 600; font-size: 0.82rem; }
.ct-bad     { color: #ef4444; font-weight: 600; font-size: 0.82rem; }
.ct-neutral { color: var(--text3); font-size: 0.82rem; }

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px #22c55e; }
  50%       { box-shadow: 0 0 16px #22c55e; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .controls-grid { grid-template-columns: repeat(3, 1fr); }
  .controls-optional-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: 100vh; }
  .hero-spacer { display: none; }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(4,12,26,0.55) 0%, transparent 20%),
      linear-gradient(to top,    rgba(4,12,26,0.40) 0%, transparent 16%),
      rgba(4,12,26,0.62);
  }
  .hero-content-side {
    padding: calc(var(--nav-h) + 56px) 28px 72px 28px;
    justify-content: center;
  }
  .hero-content { max-width: 600px; }
  .tech-layout,
  .about-layout,
  .label-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 52px; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  .controls-optional-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .gallery-item.wide { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-tagline { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .tech-metrics { grid-template-columns: 1fr 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 24px 24px; }
  .sectors-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .integration-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ct-feature { font-size: 0.78rem; padding: 14px 14px; }
}
@media (max-width: 540px) {
  .controls-grid { grid-template-columns: 1fr; }
  .controls-optional-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .lang-switch { display: none; }
}

/* ── UTILS ───────────────────────────────────────────────────────── */
::selection { background: rgba(14,165,233,0.3); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(14,165,233,0.3); border-radius: 3px; }
