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

:root {
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-glow: rgba(45, 212, 191, 0.15);
  --border: rgba(148, 163, 184, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
}

/* Tło */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(59, 130, 246, 0.06), transparent),
    var(--bg);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */

.header {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 1;
}

.header-mark {
  display: block;
}

.header-name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--accent);
}

.lang-sep {
  color: var(--border);
  user-select: none;
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 36rem;
  animation: fade-up 0.8s ease both;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-mark {
  width: clamp(56px, 12vw, 80px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 32px var(--accent-glow));
}

.hero-title {
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #f1f5f9 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

/* Footer */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Przyszłe sekcje */

.section {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

/* Animacje */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Preferencje użytkownika */

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .status-dot {
    animation: none;
  }
}
