/* Asseto: tokens, layout, navbar, hero, marquee */

:root {
  --background: 150 20% 5%;
  --foreground: 45 30% 90%;
  --accent: 45 70% 75%;
  --accent-foreground: 150 20% 5%;

  --up: 150 55% 58%;
  --down: 8 68% 62%;

  --ui-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ui-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

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

/* ---------------- layout shell ---------------- */

.root {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: hsl(var(--background));
  overflow: visible;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      hsl(150 20% 5% / 0.74) 0%,
      hsl(150 20% 5% / 0.44) 45%,
      hsl(150 20% 5% / 0.22) 100%
    ),
    linear-gradient(
      to bottom,
      hsl(150 20% 5% / 0.32) 0%,
      hsl(150 20% 5% / 0) 30%,
      hsl(150 20% 5% / 0.55) 76%,
      hsl(150 20% 5% / 1) 100%
    );
}

.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.below {
  position: relative;
  z-index: 10;
}

/* ---------------- navbar ---------------- */

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.5rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--foreground));
}

.logo {
  display: block;
  flex: none;
  color: hsl(var(--accent));
}

.nav-wordmark {
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.nav-links a {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: hsl(var(--foreground));
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 0.8; }

/* ---------------- hero ---------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2.5rem;
  overflow: visible;
}

.hero-spacer { flex: none; }

/* Two auto margins split the free space evenly, so the heading sits in the
   middle of the screen while the marquee stays pinned to the bottom. */
.hero-copy {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  overflow: visible;
}

.hero-title {
  max-width: 48rem;
  margin-bottom: 3rem;
  font-size: 3.75rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  overflow: visible;
}

.hero-title .line {
  display: block;
  overflow: visible;
}

/* neon glow on the last word */
.glow-word {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.glow-word .glow {
  position: absolute;
  top: 0;
  left: 0;
  color: hsl(0 0% 100%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.glow-word .glow-1 {
  -webkit-mask-image: linear-gradient(to bottom left, white 20%, transparent 50%);
  mask-image: linear-gradient(to bottom left, white 20%, transparent 50%);
  filter: blur(4px);
}

.glow-word .glow-2 {
  -webkit-mask-image: linear-gradient(to bottom left, white 25%, transparent 55%);
  mask-image: linear-gradient(to bottom left, white 25%, transparent 55%);
  filter: blur(12px);
  opacity: 0.6;
}

/* ---------------- cta ---------------- */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 2.5rem;
  border-radius: 43px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  box-shadow: 0px 4px 95px 4px hsl(45 70% 50% / 0.6);
  transition: transform 0.25s ease;
}

.cta:hover { transform: scale(1.05); }

.cta-blob {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 12rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(45 60% 95%);
  filter: blur(16px);
  pointer-events: none;
}

.cta-label {
  position: relative;
  z-index: 1;
}

/* ---------------- marquee ---------------- */

.marquee-wrap {
  margin-top: auto;
  width: 100%;
}

.marquee-label {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-align: left;
  color: hsl(var(--foreground) / 0.5);
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 4rem, black calc(100% - 4rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 4rem, black calc(100% - 4rem), transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.5rem;
  white-space: nowrap;
}

.marquee-item svg {
  display: block;
  flex: none;
  color: hsl(var(--foreground) / 0.6);
}

.marquee-item span {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: hsl(var(--foreground) / 0.6);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------- responsive ---------------- */

@media (min-width: 768px) {
  .nav { padding: 1.5rem 4rem; }

  .hero {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .hero-title { font-size: 6rem; }

  .marquee-wrap { width: 50%; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 7rem; }
}

/* Narrow phones: drop the wordmark and tighten the links so the nav stays
   on one row instead of orphaning the last item. */
@media (max-width: 479px) {
  .nav-wordmark { display: none; }
  .hero-title { font-size: 3rem; }

  .nav-links { gap: 0.5rem 1rem; }

  .nav-links a {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-play-state: paused; }
  .cta { transition: none; }
  .cta:hover { transform: none; }
}

/* The mark, and the one outward link in the navigation. */
.nav { justify-content: flex-start; }
.nav-links { margin-right: auto; }

.nav-brand .logo {
  display: block;
  width: 44px;
  height: 44px;
}
.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: hsl(var(--foreground) / 0.62);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-x:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--foreground) / 0.08);
}
