/* StepReplay landing — tokeny 1:1 z design systemem (Figma / global.css apki) */
:root {
  --color-bg: #0e0e12;
  --color-surface: #17171d;
  --color-border: #2a2a33;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a0a0ab;
  --color-accent: #b30059;
  --color-accent-bright: #e63b82;
  --color-accent-deep: #80003f;
  --radius-pill: 999px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero: tor scrubbingu + sticky viewport ---------- */

.scroll-track { height: 300vh; position: relative; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Okna szersze niż 16:9: cover przycinałby telefon w pionie — contain pokazuje
   cały kadr, a ciemne boki wideo zlewają się z tłem strony */
@media (min-aspect-ratio: 16/9) {
  .hero-video { object-fit: contain; }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg, var(--color-bg), transparent 14%, transparent 86%, var(--color-bg)),
    linear-gradient(0deg, var(--color-bg), transparent 12%);
}

/* ---------- Nav ---------- */

.nav {
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 20px;
}

.nav-logo-mark {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #f95a9e, var(--color-accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(230, 59, 130, 0.7));
}

.nav-links {
  display: flex;
  gap: 32px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-text-primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-login {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ---------- Przyciski glow ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

.btn-glow {
  background: linear-gradient(180deg, #f95a9e 0%, var(--color-accent-bright) 55%, var(--color-accent) 100%);
  border: 1.5px solid rgba(255, 158, 199, 0.75);
  box-shadow:
    0 4px 28px 2px rgba(230, 59, 130, 0.85),
    0 10px 70px 10px rgba(179, 0, 89, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 34px 4px rgba(230, 59, 130, 0.95),
    0 12px 80px 14px rgba(179, 0, 89, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
}

.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-lg { padding: 22px 40px; font-size: 22px; }
.btn-icon { width: 22px; height: 22px; }

/* ---------- Hero copy ---------- */

.hero-copy {
  position: absolute;
  left: clamp(24px, 6.5vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

.hero-headline {
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.accent-dot { color: var(--color-accent-bright); }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-secondary);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: hint-bob 2.2s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sekcje pod hero ---------- */

.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 24px;
  text-align: center;
}

.section h2 { font-size: 40px; font-weight: 700; margin-bottom: 20px; }

.section-lead { color: var(--color-text-secondary); font-size: 18px; line-height: 1.6; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer nav { display: flex; gap: 24px; }

.footer a { color: var(--color-text-secondary); text-decoration: none; }

.footer a:hover { color: var(--color-text-primary); }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .nav { left: 16px; right: 16px; }
  .nav-links { display: none; }
  .hero-video { object-position: 68% center; }
  .hero-copy { top: auto; bottom: 96px; transform: none; gap: 28px; }
  .btn-lg { padding: 18px 32px; font-size: 18px; }
}

/* ---------- Reduced motion: bez scrubbingu, statyczna 1. klatka ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
}
