:root {
  color-scheme: dark;
  --graphite: #070b0f;
  --navy: #071522;
  --navy-soft: #0d2435;
  --ink: #f2f6f8;
  --muted: rgba(226, 236, 240, 0.74);
  --quiet: rgba(226, 236, 240, 0.54);
  --line: rgba(135, 217, 232, 0.18);
  --blue: #38a8ff;
  --teal: #21d5c1;
  --gold: #d4b36a;
  --coral: #ff715f;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--graphite);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--graphite);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.97) 0%, rgba(7, 15, 24, 0.9) 46%, rgba(7, 15, 24, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 11, 15, 0.42) 0%, rgba(7, 11, 15, 0.95) 100%),
    url("/site/assets/brand/brb-buddy-under-construction-bg.png") center / cover no-repeat,
    var(--graphite);
}

.page::before,
.page::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.page::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 217, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 217, 232, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.62) 48%, transparent 100%);
}

.page::after {
  width: 44vw;
  height: 44vw;
  right: -18vw;
  top: 6vh;
  border: 1px solid rgba(56, 168, 255, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(33, 213, 193, 0.08), 0 0 110px rgba(56, 168, 255, 0.08);
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.route {
  position: absolute;
  height: 1px;
  width: min(42vw, 560px);
  opacity: 0.56;
  background: linear-gradient(90deg, transparent, rgba(56, 168, 255, 0.08), rgba(33, 213, 193, 0.72), transparent);
  transform-origin: left center;
  animation: routeFlow 9s ease-in-out infinite;
}

.route::after {
  position: absolute;
  content: "";
  right: 18%;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 20px rgba(33, 213, 193, 0.72);
}

.route-one {
  right: 4vw;
  top: 28vh;
  transform: rotate(-16deg);
}

.route-two {
  right: 12vw;
  bottom: 24vh;
  animation-delay: -3s;
  transform: rotate(10deg);
}

.route-three {
  left: 42vw;
  top: 63vh;
  width: min(28vw, 380px);
  animation-delay: -6s;
  transform: rotate(-4deg);
}

.site-header {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.brand-position {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-action,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 820;
  white-space: nowrap;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.header-action {
  padding: 0 16px;
  border: 1px solid rgba(242, 246, 248, 0.18);
  color: rgba(242, 246, 248, 0.9);
  background: rgba(7, 15, 24, 0.42);
}

.hero {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: calc(100svh - clamp(18px, 3vw, 34px) * 2 - 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 7vw, 92px);
  padding: clamp(36px, 8vh, 82px) 0 clamp(18px, 5vh, 46px);
}

.hero-copy {
  max-width: 760px;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: rgba(242, 246, 248, 0.74);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eu-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border: 1px solid rgba(212, 179, 106, 0.58);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(6, 24, 48, 0.58);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8.1vw, 7.35rem);
  line-height: 0.91;
  font-weight: 520;
  letter-spacing: 0;
  text-wrap: balance;
}

.lede {
  margin: clamp(22px, 3.5vw, 34px) 0 0;
  color: rgba(242, 246, 248, 0.93);
  font-size: clamp(1.24rem, 2.3vw, 1.82rem);
  line-height: 1.28;
  font-weight: 640;
}

.subtle {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.primary-action {
  min-width: 190px;
  padding: 0 20px;
  color: #041017;
  background: linear-gradient(135deg, #f2f6f8, #bfeff0);
  box-shadow: 0 16px 44px rgba(56, 168, 255, 0.18);
}

.text-link {
  position: relative;
  color: rgba(242, 246, 248, 0.84);
  font-weight: 780;
  text-decoration: none;
}

.text-link::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform-origin: left;
  transform: scaleX(0.72);
  transition: transform 170ms ease;
}

.header-action:hover,
.primary-action:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.header-action:focus-visible,
.primary-action:focus-visible,
.text-link:focus-visible,
.control:focus-visible,
.dot:focus-visible,
.teaser-viewport:focus-visible {
  outline: 3px solid rgba(56, 168, 255, 0.52);
  outline-offset: 4px;
}

.teaser {
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.teaser-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(135, 217, 232, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 38, 54, 0.86), rgba(7, 12, 17, 0.92)),
    rgba(7, 12, 17, 0.92);
  box-shadow: var(--shadow);
}

.teaser-frame::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(212, 179, 106, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
}

.teaser-frame::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  right: 26px;
  top: 26px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 22px rgba(255, 113, 95, 0.58);
}

.signal-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 22px 24px 0;
}

.signal-bar span {
  height: 2px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 168, 255, 0.16), rgba(33, 213, 193, 0.76), rgba(212, 179, 106, 0.28));
  transform-origin: left;
  animation: signalPulse 5.6s ease-in-out infinite;
}

.signal-bar span:nth-child(2) {
  animation-delay: -1.8s;
}

.signal-bar span:nth-child(3) {
  animation-delay: -3.4s;
}

.teaser-viewport {
  position: relative;
  z-index: 1;
  min-height: 292px;
}

.teaser-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 34px 30px 36px;
  opacity: 0;
  transform: translate3d(18px, 0, 0);
  transition: opacity 480ms ease, transform 480ms ease;
}

.teaser-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-count {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.teaser h2 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  line-height: 0.98;
  font-weight: 520;
  letter-spacing: 0;
  text-wrap: balance;
}

.teaser-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px 24px;
}

.control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 246, 248, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(242, 246, 248, 0.06);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.dot {
  width: 34px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 246, 248, 0.18);
  cursor: pointer;
}

.dot.is-active {
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

@keyframes routeFlow {
  0%,
  100% {
    opacity: 0.24;
    filter: brightness(0.82);
  }
  50% {
    opacity: 0.68;
    filter: brightness(1.18);
  }
}

@keyframes signalPulse {
  0%,
  100% {
    transform: scaleX(0.42);
    opacity: 0.46;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.95;
  }
}

@media (max-width: 860px) {
  .page {
    min-height: auto;
  }

  .page::after,
  .route-three {
    display: none;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-position {
    font-size: 0.69rem;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: clamp(30px, 6vh, 56px);
    gap: 22px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 15vw, 5.3rem);
  }

  .subtle {
    max-width: 42rem;
  }

  .teaser {
    justify-self: stretch;
    max-width: none;
  }

  .teaser-viewport {
    min-height: 214px;
  }

  .teaser h2 {
    max-width: 13ch;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 16px;
  }

  .site-header {
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .brand-position {
    display: none;
  }

  .header-action {
    font-size: 0.82rem;
  }

  .status-line {
    margin-bottom: 12px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(2.82rem, 12.8vw, 4.2rem);
    line-height: 0.93;
  }

  .lede {
    margin-top: 18px;
    font-size: clamp(1.1rem, 5.5vw, 1.45rem);
  }

  .subtle {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
  }

  .primary-action {
    width: 100%;
  }

  .teaser-slide {
    padding: 20px 24px 22px;
  }

  .teaser h2 {
    font-size: clamp(1.82rem, 8.8vw, 2.45rem);
  }

  .signal-bar {
    padding: 16px 24px 0;
  }

  .teaser-viewport {
    min-height: 156px;
  }

  .teaser-controls {
    padding-bottom: 14px;
  }

  .control {
    width: 38px;
    height: 38px;
  }
}

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