:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #14171b;
  --panel-2: #191d22;
  --ink: #f3f5f6;
  --muted: #98a2ad;
  --soft: #c8ced4;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --gold: #e2bb55;
  --blue: #5f8df7;
  --green: #48c78e;
  --cyan: #46b9d8;
  --violet: #9b8cff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(ellipse at 12% 0%, rgba(226, 187, 85, 0.14), transparent 31rem),
    radial-gradient(ellipse at 86% 16%, rgba(70, 185, 216, 0.15), transparent 33rem),
    linear-gradient(180deg, #101318 0%, #080a0d 70%, #07080a 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
p {
  margin: 0;
}

.gate-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 36px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.gate-topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(9, 11, 13, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #111315;
  font-weight: 900;
}

.gate-brand strong,
.gate-brand small,
.gate-status span,
.gate-status strong {
  display: block;
}

.gate-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.gate-status {
  min-width: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.gate-status span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gate-status strong {
  margin-top: 4px;
  color: var(--soft);
  font-size: 13px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: calc(100vh - 146px);
}

.link-card {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-14%);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.link-card:hover {
  border-color: var(--line-strong);
  background-color: var(--panel-2);
}

.link-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.link-card > * {
  position: relative;
  z-index: 1;
}

.entry-index {
  justify-self: end;
  color: rgba(243, 245, 246, 0.2);
  font-size: 42px;
  font-weight: 900;
  line-height: 0.85;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-card h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.98;
}

.link-card p:not(.eyebrow) {
  max-width: 430px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.link-card strong {
  justify-self: start;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-entry {
  background: linear-gradient(135deg, rgba(226, 187, 85, 0.16), transparent 48%), var(--panel);
}

.dashboard-entry::before {
  background: linear-gradient(120deg, rgba(226, 187, 85, 0.18), transparent 48%);
}

.io-entry {
  background: linear-gradient(135deg, rgba(70, 185, 216, 0.15), transparent 48%), var(--panel);
}

.io-entry::before {
  background: linear-gradient(120deg, rgba(70, 185, 216, 0.18), transparent 48%);
}

.webtool-entry {
  background: linear-gradient(135deg, rgba(72, 199, 142, 0.13), transparent 48%), var(--panel);
}

.webtool-entry::before {
  background: linear-gradient(120deg, rgba(72, 199, 142, 0.16), transparent 48%);
}

.raw-entry {
  background: linear-gradient(135deg, rgba(95, 141, 247, 0.15), transparent 48%), var(--panel);
}

.raw-entry::before {
  background: linear-gradient(120deg, rgba(95, 141, 247, 0.18), transparent 48%);
}

.metaverse-entry {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(155, 140, 255, 0.14), transparent 48%), var(--panel);
}

.metaverse-entry::before {
  background: linear-gradient(120deg, rgba(155, 140, 255, 0.18), transparent 48%);
}

@media (max-width: 1120px) {
  .gate-status {
    display: none;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .metaverse-entry {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .gate-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .gate-topbar {
    min-height: auto;
    padding: 12px;
  }

  .link-card {
    min-height: 238px;
  }
}
