:root {
  color-scheme: dark;
  --bg: #07090d;
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --overlay:
    linear-gradient(180deg, rgba(5, 8, 12, 0.28) 0%, rgba(5, 8, 12, 0.7) 100%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.24) 0%, rgba(10, 15, 23, 0.22) 45%, rgba(0, 0, 0, 0.55) 100%);
  --panel: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --accent: #f2d47a;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --text: #10131a;
  --muted: rgba(16, 19, 26, 0.7);
  --line: rgba(16, 19, 26, 0.16);
  --overlay:
    linear-gradient(180deg, rgba(255, 249, 239, 0.32) 0%, rgba(239, 233, 222, 0.7) 100%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0%, rgba(239, 233, 222, 0.34) 45%, rgba(244, 241, 234, 0.65) 100%);
  --panel: rgba(255, 255, 255, 0.32);
  --shadow: 0 18px 50px rgba(73, 57, 24, 0.14);
  --accent: #7b5b19;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.background-video,
.video-overlay,
.grain {
  position: fixed;
  inset: 0;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04) brightness(0.78);
}

html[data-theme="light"] .background-video {
  filter: saturate(0.88) contrast(0.92) brightness(1.08);
}

.video-overlay {
  background: var(--overlay);
}

.grain {
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 32px 0;
  z-index: 3;
}

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

.brand img {
  width: clamp(180px, 24vw, 310px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.28));
}

.theme-toggle {
  position: absolute;
  top: 28px;
  right: 32px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2px;
  width: 108px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.theme-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 32px;
  color: var(--text);
}

.theme-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 6px);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  transition: transform 220ms ease, background-color 220ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(100%);
  background: rgba(242, 212, 122, 0.88);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.hero-copy {
  width: min(100%, 1180px);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(72vw, 900px);
  height: min(72vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
  filter: blur(24px);
  z-index: -1;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 12vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-location {
  margin: 0.55em auto 0;
  width: fit-content;
  font-size: clamp(1.05rem, 2.4vw, 1.9rem);
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.28em;
  padding-left: 1.28em;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .topbar {
    padding: 18px 18px 0;
  }

  .brand img {
    width: 170px;
  }

  .theme-toggle {
    top: 18px;
    right: 18px;
  }

  .theme-toggle-track {
    width: 94px;
  }

  .hero {
    padding: 32px 20px 48px;
  }

  .hero-location {
    margin-top: 0.7em;
    font-size: clamp(0.8rem, 3vw, 1rem);
    letter-spacing: 0.72em;
    padding-left: 0.72em;
  }
}
