@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&family=Crimson+Text:wght@400;600;700&display=swap');

:root {
  --bg: #0f0a1e;
  --surface: #1a1330;
  --primary: #7c3aed;
  --accent: #a78bfa;
  --violet: #8b5cf6;
  --gold: #fde047;
  --text: #ede9fe;
  --border: rgba(124, 58, 237, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Josefin Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.75; }
h1, h2, h3 { font-family: 'Crimson Text', serif; }
a { color: var(--accent); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--gold); }

.nav-wrap {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15, 10, 30, 0.95); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 2.5rem; border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo span { font-family: 'Josefin Sans', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--violet); letter-spacing: 1px; }

.nav-items { list-style: none; display: flex; gap: 1.6rem; }
.nav-items a { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.nav-items a:hover { color: var(--violet); }

.ham { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.ham span { width: 26px; height: 2.5px; background: var(--violet); border-radius: 2px; transition: 0.3s; }
.ham.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ham.active span:nth-child(2) { opacity: 0; }
.ham.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.opener {
  min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 2rem 4rem;
  background: radial-gradient(ellipse at 50% 35%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}
.opener h1 {
  font-size: 3.2rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.opener p { font-size: 1.1rem; max-width: 660px; margin-bottom: 2rem; opacity: 0.9; }

.violet-btn {
  display: inline-block; padding: 0.85rem 2.4rem;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff; font-weight: 700; border-radius: 40px; font-size: 1rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); transition: 0.3s;
}
.violet-btn:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(124, 58, 237, 0.5); color: #fff; }

.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1000px; margin: -2rem auto 3rem; padding: 0 2rem; position: relative; z-index: 2;
}
.tc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.8rem; text-align: center; backdrop-filter: blur(8px);
}
.tc h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 0.4rem; }
.tc p { font-size: 0.88rem; opacity: 0.85; }

.passage { max-width: 1200px; margin: 0 auto; padding: 4rem 2.5rem; }
.passage h2 { font-size: 2rem; color: var(--violet); margin-bottom: 1rem; }
.passage p { margin-bottom: 1rem; max-width: 850px; }

.gframe {
  max-width: 960px; margin: 2rem auto; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--border); box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}
.gframe iframe { width: 100%; height: 600px; border: none; display: block; }

.quad {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem; max-width: 1200px; margin: 3rem auto; padding: 0 2.5rem;
}
.qd { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; }
.qd h3 { color: var(--gold); margin-bottom: 0.5rem; }
.qd p { font-size: 0.93rem; opacity: 0.85; }
.qd ul { padding-left: 1.1rem; font-size: 0.93rem; }
.qd li { margin-bottom: 0.3rem; }

.base {
  background: var(--surface); border-top: 1px solid var(--border);
  text-align: center; padding: 2.5rem 2rem; margin-top: 4rem;
}
.base .rglinks a { color: var(--accent); margin: 0 0.8rem; font-size: 0.9rem; }
.base .rglinks a:hover { color: var(--gold); }
.base .fin { margin-top: 0.8rem; font-size: 0.78rem; opacity: 0.5; }

.age-dim { position: fixed; inset: 0; background: rgba(15, 10, 30, 0.97); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.age-card { background: var(--surface); border: 2px solid var(--primary); border-radius: 16px; padding: 2.5rem; text-align: center; max-width: 420px; width: 90%; }
.age-card h2 { color: var(--violet); margin-bottom: 0.8rem; }
.age-card p { margin-bottom: 1.5rem; }
.age-pair { display: flex; gap: 1rem; justify-content: center; }
.age-pair button { padding: 0.7rem 2rem; border: none; border-radius: 40px; font-family: 'Josefin Sans', sans-serif; font-weight: 700; cursor: pointer; transition: 0.2s; }
.age-pair button:hover { transform: scale(1.04); }
.ap-y { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; }
.ap-n { background: transparent; border: 2px solid var(--primary) !important; color: var(--accent); }
.age-dim.hidden { display: none; }

.lgl { max-width: 880px; margin: 0 auto; padding: 6rem 2.5rem 3rem; }
.lgl h1 { font-size: 2.2rem; color: var(--violet); margin-bottom: 1.5rem; }
.lgl h2 { font-size: 1.3rem; color: var(--gold); margin: 1.7rem 0 0.7rem; }
.lgl p { margin-bottom: 0.9rem; }

.pp { text-align: center; padding: 6rem 2rem 2rem; }
.pp h1 { font-size: 2.4rem; color: var(--violet); margin-bottom: 0.8rem; }
.pp p { max-width: 640px; margin: 0 auto 1.5rem; }

.hint { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; max-width: 650px; margin: 2rem auto; font-size: 0.93rem; }

@media (max-width: 768px) {
  .ham { display: flex; }
  .nav-items { position: fixed; top: 0; left: -100%; width: 72%; max-width: 280px; height: 100vh; background: var(--surface); flex-direction: column; padding: 4.5rem 2rem; transition: left 0.35s; border-right: 1px solid var(--border); }
  .nav-items.open { left: 0; }
  .opener h1 { font-size: 2.2rem; }
  .three-col { grid-template-columns: 1fr; }
  .gframe iframe { height: 350px; }
}
