/* Xept marketing site. Hand-written, no build step. Tokens first. */
:root {
  --ground: #FBF9FF;
  --ink: #17122B;
  --body: #3B3358;
  --muted: #5E5679;
  --primary: #6D3CF5;
  --primary-dark: #5A2BDB;
  --primary-deep: #3F1BA8;
  --soft: #F6F2FF;
  --line: #ECE6FA;
  --line-strong: #DDD3F7;
  --chip: #EFE9FF;
  --dark: #17122B;
  --dark-card: #221B3D;
  --dark-text: #C9C0E8;
  --gutter: 24px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
img, video { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter); }
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
h2 { font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; }
.lede { font-size: 18px; line-height: 1.55; color: var(--body); }
.eyebrow { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border: 1.5px solid #CFC4F5; color: #2B1B66; }
.btn-ghost:hover { background: #F0EAFF; color: #2B1B66; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Nav */
.nav { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.links { display: flex; align-items: center; gap: 24px; }
.links a:not(.btn) { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:not(.btn):hover { color: var(--primary); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #CFC4F5; border-radius: 10px; background: #fff; color: #2B1B66; font-weight: 600; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--primary); background: #F0EAFF; }
.menu .panel { position: absolute; right: 0; top: 52px; width: min(320px, calc(100vw - 32px)); background: var(--ground); border: 1px solid var(--line-strong); border-radius: 16px; padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 24px 48px rgba(43, 27, 102, 0.18); z-index: 5; }
.menu .panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--body); text-decoration: none; font-size: 17px; font-weight: 500; border-radius: 10px; }
.menu .panel a:not(.btn):hover { background: var(--soft); }
.menu .panel .btn { margin-top: 8px; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 62px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.hero .lede { font-size: 20px; line-height: 1.5; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-phone { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }

/* Phone frame, shared by hero, demo, ladder */
.phone { width: 300px; max-width: 100%; background: #120C24; border-radius: 36px; padding: 14px; box-shadow: 0 30px 60px rgba(43, 27, 102, 0.28); }
.phone.slim { padding: 10px; width: 320px; }
.phone.video { padding: 10px; border-radius: 40px; box-shadow: 0 28px 56px rgba(43, 27, 102, 0.26); }
.screen { border-radius: 24px; padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.phone video { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 32px; background: #060A18; object-fit: cover; }

/* Fantasy screen (hero) */
.fantasy { background: #1E1538; font-family: "Alegreya Sans", sans-serif; color: #F6EEDB; }
.fantasy .kicker { font-family: Cinzel, serif; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: #F2C14E; }
.fantasy .level { display: flex; align-items: baseline; justify-content: space-between; }
.fantasy .level b { font-family: Cinzel, serif; font-weight: 700; font-size: 26px; }
.fantasy .xp { font-size: 15px; color: #B6AEAB; }
.bar { height: 10px; border-radius: 999px; background: rgba(246, 238, 219, 0.14); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: #F2C14E; }
.fantasy .label { font-family: Cinzel, serif; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; color: #9B7BFF; padding-top: 6px; }
.fantasy .card { background: #2A1E4E; border: 1px solid rgba(242, 193, 78, 0.28); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fantasy .card b { font-size: 17px; }
.fantasy .card span { font-size: 14px; color: #B6AEAB; }
.fantasy .turn { background: #F2C14E; color: #1E1406; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 16px; text-align: center; }

/* How it works */
.steps { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.step { flex: 1 1 240px; min-width: 0; background: var(--soft); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step .n { font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 500; color: var(--primary-dark); }
.step h3 { font-size: 22px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--body); }

/* Demo */
.demo { padding-bottom: 24px; display: flex; flex-direction: column; gap: 48px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px 72px; }
.demo .phone { flex: 0 1 320px; width: 320px; }
.beats { flex: 1 1 320px; max-width: 440px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.beat { display: flex; gap: 16px; align-items: flex-start; }
.beat .badge { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); font-family: "Geist Mono", monospace; font-weight: 500; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.beat h3 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 6px; }
.beat p { font-size: 16px; line-height: 1.55; color: var(--body); }
/* With JS the beats arrive with the video; without it they all show */
.js .beats .beat { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .beats[data-phase="1"] .beat:nth-child(-n+1),
.js .beats[data-phase="2"] .beat:nth-child(-n+2),
.js .beats[data-phase="3"] .beat:nth-child(-n+3) { opacity: 1; transform: none; }
.js .beats[data-phase="1"] .beat:nth-child(1) .badge,
.js .beats[data-phase="2"] .beat:nth-child(2) .badge,
.js .beats[data-phase="3"] .beat:nth-child(3) .badge { background: var(--primary); color: #fff; }
.js .beats.all .beat { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .js .beats .beat { transition: none; } }

/* Styles */
.styles { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 48px; }
.style { flex: 1 1 300px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.style .shot { width: 100%; border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.style .cap { text-align: center; }
.style .cap h3 { font-size: 20px; margin-bottom: 6px; }
.style .cap p { font-size: 15px; line-height: 1.5; color: var(--body); }
.shot .row { display: flex; align-items: baseline; justify-content: space-between; }
.shot .track { height: 8px; border-radius: 4px; background: rgba(232, 241, 255, 0.14); }
.shot .track > i { display: block; width: 71%; height: 100%; border-radius: inherit; }
.shot .quest { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.shot .quest b { font-size: 16px; }
.shot .quest span { font-size: 13px; }
.shot .act { padding: 12px; font-weight: 600; font-size: 15px; text-align: center; }

.scifi { background: #060A18; font-family: "Space Grotesk", sans-serif; color: #E8F1FF; border: 1px solid rgba(61, 231, 255, 0.22); }
.scifi .k { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.18em; color: #3DE7FF; }
.scifi .row b { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 22px; }
.scifi .row span { font-size: 14px; color: #A3AAB8; }
.scifi .track > i { background: #3DE7FF; }
.scifi .quest { background: #0E1630; border: 1px solid rgba(61, 231, 255, 0.22); border-radius: 6px; }
.scifi .quest span { color: #A3AAB8; }
.scifi .act { background: #3DE7FF; color: #04111F; border-radius: 6px; }

.fant { background: #120C24; font-family: "Alegreya Sans", sans-serif; color: #F6EEDB; border: 1px solid rgba(242, 193, 78, 0.28); }
.fant .k { font-family: Cinzel, serif; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: #F2C14E; }
.fant .row b { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; }
.fant .row span { font-size: 15px; color: #B6AEAB; }
.fant .track { background: rgba(246, 238, 219, 0.14); border-radius: 999px; }
.fant .track > i { background: #F2C14E; }
.fant .quest { background: #1E1538; border: 1px solid rgba(242, 193, 78, 0.28); border-radius: 14px; }
.fant .quest b { font-size: 17px; }
.fant .quest span { font-size: 14px; color: #B6AEAB; }
.fant .act { background: #F2C14E; color: #1E1406; border-radius: 14px; font-weight: 700; font-size: 16px; }

.occult { background: #0C0910; font-family: Karla, sans-serif; color: #EDE6F2; border: 1px solid rgba(124, 242, 154, 0.22); }
.occult .k { font-family: "Cormorant SC", serif; font-weight: 700; font-size: 14px; letter-spacing: 0.16em; color: #7CF29A; }
.occult .row b { font-family: "Cormorant SC", serif; font-weight: 700; font-size: 26px; }
.occult .row span { font-size: 14px; color: #A9A3AE; }
.occult .track { background: rgba(237, 230, 242, 0.14); }
.occult .track > i { background: #7CF29A; }
.occult .quest { background: #18111E; border: 1px solid rgba(124, 242, 154, 0.22); border-radius: 4px; }
.occult .quest b { font-weight: 700; }
.occult .quest span { font-size: 14px; color: #A9A3AE; }
.occult .act { background: #7CF29A; color: #06140B; border-radius: 4px; font-weight: 700; }

/* Ladder and shared split layout */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.checks { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; color: var(--body); }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 1px; }

.starmap { background: #060A18; border-radius: 28px; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 10px; font-family: "Space Grotesk", sans-serif; color: #E8F1FF; }
.starmap .k { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.18em; color: #3DE7FF; }
.starmap h3 { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 22px; padding-top: 4px; }
.starmap .note { font-size: 13px; line-height: 1.4; color: #A3AAB8; padding-bottom: 4px; }
.rank { display: flex; gap: 10px; align-items: center; border-radius: 6px; padding: 10px 12px; background: #0E1630; border: 1px solid rgba(61, 231, 255, 0.22); }
.rank.future { background: transparent; border: 1px dashed rgba(61, 231, 255, 0.35); }
.rank.here { background: #13204A; border-color: #3DE7FF; }
.rank .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #3DE7FF; color: #04111F; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.rank.future .num { background: #1B2240; color: #E8F1FF; }
.rank div { min-width: 0; }
.rank b { display: block; font-weight: 600; font-size: 14px; }
.rank .r { display: block; font-size: 12px; color: #A3AAB8; }
.rank .s { display: block; font-size: 12px; color: #E8F1FF; }
.rank.here .r { color: #C9D3E6; }
.rank.here .s { color: #3DE7FF; font-weight: 600; }

/* Guilds */
.roster { background: var(--soft); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.roster .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roster .top b { font-size: 20px; }
.roster .top span { font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 500; color: var(--primary-dark); }
.house { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.house .t { font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { background: #F4F1FB; color: var(--body); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.person.lead { background: var(--chip); color: var(--primary-deep); font-weight: 600; }
.invite { border: 1.5px dashed #B9ABEB; border-radius: 14px; padding: 14px 16px; text-align: center; font-size: 15px; font-weight: 600; color: var(--primary-dark); }

/* Supervisor */
.sup { display: flex; flex-direction: column; gap: 72px; }
.sup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.sup-row.flip { flex-wrap: wrap-reverse; }
.sup-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sup-copy h3 { font-size: 28px; letter-spacing: -0.015em; line-height: 1.15; }
.sup-copy p { font-size: 17px; line-height: 1.55; color: var(--body); }
.sup-copy .checks { gap: 10px; }
.browser { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px rgba(43, 27, 102, 0.18); }
.browser .bar-top { display: flex; gap: 6px; padding: 10px 14px; background: var(--line); }
.browser .bar-top i { width: 10px; height: 10px; border-radius: 50%; background: #B9ABEB; }
.browser img { display: block; width: 100%; height: auto; }

/* Features */
.dark { background: var(--dark); color: #F3EFFF; }
.dark h2 { color: #fff; }
.dark .lede { color: var(--dark-text); }
.cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.feat { flex: 1 1 340px; min-width: 0; background: var(--dark-card); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feat h3 { font-size: 20px; color: #fff; }
.feat p { font-size: 16px; line-height: 1.55; color: var(--dark-text); }

/* Closing */
.join { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.join h2 { font-size: 44px; max-width: 700px; }
.join .lede { max-width: 560px; }
.invite-steps { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; text-align: left; }
.invite-steps li { flex: 1 1 220px; max-width: 280px; background: var(--soft); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.invite-steps .n { font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 500; color: var(--primary-dark); }
.invite-steps b { font-weight: 600; font-size: 18px; }
.join .already { font-size: 15px; color: var(--muted); padding-top: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

/* Narrower than a desktop */
@media (max-width: 900px) {
  .wrap { padding-top: 64px; padding-bottom: 64px; }
  h2 { font-size: 32px; }
  .hero h1 { font-size: 46px; }
  .hero { padding-top: 32px; padding-bottom: 56px; gap: 40px; }
  .join h2 { font-size: 34px; }
  .sup { gap: 56px; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .menu { display: block; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .step, .feat { padding: 22px; }
  .sup-copy h3 { font-size: 24px; }
  .roster { padding: 20px; }
  .join { padding-top: 64px; padding-bottom: 64px; }
  .invite-steps li { max-width: none; flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 14px; padding: 18px 20px; }
}
