:root {
  --color-bg: #14161a;
  --color-text: #ffffff;
  --color-muted: #9aa0a8;
  --color-accent: #f58220;
  --color-accent-blue: #2aa0d4;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --space-page: clamp(1.5rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hex {
  position: absolute;
  inset: -8%;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='none' stroke='%236a737d' stroke-width='0.9' d='M28 1.5 L54.5 16.75 V47.25 L28 62.5 L1.5 47.25 V16.75 Z M28 62.5 V95.5 M54.5 47.25 L80 62.5 M1.5 47.25 L-24 62.5'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(42, 160, 212, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 58% 42%, rgba(245, 130, 32, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(12, 13, 16, 0.88) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-page);
}

.wordmark {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch button {
  padding: 0.35rem 0.1rem;
  min-width: 1.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  transition: color 0.25s var(--ease-out);
}

.lang-switch button:hover,
.lang-switch button:focus-visible {
  color: var(--color-text);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--color-accent);
}

.lang-switch button:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

.site-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem var(--space-page) 2rem;
}

.hero {
  width: min(100%, 56rem);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
}

body.is-ready .hero {
  animation: fade-up 1.05s var(--ease-out) forwards;
}

.brand-lockup {
  display: block;
  width: min(100%, 52rem);
  height: auto;
  margin: 0 auto;
}

.hero p {
  max-width: 28rem;
  margin: 0.25rem auto 0;
  color: var(--color-muted);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.site-footer {
  color: var(--color-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    padding-block: 1.25rem;
  }

  .hero p {
    max-width: 22rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  body.is-ready .hero {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .lang-switch button {
    transition: none;
  }
}
