:root {
  --ink: #f5f1e7;
  --muted: #b8c2c5;
  --gold: #d7ad56;
  --blue: #6aa7de;
  --teal: #4fb7c6;
  --ruby: #9f3456;
  --line: rgba(199, 218, 232, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 18% 8%, rgba(106, 167, 222, .18), transparent 28%),
    radial-gradient(circle at 86% 26%, rgba(79, 183, 198, .16), transparent 30%),
    linear-gradient(135deg, #071018, #101820 42%, #15111b);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand-key {
  position: relative;
  width: 42px;
  height: 22px;
  transform: rotate(-18deg);
}

.brand-key::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 17px;
  width: 23px;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d9efff, var(--gold), #6b4314);
  box-shadow: 0 0 18px rgba(106, 167, 222, .78);
}

.brand-key::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 19px;
  height: 19px;
  border: 6px solid var(--gold);
  border-left-color: #6b4314;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(106, 167, 222, .78);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(320px, 1.04fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 86px) clamp(16px, 5vw, 74px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 16, 24, .96) 0 42%, rgba(7, 16, 24, .58)),
    url("assets/bookslab.jpg") center / cover;
  opacity: .68;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 950;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.7vw, 88px);
  line-height: 1.04;
  font-weight: 950;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
}

.hero-copy p:not(.kicker),
.path-card p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-symbol {
  position: relative;
  min-height: 440px;
  perspective: 1200px;
}

.arch {
  position: absolute;
  inset: 20px 0 0;
  border: 2px solid rgba(199, 218, 232, .22);
  border-bottom-width: 8px;
  border-radius: 54% 54% 8px 8px / 38% 38% 8px 8px;
  background:
    linear-gradient(180deg, rgba(20, 33, 45, .64), rgba(7, 16, 24, .9)),
    repeating-linear-gradient(90deg, rgba(159, 52, 86, .18) 0 22px, rgba(79, 183, 198, .16) 22px 44px, rgba(215, 173, 86, .18) 44px 66px);
  box-shadow: inset 0 0 54px rgba(106, 167, 222, .22), 0 44px 90px rgba(0, 0, 0, .42);
}

.cross-light {
  position: absolute;
  top: 70px;
  right: 50%;
  width: 92px;
  height: 134px;
  transform: translateX(50%);
  filter: drop-shadow(0 0 24px rgba(106, 167, 222, .85));
}

.cross-light::before,
.cross-light::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #d9efff, var(--gold), var(--ruby));
  border-radius: 8px;
}

.cross-light::before {
  inset: 0 33px;
}

.cross-light::after {
  top: 40px;
  right: 0;
  left: 0;
  height: 29px;
}

.large-key {
  position: absolute;
  width: 260px;
  height: 88px;
  right: 22%;
  bottom: 80px;
  transform: rotateZ(8deg) rotateX(58deg);
  animation: keyFloat 5.5s ease-in-out infinite;
}

.large-key::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 70px;
  width: 155px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(180deg, #d9efff, var(--gold), #6b4314);
  box-shadow: 0 0 28px rgba(106, 167, 222, .72);
}

.large-key::after {
  content: "";
  position: absolute;
  top: 39px;
  left: 4px;
  width: 60px;
  height: 37px;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 74% 35%, 74% 70%, 48% 70%, 48% 100%, 0 100%);
  background: linear-gradient(180deg, #d9efff, var(--gold), #6b4314);
}

.large-key span {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 70px;
  border: 16px solid var(--gold);
  border-left-color: #6b4314;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(106, 167, 222, .72);
}

@keyframes keyFloat {
  0%, 100% { filter: drop-shadow(0 18px 22px rgba(106, 167, 222, .28)); }
  50% { filter: drop-shadow(0 28px 34px rgba(106, 167, 222, .58)); }
}

.paths {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(16px, 5vw, 74px) clamp(48px, 7vw, 92px);
}

.path-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 32, 43, .92), rgba(10, 18, 27, .92));
  box-shadow: 0 28px 60px rgba(0, 0, 0, .36);
  transition: transform .18s ease, box-shadow .18s ease;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 36px 74px rgba(0, 0, 0, .42), 0 0 28px rgba(106, 167, 222, .22);
}

.path-seal {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--ruby));
  color: #090d11;
  font-weight: 950;
  box-shadow: inset 0 -16px 24px rgba(0, 0, 0, .18), 0 0 28px rgba(106, 167, 222, .34);
}

.path-seal.alt {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
}

.footer {
  padding: 26px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: rgba(7, 16, 24, .9);
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

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

  .path-card {
    grid-template-columns: 1fr;
  }
}
