:root {
    --bg: #07080f;
    --bg-soft: #16192a;
    --panel: #20263a;
    --line: #323b56;
    --text: #eef1ff;
    --muted: #9aa5c3;
    --accent: #8e97ff;
    --accent-soft: #bcc3ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    background: #07080f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 20%, rgba(141, 111, 255, 0.22), transparent 34%),
        linear-gradient(90deg, #05060a 0%, #120826 100%);
    overscroll-behavior-y: none;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 14px 0 0;
}

.compact-header {
    padding-bottom: 0;
}

.navbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(12, 14, 24, 0.9);
    backdrop-filter: blur(10px);
}

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

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.nav-links,
.nav-actions,
.hero-actions,
.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link,
.footer-link,
.link-like,
.drawer-link {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover,
.footer-link:hover,
.link-like:hover,
.drawer-link:hover {
    color: var(--text);
}

.more-menu {
    position: relative;
}

.more-toggle::after {
    content: "▾";
    margin-left: 6px;
    font-size: 0.78rem;
}

.more-drawer {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #171b2d;
    padding: 8px;
    display: grid;
    gap: 4px;
}

.drawer-link {
    border-radius: 8px;
    text-align: left;
    padding: 8px 10px;
    color: var(--text);
}

.drawer-link:hover {
    background: #252d49;
}

.language-select-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    background: #1b2036;
}

.language-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-soft);
    display: inline-flex;
}

.language-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.language-label {
    color: var(--muted);
    font-size: 0.84rem;
}

.language-select {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-primary {
    background: var(--accent);
    color: #111326;
}

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

.button-ghost:hover {
    color: var(--text);
    border-color: var(--muted);
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 640px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 12px;
    }

    .cookie-actions {
        flex-direction: row;
    }
}



.hero {
    padding: 64px 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title,
.section-title,
.modal-title,
.policy-title {
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(2.6rem, 5.8vw, 5rem);
    margin-bottom: 18px;
}

.hero-visual {
    min-height: 360px;
}

.showcase-panel,
.feature-card,
.modal-dialog,
.policy-wrap,
.web-status-card,
.simple-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-soft);
}

.avatar-panel {
    max-width: 340px;
    border-width: 8px;
    border-image: linear-gradient(160deg, #652f87, #5258e0) 1;
    padding: 12px;
}

.showcase-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #313958;
}

.content-section {
    padding: 26px 0;
}

.demo-shell {
    padding-top: 10px;
}

.discord-demo {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #131829;
    display: grid;
    grid-template-columns: 84px 260px 1fr;
    min-height: 500px;
    overflow: hidden;
}

.demo-server-rail {
    background: #0b0f1b;
    border-right: 1px solid #1e2438;
    padding: 12px 10px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.rail-logo,
.rail-item {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #313a59;
    background: #1d2438;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rail-logo img {
    width: 36px;
    height: 36px;
}

.rail-item.active {
    border-color: var(--accent);
}

.demo-sidebar {
    border-right: 1px solid #1e2438;
    background: #1a1f2f;
    padding: 14px 12px;
}

.demo-server-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.demo-server-top strong {
    font-size: 1.05rem;
}

.demo-verified {
    color: #f4df57;
    font-weight: 700;
}

.demo-group {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin: 12px 0 8px;
}

.demo-channel {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    padding: 8px 10px;
    font: inherit;
    cursor: pointer;
}

.demo-channel:hover,
.demo-channel.is-active {
    background: #28314d;
    color: var(--text);
}

.demo-chat {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #212736;
}

.demo-chat-header {
    padding: 14px 16px;
    border-bottom: 1px solid #323a56;
    font-weight: 600;
    color: #bcc6e2;
}

.demo-messages {
    padding: 16px;
    display: grid;
    gap: 10px;
    align-content: end;
}

.live-message {
    color: var(--muted);
    background: #161d2c;
    border: 1px solid #2e3650;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.93rem;
}

.live-message strong {
    color: var(--text);
}

.demo-input {
    margin: 0 16px 16px;
    border: 1px solid #323a56;
    border-radius: 10px;
    padding: 10px 12px;
    background: #161d2f;
    color: #8693b3;
}

.site-footer {
    padding: 16px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 19, 31, 0.85);
}

.simple-footer {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-title {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-link {
    display: block;
    margin-bottom: 8px;
}

.footer-copy,
.section-text,
.policy-body,
.policy-meta {
    color: var(--muted);
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 16px;
}

.centered-heading {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin-bottom: 8px;
}

.eyebrow,
.modal-kicker,
.policy-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.simple-download-wrap {
    padding-top: 34px;
}

.simple-download-list {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.simple-item {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.simple-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.simple-left p {
    color: var(--muted);
    margin-top: 2px;
}

.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #1c2337;
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    color: var(--text);
}

.simple-item.muted {
    opacity: 0.82;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 18, 0.78);
}

.modal-dialog {
    position: relative;
    width: min(680px, 100%);
    padding: 22px;
}

.modal-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 8px 0 12px;
}

.modal-body p + p {
    margin-top: 10px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #273354;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
}

.policy-page {
    min-height: 100vh;
    padding: 16px 0 40px;
}

.policy-wrap {
    padding: 22px;
}

.policy-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 10px 0 6px;
}

.policy-meta {
    margin-bottom: 18px;
}

.policy-body {
    display: grid;
    gap: 16px;
}

.policy-section h2 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.policy-section ul {
    padding-left: 18px;
    margin-top: 8px;
}

.policy-section li + li {
    margin-top: 6px;
}

.web-status-wrap {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
}

.web-status-card {
    max-width: 760px;
    padding: 24px;
}

@media (max-width: 980px) {
    .navbar,
    .hero,
    .discord-demo,
    .footer-grid,
    .simple-footer {
        grid-template-columns: 1fr;
    }

    .navbar {
        position: static;
        display: grid;
    }

    .demo-server-rail {
        grid-auto-flow: column;
        grid-template-columns: repeat(6, minmax(50px, 1fr));
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #1e2438;
    }

    .demo-sidebar {
        border-right: 0;
        border-bottom: 1px solid #1e2438;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .button,
    .language-select-wrapper {
        width: 100%;
    }

    .nav-actions,
    .hero-actions,
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .simple-item {
        flex-direction: column;
        align-items: stretch;
    }
}
