:root {
  --bg-1: #180a18;
  --bg-2: #3b1933;
  --bg-3: #1e3558;
  --surface: rgba(18, 10, 20, 0.84);
  --surface-2: rgba(255, 242, 225, 0.08);
  --text-main: #f7efe2;
  --text-muted: #e8d4bc;
  --text-strong: #fff4e4;
  --accent: #f2b94f;
  --accent-soft: #ffe0a1;
  --line: rgba(247, 219, 181, 0.24);
  --shadow: 0 20px 45px rgba(10, 5, 14, 0.32);
  --radius: 24px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text-main);
  background: radial-gradient(130% 90% at 10% 20%, var(--bg-2), var(--bg-1) 55%, var(--bg-3) 100%);
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.2rem 1rem 2rem;
}

.aurora,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: drift 24s linear infinite;
}

.aurora::before {
  background: #70284f;
  top: -20vmax;
  left: -8vmax;
}

.aurora::after {
  background: #1f4e93;
  right: -15vmax;
  bottom: -18vmax;
}

@keyframes drift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.grain {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.site-header,
.panel,
footer {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0.5rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(17, 10, 20, 0.72);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--text-strong);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7a224a, #bf6d3e);
  box-shadow: inset 0 0 0 2px rgba(255, 231, 199, 0.7);
}

.brand h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1;
}

.brand-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav a,
.legacy-pill,
.cta-row a,
.connect a,
.video-caption a,
.link-grid a {
  color: var(--text-main);
  text-decoration: none;
}

.top-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.top-nav a.active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.top-nav a:hover {
  border-color: rgba(242, 185, 79, 0.65);
  color: var(--text-strong);
}

.legacy-pill {
  background: linear-gradient(120deg, #f8b95e, #f8a64f);
  border-radius: 999px;
  color: #3f1226;
  font-weight: 700;
  padding: 0.55rem 1rem;
}

main {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
  animation: fadeUp 500ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.hero {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.05fr 1fr;
}

.hero-copy h2,
.panel h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.04;
}

.eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
}

.panel p {
  line-height: 1.72;
  color: var(--text-main);
}

.lead {
  margin-top: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

button {
  border: none;
  background: linear-gradient(120deg, #f2b94f, #f7d38a);
  color: #2a1428;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
}

button.ghost {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
  border: 1px solid rgba(255, 239, 216, 0.35);
}

button,
.connect a,
.link-grid a,
.connect a:visited,
.link-grid a:visited {
  font-size: 0.96rem;
}

.status-grid {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  padding-left: 0;
}

.status-grid div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.6rem 0.75rem;
}

.status-grid dt {
  margin: 0 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.status-grid dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.05rem;
}

.legacy-quick-links {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.legacy-accordion {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.menu-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.35rem 0.6rem 0.7rem;
}

.menu-block summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--text-strong);
}

.menu-block summary::marker,
.menu-block::-webkit-details-marker {
  display: none;
}

.menu-block summary::after {
  content: "+";
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 237, 212, 0.56);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.menu-block[open] summary::after {
  content: "−";
}

.menu-items {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.5rem;
}

.menu-items a,
.legacy-quick-links a {
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid rgba(255, 239, 216, 0.28);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.menu-items a:hover,
.legacy-quick-links a:hover {
  border-color: var(--accent-soft);
  color: var(--text-strong);
}

.video-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 212, 0.22);
}

.video-shell__ratio {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.87rem;
}

.features,
.connect,
.link-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.page-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
}

.card h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  margin-bottom: 0.4rem;
}

.link-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.link-grid a {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 239, 216, 0.28);
  background: var(--surface-2);
  text-wrap: balance;
}

.link-grid a:hover,
.connect a:hover {
  border-color: var(--accent-soft);
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
}

.content-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
}

.content-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.connect {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.connect a {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 234, 199, 0.22);
  border-radius: 12px;
  padding: 0.8rem;
}

footer {
  text-align: center;
  color: var(--text-muted);
  padding-bottom: 1rem;
  font-size: 0.9rem;
}

footer p {
  margin: 0.15rem 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .site-header {
    border-radius: 18px;
    padding: 0.7rem;
  }
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}
