:root {
  --bg: #040404;
  --bg-deep: #080808;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 210, 90, 0.28);
  --gold: #f2c14e;
  --gold-bright: #ffd87a;
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 0 28px rgba(242, 193, 78, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(242, 193, 78, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(135deg, #000000, #080808 50%, #020202);
  color: var(--text);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand,
.menu a {
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.88rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
}

.menu a {
  position: relative;
  font-size: 0.82rem;
}

.menu a.active {
  color: var(--gold-bright);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-bright);
  transition: transform 180ms ease;
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.active::after {
  transform: scaleX(1);
}

main {
  display: grid;
  gap: 1.3rem;
}

.page-main {
  display: grid;
  gap: 1.3rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 90, 0.06);
}

.panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 160px;
  height: 160px;
  border-top: 1px solid rgba(255, 210, 90, 0.12);
  border-left: 1px solid rgba(255, 210, 90, 0.12);
  opacity: 0.8;
}

.hero {
  padding: 4.5rem 2rem 3.6rem;
}

.page-hero h1 {
  max-width: 12ch;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

p a {
  color: var(--gold-bright);
  text-decoration-color: rgba(255, 216, 122, 0.45);
  text-underline-offset: 0.18em;
}

p a:hover,
p a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
}

h3 {
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.hero-copy,
.content-grid p,
.split-panel p,
.card p,
.recommend-list {
  color: var(--muted);
  font-size: 1rem;
}

.content-grid,
.split-panel,
.recommended-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-grid {
  display: grid;
  gap: 2rem;
}

.section-heading {
  max-width: 44rem;
}

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

.card {
  padding: 1.4rem;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

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

.portal-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.6rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}

.portal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.portal-link {
  justify-self: start;
  color: var(--gold-bright);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.portal-link:hover,
.portal-link:focus-visible {
  text-decoration: underline;
}

.contact-section {
  align-items: stretch;
}

.contact-copy {
  display: grid;
  align-content: start;
}

.contact-link {
  color: var(--gold-bright);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 90, 0.05);
}

.contact-form label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 210, 90, 0.22);
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(255, 216, 122, 0.7);
  border-color: rgba(255, 216, 122, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 216, 122, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form button {
  justify-self: start;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.18), rgba(242, 193, 78, 0.04));
  color: var(--gold-bright);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  box-shadow: 0 0 18px rgba(242, 193, 78, 0.18);
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.recommend-list {
  padding-left: 1.2rem;
}

.recommend-list li + li {
  margin-top: 0.75rem;
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    justify-content: flex-start;
  }

  .content-grid,
  .split-panel,
  .recommended-panel,
  .cards,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 1rem, 1120px);
  }

  .panel,
  .topbar {
    padding: 1.2rem;
  }

  .menu {
    gap: 0.8rem 1rem;
  }

  .menu a,
  .brand,
  .section-label,
  .eyebrow {
    letter-spacing: 0.12em;
  }
}
