:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f7f7f2;
  --muted: rgba(247, 247, 242, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --button: rgba(247, 247, 242, 0.94);
  --button-text: #070707;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

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

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

.landing {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  isolation: isolate;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/background.png") center / cover no-repeat;
}

.landing::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, var(--bg) 0, rgba(5, 5, 5, 0) 100%);
}

.landing::after {
  content: "";
  position: absolute;
  right: clamp(22px, 5vw, 82px);
  top: 30%;
  z-index: 3;
  width: 6px;
  height: 34%;
  border-radius: 999px;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 26%, rgba(198, 190, 255, 0.92) 0 4px, transparent 5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.55) 44%, rgba(255, 255, 255, 0.1));
}

.brand-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.brand-logo,
.floating-cube {
  position: absolute;
  left: 50%;
  max-width: none;
  transform: translate(-50%, -50%);
}

.brand-logo {
  top: 43%;
  z-index: 2;
  width: min(88vw, 1120px);
  opacity: 0.94;
  filter: drop-shadow(0 12px 34px rgba(255, 255, 255, 0.08));
}

.floating-cube {
  top: 39%;
  z-index: 1;
  width: clamp(250px, 32vw, 430px);
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.42));
}

.landing-content {
  position: relative;
  z-index: 4;
  align-self: end;
  width: min(100%, 680px);
  margin-bottom: 5svh;
  text-align: center;
}

.slogan {
  margin: 0 auto 24px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 400;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #ffffff;
}

.cta:focus-visible,
.contact-lines a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-lines a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.contact-lines a:hover {
  border-bottom-color: var(--line);
}

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

@media (max-width: 760px) {
  .landing {
    padding: 34px 18px;
  }

  .landing::after {
    display: none;
  }

  .brand-logo {
    top: 36%;
    width: min(94vw, 440px);
  }

  .floating-cube {
    top: 32%;
    width: clamp(230px, 70vw, 330px);
  }

  .landing-content {
    margin-bottom: 4svh;
  }

  .slogan {
    font-size: 1.1rem;
  }

  .cta {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
  }

  .contact-lines {
    display: grid;
    gap: 6px;
  }
}

@media (max-height: 640px) and (min-width: 761px) {
  .brand-logo {
    top: 39%;
    width: min(78vw, 960px);
  }

  .floating-cube {
    top: 35%;
    width: clamp(230px, 28vw, 360px);
  }

  .landing-content {
    margin-bottom: 3svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
