:root {
  --void: #070b0c;
  --night: #0d1417;
  --panel: #121d22;
  --panel-2: #17262c;
  --paper: #f6f0e6;
  --muted: rgba(246, 240, 230, 0.7);
  --soft: rgba(246, 240, 230, 0.52);
  --gold: #d9a84f;
  --gold-2: #f0c874;
  --cyan: #53d4e2;
  --green: #8eca72;
  --violet: #b58cff;
  --rose: #dd8371;
  --blue: #75a9ff;
  --line: rgba(246, 240, 230, 0.14);
  --line-strong: rgba(217, 168, 79, 0.44);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  color: var(--paper);
  background: var(--void);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 14%, rgba(83, 212, 226, 0.13), transparent 28%),
    radial-gradient(circle at 18% 2%, rgba(217, 168, 79, 0.12), transparent 27%),
    linear-gradient(180deg, #070b0c 0%, #0c1113 45%, #070b0c 100%);
  color: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset: 18px 0 auto 0;
  z-index: 30;
  width: min(1180px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(246, 240, 230, 0.15);
  border-radius: 10px;
  background: rgba(7, 11, 12, 0.76);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(217, 168, 79, 0.66);
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 168, 79, 0.88) 0 8%, transparent 9%),
    repeating-conic-gradient(from 0deg, rgba(217, 168, 79, 0.16) 0 10deg, transparent 10deg 20deg),
    radial-gradient(circle, transparent 42%, rgba(217, 168, 79, 0.46) 43% 45%, transparent 46%),
    conic-gradient(from 20deg, rgba(83, 212, 226, 0.22), rgba(217, 168, 79, 0.34), rgba(142, 202, 114, 0.22), rgba(83, 212, 226, 0.22));
  box-shadow: 0 0 34px rgba(217, 168, 79, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(246, 240, 230, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:not(.nav-cta) {
  padding: 10px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold-2);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(217, 168, 79, 0.72);
  border-radius: 6px;
  padding: 0 14px;
  background: linear-gradient(180deg, #e3b45a, #bd8835);
  color: #120f09;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(246, 240, 230, 0.06);
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 124px 0 64px;
}

.cosmic-field {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 12, 0.98), rgba(7, 11, 12, 0.62), rgba(7, 11, 12, 0.88)),
    radial-gradient(circle at 68% 44%, rgba(83, 212, 226, 0.18), transparent 25%),
    radial-gradient(circle at 57% 48%, rgba(217, 168, 79, 0.22), transparent 20%),
    url("assets/trinity-hero.png") center / cover no-repeat;
  opacity: 0.98;
}

.cosmic-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(246, 240, 230, 0.6) 1px, transparent 1px),
    linear-gradient(rgba(83, 212, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 212, 226, 0.04) 1px, transparent 1px);
  background-size: 82px 82px, 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at 70% 45%, black, transparent 72%);
  opacity: 0.48;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  max-width: 500px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
}

h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.12;
}

.lede {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.gold {
  border-color: rgba(217, 168, 79, 0.72);
  background: linear-gradient(180deg, #e2b45b, #bb8430);
  color: #130f08;
}

.button.ghost {
  background: rgba(246, 240, 230, 0.06);
  color: var(--paper);
}

.mini-pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.mini-pillar-row span {
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 240, 230, 0.05);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.mini-pillar-row strong {
  display: block;
  color: var(--gold-2);
  font-size: 13px;
  text-transform: uppercase;
}

.ecosystem-map {
  position: relative;
  width: min(650px, 100%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

.map-rings,
.map-lines {
  position: absolute;
  inset: 0;
}

.map-rings {
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 168, 79, 0.16) 0 11%, transparent 12%),
    radial-gradient(circle, transparent 30%, rgba(217, 168, 79, 0.14) 30.5% 31%, transparent 31.5%),
    radial-gradient(circle, transparent 49%, rgba(83, 212, 226, 0.14) 49.5% 50%, transparent 50.5%),
    radial-gradient(circle, transparent 68%, rgba(246, 240, 230, 0.11) 68.5% 69%, transparent 69.5%);
  animation: slowSpin 48s linear infinite;
}

.map-lines {
  z-index: 1;
  pointer-events: none;
}

.map-lines line,
.map-lines circle {
  fill: none;
  stroke: rgba(217, 168, 79, 0.36);
  stroke-width: 1;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 132px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(246, 240, 230, 0.24);
  border-radius: 50%;
  padding: 16px;
  background: rgba(8, 13, 15, 0.78);
  box-shadow: 0 0 46px rgba(83, 212, 226, 0.12), inset 0 0 38px rgba(246, 240, 230, 0.03);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.active {
  transform: scale(1.04);
  border-color: var(--gold-2);
  box-shadow: 0 0 54px rgba(217, 168, 79, 0.34);
  outline: none;
}

.map-node strong {
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-node span {
  color: var(--soft);
  font-size: 11px;
  line-height: 1.25;
}

.center-node {
  width: 156px;
  min-height: 156px;
  top: calc(50% - 78px);
  left: calc(50% - 78px);
  border-color: rgba(217, 168, 79, 0.78);
  background: radial-gradient(circle, rgba(217, 168, 79, 0.22), rgba(8, 13, 15, 0.88) 64%);
}

.center-node strong,
.center-node span {
  color: var(--gold-2);
  font-size: 16px;
}

.node-products { top: 0; left: calc(50% - 66px); box-shadow: 0 0 46px rgba(142, 202, 114, 0.2); }
.node-services { top: 18%; right: 4%; box-shadow: 0 0 46px rgba(217, 168, 79, 0.24); }
.node-events { right: 4%; bottom: 18%; box-shadow: 0 0 46px rgba(181, 140, 255, 0.22); }
.node-academy { bottom: 0; left: calc(50% - 66px); box-shadow: 0 0 46px rgba(83, 212, 226, 0.18); }
.node-community { bottom: 18%; left: 4%; box-shadow: 0 0 46px rgba(246, 240, 230, 0.12); }
.node-technology { top: 18%; left: 4%; box-shadow: 0 0 46px rgba(117, 169, 255, 0.2); }

.metrics-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 12, 0.82);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics-grid div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
  border-left: 1px solid var(--line);
}

.metrics-grid div:first-child {
  border-left: 0;
}

.metrics-grid strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.metrics-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 96px 0;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 29, 34, 0.88);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
}

.copy-stack p,
.page-copy p,
.domain-card p,
.feature-band p,
.philosophy-grid span,
.page-card p,
.event-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.65;
}

.copy-stack p:first-child {
  margin-top: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.domain-grid,
.page-grid,
.product-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.domain-card,
.page-card,
.product-card,
.event-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(246, 240, 230, 0.07), rgba(246, 240, 230, 0.03));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.domain-card:hover,
.domain-card:focus-visible,
.page-card:hover,
.page-card:focus-visible,
.domain-card.active {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(217, 168, 79, 0.12), rgba(246, 240, 230, 0.04));
  outline: none;
}

.domain-card span,
.page-card span,
.event-card span,
.product-card span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246, 240, 230, 0.05);
  box-shadow: var(--shadow);
}

.feature-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.philosophy-grid article {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 11, 12, 0.42);
}

.philosophy-grid strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero {
  min-height: 72vh;
  padding-bottom: 44px;
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-kicker {
  max-width: 720px;
}

.page-kicker h1 {
  max-width: 850px;
}

.page-copy {
  max-width: 650px;
  margin-top: 24px;
}

.product-visual {
  min-height: 270px;
  display: grid;
  place-items: center;
  margin: -22px -22px 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle, rgba(217, 168, 79, 0.14), transparent 62%);
}

.product-visual img {
  max-height: 220px;
  object-fit: contain;
}

.service-logo,
.event-icon,
.tech-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin-bottom: 22px;
  background: rgba(217, 168, 79, 0.08);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.route-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(246, 240, 230, 0.05);
}

.route-card strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 8px;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 12, 0.94);
}

.footer-grid {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 88px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(7, 11, 12, 0.96);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px !important;
    border-bottom: 1px solid rgba(246, 240, 230, 0.08);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid,
  .split-layout,
  .feature-band,
  .two-column {
    grid-template-columns: 1fr;
  }

  .ecosystem-map {
    margin: 10px auto 0;
  }
}

@media (max-width: 760px) {
  .shell,
  .topbar {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 112px 0 48px;
  }

  .ecosystem-map {
    aspect-ratio: auto;
    display: grid;
    gap: 12px;
  }

  .map-rings,
  .map-lines {
    display: none;
  }

  .map-node,
  .center-node {
    position: static;
    width: 100%;
    min-height: 92px;
    border-radius: 10px;
  }

  .center-node {
    order: -1;
  }

  .metrics-grid,
  .domain-grid,
  .page-grid,
  .product-grid,
  .event-grid,
  .philosophy-grid,
  .mini-pillar-row {
    grid-template-columns: 1fr;
  }

  .metrics-grid div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 68px 0;
  }

  .domain-card,
  .page-card,
  .product-card,
  .event-card {
    min-height: 220px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}
