/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #181C28;
    --bg-light: #1F2433;
    --bg-mid: #22273A;
    --button-text: #0F1117;
    --text-primary: #ECECEC;
    --text-secondary: rgba(236, 236, 236, 0.60);
    --text-muted: rgba(236, 236, 236, 0.35);
    --accent: #0F9EB4;
    --accent-dark: #026675;
    --discord: #5865F2;
    --gradient-start: #3366CC;
    --gradient-end: #263F80;
    --surface-04: rgba(255, 255, 255, 0.04);
    --surface-08: rgba(255, 255, 255, 0.08);
    --surface-12: rgba(255, 255, 255, 0.12);
    --surface-18: rgba(255, 255, 255, 0.18);
    --bull: #4A9476;
    --bear: #A62C2B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--text-primary);
}

/* ===== Honeycomb Canvas ===== */
#honeycomb {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}
#honeycomb.visible {
    opacity: 0.04;
}

/* ===== Background gradient ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    z-index: -1;
}

/* ===== Layout ===== */
main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-section {
    padding: 40px 0;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 32px;
}

/* ===== Nav ===== */
.site-nav {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
}
.nav-brand:hover {
    color: var(--text-primary);
}

.nav-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--surface-08);
    border: 1px solid var(--surface-12);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-brand-icon:hover {
    background: var(--surface-12);
    border-color: var(--surface-18);
    transform: translateY(-1px);
}

.nav-brand-icon img {
    display: block;
    width: 28px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
    background: var(--surface-04);
}
.nav-links a.active {
    color: var(--text-primary);
    background: var(--surface-08);
}
.nav-links a.nav-cta {
    background: #F5F5F5;
    color: var(--button-text);
    font-weight: 600;
    padding: 8px 16px;
    margin-left: 4px;
}
.nav-links a.nav-cta:hover {
    background: #FFFFFF;
    color: var(--button-text);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--surface-12);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 48px;
    padding-top: 72px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.logo-line {
    font-size: clamp(64px, 12vw, 88px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.18), rgba(15, 158, 180, 0.18));
    border: 1px solid var(--surface-12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    width: fit-content;
    text-decoration: none;
}
.beta-badge:hover {
    color: var(--accent);
    filter: brightness(1.2);
}

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

/* ===== Page Hero (compact — non-home pages) ===== */
.page-hero {
    padding: 48px 0 24px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease-out 0.2s forwards;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
}

/* ===== Mission ===== */
.mission {
    padding: 12px 0 56px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.mission-line {
    flex-shrink: 0;
    width: 4px;
    min-height: 100%;
    align-self: stretch;
    background: linear-gradient(180deg, var(--accent), var(--gradient-start));
    border-radius: 4px;
}

.mission blockquote {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(236, 236, 236, 0.65);
    letter-spacing: -0.3px;
    margin: 0;
    max-width: 640px;
}

/* ===== Features grid ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0 32px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.feature-card {
    position: relative;
    padding: 28px 24px;
    background: var(--surface-04);
    border: 1px solid var(--surface-08);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    background: var(--surface-08);
    border-color: var(--surface-12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.12), rgba(51, 102, 204, 0.12));
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid transparent;
}
.badge.badge-beta {
    background: rgba(15, 158, 180, 0.12);
    border-color: rgba(15, 158, 180, 0.3);
    color: var(--accent);
}
.badge.badge-soon {
    background: var(--surface-08);
    border-color: var(--surface-12);
    color: var(--text-secondary);
}
.badge.badge-live {
    background: rgba(74, 148, 118, 0.15);
    border-color: rgba(74, 148, 118, 0.35);
    color: var(--bull);
}

/* ===== Platforms ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0 32px;
}

.platform-card {
    padding: 28px 24px;
    background: var(--surface-04);
    border: 1px solid var(--surface-08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.platform-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.platform-card .platform-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

/* ===== CTA block ===== */
.cta {
    padding: 48px 0 80px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.7s forwards;
}

.cta h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #F5F5F5;
    color: var(--button-text);
}
.btn-primary:hover {
    background: #FFFFFF;
    color: var(--button-text);
}

.btn-secondary {
    background: var(--surface-08);
    color: var(--text-primary);
    border-color: var(--surface-12);
}
.btn-secondary:hover {
    background: var(--surface-12);
    color: var(--text-primary);
    border-color: var(--surface-18);
}

/* ===== Contact form ===== */
.contact-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface-08);
    border: 1px solid var(--surface-18);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    background: var(--surface-12);
}

.form-field textarea {
    min-height: 140px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.contact-form button {
    align-self: flex-start;
    padding: 14px 28px;
    position: relative;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(15, 17, 23, 0.2);
    border-top-color: var(--button-text);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
}
button.loading .btn-text {
    visibility: hidden;
}
button.loading .btn-spinner {
    display: block;
}

.form-error {
    font-size: 13px;
    color: var(--bear);
    min-height: 20px;
}

.success-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 560px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.08), rgba(51, 102, 204, 0.08));
    border: 1px solid rgba(15, 158, 180, 0.2);
    border-radius: 16px;
    text-align: left;
    animation: fadeUp 0.5s ease-out forwards;
}
.success-message[hidden] {
    display: none;
}
.success-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.success-message strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
}

.faq-item {
    border: 1px solid var(--surface-08);
    border-radius: 12px;
    background: var(--surface-04);
    overflow: hidden;
}
.faq-item[open] {
    background: var(--surface-08);
    border-color: var(--surface-12);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-body {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Support other-options ===== */
.support-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.support-aside {
    padding: 24px;
    border: 1px solid var(--surface-08);
    background: var(--surface-04);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.support-aside h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.support-aside p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.support-aside .discord-cta {
    align-self: flex-start;
    margin-top: 4px;
}

.discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--discord);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: filter 0.2s ease, transform 0.1s ease;
}
.discord-cta:hover {
    filter: brightness(1.08);
    color: #FFFFFF;
}
.discord-cta:active {
    transform: scale(0.98);
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    border-top: 1px solid var(--surface-08);
    padding: 32px 24px 40px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-top: 8px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
}
.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 960px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--surface-04);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 24px;
        left: 24px;
        background: var(--bg-light);
        border: 1px solid var(--surface-12);
        border-radius: 14px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        width: 100%;
    }
    .nav-links a.nav-cta {
        text-align: center;
        margin-left: 0;
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    .features,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 35vh;
        padding-top: 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
