* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #080b12;
    --surface: #111827;
    --surface-soft: #182337;
    --surface-glass: rgba(17, 24, 39, 0.72);
    --text: #eef4ff;
    --text-muted: #a4b2c7;
    --border: rgba(255, 255, 255, 0.12);
    --brand: #36c5f0;
    --brand-strong: #7c5cff;
    --accent: #35d399;
    --warning: #f8c14a;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(54, 197, 240, 0.17), transparent 30rem),
        radial-gradient(circle at 82% 6%, rgba(124, 92, 255, 0.14), transparent 31rem),
        linear-gradient(135deg, #070a10 0%, #101827 52%, #090f19 100%);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

a {
    color: inherit;
    text-decoration: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.78);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 12px 30px rgba(54, 197, 240, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn,
.toggle-btn,
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    overflow: hidden;
    border-radius: var(--radius);
    font-weight: 850;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.nav-buttons .btn,
.toggle-btn {
    border: 1px solid transparent;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-muted);
}

.btn:hover,
.toggle-btn:hover,
.cta-button:hover {
    transform: translateY(-2px);
}

.nav-buttons .btn:hover,
.toggle-btn:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.toggle-btn {
    gap: 8px;
    cursor: pointer;
}

.register,
.primary-action,
.discord {
    border: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 14px 34px rgba(54, 197, 240, 0.2);
}

.primary-action:hover,
.discord:hover,
.register:hover {
    box-shadow: 0 18px 42px rgba(54, 197, 240, 0.28);
}

.secondary-action {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.page-section {
    padding: 92px 28px;
}

.container {
    width: min(1160px, 100%);
    margin: 0 auto;
}

#hero {
    position: relative;
    display: grid;
    min-height: 94vh;
    align-items: center;
    padding: 112px 28px 78px;
}

#hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(54, 197, 240, 0.44), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 52px;
    align-items: center;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.hero-content {
    animation: heroContentIn 0.75s ease-out both;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.product-signals,
.discord-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.product-signals span,
.discord-feature-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.product-signals i,
.discord-feature-list i {
    color: var(--brand);
}

.hero-actions .btn {
    min-height: 48px;
    padding: 0 18px;
}

.assistant-preview,
.discord-preview {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
        var(--surface-glass);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.assistant-preview {
    animation: panelFloat 6s ease-in-out infinite;
}

.preview-glow {
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(54, 197, 240, 0.16) 38%, transparent 68%);
    transform: translateX(-70%);
    animation: previewSweep 5.5s ease-in-out infinite;
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.preview-topbar i {
    color: var(--accent);
    font-size: 8px;
}

.preview-layout {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 360px;
}

.preview-rail {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.preview-new-chat,
.preview-thread {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
}

.preview-new-chat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 9px;
    color: var(--text);
    font-weight: 850;
}

.preview-thread {
    display: grid;
    gap: 3px;
    padding: 9px;
    color: var(--text);
}

.preview-thread.active {
    border-color: rgba(54, 197, 240, 0.38);
    background: rgba(54, 197, 240, 0.11);
}

.preview-thread small {
    color: var(--text-muted);
}

.preview-main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-width: 0;
}

.preview-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.bubble {
    max-width: 86%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    line-height: 1.5;
    animation: bubbleIn 0.5s ease-out both;
}

.bubble:nth-child(2) {
    animation-delay: 0.18s;
}

.bubble:nth-child(3) {
    animation-delay: 0.34s;
}

.bubble.user {
    justify-self: end;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.bubble.assistant {
    background: rgba(255, 255, 255, 0.06);
}

.preview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 14px;
}

.preview-controls span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.preview-controls i {
    color: var(--accent);
}

.preview-composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.composer-line {
    position: relative;
    flex: 1;
    height: 40px;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
}

.composer-line::after {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 46%;
    height: 14px;
    border-radius: 999px;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    animation: typingPulse 1.8s ease-in-out infinite;
}

.icon-pill {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.section-heading p,
.feature p,
.step p {
    color: var(--text-muted);
    line-height: 1.65;
}

#product,
#discord-product {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

#discord-product {
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.11), rgba(54, 197, 240, 0.035)),
        rgba(255, 255, 255, 0.02);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-panel,
.feature,
.step {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.product-panel:hover,
.feature:hover,
.step:hover {
    border-color: rgba(54, 197, 240, 0.34);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

.product-panel {
    padding: 22px;
}

.panel-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(54, 197, 240, 0.24);
    border-radius: var(--radius);
    background: rgba(54, 197, 240, 0.1);
    color: var(--brand);
}

.product-panel h3 {
    margin: 18px 0 8px;
}

.product-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1fr);
    gap: 44px;
    align-items: center;
}

.discord-preview {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 420px;
    background:
        linear-gradient(180deg, rgba(88, 101, 242, 0.2), rgba(255, 255, 255, 0.04)),
        rgba(14, 19, 31, 0.86);
}

.discord-sidebar {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 12px;
    padding: 18px 0;
    border-right: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.16);
}

.guild-dot {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 900;
}

.guild-dot.active {
    border-radius: var(--radius);
    background: #5865f2;
    color: #fff;
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.34);
}

.discord-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
}

.discord-card-header,
.channel-config,
.voice-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
}

.discord-card-header {
    padding: 16px;
}

.discord-card-header small,
.channel-config small,
.voice-status-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

.discord-card-header strong {
    display: block;
    font-size: 24px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(53, 211, 153, 0.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.metrics-row,
.command-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metrics-row span,
.command-strip span {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-muted);
    font-size: 12px;
}

.metrics-row strong {
    display: block;
    color: var(--text);
    font-size: 20px;
}

.command-strip span {
    color: #dfe5ff;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    white-space: nowrap;
}

.channel-config {
    padding: 15px;
}

.toggle-shape {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.toggle-shape::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    content: "";
    background: #fff;
    transition: transform 0.2s ease;
}

.toggle-shape.on {
    background: rgba(53, 211, 153, 0.32);
}

.toggle-shape.on::after {
    transform: translateX(20px);
}

.voice-status-card {
    justify-content: flex-start;
    padding: 15px;
}

.voice-status-card i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(53, 211, 153, 0.11);
    color: var(--accent);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature,
.step {
    padding: 20px;
}

.feature i {
    color: var(--accent);
    font-size: 22px;
}

.feature h3,
.step h3 {
    margin: 16px 0 8px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.step-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(54, 197, 240, 0.14);
    color: var(--brand);
    font-weight: 900;
}

#cta {
    padding-bottom: 96px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 32px;
    border: 1px solid rgba(54, 197, 240, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(54, 197, 240, 0.16), rgba(124, 92, 255, 0.12)),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
    margin: 10px 0 0;
    color: var(--text-muted);
}

.cta-button {
    min-height: 48px;
    padding: 0 18px;
    background: #fff;
    color: #111827;
}

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.62s ease,
        transform 0.62s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.34);
    transform: scale(0);
    animation: ripple 0.58s ease-out;
}

body.light-mode {
    color-scheme: light;
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #edf3f8;
    --surface-glass: rgba(255, 255, 255, 0.76);
    --text: #172033;
    --text-muted: #5f6f86;
    --border: rgba(23, 32, 51, 0.12);
    background:
        radial-gradient(circle at 8% 12%, rgba(54, 197, 240, 0.2), transparent 32rem),
        radial-gradient(circle at 86% 8%, rgba(88, 101, 242, 0.1), transparent 28rem),
        linear-gradient(135deg, #fbfdff 0%, #eef5fa 100%);
}

body.light-mode nav,
body.light-mode .assistant-preview,
body.light-mode .discord-preview,
body.light-mode .feature,
body.light-mode .step,
body.light-mode .product-panel,
body.light-mode .cta-panel,
body.light-mode .discord-card-header,
body.light-mode .channel-config,
body.light-mode .voice-status-card {
    background-color: rgba(255, 255, 255, 0.76);
}

body.light-mode .command-strip span {
    color: #24304a;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panelFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes previewSweep {
    0%,
    38% {
        transform: translateX(-72%);
    }

    64%,
    100% {
        transform: translateX(72%);
    }
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingPulse {
    0%,
    100% {
        opacity: 0.44;
        width: 36%;
    }

    50% {
        opacity: 0.9;
        width: 54%;
    }
}

@keyframes ripple {
    to {
        opacity: 0;
        transform: scale(2.7);
    }
}

@media screen and (max-width: 980px) {
    .hero-grid,
    .features,
    .product-grid,
    .steps,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .split-section {
        gap: 30px;
    }

    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 900px) {
    nav {
        padding: 0 16px;
    }

    .brand span:last-child {
        display: none;
    }

    .nav-buttons {
        gap: 6px;
    }

    .nav-buttons .btn {
        padding: 0 10px;
    }

    .toggle-btn {
        width: 40px;
        padding: 0;
        font-size: 0;
    }

    .toggle-btn i {
        font-size: 15px;
    }

    #hero {
        padding-top: 94px;
    }

    #hero h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .hero-copy {
        font-size: 17px;
        line-height: 1.55;
    }

    .preview-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .preview-rail {
        grid-auto-flow: column;
        grid-auto-columns: minmax(130px, 1fr);
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media screen and (max-width: 640px) {
    .features,
    .metrics-row,
    .command-strip {
        grid-template-columns: 1fr;
    }

    .discord-preview {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .discord-sidebar {
        grid-auto-flow: column;
        justify-content: start;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media screen and (max-width: 560px) {
    .page-section {
        padding: 64px 16px;
    }

    #hero {
        min-height: auto;
        padding: 92px 16px 48px;
    }

    .nav-buttons .btn:nth-child(2),
    .nav-buttons .btn.login {
        display: none;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .product-signals,
    .discord-feature-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-signals span,
    .discord-feature-list span {
        justify-content: center;
    }

    .assistant-preview,
    .discord-preview {
        margin: 0 -4px;
    }

    .bubble {
        max-width: 92%;
        padding: 10px 12px;
        font-size: 14px;
    }

    .preview-topbar,
    .discord-card-header,
    .channel-config,
    .voice-status-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
