:root {
    --bg: #0b130f;
    --bg-alt: #0e1913;
    --surface: #132019;
    --border: #2a3d30;
    --text: #ecf5ee;
    --muted: #a9bcae;
    --accent: #4fe08a;
    --accent-ink: #06230f;
    --lime: #e2ff6b;
    --teal: #14b8a6;
    --link: #b6f27a;
    --fel: linear-gradient(120deg, var(--lime), var(--accent) 50%, var(--teal));
    --radius: 12px;
    --wrap: 1120px;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
a { color: var(--link); }
img { max-width: 100%; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.9em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.text-link { font-weight: 600; text-decoration: none; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; padding: 0.75em 1.4em; border-radius: 999px; border: 2px solid var(--accent); transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-small { padding: 0.4em 1em; font-size: 0.95rem; }
.btn-block { display: block; text-align: center; }
.btn.disabled { background: var(--surface); border-color: var(--border); color: var(--muted); cursor: default; transform: none; filter: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 19, 15, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.btn { color: var(--accent-ink); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 820px) {
    .nav-toggle-label { display: block; width: 28px; height: 20px; position: relative; cursor: pointer; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--text); }
    .nav-toggle-label span { top: 9px; }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after { top: 8px; }
    .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
    .nav a { padding: 12px 0; }
    .nav a.btn { margin-top: 8px; text-align: center; }
    .nav-toggle:checked ~ .nav { display: flex; }
}

/* Hero */
.hero { padding: 96px 0 72px; background: radial-gradient(900px 420px at 85% -10%, rgba(226, 255, 107, 0.13), transparent 60%), radial-gradient(800px 460px at 0% 15%, rgba(20, 184, 166, 0.16), transparent 60%), radial-gradient(600px 300px at 50% 110%, rgba(79, 224, 138, 0.10), transparent 70%); border-bottom: 1px solid var(--border); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 40px; }
.hero-stats strong { display: block; font-size: 2rem; color: var(--text); }
.hero-stats span { color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page-head { padding: 72px 0 24px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.diagram { display: flex; align-items: center; justify-content: center; gap: 16px; }
.diagram .node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; font-weight: 700; min-width: 130px; }
.diagram small { display: block; font-weight: 400; color: var(--muted); }
.diagram .arrow { font-size: 1.8rem; color: var(--accent); text-align: center; }

.cta-band { text-align: center; }
.cta-band p { color: var(--muted); }

/* Feature list */
.feature-list { display: grid; gap: 28px; }
.feature-list article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-list p { color: var(--muted); }
.feature-list ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.feature-list li { margin: 0.3em 0; }

/* Classes */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.class-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c, var(--accent)); border-radius: var(--radius); padding: 24px; }
.class-card h2 { color: var(--c, var(--text)); font-size: 1.4rem; margin-bottom: 0.3em; }
.class-card .modes { font-size: 0.9rem; color: var(--text); opacity: 0.85; }
.class-card p { color: var(--muted); margin-bottom: 0.6em; }
.class-warrior { --c: #c79c6e; }
.class-paladin { --c: #f58cba; }
.class-hunter { --c: #abd473; }
.class-rogue { --c: #fff569; }
.class-priest { --c: #ffffff; }
.class-shaman { --c: #0070de; }
.class-mage { --c: #69ccf0; }
.class-warlock { --c: #9482c9; }
.class-druid { --c: #ff7d0a; }

/* Steps */
.steps { display: grid; gap: 20px; }
.step { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 1.2rem; }
.step h2 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding: 0.35em 0 0.35em 1.8em; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 32px; }
.price { font-size: 2rem; font-weight: 800; margin-bottom: 0.8em; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 0.8em 0 0; }

.notice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.notice p { color: var(--muted); }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-heading { margin: 0 0 0.8em; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.footer-grid a:not(.brand) { display: block; color: var(--text); text-decoration: none; padding: 0.2em 0; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; }
.fine-print { margin-top: 32px; font-size: 0.85rem; color: var(--muted); }

/* Beta sign-up */
.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.hero-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.hero-form h2 { font-size: 1.3rem; }
.hero-stats { margin-top: 28px; }
.beta-form .field { margin-bottom: 16px; }
.beta-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.beta-form input, .beta-form select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.7em 0.8em; }
.beta-form input:focus, .beta-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.beta-form input[aria-invalid="true"] { border-color: #ff6b6b; }
.beta-form button { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.field-error { display: block; color: #ff8a8a; font-size: 0.9rem; margin-top: 6px; }
.form-note { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
.form-alert { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); border-radius: 8px; padding: 12px 14px; color: #ffb3b3; }
.form-success h2 { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.nav a.btn-discord, .footer-grid a.btn-discord { color: #fff; }
.footer-grid a.btn-discord { display: inline-block; margin-top: 8px; padding: 0.55em 1.2em; opacity: 1; }
.beta-steps { padding-left: 1.3em; margin: 0 0 24px; color: var(--muted); }
.beta-steps li { margin: 0.4em 0; }
.hero-form p { margin-bottom: 20px; }

/* Screenshots */
.showcase { margin-top: -24px; padding-bottom: 24px; }
.app-frame { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(79, 224, 138, 0.10); }
.app-frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0e1913; border-bottom: 1px solid var(--border); }
.app-frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #344353; }
.app-frame-bar em { margin-left: 10px; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.app-frame img, .gallery img, .feature-shot img { display: block; width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery img, .feature-shot img { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.gallery figcaption { margin-top: 12px; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--text); }
.feature-shot { margin: 20px 0 0; }

/* Carousel */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-slide img { display: block; width: 100%; height: auto; }
.carousel-caption { margin: 0; padding: 14px 18px; border-top: 1px solid var(--border); color: var(--muted); background: var(--bg-alt); }
.carousel-caption strong { color: var(--text); margin-right: 6px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: var(--border); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.carousel-dot[aria-current="true"] { width: 28px; background: var(--accent); }
.carousel-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.carousel-arrow:hover { border-color: var(--accent); }
.carousel-dot:focus-visible, .carousel-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel:not(.is-ready) .carousel-controls { display: none; }
.carousel:not(.is-ready) .carousel-track { flex-direction: column; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* Fel accents */
.accent { background: var(--fel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn:not(.btn-ghost):not(.btn-discord):not(.disabled) { background: var(--fel); border-color: transparent; }
.eyebrow { color: var(--lime); }
.step-num { background: var(--fel); }
.carousel-dot[aria-current="true"] { background: var(--fel); }
.card, .feature-list article { border-top: 2px solid transparent; border-image: none; }
.card:nth-child(3n+1) { border-top-color: var(--lime); }
.card:nth-child(3n+2) { border-top-color: var(--accent); }
.card:nth-child(3n) { border-top-color: var(--teal); }
.checklist li::before { color: var(--lime); }
.hero-stats strong { background: var(--fel); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Setup comparison */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
@media (max-width: 820px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.compare-card p { color: var(--muted); }
.compare-card--featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--fel) border-box; box-shadow: 0 20px 60px rgba(79, 224, 138, 0.10); }
.compare-tag { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5em; }
.compare-card--featured .compare-tag { color: var(--lime); }
.compare-diagram { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.compare-diagram span { flex: 1; text-align: center; padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); font-weight: 600; font-size: 0.95rem; }
.compare-diagram i { font-style: normal; color: var(--accent); font-size: 1.3rem; }
.compare-card--featured .compare-diagram span:last-child { border-color: var(--accent); color: var(--lime); }
.compare-card .checklist { margin-bottom: 0; }

/* Carousel slides that hold portrait phone screenshots keep the desktop frame size. */
.slide-shot img { display: block; width: 100%; height: auto; }
.carousel-slide--phone .slide-shot { position: relative; aspect-ratio: 1210 / 821; overflow: hidden; background: radial-gradient(70% 90% at 50% 40%, rgba(79, 224, 138, 0.16), transparent 70%), var(--bg-alt); }
.carousel-slide--phone .slide-shot-row { position: absolute; inset: 4% 0; display: flex; justify-content: center; gap: 3%; }
/* Phone screenshots arrive already framed in a device mockup, so they get a shadow but no border. */
.carousel-slide--phone .slide-shot img { width: auto; height: 100%; aspect-ratio: 438 / 900; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.feature-phone { border: 2px solid transparent !important; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--fel) border-box !important; }
.phone-shots { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.phone-shots img { width: calc((100% - 32px) / 3); max-width: 240px; height: auto; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5)); }

/* Desktop and iPhone controller shown together. The stage reserves room below
   the desktop window for the phone that overlaps its lower-right corner. */
.device-duo { margin: 36px 0 8px; }
.device-duo-stage { position: relative; padding: 0 9% 12% 0; }
.device-duo-stage::before { content: ""; position: absolute; inset: 10% 0 0 20%; background: radial-gradient(closest-side, rgba(79, 224, 138, 0.20), transparent); filter: blur(30px); }
.device-duo-desktop { position: relative; }
.device-duo-desktop img { display: block; width: 100%; height: auto; }
.device-duo-phone { position: absolute; right: 0; bottom: 0; width: 22%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.65)); }
.device-duo figcaption { margin-top: 18px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.duo-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.duo-label--phone { border-color: var(--accent); color: var(--lime); }
@media (max-width: 640px) {
    .device-duo-stage { padding: 0 16% 30% 0; }
    .device-duo-phone { width: 34%; }
}

/* Accounts */
.section-tight { padding-top: 24px; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .btn { width: 100%; text-align: center; cursor: pointer; font: inherit; font-weight: 700; }
.auth-card .cta-row { margin: 20px 0 0; flex-wrap: nowrap; }
.auth-card .cta-row form { flex: 1; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; margin: 20px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.link-code { font-family: Consolas, "SF Mono", monospace; font-size: 2rem; font-weight: 700; letter-spacing: 0.12em; text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 8px 0 16px; }
.code-input { font-family: Consolas, "SF Mono", monospace; font-size: 1.3rem !important; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.form-notice { background: rgba(79, 224, 138, 0.10); border: 1px solid rgba(79, 224, 138, 0.35); border-radius: 8px; padding: 12px 14px; margin: 0; }
.form-alert:empty { display: none; }
.form-alert ul { margin: 0; padding-left: 1.1em; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.account-wide { grid-column: 1 / -1; }
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.account-card h2 { font-size: 1.3rem; }
.account-card h3 { font-size: 1rem; margin-top: 1.4em; }
.account-card form { margin-top: 12px; }
.account-card button { cursor: pointer; font: inherit; font-weight: 700; }
.account-card .btn-small { font-size: 0.9rem; }
.status-pill { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.account-card .status-pill { margin-left: 0; }
.status-pill.is-active { border-color: var(--accent); color: var(--lime); }
.status-pill.is-ended { border-color: rgba(255, 107, 107, 0.5); color: #ffb3b3; }
.device-list { list-style: none; padding: 0; margin: 12px 0; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.device-list li > div { min-width: 0; }
.device-list strong { display: block; overflow-wrap: anywhere; }
.device-list .muted { font-size: 0.9rem; }
.device-list form { margin: 0; flex: none; }
.copy-field { width: 100%; font: inherit; font-size: 0.85rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.6em; }
.admin-search { display: flex; gap: 10px; margin-bottom: 20px; }
.admin-search input { flex: 1; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.5em 0.8em; }
.admin-search button { cursor: pointer; font: inherit; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.btn-stacked { margin-top: 12px; }
.status-pill.is-flag { border-color: rgba(255, 196, 0, 0.6); color: #ffd666; text-transform: none; letter-spacing: 0; }
