@import url('../vendor/roboto/roboto.css');

:root {
  --navy-950: #030a1d;
  --navy-900: #061538;
  --navy-850: #0a1e49;
  --navy-800: #0e2858;
  --cream: #fff0c6;
  --white: #fffdf6;
  --gold: #ffcb60;
  --cyan: #00c8ee;
  --pink: #d94b9d;
  --line: rgba(255, 240, 198, 0.2);
  --shadow: 0 24px 60px rgba(1, 5, 19, 0.4);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-900) url('../img/blue-sky-background-tile.png') repeat;
  color: var(--cream);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--cyan); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, min-height 180ms ease;
}

.site-header.is-past-hero,
.site-header.is-inner {
  min-height: 66px;
  background: rgba(3, 10, 29, 0.92);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.is-past-hero .brand,
.is-inner .brand { visibility: visible; opacity: 1; }
.brand img {
  width: 132px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: width 180ms ease;
}
.is-past-hero .brand img,
.is-inner .brand img { width: 112px; }

body.has-site-header { padding-top: 66px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-header .site-nav a,
.site-header .site-nav a:visited {
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.58);
}
.site-header .site-nav a:not(.nav-download):hover,
.site-header .site-nav a:not(.nav-download).is-active,
.site-header .site-nav a:not(.nav-download):focus-visible { color: var(--cyan); }

.site-nav .nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(217, 75, 157, 0.3);
}
.site-nav .nav-download:hover { background: #ed63b2; color: var(--white); }
.site-nav .nav-download:visited { color: var(--white); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(3, 10, 29, 0.7);
  color: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background-image: url('../img/hero-image.jpg');
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 29, 0.9) 0%, rgba(3, 10, 29, 0.48) 46%, rgba(0, 200, 238, 0.1) 100%),
    linear-gradient(0deg, rgba(3, 10, 29, 0.94) 0%, transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: var(--shell);
  margin: auto;
  padding: 104px 0 44px;
}

.hero-logo {
  width: min(540px, 72vw);
  margin: 0 0 20px -14px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

.hero-card {
  position: relative;
  width: min(600px, 100%);
  padding: 23px 26px 25px;
  border: 1px solid rgba(255, 240, 198, 0.28);
  border-left: 5px solid var(--cyan);
  background: rgba(3, 10, 29, 0.73);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 70px;
  height: 5px;
  background: var(--pink);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--white); line-height: 1.12; }
h1 {
  max-width: 20ch;
  margin-bottom: 20px;
  font-family: 'Arial Narrow', 'Roboto', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-stretch: condensed;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 18px;
  font-family: 'Arial Narrow', 'Roboto', sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
h3 { margin-bottom: 10px; font-size: 1.28rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); color: var(--white); }
.button-primary { background: var(--pink); box-shadow: 0 10px 25px rgba(217, 75, 157, 0.28); }
.button-primary:hover { background: #ee64b3; }
.button-secondary { border-color: rgba(255, 255, 255, 0.45); background: rgba(6, 21, 56, 0.72); }
.button-secondary:hover { border-color: var(--cyan); background: var(--navy-800); }
.button-light { background: var(--white); color: var(--navy-950); }
.button-light:hover { background: var(--gold); color: var(--navy-950); }

.section { position: relative; padding: 108px 0; scroll-margin-top: 64px; }
.section-shell { width: var(--shell); margin-inline: auto; }
.intro {
  background:
    linear-gradient(rgba(0, 200, 238, 0.07), rgba(0, 200, 238, 0.07)),
    rgba(3, 10, 29, 0.62);
  border-bottom: 1px solid var(--line);
}
.intro-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.intro-copy .lead { color: var(--white); font-size: 1.22rem; line-height: 1.6; }
.intro-copy > p:not(.section-kicker):not(.lead) { color: rgba(255, 240, 198, 0.78); }

.video-panel { overflow: hidden; border: 1px solid var(--line); background: var(--navy-950); box-shadow: var(--shadow); }
.video-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: var(--white); font-size: 0.86rem; font-weight: 700; }
.video-heading i { margin-right: 7px; color: var(--pink); }
.video-length { color: rgba(255, 240, 198, 0.56); font-size: 0.76rem; font-weight: 400; }
.video-frame { position: relative; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.features-section {
  background:
    linear-gradient(rgba(217, 75, 157, 0.08), rgba(217, 75, 157, 0.08)),
    rgba(6, 21, 56, 0.72);
  border-bottom: 1px solid var(--line);
}
.section-heading, .install-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 50px;
  align-items: end;
  margin-bottom: 46px;
}
.section-heading h2, .install-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 8px; color: rgba(255, 240, 198, 0.72); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  --accent: var(--gold);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: var(--navy-900);
  box-shadow: 0 18px 40px rgba(1, 5, 19, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 25px 54px rgba(1, 5, 19, 0.38); }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature-card::after { content: ''; position: absolute; inset: 4px 0 auto; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent); pointer-events: none; }
.feature-body { position: relative; min-height: 190px; padding: 24px 26px 28px; }
.feature-body p { margin: 0; color: rgba(255, 240, 198, 0.7); }
.accent-gold { --accent: var(--gold); }
.accent-cyan { --accent: var(--cyan); }
.accent-pink { --accent: var(--pink); }

.install-section {
  background:
    linear-gradient(rgba(0, 200, 238, 0.06), rgba(0, 200, 238, 0.06)),
    rgba(3, 10, 29, 0.76);
  border-bottom: 1px solid var(--line);
}
.install-heading { grid-template-columns: 1fr auto; }
.install-notice {
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid rgba(240, 190, 65, 0.55);
  border-left: 4px solid var(--gold);
  background: rgba(240, 190, 65, 0.08);
}
.install-notice h3 { margin: 0 0 10px; color: var(--white); }
.install-notice p { margin: 0; color: rgba(255, 240, 198, 0.8); }
.install-notice p + p { margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(10, 30, 73, 0.86);
}
.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 900;
}
.step h3 { margin: 4px 0 9px; }
.step p { margin-bottom: 0; color: rgba(255, 240, 198, 0.76); }
.step code, .step kbd { color: var(--white); }
.step kbd { display: inline-block; padding: 0 6px; border: 1px solid rgba(255,255,255,0.32); border-bottom-width: 2px; border-radius: 3px; background: var(--navy-950); }

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 238, 0.35);
  background: var(--navy-950);
}
.copy-row code { min-width: 0; padding: 12px; overflow-wrap: anywhere; font-size: 0.76rem; line-height: 1.45; }
.copy-row button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-left: 1px solid rgba(0, 200, 238, 0.35); background: rgba(0, 200, 238, 0.08); color: var(--cyan); cursor: pointer; font-size: 0.78rem; font-weight: 700; }
.copy-row button:hover { background: rgba(0, 200, 238, 0.16); }

.tools-section {
  background:
    linear-gradient(rgba(217, 75, 157, 0.07), rgba(217, 75, 157, 0.07)),
    rgba(6, 21, 56, 0.7);
  border-bottom: 1px solid var(--line);
}
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--navy-900);
  color: var(--white);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.tool-card > i:first-child { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: rgba(0, 200, 238, 0.1); color: var(--cyan); font-size: 1.1rem; }
.tool-card span { display: grid; gap: 4px; }
.tool-card strong { color: var(--white); line-height: 1.2; }
.tool-card small { color: rgba(255, 240, 198, 0.58); font-size: 0.79rem; }
.tool-arrow { color: rgba(255, 240, 198, 0.42); font-size: 0.78rem; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--cyan); background: var(--navy-850); color: var(--white); }
.tool-card:hover .tool-arrow { color: var(--cyan); }

.join-band { padding: 54px 0; background: linear-gradient(105deg, var(--pink), #8c3fa8 55%, #3153a8); }
.join-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.join-band .section-kicker { color: var(--white); opacity: 0.78; }
.join-band h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer-brand img { width: 150px; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: rgba(255, 240, 198, 0.68); font-size: 0.9rem; }
.social-links { display: flex; gap: 10px; }
.social-links a { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--white); text-decoration: none; }
.social-links a:hover { border-color: var(--cyan); color: var(--cyan); }
.legal { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: rgba(255, 240, 198, 0.46); font-size: 0.75rem; line-height: 1.6; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  transform: translateY(24px);
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy-950);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  font-weight: 700;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (min-width: 72em) {
  .hero { background-image: url('../img/hero-desktop.webp'); }
}

@media (min-width: 72em) and (prefers-reduced-motion: reduce) {
  .hero { background-image: url('../img/hero-image.jpg'); }
}

@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    display: none;
    width: min(330px, calc(100vw - 40px));
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(3, 10, 29, 0.98);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-download { margin: 12px; justify-content: center; border-bottom: 0; border-radius: 4px; }
  .intro-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 66px; padding-inline: 14px; background: rgba(3, 10, 29, 0.82); }
  .brand img, .is-past-hero .brand img, .is-inner .brand img { width: 104px; }
  .hero { min-height: 780px; background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3, 10, 29, 0.97) 0%, rgba(3, 10, 29, 0.62) 58%, rgba(0, 200, 238, 0.14) 100%); }
  .hero-content { min-height: 780px; align-items: center; justify-content: center; padding: 92px 0 40px; }
  .hero-logo { width: min(390px, 88vw); margin: 0 auto 20px; }
  .hero-card { padding: 20px; }
  .hero-card h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .hero-actions { display: grid; }
  .section { padding: 76px 0; }
  .section-heading, .install-heading { grid-template-columns: 1fr; gap: 14px; align-items: start; margin-bottom: 32px; }
  .install-heading .button { width: 100%; }
  .feature-grid, .steps, .tool-grid { grid-template-columns: 1fr; }
  .feature-body { min-height: 0; }
  .step { min-height: 0; grid-template-columns: 42px 1fr; padding: 20px 16px; gap: 12px; }
  .copy-row { grid-template-columns: 1fr; }
  .copy-row button { min-height: 40px; justify-content: center; border-top: 1px solid rgba(0, 200, 238, 0.35); border-left: 0; }
  .join-band-inner { display: grid; }
  .join-band .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .social-links { justify-content: flex-start; }
}

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

/* Player-tools dropdown in the main navigation */
.nav-tools {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.nav-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-tools-trigger i {
  font-size: 0.68rem;
  transition: transform 160ms ease;
}
.nav-tools-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 10, 29, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.nav-tools-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.site-nav .nav-tools-menu a {
  padding: 10px 12px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.86rem;
  text-shadow: none;
}
.site-nav .nav-tools-menu a:hover,
.site-nav .nav-tools-menu a:focus-visible {
  background: rgba(0, 200, 238, 0.1);
  color: var(--cyan);
}
.nav-tools:hover .nav-tools-menu,
.nav-tools:focus-within .nav-tools-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-tools:hover .nav-tools-trigger i,
.nav-tools:focus-within .nav-tools-trigger i {
  transform: rotate(180deg);
}

@media (max-width: 960px) {
  .nav-tools {
    display: grid;
    align-items: stretch;
  }
  .nav-tools-trigger {
    justify-content: space-between;
  }
  .nav-tools-trigger i { display: none; }
  .nav-tools-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 6px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-tools-menu::before { display: none; }
  .site-nav .nav-tools-menu a {
    padding: 9px 18px;
    border-bottom: 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.78);
  }
  .nav-tools:hover .nav-tools-menu,
  .nav-tools:focus-within .nav-tools-menu { transform: none; }
}
