:root {
    color-scheme: dark;
    --bg: #05070b;
    --panel: rgba(10, 15, 24, 0.86);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f5f7fb;
    --muted: #95a0b3;
    --accent: #7ee7c7;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.landing-root {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(126, 231, 199, 0.16), transparent 28%),
        linear-gradient(135deg, #06080d 0%, #0b1320 100%);
}

a { color: inherit; text-decoration: none; }

.tsparticles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.landing-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.brand {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.86rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a.active,
.top-nav a.is-active {
    color: var(--accent);
    border-color: rgba(126, 231, 199, 0.35);
    background: rgba(126, 231, 199, 0.08);
    transform: translateY(-1px);
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(10, 15, 24, 0.72);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.page-hero-copy .eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3.3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.page-hero-copy .lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
}

.page-hero-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 11, 18, 0.75);
    backdrop-filter: blur(10px);
}

.page-hero-card strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.page-hero-card span {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.landing-about,
.landing-projects,
.landing-news,
.landing-videos,
.bug-report-shell,
.bug-report-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.panel-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(126, 231, 199, 0.22);
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-shell {
    display: grid;
    gap: 16px;
}

.about-card {
    position: relative;
    width: 100%;
    min-height: 240px;
    padding: 0;
    border: 1px solid rgba(126, 231, 199, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10, 15, 24, 0.95), rgba(4, 8, 14, 0.9));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    perspective: 1200px;
    overflow: hidden;
}

.about-card:hover,
.about-card.is-flipped {
    border-color: rgba(126, 231, 199, 0.45);
}

.about-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
}

.about-card.is-flipped .about-card-inner,
.about-card:hover .about-card-inner {
    transform: rotateY(180deg);
}

.about-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    backface-visibility: hidden;
    text-align: center;
}

.about-card-face--front {
    color: var(--text);
}

.about-card-face--back {
    transform: rotateY(180deg);
    background: rgba(4, 10, 16, 0.96);
    color: var(--text);
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.about-card-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(126, 231, 199, 0.25);
}

.about-card-title {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
}

.about-card-copy {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--muted);
}

.about-card-caption {
    margin-top: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.excerpt,
.empty,
.news-item p,
.video-item p,
.bug-report-shell p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.projects-list,
.news-list,
.videos-grid,
.community-grid {
    display: grid;
    gap: 12px;
}

.landing-community {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.community-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.community-item strong {
    color: var(--text);
}

.community-item span {
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-all;
}

.project-item,
.news-item,
.video-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.project-item:last-child,
.news-item:last-child,
.video-item:last-child {
    border-bottom: none;
}

.project-item.highlight {
    padding: 20px;
    border: 1px solid rgba(126, 231, 199, 0.24);
    border-radius: 18px;
    background: rgba(126, 231, 199, 0.06);
}

.project-badge {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-item h3,
.news-item h3,
.video-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.project-cta,
.project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 600;
}

.bug-report-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.bug-report-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.bug-report-form input,
.bug-report-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.bug-report-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bug-report-form button {
    margin-top: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #04120d;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 840px) {
    .landing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}