:root {
  --bg: #07130d;
  --bg-2: #0c1f15;
  --panel: rgba(255,255,255,.075);
  --panel-strong: rgba(255,255,255,.12);
  --text: #f6f1dc;
  --muted: #b7b09c;
  --gold: #f1c85f;
  --green: #65c78e;
  --green-2: #1e6f45;
  --line: rgba(255,255,255,.16);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(101,199,142,.25), transparent 24rem),
    radial-gradient(circle at 80% 0%, rgba(241,200,95,.16), transparent 28rem),
    linear-gradient(135deg, var(--bg), #030604 75%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(7,19,13,.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(241,200,95,.55);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(241,200,95,.22), rgba(101,199,142,.12));
  box-shadow: 0 0 34px rgba(241,200,95,.16);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
}

.nav a:hover { color: var(--text); }

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  padding: .72rem 1rem;
  color: #041008;
  background: var(--gold);
}

.btn-primary {
  color: #041008;
  background: linear-gradient(135deg, var(--gold), #ffe49a);
  box-shadow: 0 12px 34px rgba(241,200,95,.22);
}

.btn-secondary {
  display: inline-flex;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.hero,
.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 2rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: .9;
  margin: .5rem 0 1.2rem;
  letter-spacing: -.07em;
  max-width: 980px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.7;
  max-width: 740px;
}

.eyebrow {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 .8rem;
}

.hero-actions,
.actions-stack {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.status-strip span {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.19);
  color: var(--muted);
  border-radius: 999px;
  padding: .55rem .75rem;
  font-size: .85rem;
}

.hero-card,
.identity-card,
.league-board,
.card,
.lesson,
.command {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2rem;
}

.hero-card:before,
.identity-card:before,
.command:before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(241,200,95,.14), transparent 34%, rgba(101,199,142,.1));
}

.orb {
  position: absolute;
  width: 270px;
  height: 270px;
  top: 2rem;
  right: 2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff7c8, transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(241,200,95,.84), rgba(101,199,142,.25) 52%, transparent 72%);
  filter: drop-shadow(0 0 70px rgba(241,200,95,.32));
}

.card-label {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-card h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .95;
  margin: .5rem 0;
}

.hero-card p,
.card p,
.lesson p,
.section-head p,
.split p {
  color: var(--muted);
  line-height: 1.65;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  margin-top: 1.4rem;
}

.protocol-grid span,
.command-grid span {
  padding: .75rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  color: var(--text);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(2.1rem, 4vw, 4.8rem);
  line-height: .95;
  margin: 0 0 1rem;
  letter-spacing: -.045em;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }

.card,
.lesson {
  padding: 1.3rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #06120c;
  background: var(--gold);
  border-radius: 15px;
  font-weight: 1000;
}

.card h3,
.lesson h3 {
  margin: 1rem 0 .45rem;
}

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

.reverse > :first-child {
  order: 2;
}

.identity-card {
  padding: 2rem;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 65% 15%, rgba(241,200,95,.18), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}

.identity-top,
.identity-meta {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}

.badge {
  color: #041008;
  background: var(--green);
  border-radius: 999px;
  padding: .4rem .7rem;
  font-size: .78rem;
  font-weight: 1000;
}

.identity-symbol {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 1.5rem auto;
  border-radius: 50%;
  border: 1px solid rgba(241,200,95,.45);
  background:
    radial-gradient(circle, rgba(241,200,95,.38), rgba(101,199,142,.12) 58%, rgba(0,0,0,.2));
  font-size: 6rem;
  color: var(--gold);
}

.identity-card h3 {
  font-size: 2rem;
  margin: 0 0 .4rem;
}

.identity-meta {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
}

.warning {
  max-width: 640px;
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(241,200,95,.35);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(241,200,95,.06);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lesson span {
  color: var(--gold);
  font-weight: 1000;
  letter-spacing: .08em;
}

.lesson.complete {
  border-color: rgba(101,199,142,.6);
  background: linear-gradient(145deg, rgba(101,199,142,.14), rgba(255,255,255,.045));
}

.lessonBtn {
  margin-top: 1rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0,0,0,.18);
  padding: .7rem;
  cursor: pointer;
  font-weight: 800;
}

.lesson.complete .lessonBtn {
  color: #041008;
  background: var(--green);
}

.league-board {
  padding: 1rem;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.2fr;
  gap: .75rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.board-row:last-child { border-bottom: 0; }

.board-row.head {
  color: var(--gold);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  position: relative;
  padding: .7rem 0 .7rem 2rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 1000;
}

.integration code {
  display: block;
  padding: .8rem;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(0,0,0,.2);
  white-space: normal;
}

.command {
  padding: 2rem;
  margin-bottom: 5rem;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero,
  .split {
    grid-template-columns: 1fr;
  }
  .cards.four,
  .cards.three,
  .course-grid,
  .command-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reverse > :first-child { order: initial; }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero {
    padding-top: 3rem;
  }
  .hero-content h1 {
    font-size: 3.2rem;
  }
  .cards.four,
  .cards.three,
  .course-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 430px;
  }
  .orb {
    width: 220px;
    height: 220px;
  }
  .footer {
    flex-direction: column;
  }
}
