/* ============================================================
   BETTERMOVE.STUDIO — MAIN CSS
   Dark-first performance tech aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #0A0B0E;
  --c-bg-2:        #0E0F12;
  --c-bg-3:        #15171C;
  --c-bg-4:        #1A1D24;
  --c-border:      rgba(255,255,255,0.06);
  --c-border-2:    rgba(255,255,255,0.10);

  --c-primary-1:   #37AEE4;
  --c-primary-2:   #4182C4;
  --c-gradient:    linear-gradient(135deg, #37AEE4 0%, #4182C4 100%);
  --c-gradient-r:  linear-gradient(135deg, #4182C4 0%, #37AEE4 100%);
  --c-glow:        rgba(55, 174, 228, 0.18);
  --c-glow-strong: rgba(55, 174, 228, 0.35);

  --c-signal:      #22FF88;
  --c-signal-dim:  rgba(34, 255, 136, 0.12);
  --c-cyan:        #00F0FF;

  --c-white:       #FFFFFF;
  --c-gray-100:    #F3F4F6;
  --c-gray-300:    #D1D5DB;
  --c-gray-500:    #6B7280;
  --c-gray-700:    #343434;

  /* Typography */
  --font-display:  'Syne', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;

  /* Spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;
  --sp-9:  128px;

  /* Border radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Layout */
  --max-w:      1280px;
  --content-w:  1140px;
  --section-py: clamp(80px, 10vw, 140px);

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-canvas:  0;
  --z-content: 10;
  --z-sticky:  50;
  --z-nav:     100;
  --z-modal:   200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* prevent horizontal scroll from any element */
}

body {
  font-family: var(--font-body);
  background: var(--c-bg) !important;
  color: var(--c-gray-300);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* Custom cursor — applies when JS adds class to <body> */
.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-primary-2); border-radius: 2px; }

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: var(--c-primary-1);
  color: var(--c-bg);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  color: var(--c-white);
}

h1 { font-size: clamp(35px, 5vw, 58px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.5vw, 30px); }
h4 { font-size: clamp(16px, 2vw, 22px); }

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

.text-lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--c-gray-300);
}

.text-small { font-size: 14px; color: var(--c-gray-500); }
.text-mono {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary-1);
}

.text-overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary-1);
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 20px 0;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

/* Nav gets its own full-width container */
.nav > .container {
  max-width: 100%;
  padding: 0 15px;
}

.nav.scrolled {
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--c-border);
  padding: 14px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.nav__logo {
  flex-shrink: 0;
  flex-grow: 0;
  height: 28px;
  display: flex;
  align-items: center;
  padding-right: clamp(12px, 2vw, 32px);
}

/* Override global max-width:100% for nav logo */
.nav__logo img {
  height: 25px;
  width: auto;
  max-width: none;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.3vw, 20px);
  flex: 1;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible; /* must be visible so submenu dropdown isn't clipped */
}

/* Right-side controls: lang + CTA + hamburger — stay right */
.nav__lang,
.nav__cta,
.nav__hamburger {
  flex-shrink: 0;
}

.nav__lang  { margin-left: auto; padding-left: clamp(8px, 1.2vw, 20px); }
.nav__cta   { padding-left: clamp(6px, 1vw, 16px); }
.nav__hamburger { padding-left: 12px; }

/* ── NAV ITEM WITH SUBMENU ───────────────────────────────── */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  transition: color 0.25s;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--c-gradient);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--c-white); }
.nav__link.active::after { transform: scaleX(1); }

/* ── SUBMENU (Oferta) ────────────────────────────────────── */
.nav__item--has-sub .nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav__sub-chevron {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
  color: currentColor;
}

.nav__item--has-sub:hover .nav__sub-chevron,
.nav__item--has-sub.open  .nav__sub-chevron {
  transform: rotate(180deg);
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: calc(var(--z-nav) + 10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

/* small arrow tip pointing up */
.nav__submenu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--c-bg-3);
  border-left: 1px solid var(--c-border-2);
  border-top: 1px solid var(--c-border-2);
}

.nav__item--has-sub:hover .nav__submenu,
.nav__item--has-sub.open  .nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__submenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav__submenu-link:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.05);
}

.nav__submenu-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.nav__submenu-link:hover svg { opacity: 1; }

.nav__submenu-divider {
  height: 1px;
  background: var(--c-border);
  margin: 4px 6px;
}

/* ── LANGUAGE DROPDOWN ─────────────────────────────────────── */
.nav__lang {
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__trigger {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-300);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border-2);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.lang-dropdown__trigger:hover {
  color: var(--c-primary-1);
  border-color: rgba(55,174,228,0.3);
  background: rgba(55,174,228,0.07);
}

.lang-dropdown__chevron {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.lang-dropdown.open .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  padding: 4px;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.lang-dropdown.open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.lang-option:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.06);
}

.lang-option.active {
  color: var(--c-primary-1);
}

/* legacy lang-btn fallback */
.lang-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--c-primary-1);
  background: rgba(55, 174, 228, 0.1);
}

.nav__cta { display: flex; gap: var(--sp-3); align-items: center; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: var(--r-md);
  position: relative;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 0 28px var(--c-glow-strong), 0 8px 24px rgba(55,174,228,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(55, 174, 228, 0.4);
}

.btn-secondary:hover {
  background: rgba(55, 174, 228, 0.08);
  border-color: var(--c-primary-1);
  box-shadow: 0 0 16px var(--c-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-gray-300);
  border: 1px solid var(--c-border-2);
}

.btn-ghost:hover {
  color: var(--c-white);
  border-color: var(--c-border-2);
  background: rgba(255,255,255,0.04);
}

.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-gradient);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
}

.card:hover {
  border-color: rgba(55, 174, 228, 0.25);
  transform: perspective(800px) rotateX(1.5deg) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--c-glow);
}

.card:hover::before { opacity: 0.03; }

/* ── SECTION DIVIDERS ────────────────────────────────────────── */
.divider-slant {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}

.divider-slant--top { top: -1px; }
.divider-slant--bottom { bottom: -1px; }

/* ── BG WATERMARK TEXT ───────────────────────────────────────── */
.bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-white);
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

/* ── LABEL / TAG ─────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(55, 174, 228, 0.1);
  border: 1px solid rgba(55, 174, 228, 0.2);
  color: var(--c-primary-1);
}

.tag-green {
  background: rgba(34, 255, 136, 0.08);
  border-color: rgba(34, 255, 136, 0.2);
  color: var(--c-signal);
}

/* ── STAT / DATA CARD ────────────────────────────────────────── */
.data-card {
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  position: relative;
}

.data-card__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  background: var(--c-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.data-card__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  margin-top: 6px;
}

/* ── TELEMETRY PULSE ─────────────────────────────────────────── */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-signal);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--c-signal);
  opacity: 0.3;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── COMPARISON TABLE ────────────────────────────────────────── */
.compare-col {
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.compare-col.featured {
  border-color: rgba(55, 174, 228, 0.35);
  background: rgba(55, 174, 228, 0.04);
  box-shadow: 0 0 40px var(--c-glow);
}

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-primary-1), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--sp-6);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-gradient);
  box-shadow: 0 0 12px var(--c-glow);
}

/* ── ACCORDION / FAQ ─────────────────────────────────────────── */
.accordion__item {
  border-bottom: 1px solid var(--c-border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  background: none;
  border: none;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  gap: var(--sp-4);
  transition: color 0.2s;
}

.accordion__trigger:hover { color: var(--c-primary-1); }

.accordion__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--c-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}

.accordion__item.open .accordion__icon {
  transform: rotate(45deg);
  background: rgba(55,174,228,0.15);
  border-color: var(--c-primary-1);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.accordion__body-inner {
  padding-bottom: var(--sp-4);
  color: var(--c-gray-500);
  font-size: 15px;
  line-height: 1.7;
}

/* ── FORM ────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--c-bg-2);
  border: 1px solid #2A2D34;
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-gray-700); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-primary-1);
  box-shadow: 0 0 0 3px rgba(55, 174, 228, 0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  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='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option { background: var(--c-bg-2); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--c-primary-1);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 13px;
  color: var(--c-gray-500);
  line-height: 1.5;
}

.form-toggle {
  display: flex;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 4px;
}

.form-toggle__btn {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  transition: all 0.25s;
}

.form-toggle__btn.active {
  background: var(--c-gradient);
  color: var(--c-white);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-8) 0 var(--sp-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--c-gray-500);
  line-height: 1.7;
  margin-top: var(--sp-3);
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  margin-bottom: var(--sp-3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--c-gray-500);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.footer__legal {
  font-size: 13px;
  color: var(--c-gray-700);
}

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(10, 11, 14, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  color: var(--c-gray-300);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.mobile-menu__link:hover { color: var(--c-white); }

/* ── STICKY CTA BAR ──────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 11, 14, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-4);
  display: none;
  gap: var(--sp-3);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
/* Wrap sections with reveal-left/right to prevent horizontal scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* Use contain on the parent section to clip translateX overflow */
/* contain:paint removed — breaks GSAP ScrollTrigger pin and canvas overflow */

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);  /* reduced from 40px */
}

.reveal-left.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);  /* reduced from 40px */
}

.reveal-right.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

@media (max-width: 768px) {
  /* On mobile, collapse translateX to vertical only — no horizontal bleed */
  .reveal-left  { transform: translateY(20px); }
  .reveal-right { transform: translateY(20px); }
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }
.reveal-delay-5 { transition-delay: 0.5s !important; }

/* ── PAGE-SPECIFIC HERO CANVAS ───────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* ── GLOW DIVIDERS ───────────────────────────────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-primary-1), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ── PAGE TRANSITION OVERLAY ─────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__logo {
  height: 32px;
  animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-gray-500);
  margin-bottom: var(--sp-4);
}

.breadcrumb__sep { color: var(--c-gray-700); }
.breadcrumb a:hover { color: var(--c-primary-1); }

/* ── BADGE / PILL ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--c-gradient);
  color: var(--c-white);
}

/* ── SCROLLTRIGGER PINS (GSAP) ───────────────────────────────── */
.pin-section {
  position: relative;
  min-height: 100vh;
}

.pin-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .nav__link  { font-size: 12px; letter-spacing: 0.04em; }
  .nav__links { gap: clamp(4px, 1.2vw, 16px); }
}

@media (max-width: 1100px) {
  .nav__link  { font-size: 11px; letter-spacing: 0.03em; }
  .nav__links { gap: clamp(3px, 1vw, 12px); }
  .nav__logo  { padding-right: 16px; }
  .btn-sm     { font-size: 11px; padding: 8px 14px; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }

  .nav__links,
  .nav__lang,
  .nav__cta { display: none; }

  /* Hamburger: when links/lang/cta are gone, push it to far right */
  .nav__hamburger {
    display: flex;
    margin-left: auto;
    padding-left: 0;
  }

  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #hero-canvas { display: none; }
}




/* Kontener dopasowuje się do rodzica */
.body-model-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Obrazek bazowy */
#body-model-base {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* SVG MUSI mieć identyczne wymiary i pozycję co img */
#body-highlight-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.body-highlight {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.body-highlight.active {
    opacity: 1;
}

/* ── FIX: Mobile overflow + model positioning ── */

/* Zapobiega poziomemu scrollowi na całej stronie */
html, body {
    overflow-x: hidden;
}

.how-it-works,
.how-it-works__pinned {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Kontener modelu - ograniczony do dostępnej przestrzeni */
.how-visual {
    overflow: hidden;
    max-width: 100%;
}

.how-visual__canvas {
    overflow: hidden;
    max-width: 100%;
}

.body-model-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#body-model-base {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
}

#body-highlight-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Na mobile model idzie pod tekst i ma ograniczoną wysokość */
@media (max-width: 768px) {
    .how-it-works__pinned {
        flex-direction: column;
    }

    .how-visual {
        width: 100%;
        max-height: 50vh;
    }

    .body-model-container {
        max-height: 50vh;
    }

    #body-model-base {
        max-height: 50vh;
        width: auto;
        margin: 0 auto;
    }
}

/* ── Custom checkbox ── */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;      /* zapobiega ściśnięciu */
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative;
    margin-top: 2px;      /* wyrównanie z pierwszą linią tekstu */
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked {
    background: rgba(0, 150, 255, 0.15);
    border-color: #0096ff;
}

/* Niebieski tick */
.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 7px;
    height: 11px;
    border: 2px solid #0096ff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #0096ff;
    outline-offset: 2px;
}

.form-checkbox-label {
    font-size: 0.8rem;
    color: var(--c-muted, #888);
    line-height: 1.5;
    cursor: pointer;
}

.form-group.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
}

.footer__bottom a:hover {
    transition: all .7s;
    color: #ffffff !important;
}
