/* GlobalStake AI landing page. Brand: navy #0E172D, accent #27A7FC, blue #2957CB. Inter is self-hosted. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0E172D;
  --accent: #27A7FC;
  --blue: #2957CB;
  --paper: #F5F7FA;
  --ink: #0E172D;
  --muted: #55607A;
  --line: #D9DFEA;
  --amber: #B7791F;
  --off: #9AA3B5;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-arcs {
  position: absolute;
  top: -6rem;
  right: -9rem;
  width: 38rem;
  height: 38rem;
  opacity: 0.22;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.logo {
  display: block;
  width: 12rem;
  height: auto;
  margin-bottom: 3.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.05;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 38rem;
  margin: 0 0 2rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem 0.75rem 1.125rem;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.signin:hover { background: #EAF5FF; }

.signin:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.g-mark { width: 1.25rem; height: 1.25rem; flex: none; }

.signin-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
}

/* Sections. .content comes after .wrap, so its padding wins over the .wrap shorthand. */
.content {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}

section + section { margin-top: 3.5rem; }

h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.updated {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section-intro {
  max-width: 40rem;
  margin: 0.5rem 0 1.75rem;
  color: var(--muted);
}

/* Model table */
.group { margin: 0 0 2rem; }

.group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue);
}

.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

/* Column headings stay for screen readers; the group heading labels the table visually. */
.model-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.model-table tbody tr:first-child td { border-top: 1px solid var(--line); }

.model-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.model-table td.model-name { font-weight: 560; padding-right: 1.5rem; }

.model-table td.model-state { width: 45%; }

.state {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex: none;
  margin-top: 0.45em;
  border: 2px solid var(--off);
}

.state-ready .dot { background: var(--accent); border-color: var(--accent); }
.state-loading .dot { border-color: var(--blue); background: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
.state-waiting .dot { border-color: var(--amber); }
.state-on_demand .dot { border-color: var(--off); }
.state-unavailable .dot { border-color: var(--off); background: var(--off); }
.state-unavailable { color: var(--muted); }
.state-unknown .dot { border-style: dashed; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .state-loading .dot { animation: none; }
}

.notice {
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--blue);
  background: #fff;
  color: var(--ink);
}

.external {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

/* Policy */
.policy ul {
  max-width: 44rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.policy li {
  position: relative;
  padding: 0.875rem 0 0.875rem 1.5rem;
  border-top: 1px solid var(--line);
}

.policy li:last-child { border-bottom: 1px solid var(--line); }

.policy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}

.policy li:last-child::before { background: var(--navy); }

.footer {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer p { margin: 0; }

@media (max-width: 40rem) {
  .hero-arcs { right: -16rem; top: -4rem; opacity: 0.16; }
  .hero-inner { padding-top: 2.25rem; padding-bottom: 3rem; }
  .logo { margin-bottom: 2.5rem; width: 10rem; }
  .lead { font-size: 1.0625rem; }
  .model-table td.model-state { width: 50%; }
}
