@font-face {
    font-family: 'Crimson';
    src: url('fonts/Crimson.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg: #0b0c12;
    --ink: #eef2f8;
    --muted: #b6bfd4;
    --line: rgba(238, 242, 248, 0.1);
    --panel: rgba(12, 16, 24, 0.78);
    --panel-strong: rgba(16, 22, 32, 0.9);
    --accent: #a78bfa;
    --accent-soft: rgba(167, 139, 250, 0.2);
    --shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.4);
}

body[data-mode="dark"] {
    --bg: #0b0c12;
    --ink: #eef2f8;
    --muted: #b6bfd4;
    --line: rgba(238, 242, 248, 0.1);
    --panel: rgba(12, 16, 24, 0.78);
    --panel-strong: rgba(16, 22, 32, 0.9);
    --accent: #a78bfa;
    --accent-soft: rgba(167, 139, 250, 0.2);
    --shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Sora", "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.5;
    overflow: hidden;
    user-select: none;
    transition: background 0.35s ease, color 0.35s ease;
}

@media (pointer: coarse) {
    body { cursor: auto !important; }
}

#bg-waves {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000000;
    opacity: 1;
}

#bg-waves::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 10, 0.85);
    pointer-events: none;
}



#bg-effects,
#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#canvas-container { width: 100vw; height: 100vh; }

#brand-link {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 260px);
    z-index: 200;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#brand-link .brand-copy {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
    font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#brand-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
    color: rgba(226, 232, 240, 0.85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#brand-link a:hover {
    transform: translateY(-2px);
    color: #ffffff;
    opacity: 0.95;
}

#brand-link a::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.5), transparent);
    opacity: 0.55;
}

#brand-link a:hover::after {
    opacity: 0.85;
}

#setup-dock {
    position: fixed;
    right: clamp(20px, 5vw, 70px);
    bottom: clamp(16px, 4vw, 40px);
    z-index: 700;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

#setup-toggle .chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

#setup-toggle { font-weight: 700; }
#setup-toggle {
    height: 40px;
    padding: 0 14px;
}

#setup-toggle.open .chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.pill-button {
    position: relative;
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    z-index: 0;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.14s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.pill-button:hover {
    background: var(--panel-strong);
    border-color: rgba(47, 109, 246, 0.22);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.pill-button span { white-space: nowrap; }

/* Social */
#discord-dock {
    position: fixed;
    bottom: clamp(16px, 4vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 650;
    pointer-events: auto;
}

.discord-link {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.discord-link img {
    width: 20px;
    height: 20px;
    filter: invert(10%);
    opacity: 0.8;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.discord-link:hover {
    transform: translateY(-2px);
    background: var(--panel-strong);
    border-color: rgba(47, 109, 246, 0.22);
    box-shadow: var(--shadow);
}

body[data-mode="dark"] .discord-link img { filter: invert(85%); }
.discord-link:hover img { opacity: 1; filter: invert(0%); }
body[data-mode="dark"] .discord-link:hover img { filter: invert(100%); }

/* Spec card */
#spec-card-shell {
    position: relative;
    z-index: 90;
    pointer-events: auto;
    overflow: hidden;
    max-height: 720px;
    transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease;
}

#spec-card-shell.collapsed {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    max-height: 0;
}

#spec-card {
    width: 340px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--ink);
    pointer-events: auto;
    transition: box-shadow 0.24s ease, border-color 0.24s ease, transform 0.2s ease;
}

#spec-card:hover {
    border-color: rgba(47, 109, 246, 0.2);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.spec-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.spec-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(47, 109, 246, 0.32);
}

.spec-link {
    font-size: 11px;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.spec-link:hover {
    color: var(--accent);
    border-color: rgba(47, 109, 246, 0.3);
}

.spec-card__title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--ink);
}

.spec-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.spec-card__specs {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
}

.spec-label {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.spec-value {
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
}

/* Mobile layout */
body[data-device="mobile"] .pill-button { font-size: 9px; padding: 8px 10px; }
body[data-device="mobile"] #setup-toggle {
    height: 36px;
    padding: 0 12px;
}

body[data-device="mobile"] #discord-dock {
    bottom: 18px;
}

body[data-device="mobile"] #setup-dock {
    right: 16px;
    bottom: 18px;
}

body[data-device="mobile"] .discord-link {
    width: 36px;
    height: 36px;
}

body[data-device="mobile"] .discord-link img {
    width: 18px;
    height: 18px;
}

body[data-device="mobile"] #spec-card {
    width: min(92vw, 360px);
    padding: 14px 14px 12px;
}

body[data-device="mobile"] .spec-card__header {
    gap: 6px;
    margin-bottom: 8px;
}

body[data-device="mobile"] .spec-chip { font-size: 9px; padding: 5px 8px; }
body[data-device="mobile"] .spec-link { font-size: 10px; padding: 5px 8px; }
body[data-device="mobile"] .spec-card__title { font-size: 22px; margin-bottom: 4px; }
body[data-device="mobile"] .spec-card__price { font-size: 20px; margin-bottom: 10px; }
body[data-device="mobile"] .spec-card__specs { gap: 6px; margin-bottom: 10px; }
body[data-device="mobile"] .spec-row { padding: 6px 8px; }
body[data-device="mobile"] .spec-label { font-size: 10px; }
body[data-device="mobile"] .spec-value { font-size: 11px; }
