:root {
  --bg: #090B0F;
  --surface: #10141C;
  --surface-2: #151B26;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F3F5F8;
  --muted: #9BA5B4;
  --dim: #6C7686;
  --emerald: #10B981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(840px 440px at 20% -10%, rgba(16, 185, 129, 0.08), transparent 60%),
    radial-gradient(700px 380px at 85% 0%, rgba(56, 189, 248, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.site-header {
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.header-link {
  font-size: 13px;
  color: var(--emerald);
  transition: opacity 150ms ease;
}

.hub-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
}

.intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.divisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.div-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.div-card-live {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), var(--surface) 46%);
}

.div-card-live:active {
  transform: scale(0.985);
}

.div-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pill {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill-live {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.32);
}

.domain-tag {
  font-size: 12px;
  color: var(--dim);
}

.div-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.div-card p {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.div-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
}

.div-muted {
  font-size: 12.5px;
  color: var(--dim);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--dim);
}

@media (hover: hover) and (pointer: fine) {
  .div-card-live:hover {
    border-color: rgba(16, 185, 129, 0.65);
    transform: translateY(-2px);
  }
  .header-link:hover {
    opacity: 0.82;
  }
}

@media (max-width: 760px) {
  .divisions {
    grid-template-columns: 1fr;
  }
  .hub-main {
    padding: 40px 0 56px;
  }
  .div-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .div-card {
    transition-duration: 0.01ms !important;
  }
}
