:root {
  color-scheme: dark;
  --bg: #030a16;
  --bg-2: #07172a;
  --panel: rgba(7, 22, 43, 0.72);
  --panel-strong: rgba(9, 30, 58, 0.88);
  --line: rgba(132, 197, 224, 0.18);
  --line-strong: rgba(255, 190, 72, 0.45);
  --text: #e8f4ff;
  --muted: #97adc4;
  --dim: #63768d;
  --accent: #ffb000;
  --accent-2: #42e8ff;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(66, 232, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(255, 176, 0, 0.11), transparent 25rem),
    linear-gradient(145deg, #020711 0%, #04111f 42%, #071b32 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  z-index: 0;
}

body::before {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(125, 218, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 218, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

body::after {
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(105deg, transparent 0 42%, rgba(255, 176, 0, 0.24) 42.2% 42.7%, transparent 43%);
  mix-blend-mode: screen;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.36;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(190px, 24vw, 280px);
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2, 11, 22, 0.46);
  backdrop-filter: blur(18px);
}

.header-actions a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  color: var(--text);
  background: rgba(255, 176, 0, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.definition-hero {
  min-height: clamp(570px, 78vh, 790px);
  display: grid;
  align-content: center;
  padding: 80px 0 56px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 176, 0, 0.26);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(255, 176, 0, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 7.4vw, 7.15rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 span {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(255, 176, 0, 0.22);
}

.definition-card {
  position: relative;
  max-width: 900px;
  margin: 44px 0 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(9, 30, 58, 0.84), rgba(2, 11, 22, 0.68)),
    radial-gradient(circle at 90% 10%, rgba(66, 232, 255, 0.12), transparent 19rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.definition-card::before {
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(255, 176, 0, 0.5);
  content: "";
  pointer-events: none;
}

.definition-card blockquote {
  margin: 0;
  color: #dbeaf8;
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  font-weight: 500;
  line-height: 1.42;
}

.definition-card figcaption {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.definition-card cite {
  color: #c9d9e8;
  font-style: normal;
}

.launch-section {
  padding: 34px 0 76px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

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

.portal-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(150deg, var(--panel-strong), rgba(2, 11, 22, 0.78)),
    radial-gradient(circle at 0% 0%, rgba(255, 176, 0, 0.11), transparent 18rem);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-card::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(66, 232, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: rgba(255, 176, 0, 0.64);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(255, 176, 0, 0.12);
  transform: translateY(-5px);
  outline: none;
}

.card-kicker {
  color: var(--accent);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.portal-card h3 {
  margin-top: auto;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.94;
}

.portal-card p {
  max-width: 36rem;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card-link {
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .brand-logo {
    width: min(250px, 72vw);
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions a {
    flex: 1;
    text-align: center;
  }

  .definition-hero {
    min-height: auto;
    padding: 62px 0 46px;
  }

  h1 {
    font-size: clamp(2.65rem, 12.5vw, 4.85rem);
    line-height: 1.02;
  }

  .definition-card {
    margin-top: 30px;
  }

  .section-heading {
    display: block;
  }

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

  .portal-card {
    min-height: 265px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  #field {
    display: none;
  }
}
