:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --red: #ff241c;
  --red-soft: rgba(255, 36, 28, 0.18);
  --red-glow: rgba(255, 36, 28, 0.35);
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff6a64;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 36, 28, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 36, 28, 0.08), transparent 50%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 50%, #050505 100%);
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.atmosphere__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 36, 28, 0.03) 50%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan 9s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

@keyframes scan {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

/* Layout shells */
.site-header,
.site-footer,
.legal-wrap,
.hero {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 0 5rem;
}

.hero__logo {
  width: min(420px, 82vw);
  margin: 0 auto 0.85rem;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: rise 0.9s var(--ease) 0.15s forwards;
  filter: drop-shadow(0 0 40px var(--red-glow));
}

.hero__logo img {
  width: 100%;
}

.hero__meta {
  margin: 0 auto 2rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  opacity: 0;
  animation: rise 0.85s var(--ease) 0.3s forwards;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  opacity: 0;
  animation: rise 0.85s var(--ease) 0.4s forwards;
}

.hero__contact {
  display: inline-block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0;
  animation: rise 0.85s var(--ease) 0.55s forwards;
  transition: color 0.2s ease;
}

.hero__contact:hover {
  color: var(--red);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.legal-page .updated {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li + li {
  margin-top: 0.4rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 5.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.88rem;
}

.site-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links .linkish:hover {
  color: var(--text);
}

.site-footer__links .linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer__activities {
  margin: 0;
  color: #6e6e6e;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: 720px;
  margin-inline: auto;
}

.cookie-banner.is-visible {
  display: flex;
  animation: rise 0.45s var(--ease) forwards;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--text);
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-btn--accept {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.cookie-btn--accept:hover {
  filter: brightness(1.08);
}

.cookie-btn--reject:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .cookie-banner {
    flex-direction: column;
    bottom: 0.75rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }

  .hero {
    min-height: calc(100vh - 5.5rem);
    padding-top: 3rem;
  }

  .site-footer {
    padding-bottom: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__logo,
  .hero__title,
  .hero__contact,
  .hero__meta {
    opacity: 1;
    transform: none;
  }
}
