:root {
  --navy: #030712;
  --teal: #14B8A6;
  --teal-glow: #2DD4BF;
  --ghost: #F3F4F6;
  --slate-light: #9CA3AF;
  --slate: #6B7280;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--ghost);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════ GRAIN ═══════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════ CURSOR SPOTLIGHT ═══════ */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.07) 0%, rgba(20, 184, 166, 0.02) 30%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ═══════ NAV ═══════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none; /* Zapobieganie zaznaczaniu */
  -webkit-user-select: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-wordmark {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ghost);
}

.nav-wordmark .bolt {
  color: var(--teal);
}

/* ═══════ HERO ═══════ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

/* Dot grid background */
.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.dot-grid canvas {
  width: 100%;
  height: 100%;
}

/* Subtle bolt lines */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  user-select: none;
  -webkit-user-select: none;
}

.hero-bg .v-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--teal), transparent);
  opacity: 0;
}

.hero-bg .v-line:nth-child(1) {
  left: 50%;
  top: 0;
  height: 42%;
  animation: lineFade 2.2s ease-out 0.2s forwards;
}

.hero-bg .v-line:nth-child(2) {
  left: 33%;
  top: 3%;
  height: 26%;
  transform: rotate(5deg);
  animation: lineFade 1.8s ease-out 0.7s forwards;
}

.hero-bg .v-line:nth-child(3) {
  left: 67%;
  top: 5%;
  height: 24%;
  transform: rotate(-4deg);
  animation: lineFade 1.8s ease-out 1s forwards;
}

.hero-bg .glow {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--teal-glow);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 30px 10px rgba(20, 184, 166, 0.25), 0 0 60px 25px rgba(20, 184, 166, 0.08);
  animation: glowIn 1.8s ease-out 1.6s forwards;
}

@keyframes lineFade {
  0% { opacity: 0; }
  40% { opacity: 0.1; }
  100% { opacity: 0.05; }
}

@keyframes glowIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  60% { opacity: 0.7; }
  100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 48%, transparent 0%, var(--navy) 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ghost);
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.9s ease-out 0.4s both;
}

.hero-badge .dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s ease-out 0.7s both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal), var(--teal-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--slate-light);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  font-weight: 400;
  animation: fadeUp 0.9s ease-out 1s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════ FOOTER ═══════ */
footer {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center; /* To wyśrodkowuje zawartość */
  position: relative;
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
  font-size: 0.72rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 480px) {
  .hero { padding: 5rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.4rem; }
  footer { text-align: center; }
  .cursor-glow { display: none; }
}