:root {
  color-scheme: light;
  --ink: #08141f;
  --ink-2: #13263a;
  --paper: #f8f5ec;
  --paper-2: #fffaf1;
  --white: #ffffff;
  --teal: #179d91;
  --teal-deep: #0e5d62;
  --amber: #f2ad2e;
  --coral: #e85f48;
  --line: rgba(8, 20, 31, 0.14);
  --shadow: 0 24px 70px rgba(8, 20, 31, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(242, 173, 46, 0.42);
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  align-items: center;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 24px 32px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.connection {
  align-items: center;
  background: rgba(8, 20, 31, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.connection-dot {
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(242, 173, 46, 0.7);
  display: inline-block;
  height: 9px;
  width: 9px;
  animation: pulse 2.4s ease-out infinite;
}

.connection.is-online .connection-dot {
  background: #68d391;
  box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.7);
}

.connection.is-offline .connection-dot {
  background: var(--coral);
  animation: none;
}

.hero {
  align-items: center;
  display: flex;
  isolation: isolate;
  min-height: 84vh;
  overflow: hidden;
  padding: 116px 32px 64px;
  position: relative;
}

@supports (height: 100svh) {
  .hero {
    min-height: 84svh;
  }
}

.hero::before {
  background: url("./study-build-hero.png") center / cover no-repeat;
  content: "";
  inset: 0;
  position: absolute;
  transform: scale(1.015);
  z-index: -3;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(8, 20, 31, 0.94) 0%, rgba(8, 20, 31, 0.78) 40%, rgba(8, 20, 31, 0.12) 74%),
    linear-gradient(180deg, rgba(8, 20, 31, 0.4) 0%, rgba(8, 20, 31, 0.12) 48%, rgba(8, 20, 31, 0.46) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  inset: 0;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.36) 48%, transparent 78%);
  opacity: 0.42;
  position: absolute;
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  width: min(100%, 760px);
}

.eyebrow {
  align-items: center;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 10px;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--amber);
  content: "";
  display: inline-block;
  height: 3px;
  width: 34px;
}

.eyebrow.dark {
  color: var(--teal-deep);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.35rem;
  font-weight: 700;
  line-height: 0.96;
  margin: 0;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
}

.domain-suffix {
  display: inline;
}

.lede {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
  margin: 26px 0 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  min-width: 166px;
  padding: 0 20px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--amber);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd06a;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.66);
}

.live-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
  max-width: 720px;
}

.live-strip div {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 0;
  padding-top: 14px;
}

.live-strip dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.live-strip dd {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  min-height: 1.6em;
  overflow-wrap: anywhere;
}

.updates {
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: 50px 24px 72px;
}

.updates-inner {
  margin: 0 auto;
  max-width: 1120px;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.08;
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  color: rgba(8, 20, 31, 0.72);
  font-size: 1.06rem;
  margin: 18px 0 0;
}

.updates-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 32px;
}

.feature-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.notify-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(8, 20, 31, 0.08);
}

.feature-card {
  min-height: 236px;
  padding: 20px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.feature-card.is-active {
  border-color: rgba(23, 157, 145, 0.7);
  box-shadow: 0 20px 52px rgba(14, 93, 98, 0.18);
  transform: translateY(-3px);
}

.feature-number {
  color: var(--coral);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 28px;
}

.feature-card h3 {
  font-size: 1.22rem;
  line-height: 1.18;
  margin: 0;
}

.feature-card p {
  color: rgba(8, 20, 31, 0.66);
  margin: 14px 0 0;
}

.notify-panel {
  padding: 24px;
  position: sticky;
  top: 24px;
}

.panel-label {
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.notify-panel h2 {
  font-size: 1.55rem;
  line-height: 1.14;
  margin: 0 0 22px;
}

.notify-form {
  display: grid;
  gap: 10px;
}

.notify-form input,
.notify-form button {
  border-radius: 6px;
  min-height: 52px;
}

.notify-form input {
  background: #fffdf7;
  border: 1px solid rgba(8, 20, 31, 0.18);
  color: var(--ink);
  min-width: 0;
  padding: 0 14px;
  width: 100%;
}

.notify-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 157, 145, 0.16);
  outline: none;
}

.notify-form button {
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
  padding: 0 18px;
}

.notify-form button:hover,
.notify-form button:focus-visible {
  background: var(--teal-deep);
  outline: none;
}

.form-note {
  color: rgba(8, 20, 31, 0.62);
  font-size: 0.92rem;
  margin: 14px 0 0;
}

.footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 11px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 940px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .updates-layout {
    grid-template-columns: 1fr;
  }

  .notify-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding: 18px 18px 0;
  }

  .brand-copy span {
    display: none;
  }

  .connection {
    font-size: 0.86rem;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    align-items: flex-start;
    min-height: 86vh;
    padding: 108px 18px 40px;
  }

  @supports (height: 100svh) {
    .hero {
      min-height: 86svh;
    }
  }

  .hero::before {
    background-position: 60% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(8, 20, 31, 0.96) 0%, rgba(8, 20, 31, 0.82) 58%, rgba(8, 20, 31, 0.38) 100%),
      linear-gradient(180deg, rgba(8, 20, 31, 0.36) 0%, rgba(8, 20, 31, 0.12) 52%, rgba(8, 20, 31, 0.58) 100%);
  }

  .hero h1 {
    font-size: 2.24rem;
    line-height: 1;
    white-space: normal;
  }

  .domain-suffix {
    display: block;
  }

  .lede {
    font-size: 1.04rem;
  }

  .hero-actions {
    display: grid;
    max-width: 330px;
  }

  .button {
    width: 100%;
  }

  .live-strip {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .live-strip div {
    padding-top: 10px;
  }

  .live-strip dt {
    font-size: 0.67rem;
  }

  .live-strip dd {
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .updates {
    padding: 42px 18px 58px;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 188px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .connection {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 2.02rem;
  }
}

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