:root {
  --background: #0f172a;
  --primary: #6366f1;
  --accent: #8b5cf6;
  --text: #ffffff;
  --muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.58);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: rgba(3, 7, 18, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--background);
  isolation: isolate;
}

.hero-cover {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--background);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.35) 50%,
    rgba(15, 23, 42, 0.12) 100%
  );
}

.hero {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: 50px 0px 0px 50px;
}

.nav,
.footer,
.hero-content {
  width: min(100%, 1180px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: 0 auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 700;
}

.site-logo {
  display: block;
  width: clamp(320px, 30vw, 578px);
  height: auto;
  flex: 0 0 auto;
}

.sound-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  transform: translateY(-1px);
}

.sound-toggle:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.8);
  outline-offset: 4px;
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sound-toggle .icon-unmuted {
  display: none;
}

.sound-toggle[aria-pressed="true"] .icon-muted {
  display: none;
}

.sound-toggle[aria-pressed="true"] .icon-unmuted {
  display: block;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 44px var(--shadow);
}

.status-pill,
.eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.hero-content {
  display: flex;
  max-width: 1180px;
  flex-direction: column;
  justify-content: end;
  padding-block: 20px;
}

.eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin: 24px 0 0;
  text-shadow: var(--shadow);
  font-size: 18px;
  line-height: 1.7;
}

.subscribe-card {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 34px;
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(22px);
}

.subscribe-card input {
  min-width: 0;
  border: 0;
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 15px 16px;
}

.subscribe-card input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.subscribe-card input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.subscribe-card input[aria-invalid="true"] {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.32);
}

.subscribe-card button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0 24px;
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.subscribe-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(99, 102, 241, 0.42);
}

.subscribe-card button:focus-visible,
.social-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.8);
  outline-offset: 4px;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: -2px 6px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  transform: translateY(-1px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 18px 18px;
  }

  .backdrop {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.42) 0%,
      rgba(15, 23, 42, 0.30) 90%,
      rgba(15, 23, 42, 0.10) 100%
    );
  }

  .hero-cover {
    object-position: center top;
  }

  .brand span:last-child {
    overflow: hidden;
    max-width: 190px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    justify-content: end;
    padding-block: 52px 34px;
  }

  h1 {
    line-height: 1;
  }

  .intro {
    font-size: 17px;
  }

  .subscribe-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .subscribe-card button {
    width: 100%;
  }
}

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