/* =====================================================================
   DeepStack — Landing page (nav + hero)
   Recreated from Figma: DS Landing Page / Brand Experiments (node 743:1075)
   ===================================================================== */

:root {
  /* Colors (from Figma variable defs) */
  --text-primary: #ffffff;
  --text-secondary: #8b8b8b;
  --text-soft: #dce0df;       /* color/toast/text/secondary */
  --border: #d3d6f3;          /* DS/Border */
  --bg: #05050a;

  /* Brand accent (hero glow + active underline) */
  --accent: #a855f7;
  --accent-magenta: #d425c4;

  /* Type */
  --font-display: "Inter", system-ui, sans-serif;
  --font-label: "Roboto Flex", "Inter", system-ui, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-display);
  min-height: 100vh;
}

/* =============================== NAV =============================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 88px;
  background: rgba(8, 6, 15, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(211, 214, 243, 0.1);
}

.nav__inner {
  height: 100%;
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  justify-self: start;
}

.nav__logo-word {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  color: #fff;
}

/* Primary links */
.nav__main {
  justify-self: center;
}

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-family: var(--font-label);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.18s ease;
}

.nav__link:hover {
  color: #fff;
}

.nav__link.is-active {
  color: #fff;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-magenta));
  box-shadow: 0 0 10px 1px rgba(168, 85, 247, 0.75);
}

/* Actions (right cluster) */
.nav__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.lang:hover {
  color: #fff;
}

.lang__chevron {
  width: 10px;
  height: 6px;
}

/* --- Chamfered hexagon buttons (DeepStack signature shape) --- */
.btn {
  --chamfer: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 30px;
  border: 0;
  background: none;
  cursor: pointer;
  isolation: isolate;
}

.btn__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-label);
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* shared clipped shape */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(
    var(--chamfer) 0,
    calc(100% - var(--chamfer)) 0,
    100% 50%,
    calc(100% - var(--chamfer)) 100%,
    var(--chamfer) 100%,
    0 50%
  );
}

/* Outline (Login): white outer hex, dark inner hex => 1.5px "stroke" */
.btn--outline::before {
  background: #ffffff;
}

.btn--outline::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: 1;
  background: #0a0812;
  clip-path: polygon(
    var(--chamfer) 0,
    calc(100% - var(--chamfer)) 0,
    100% 50%,
    calc(100% - var(--chamfer)) 100%,
    var(--chamfer) 100%,
    0 50%
  );
}

.btn--outline .btn__label {
  color: var(--text-primary);
}

.btn--outline:hover::after {
  background: #16121f;
}

/* Primary (Signup): solid white fill, black text */
.btn--primary::before {
  background: #ffffff;
  transition: filter 0.18s ease;
}

.btn--primary .btn__label {
  color: #000000;
}

.btn--primary:hover::before {
  filter: brightness(0.9);
}

/* =============================== HERO =============================== */

.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 88px;
  overflow: hidden;
  isolation: isolate;
}

/* Cinematic backdrop (stand-in for hero-teaser-poster.jpg).
   Layered radial glows evoke the stage-lit poker room. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% 78%, rgba(212, 37, 196, 0.28) 0%, rgba(212, 37, 196, 0) 55%),
    radial-gradient(90% 60% at 50% 18%, rgba(168, 85, 247, 0.32) 0%, rgba(168, 85, 247, 0) 60%),
    radial-gradient(60% 50% at 20% 40%, rgba(60, 30, 120, 0.35) 0%, rgba(60, 30, 120, 0) 70%),
    radial-gradient(70% 55% at 82% 55%, rgba(120, 30, 90, 0.3) 0%, rgba(120, 30, 90, 0) 70%),
    linear-gradient(180deg, #0a0714 0%, #0c0a1b 45%, #08060f 100%);
}

/* Vignette + bottom fade so text stays readable and edges go dark */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(130% 100% at 50% 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 5, 10, 0.7) 0%, rgba(5, 5, 10, 0) 22%),
    linear-gradient(0deg, #05050a 0%, rgba(5, 5, 10, 0) 30%);
}

.hero__content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Eyebrow with metallic text + side rules */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow__rule {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 200, 200, 0) 0%, rgba(200, 200, 200, 0.5) 100%);
}

.eyebrow__rule--right {
  background: linear-gradient(90deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0) 100%);
}

.eyebrow__text {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  background-image: linear-gradient(
    180deg,
    #e0e0e0 0%,
    #ffffff 30%,
    #c8c8c8 55%,
    #f0f0f0 75%,
    #909090 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 64px;
  line-height: 70px;
  letter-spacing: -2.56px;
  color: var(--text-primary);
  max-width: 1000px;
}

.hero__subtitle {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: var(--text-soft);
}

/* Unmute pill, pinned bottom-left of the hero */
.unmute {
  position: absolute;
  left: 56px;
  bottom: 42px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 12, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.unmute:hover {
  background: rgba(25, 20, 36, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
}

.unmute svg {
  width: 16px;
  height: 16px;
}

/* =============================== RESPONSIVE =============================== */

@media (max-width: 1024px) {
  .nav__main {
    display: none;
  }
  .nav__inner {
    grid-template-columns: 1fr auto;
  }
  .hero__title {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1.6px;
  }
}

@media (max-width: 640px) {
  .nav__inner {
    padding: 0 20px;
  }
  .nav__logo-word {
    font-size: 18px;
  }
  .hero__content {
    padding-top: 64px;
  }
  .hero__title {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .eyebrow__text {
    font-size: 15px;
  }
  .hero__subtitle {
    font-size: 15px;
    line-height: 22px;
  }
  .hero__subtitle br {
    display: none;
  }
  .unmute {
    left: 20px;
  }
}
