:root {
  color-scheme: dark;
  --text-primary: rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.56);
  --panel-bg: rgba(14, 19, 28, 0.34);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
  --accent: #f6f2eb;
  --accent-strong: #ffffff;
  --focus: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: #0a1018;
  color: var(--text-primary);
}

body::selection {
  background: rgba(255, 255, 255, 0.18);
}

a,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.backgrounds,
.bg-video,
.bg-overlay {
  position: fixed;
  inset: 0;
}

.backgrounds {
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 14, 22, 0.95), rgba(10, 18, 29, 0.72)),
    radial-gradient(circle at top left, rgba(120, 164, 196, 0.35), transparent 38%);
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 10s ease;
}

.bg-video.is-visible {
  opacity: 1;
  transform: scale(1);
}

.bg-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.34) 0%, rgba(5, 8, 12, 0.12) 26%, rgba(5, 8, 12, 0.62) 100%),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 20%);
}

.topbar,
.hero {
  position: relative;
  z-index: 3;
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(162, 205, 224, 0.8));
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.34);
}

.brand-text {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lang-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-select {
  color: var(--text-secondary);
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lang-select {
  min-height: 32px;
  padding: 0 34px 0 10px;
  border: 0;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%) calc(100% - 16px) calc(50% - 2px) / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%) calc(100% - 12px) calc(50% - 2px) / 6px 6px no-repeat,
    transparent;
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.hero {
  width: 100%;
  min-height: calc(100vh - 84px);
  margin: 0;
  padding: 42px 0 168px;
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 24px;
  align-items: center;
  padding-inline: 24px;
}

.hero-copy {
  max-width: 520px;
  padding: 0;
}

.info-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  text-align: right;
  padding-right: 8px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

h1,
h2 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  max-width: 12ch;
  line-height: 1;
}

.hero-text {
  max-width: 44ch;
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.primary-btn,
.scene-link {
  min-height: 42px;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-btn {
  background: var(--accent);
  color: #091018;
  font-weight: 700;
}

.primary-btn:hover,
.scene-link:hover {
  transform: translateY(-1px);
}

.scene-link {
  min-height: auto;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-points li {
  min-height: auto;
  padding: 0 0 0 16px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  border: 0;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.overlay-weather {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.3;
}

.overlay-clock {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3.8rem, 10vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.overlay-date {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.floating-cta {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer {
  position: fixed;
  right: 24px;
  bottom: 28px;
  left: auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  pointer-events: none;
}

.site-footer-copy,
.site-footer-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  pointer-events: auto;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  pointer-events: auto;
}

.site-footer-nav a:hover {
  color: #ffffff;
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 188px;
    gap: 20px;
  }

  .info-overlay {
    align-items: flex-start;
    text-align: left;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    width: 100%;
    padding-inline: 12px;
    padding-bottom: 236px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3rem);
  }

  .primary-btn,
  .lang-switcher,
  .lang-select,
  .scene-link {
    width: 100%;
  }

  .lang-switcher {
    border-radius: 18px;
    justify-content: space-between;
  }

  .floating-cta {
    right: 12px;
    left: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    right: 12px;
    left: 12px;
    bottom: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-footer-nav {
    gap: 14px;
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
