/* Larpcord website. Discord's dark greys and blurple, greed.best's hero, Satoshi for headings and Geist for text. */
:root {
    --bg: #0a0a0c;
    --surface: #111214;
    --surface-2: #1a1a1e;
    --surface-3: #232428;
    --border: rgba(255, 255, 255, .07);
    --border-2: rgba(255, 255, 255, .12);
    --text: #f2f3f5;
    --soft: #dbdee1;
    --muted: #949ba4;
    --faint: #6d6f78;
    --blurple: #5865f2;
    --blurple-dark: #4752c4;
    --blurple-soft: #8c95f8;
    --font-display: "Satoshi", "Geist", system-ui, sans-serif;
    --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* Discord's own stack: gg sans when installed, then the font Discord falls back to. */
    --font-discord: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --radius: 16px;
    --ease: cubic-bezier(.23, 1, .32, 1);
    color-scheme: dark;
}

* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; overflow-x: hidden;
    background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--soft); }
[data-lucide], svg.lucide { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 2; }

/* ---- nav -------------------------------------------------------------------------------------------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: 1120px; margin: 0 auto; padding: 7px 7px 7px 14px;
    background: rgba(12, 12, 16, .66); border: 1px solid var(--border); border-radius: 999px;
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---- buttons ---------------------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 22px; border-radius: 9999px; border: .8px solid transparent;
    font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: -.4px; line-height: 16px; white-space: nowrap;
    cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn-white { background: #fff; color: #0a0a0c; }
.btn-white:hover { background: #e9ebf0; }
.btn-dark { background: #1a1b26; border-color: #393d5c; color: #fff; }
.btn-dark:hover { background: #22243a; }
.btn-blurple { background: var(--blurple); color: #fff; }
.btn-blurple:hover { background: var(--blurple-dark); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm [data-lucide], .btn-sm svg.lucide { width: 16px; height: 16px; }
.win { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- hero ------------------------------------------------------------------------------------------- */
.hero { position: relative; padding: 0 16px; }
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: 100vh; z-index: 0; overflow: hidden; isolation: isolate; background: var(--bg); pointer-events: none; user-select: none; }
.hero-canvas {
    position: absolute; top: 50%; left: 50%; min-width: 100vw; min-height: 100vh; width: auto; height: auto;
    aspect-ratio: 16 / 9; transform: translate(-50%, -50%); object-fit: cover; pointer-events: none;
    opacity: .95; filter: brightness(.95) saturate(1.1); background: transparent; backface-visibility: hidden;
}
/* A blurple wash from the top, and a soft floor so the hero melts into the page. */
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 45% at 50% 0%, rgba(88, 101, 242, .35), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1; background: linear-gradient(transparent, var(--bg)); }
.hero-bg.static { background: radial-gradient(70% 60% at 50% 25%, rgba(88, 101, 242, .45), rgba(40, 46, 120, .2) 45%, transparent 75%), var(--bg); }

.hero-content {
    position: relative; z-index: 3; min-height: calc(100vh - 230px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    padding-top: 96px; text-align: center;
}
.hero-mark img { width: 88px; height: 88px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.hero-text { position: relative; }
.hero-vignette {
    position: absolute; left: 50%; top: 50%; z-index: -1; width: min(78vw, 34rem); height: min(38vh, 16.5rem); pointer-events: none;
    border-radius: 2.5rem; filter: blur(18px); opacity: .95;
    background: radial-gradient(78% 72% at 50% 48%, rgba(0, 0, 0, .7) 0, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, .2) 68%, transparent 100%);
    transform: translate(-50%, -50%);
}
h1 { margin: 0; font-family: var(--font-display); line-height: 1; letter-spacing: -.045em; }
h1 .thin { display: block; font-size: clamp(40px, 6.2vw, 78px); font-weight: 300; font-style: italic; color: #e6e8f5; }
h1 .bold { display: block; font-size: clamp(48px, 7.4vw, 94px); font-weight: 900; padding-bottom: .06em; }
.shine { color: var(--blurple-soft); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta.left { justify-content: flex-start; }

/* The profile peeking up from the bottom of the screen. */
.peek { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: 56px; }

/* ---- the profile preview: the real popout, untouched, with its thought rewritten ---------------------- */
.profile-shot { position: relative; width: min(400px, 100%); margin: 0; container-type: inline-size; }
/* The popout is cut out of the screenshot with its own rounded corners, so nothing shows around it. */
.profile-shot img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
/*
 * The thought bubble, drawn over the spot the screenshot's own bubble was erased from, so it is
 * only as wide as its text. Sizes are in cqw of the 420 px wide cut-out: 1 px = .238cqw.
 */
.profile-thought {
    position: absolute; left: 35.24%; top: 18.15%;
    display: inline-flex; align-items: center; gap: 1.43cqw; max-width: 60%;
    padding: 2.86cqw 3.81cqw; border: 1px solid #3f3f43; border-radius: 5.7cqw; background: #212225; color: #b5bac1;
    font-family: var(--font-discord); font-style: italic; font-size: 4.15cqw; line-height: 1.32; white-space: nowrap;
}
.profile-thought svg { width: 4.05cqw; height: 4.05cqw; flex: 0 0 auto; }
/* The bigger of the two thought dots sits on the bubble's top edge and runs into it. */
.profile-thought::before, .profile-thought::after { content: ""; position: absolute; top: calc(-2.38cqw - 1px); left: 3.57cqw; width: 5.71cqw; height: 5.71cqw; box-sizing: border-box; border-radius: 50%; background: #212225; }
.profile-thought::before { border: 1px solid #3f3f43; }
/* The same dot without its outline, over the part inside the bubble: dot and bubble become one shape. */
.profile-thought::after { border: 1px solid transparent; background-clip: padding-box; clip-path: inset(2.38cqw 0 0 0); }

/* ---- blocks ------------------------------------------------------------------------------------------- */
.block { max-width: 1120px; margin: 0 auto; padding: 120px 24px 0; }
.preview { padding-top: 140px; }
.block-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { margin: 0 0 12px; color: var(--blurple-soft); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
h2 em { font-weight: 300; font-style: italic; color: #c9cde0; }
.sub { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.65; }

/* ---- Discord surfaces --------------------------------------------------------------------------------- */
.dc { font-family: var(--font-discord); color: var(--soft); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.dc-chat { display: flex; flex-direction: column; max-width: 820px; margin: 0 auto; overflow: hidden; background: #1a1a1e; }
.dc-chat-top { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--text); font-weight: 600; font-size: 16px; }
.dc-chat-top [data-lucide], .dc-chat-top svg { width: 20px; height: 20px; color: #80848e; }
.dc-topic { margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .1); color: var(--muted); font-size: 14px; font-weight: 400; }
.dc-messages { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 10px; }
.dc-msg { display: flex; gap: 16px; padding: 4px 16px; margin-top: 14px; }
.dc-msg.follow { margin-top: 0; padding-left: 72px; }
.dc-msg-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.dc-msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc-msg-head time { margin-left: 2px; color: var(--muted); font-size: 12px; }
.dc-msg-body p { margin: 2px 0 0; font-size: 16px; line-height: 1.375; color: var(--soft); }
.dc-name, .dc-plain { font-size: 16px; font-weight: 500; color: #fff; }
.dc-tag {
    display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px 0 4px; border-radius: 6px;
    background: rgba(151, 151, 159, .2); color: var(--text); font-family: var(--font-discord); font-size: 11px; font-weight: 600;
}
.dc-tag img { width: 14px; height: 14px; image-rendering: pixelated; }
.dc-app { padding: 1px 5px; border-radius: 4px; background: var(--blurple); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; }
.dc-embed { margin-top: 6px; max-width: 420px; padding: 10px 14px; border-radius: 4px; background: #232428; border-left: 4px solid var(--blurple); }
.dc-embed b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.dc-embed p { font-size: 14px; color: var(--soft); }
.dc-input { display: flex; align-items: center; gap: 14px; margin: 6px 16px 16px; padding: 12px 14px; border-radius: 8px; background: #232428; color: var(--faint); font-size: 15px; }
.dc-input span { flex: 1 1 auto; }
.dc-input [data-lucide], .dc-input svg { width: 22px; height: 22px; color: #b5bac1; }

/* ---- badge marquee ------------------------------------------------------------------------------------ */
.marquee { margin: 110px 0 0; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 55s linear infinite; }
.badge-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--soft); font-size: 14px; font-weight: 500; white-space: nowrap; }
.badge-pill img { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- steps & faq -------------------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 28px; color: var(--blurple-soft); font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.step h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
details[open] { border-color: var(--border-2); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--soft); font-family: var(--font-body); font-size: 18px; font-weight: 400; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---- download: copy on the left, the real installer window on the right ------------------------------- */
.download {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
    width: calc(100% - 48px); max-width: 1120px; margin: 140px auto 0; padding: 64px; overflow: hidden;
    border-radius: 28px; border: 1px solid var(--border); background: var(--surface);
}
.download h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 900; }
.download-lead { margin: 18px 0 30px; max-width: 440px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 32px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--border); }
.specs li { color: var(--soft); font-size: 14px; }
.specs b { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .02em; }

.installer { font-family: var(--font-discord); border-radius: 12px; overflow: hidden; background: #1a1a1e; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); transform: rotate(1.5deg); }
.installer-titlebar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 0 0 12px; background: #111214; color: var(--muted); font-size: 12px; }
.installer-titlebar img { width: 16px; height: 16px; }
.win-controls { display: flex; margin-left: auto; height: 100%; }
.win-controls i { position: relative; width: 44px; height: 100%; }
.win-controls i::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.win-controls i:nth-child(1)::before { width: 10px; height: 1px; background: var(--muted); }
.win-controls i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid var(--muted); }
.win-controls i:nth-child(3)::before { content: "✕"; color: var(--muted); font-size: 11px; }
.installer-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.installer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.installer-head img { width: 38px; height: 38px; }
.installer-head b { display: block; color: var(--text); font-size: 17px; }
.installer-head small { color: var(--muted); font-size: 12px; }
.installer-card { padding: 14px; border-radius: 10px; background: #232428; border: 1px solid rgba(255, 255, 255, .06); }
.installer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.installer-card-head b { display: block; color: var(--text); font-size: 15px; }
.installer-card-head small { color: var(--muted); font-size: 12px; }
.pill { padding: 3px 10px; border-radius: 12px; background: #4e5058; color: var(--text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: rgba(35, 165, 90, .18); color: #3ce08a; }
.installer-buttons { display: flex; gap: 8px; margin-top: 12px; }
.installer-buttons span { flex: 1 1 0; display: grid; place-items: center; height: 32px; border-radius: 8px; background: #4e5058; color: #fff; font-size: 13px; font-weight: 500; }
.installer-buttons .primary { background: var(--blurple); }
.installer-buttons .danger { background: #da373c; }
.installer-log { margin: 2px 0 0; padding: 10px 12px; border-radius: 8px; background: #111214; color: var(--muted); font: 11.5px/1.6 "Geist Mono", Consolas, monospace; white-space: pre-wrap; }
.installer-log span { color: #3ce08a; }

/* ---- footer ------------------------------------------------------------------------------------------- */
.footer { margin-top: 120px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: 1120px; margin: 0 auto; padding: 36px 24px 48px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer p { flex-basis: 100%; margin: 0; color: #5f6472; font-size: 13px; }

/* ---- reveal on scroll --------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- responsive --------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .download { grid-template-columns: 1fr; padding: 48px 32px; text-align: center; }
    .download-lead { margin-left: auto; margin-right: auto; }
    .cta.left { justify-content: center; }
    .specs { text-align: left; }
    .installer { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content { min-height: calc(100vh - 200px); padding-top: 90px; gap: 22px; }
    .hero-mark img { width: 72px; height: 72px; }
    .hero-vignette { width: min(88vw, 22rem); height: min(34vh, 14rem); filter: blur(14px); border-radius: 2rem; }
    .cta { flex-direction: column; align-items: center; gap: .5rem; }
    .cta .btn { width: 100%; max-width: 300px; }
    .peek { margin-top: 40px; }
    .steps { grid-template-columns: 1fr; }
    .block { padding-top: 88px; }
    .download { width: calc(100% - 32px); margin-top: 100px; padding: 40px 20px; }
    .specs { grid-template-columns: 1fr; }
    .installer { transform: none; }
    .dc-topic { display: none; }
}
