:root {
  --bg: #f4eee4;
  --bg-deep: #e8ddcc;
  --surface: rgba(255, 251, 246, 0.88);
  --surface-solid: #fffaf2;
  --ink: #15141c;
  --ink-soft: #4e4a5d;
  --ink-faint: #6f677f;
  --line: rgba(21, 20, 28, 0.14);
  --brand: #ef5d35;
  --brand-2: #f18e2d;
  --aqua: #0f7b76;
  --gold: #b78a2f;
  --radius-xl: 30px;
  --radius-lg: 18px;
  --shadow: 0 22px 56px rgba(30, 22, 19, 0.17);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.62;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(239, 93, 53, 0.24), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(15, 123, 118, 0.2), transparent 33%),
    radial-gradient(circle at 72% 86%, rgba(183, 138, 47, 0.2), transparent 35%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 26px),
    linear-gradient(165deg, #f7f1e7 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

a {
  color: inherit;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px) saturate(1.1);
  background: linear-gradient(to right, rgba(255, 253, 249, 0.82), rgba(250, 245, 236, 0.74));
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.96rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2.04rem;
  letter-spacing: -0.01em;
}

.brand::before {
  content: "";
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 999px;
  background: conic-gradient(from 40deg, var(--brand), var(--brand-2), var(--aqua), var(--gold), var(--brand));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.74), 0 6px 14px rgba(0, 0, 0, 0.17);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  color: #38324c;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #1b1726;
  background: rgba(239, 93, 53, 0.12);
  transform: translateY(-1px);
}

main.container {
  padding-bottom: 1.2rem;
}

.hero {
  padding: 2.8rem 0 1.25rem;
  animation: enter 0.7s ease-out;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5.9vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0.78rem 0 0;
  max-width: 72ch;
  color: var(--ink-soft);
}

.hero-copy {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.88), rgba(253, 242, 232, 0.8));
  border-radius: var(--radius-xl);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -85px;
  top: -120px;
  background: radial-gradient(circle, rgba(15, 123, 118, 0.2), rgba(15, 123, 118, 0));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.64rem;
  padding: 0.27rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 123, 118, 0.11);
  border: 1px solid rgba(15, 123, 118, 0.34);
  color: #145851;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.hero-stage {
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(12, 22, 30, 0.93), rgba(21, 27, 43, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  padding: 1.05rem;
  color: #f2f3f7;
  display: grid;
  gap: 0.85rem;
}

.orbital-map {
  aspect-ratio: 1.1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 18%, transparent 19% 100%),
    conic-gradient(from 0deg, #eb6a41, #ef9a29, #2eac9f, #6da0ff, #b66de9, #eb6a41);
  position: relative;
  isolation: isolate;
}

.orbital-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 20, 34, 0.95), rgba(33, 25, 45, 0.9));
  z-index: -1;
}

.orbital-core {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8ec, #ffdfb8 48%, #f2a74f 100%);
  color: #2f200f;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.stage-copy {
  font-size: 0.92rem;
  color: rgba(248, 249, 255, 0.9);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.signal {
  border: 1px solid rgba(15, 123, 118, 0.28);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(239, 255, 251, 0.86));
  padding: 0.72rem;
}

.signal strong {
  display: block;
  line-height: 1;
  font-size: 1.5rem;
  color: #1f4f4b;
}

.section {
  margin: 1.25rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.glass {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.16rem;
}

.glass h3,
.panel h3 {
  margin-top: 0.1rem;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 20, 28, 0.13);
  background: var(--surface-solid);
  padding: 0.95rem;
}

.story-grid article {
  position: relative;
  overflow: hidden;
}

.story-grid article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--brand), var(--aqua));
}

.media-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: #fff;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.57), rgba(12, 14, 22, 0.03) 45%, transparent);
  pointer-events: none;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.media-caption {
  position: absolute;
  left: 0.92rem;
  right: 0.92rem;
  bottom: 0.92rem;
  z-index: 2;
  color: #fff;
  font-size: 0.92rem;
  padding: 0.56rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(16, 17, 25, 0.46);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.65rem;
}

.type-pill {
  border-radius: 13px;
  border: 1px solid rgba(21, 20, 28, 0.12);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 235, 0.95));
  padding: 0.62rem 0.7rem;
  font-size: 0.84rem;
}

.type-pill strong {
  display: block;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.stat {
  border-radius: 16px;
  border: 1px solid rgba(239, 93, 53, 0.32);
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.95), rgba(255, 239, 228, 0.95));
  padding: 0.84rem;
}

.stat strong {
  display: block;
  color: #ad3a22;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(15, 123, 118, 0.34);
  background: rgba(15, 123, 118, 0.12);
  color: #155851;
  padding: 0.2rem 0.7rem;
  font-size: 0.79rem;
  font-weight: 700;
  margin-right: 0.35rem;
}

.banner {
  margin: 0.8rem 0;
  border-radius: 12px;
  border: 1px solid rgba(239, 93, 53, 0.34);
  background: linear-gradient(140deg, rgba(255, 247, 238, 0.96), rgba(255, 231, 215, 0.94));
  color: #7f3c2a;
  padding: 0.75rem 0.88rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(21, 20, 28, 0.21);
  background: #fff;
  padding: 0.76rem 0.86rem;
}

input:focus {
  outline: none;
  border-color: rgba(239, 93, 53, 0.6);
  box-shadow: 0 0 0 4px rgba(239, 93, 53, 0.14);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.36rem;
}

.question {
  border-radius: 17px;
  border: 1px solid rgba(21, 20, 28, 0.15);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 240, 0.95));
  padding: 1rem;
  margin: 0.92rem 0;
}

.question h3 {
  margin: 0 0 0.66rem;
  font-size: 1.02rem;
}

.options label {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  margin: 0.38rem 0;
  font-weight: 500;
}

.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 0.8rem 1.44rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(118deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px rgba(239, 93, 53, 0.31);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(239, 93, 53, 0.37);
}

.btn.secondary {
  background: linear-gradient(118deg, var(--aqua), #37a9a1);
  box-shadow: 0 12px 26px rgba(15, 123, 118, 0.27);
}

.btn.secondary:hover {
  box-shadow: 0 14px 28px rgba(15, 123, 118, 0.33);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  border-bottom: 1px solid rgba(21, 20, 28, 0.14);
  text-align: left;
  padding: 0.58rem;
}

.rank-table a {
  color: #1c5d69;
  font-weight: 700;
}

.rank-table a:hover {
  color: #133f47;
}

.footer {
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.muted {
  color: var(--ink-soft);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero h1 {
    max-width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    padding: 0.36rem 0.66rem;
  }

  .hero {
    padding-top: 1.45rem;
  }

  .cta-row {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
