/* BlackHalo marketing site — page structure: shell, header, sections, grids, hero, footer. */

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 6, 11, 0.86);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(7, 6, 11, 0.7);
    backdrop-filter: blur(14px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.brand img {
  width: 156px;
  height: auto;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem var(--gutter) 1.75rem;
  background: #0a0811;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
}

.site-nav.is-open {
  display: flex;
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  display: block;
  padding: 0.8rem 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: #c4b5fd;
}

.site-nav__links a[aria-current="page"] {
  background: rgba(124, 58, 237, 0.14);
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-nav__sandbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--blue-soft);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.site-nav__sandbox:hover {
  color: #fff;
  border-color: var(--border-strong);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav__links {
    flex-direction: row;
    gap: 0.25rem;
  }

  .site-nav__links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.97rem;
  }

  .site-nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .site-nav__sandbox {
    min-height: 0;
    padding: 0.5rem 0.2rem;
    border: 0;
  }

  .site-nav__actions .btn {
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* Sections -------------------------------------------------------------- */

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.section--raised {
  background: linear-gradient(180deg, rgba(18, 14, 30, 0.7), rgba(13, 10, 21, 0.7));
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.section-head h2 + p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack > * + * {
  margin-top: 1.25rem;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(124, 58, 237, 0.4), transparent 70%),
    radial-gradient(38% 45% at 88% 22%, rgba(37, 99, 235, 0.2), transparent 70%),
    radial-gradient(38% 45% at 10% 38%, rgba(76, 29, 149, 0.3), transparent 70%);
}

.hero__halo {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -22%;
  width: min(130vw, 920px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.24);
  box-shadow: 0 0 90px rgba(124, 58, 237, 0.3), inset 0 0 120px rgba(37, 99, 235, 0.16);
  animation: halo-breathe 9s ease-in-out infinite;
}

.hero__halo::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(124, 176, 251, 0.16);
}

@keyframes halo-breathe {
  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
  }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 1.75rem;
}

.hero h1 {
  max-width: 17ch;
}

.hero__mantra {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem);
  color: #d9d2ee;
}

.hero__sub {
  margin-top: 0.9rem;
  color: var(--text-muted);
}

.hero .btn-row {
  margin-top: 2.25rem;
}

/* Inner-page header ------------------------------------------------------ */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 90% at 50% 0%, rgba(124, 58, 237, 0.3), transparent 72%);
}

.page-hero h1 {
  font-size: clamp(2rem, 1.1rem + 4vw, 3.3rem);
}

.page-hero p {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.page-hero .btn-row {
  margin-top: 1.75rem;
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 0;
}

.prose p {
  color: #cfc8e4;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  padding-block: 2.5rem 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand img {
  width: 180px;
  height: auto;
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #c4b5fd;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-meta a {
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
  }
}
