:root {
  color-scheme: light;
  --ink: #11110f;
  --muted: rgba(17, 17, 15, 0.68);
  --faint: rgba(17, 17, 15, 0.46);
  --line: rgba(17, 17, 15, 0.13);
  --surface: rgba(255, 252, 244, 0.16);
  --surface-strong: rgba(255, 252, 244, 0.36);
  --page-pad: clamp(1rem, 2.8vw, 2rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 320px;
  overflow: hidden;
}

body {
  background: #f2efe4;
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.video-shell {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: #f2efe4;
}

.video-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(248, 244, 232, 0.18), rgba(248, 244, 232, 0.3) 58%, rgba(248, 244, 232, 0.42));
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(0.95) brightness(1.13);
  transform: scale(1.02);
}

.site-header,
.site-footer {
  position: fixed;
  left: var(--page-pad);
  right: var(--page-pad);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(17, 17, 15, 0.74);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-header {
  top: calc(1rem + env(safe-area-inset-top));
}

.site-footer {
  bottom: calc(1rem + env(safe-area-inset-bottom));
  color: var(--faint);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand,
.top-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  box-shadow: 0 0.6rem 1.2rem rgba(54, 72, 48, 0.13);
}

.top-links {
  gap: 1rem;
}

.top-links a {
  padding: 0.35rem 0;
  color: var(--muted);
}

.top-links a:hover,
.top-links a:focus-visible {
  color: var(--ink);
}

.page-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  width: min(58rem, calc(100% - (var(--page-pad) * 2)));
  height: 100%;
  margin: 0 auto;
  padding: calc(4.2rem + env(safe-area-inset-top)) 0 calc(3.6rem + env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #11110f;
  font-size: 8.6rem;
  font-weight: 620;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-beta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.72rem 0.32rem;
  border: 1px solid rgba(24, 92, 173, 0.24);
  border-radius: 999px;
  background: rgba(75, 145, 235, 0.18);
  color: #185cad;
  font-size: 1.08rem;
  font-weight: 880;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 31rem;
  margin: 0.95rem auto 0;
  color: rgba(17, 17, 15, 0.76);
  font-size: 1.16rem;
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: 0;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.78rem;
  margin-top: 1.45rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(17, 17, 15, 0.92);
  border-radius: 999px;
  background: #11110f;
  color: #fbf8ef;
  font-size: 0.88rem;
  font-weight: 720;
  box-shadow: 0 0.8rem 1.8rem rgba(17, 17, 15, 0.15);
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-1px);
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  overflow: hidden;
  background: var(--surface);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-align: left;
}

.status-card {
  min-width: 0;
  min-height: 7.2rem;
  padding: 0.75rem 0.85rem 0.82rem;
  border-right: 1px solid rgba(17, 17, 15, 0.09);
  border-bottom: 1px solid rgba(17, 17, 15, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.status-card:nth-child(2) {
  border-right: 0;
}

.status-card-wide {
  grid-column: 1 / -1;
  min-height: 0;
  border-right: 0;
  border-bottom: 0;
}

.status-label {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  color: rgba(17, 17, 15, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.status-card p {
  margin: 0.32rem 0 0;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 520;
  line-height: 1.45;
}

@media (max-width: 720px) {
  :root {
    --page-pad: 1rem;
  }

  .page-shell {
    min-height: 560px;
  }

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

  .top-links {
    gap: 0.75rem;
  }

  .page-content {
    width: min(100% - 2rem, 31rem);
    padding-top: calc(4.6rem + env(safe-area-inset-top));
    padding-bottom: calc(3.4rem + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 5.7rem;
  }

  .subtitle {
    max-width: 20rem;
    font-size: 1rem;
  }

  .status-panel {
    grid-template-columns: 1fr;
    border-radius: 0.95rem;
  }

  .status-card,
  .status-card:nth-child(2) {
    min-height: 0;
    border-right: 0;
  }

  .status-card {
    padding: 0.62rem 0.68rem 0.66rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 420px) {
  h1 {
    gap: 0.35rem;
    font-size: clamp(4rem, 20vw, 4.7rem);
  }

  .hero-beta-pill {
    padding: 0.28rem 0.58rem 0.26rem;
    font-size: 0.9rem;
  }
}

@media (max-height: 660px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }

  .site-header {
    position: absolute;
    top: calc(0.7rem + env(safe-area-inset-top));
  }

  .site-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0.75rem var(--page-pad) calc(0.65rem + env(safe-area-inset-bottom));
  }

  .page-content {
    grid-template-rows: auto auto;
    gap: 1rem;
    height: auto;
    padding-top: calc(3.7rem + env(safe-area-inset-top));
    padding-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 0.48rem;
  }

  .subtitle {
    margin-top: 0.65rem;
    font-size: 0.96rem;
  }

  h1 {
    font-size: 6.6rem;
  }

  .primary-action {
    min-height: 2.4rem;
    margin-top: 1rem;
    padding: 0.55rem 0.95rem;
  }

  .status-card {
    min-height: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.58rem;
  }
}

@media (max-width: 720px) and (max-height: 660px) {
  h1 {
    font-size: clamp(4rem, 20vw, 4.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-video {
    transform: none;
  }

  .primary-action {
    transition: none;
  }
}
