
:root {
    --obsidian: #050505;
    --surface: #0e0e0e;
    --purple: #a855f7;
    --cyan: #22d3ee;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --error: #ef4444;
    --glass: rgba(14, 14, 14, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Outfit', sans-serif;
    
    /* Discord Palette */
    --discord-blue: #5865F2;
    --discord-green: #3CA370;
    --discord-pink: #eb459e;
}

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

body {
    background-color: var(--obsidian);
    color: var(--text-main);
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow { max-width: 800px; }

/* Animation Utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.text-gradient {
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.hidden { display: none !important; }

.custom-rounded {
    border-radius: 40px !important;
}

.custom-rounded-lg {
    border-radius: 64px !important;
}

/* Reduced margins for headers */
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.title-xl { font-size: 3.5rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -1px; }
.title-xl-bold { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; text-transform: uppercase; font-style: italic; }
.title-lg { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; }
.subtitle { font-size: 1.1rem; color: var(--text-dim); max-width: 700px; margin: 0 auto; }
.subtitle-bold { font-size: 1.25rem; color: var(--text-dim); line-height: 1.5; }

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 12px; }
.node-icon {
    width: 24px;
    height: 24px;
    background: var(--purple);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--purple);
}

.brand-name { font-weight: 900; letter-spacing: 2px; font-size: 1.1rem; }

.nav-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(34, 211, 238, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Animations */
@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.pulse-cyan { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse-cyan 2s infinite; }
.pulse-purple { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: pulse-purple 2s infinite; }

/* Hero */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 80vh;
}

.data-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.hero-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.hero-text { flex: 1; }
.tagline { color: var(--purple); font-weight: 800; font-size: 0.8rem; letter-spacing: 4px; margin-bottom: 1.25rem; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; font-weight: 900; margin-bottom: 1.5rem; }
.description { font-size: 1.1rem; color: var(--text-dim); max-width: 480px; margin-bottom: 2.5rem; }

.cta-module { max-width: 450px; }

.protocol-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}

.protocol-card.error {
    border-color: var(--error);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.custom-checkbox {
    display: flex;
    gap: 1rem;
    cursor: pointer;
}

.custom-checkbox input { display: none; }
.custom-checkbox .box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkmark Drawing */
.custom-checkbox .box::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    margin-top: -2px;
    transition: opacity 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.custom-checkbox input:checked + .box {
    background: var(--cyan);
    border-color: var(--cyan);
}

.custom-checkbox input:checked + .box::after {
    opacity: 1;
}

.label-title { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.label-sub { display: block; font-size: 0.8rem; color: var(--text-dim); }
.label-sub a { color: var(--cyan); text-decoration: none; }

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--purple), #7e22ce);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--purple);
    box-shadow: 0 0 20px var(--purple);
}

/* User Wall */
.hero-visual {
    flex: 1;
    position: relative;
    height: 480px;
    display: none;
}

@media (min-width: 1024px) { .hero-visual { display: block; } }

.user-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 210px);
    gap: 12px;
}

.u-card {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.u-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.5s; }
.u-card .u-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.u-meta span { font-size: 0.8rem; font-weight: 700; color: white; }

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, var(--obsidian) 100%);
    pointer-events: none;
}

/* AI Suite Grid */
.ai-suite { padding: 80px 0; background: var(--obsidian); }
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.card-content { padding: 1.25rem; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 0.4rem; font-weight: 700; }
.card-content p { color: var(--text-dim); font-size: 0.85rem; }

/* Spotlight Rows */
.spotlight { padding: 60px 0; background: var(--obsidian); }
.feature-row.discord-style {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    margin-bottom: 80px;
    padding: 1.5rem 0;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; }

.feature-display {
    flex: 1.2;
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.discord-green {
    background: linear-gradient(135deg, #3ca370 0%, #206d48 100%);
}

.discord-pink {
    background: linear-gradient(135deg, #eb459e 0%, #a61c60 100%);
}

.discord-media-wrap {
    width: 80%;
    height: 70%;
    position: relative;
}

.p-card {
    position: absolute;
    width: 150px;
    height: 220px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    top: 50%;
    left: 50%;
    transition: transform 0.4s ease;
}

.p-1 { transform: translate(-120%, -50%) rotate(-10deg); background-image: url('https://picsum.photos/seed/a1/200/300'); background-size: cover; }
.p-2 { transform: translate(-50%, -50%) rotate(0deg); background-image: url('https://picsum.photos/seed/a2/200/300'); background-size: cover; z-index: 2; }
.p-3 { transform: translate(20%, -50%) rotate(10deg); background-image: url('https://picsum.photos/seed/a3/200/300'); background-size: cover; }

.discord-green:hover .p-1 { transform: translate(-140%, -60%) rotate(-15deg); }
.discord-green:hover .p-3 { transform: translate(40%, -40%) rotate(15deg); }

.chat-ui-mockup {
    width: 100%;
    height: 100%;
    background: #313338;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.mock-sidebar {
    width: 60px;
    height: 100%;
    background: #1e1f22;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mock-sidebar::before { content: ''; width: 36px; height: 36px; border-radius: 50%; background: #5865f2; }
.mock-sidebar::after { content: ''; width: 36px; height: 36px; border-radius: 50%; background: #2b2d31; }

.mock-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mock-bubble {
    height: 12px;
    border-radius: 4px;
    background: #404249;
}

.b1 { width: 40%; }
.b2 { width: 70%; height: 50px; }
.b3 { width: 50%; }

/* Features */
.features { padding: 80px 0; background: var(--obsidian); }
.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-node {
    padding: 2.5rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.3s;
}

.feature-node:hover {
    border-color: var(--cyan);
    transform: scale(1.02);
}

.f-icon { font-size: 1.4rem; font-weight: 900; color: var(--cyan); margin-bottom: 1.25rem; }
.feature-node h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.feature-node p { color: var(--text-dim); font-size: 0.95rem; }

/* Testimonials / User Feedback Marquee */
.testimonials { padding: 60px 0; background: var(--obsidian); overflow: hidden; }

.marquee-track {
    width: 100%;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

.review-card {
    width: 350px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.review-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.review-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--cyan);
}

.u-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.6;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* Table */
.comparison { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 900; margin-bottom: 3rem; }

.table-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.5rem 2rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: rgba(255,255,255,0.02); font-size: 0.75rem; color: var(--text-dim); letter-spacing: 1px; }
.active-col { color: var(--cyan); font-weight: 700; background: rgba(34, 211, 238, 0.02); }

/* FAQ */
.faq { padding: 80px 0; background: var(--surface); }
.faq-group { display: flex; flex-direction: column; gap: 0.75rem; }
details {
    background: var(--obsidian);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
}

summary { list-style: none; font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
details p { margin-top: 0.75rem; color: var(--text-dim); font-size: 0.95rem; }
.arrow { width: 8px; height: 8px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); transition: 0.3s; }
details[open] .arrow { transform: rotate(-135deg); }

/* Footer */
footer { padding: 60px 0; border-top: 1px solid var(--border); }
.footer-grid { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .footer-grid { flex-direction: row; justify-content: space-between; } }

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.node-icon.small { width: 16px; height: 16px; box-shadow: 0 0 10px var(--purple); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.footer-links a:hover { color: var(--cyan); }
.copyright { font-size: 0.65rem; color: #444; font-family: monospace; }

/* Overlay */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.overlay-nav {
    height: 70px;
    background: #050505;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.overlay-info { display: flex; align-items: center; gap: 12px; font-size: 0.7rem; font-weight: 800; color: var(--purple); font-family: monospace; }

.btn-end {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.iframe-wrapper { flex: 1; }
iframe { width: 100%; height: 100%; border: none; }

/* Mobile optimization */
@media (max-width: 900px) {
    .feature-row.discord-style { flex-direction: column; text-align: center; gap: 2.5rem; margin-bottom: 60px; }
    .feature-row.discord-style.reverse { flex-direction: column; }
    .feature-display { width: 100%; height: 320px; }
    .title-xl-bold { font-size: 2.5rem; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero { padding: 120px 0 50px; }
    .review-card { width: 280px; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.shake { animation: shake 0.2s ease-in-out 0s 2; }
