:root {
    --bg-dark: #0a0b10;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00f2ea;
    --accent-purple: #ae00ff;
    --text-main: #ffffff;
    --text-dim: #8892b0;
}

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

html {
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==================== BACKGROUND ==================== */
.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(174, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
}

.glow-2 {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 0;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.flow-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    height: 1px;
    width: 200px;
    opacity: 0;
    animation: flow 4s infinite linear;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.flow-line.purple {
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    filter: drop-shadow(0 0 5px var(--accent-purple));
}

.data-drop {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    width: 1px;
    height: 100px;
    opacity: 0;
    animation: drop 3s infinite ease-in;
}

@keyframes flow {
    0% {
        left: -200px;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes drop {
    0% {
        top: -100px;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        top: 100vh;
        opacity: 0;
    }
}

/* ==================== HEADER ==================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 0 5px rgba(0, 242, 234, 0.5));
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--accent-cyan);
    color: black;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
    position: relative;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    margin-top: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.highlight-cyan {
    color: var(--accent-cyan);
    font-weight: 600;
}

.highlight-purple {
    color: var(--accent-purple);
    font-weight: 600;
}

.cta-container {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.cta-primary {
    background: var(--text-main);
    color: black;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cta-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ==================== CODE BLOCK ==================== */
.code-wrapper {
    position: relative;
    margin-top: 3rem;
    max-width: 900px;
    width: 100%;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: -18px;
    z-index: 10;
    position: relative;
    flex-wrap: wrap;
}

.stat-badge {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    transition: transform 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-2px);
}

.stat-badge.cyan {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.15);
}

.stat-badge.purple {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(174, 0, 255, 0.15);
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(180deg, #0f1016 0%, #050505 100%);
    padding: 40px 30px 30px 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: left;
    font-size: 0.9rem;
    color: #ccc;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-kw {
    color: #ffeb3b;
}

.code-str {
    color: var(--accent-cyan);
}

/* ==================== SECTIONS ==================== */
.features-section,
.restructure-section,
.comparison-section {
    margin: 6rem auto;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 242, 234, 0.15);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== GLASS CARDS ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 234, 0.3);
    box-shadow: 0 10px 40px rgba(0, 242, 234, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-title.cyan {
    color: var(--accent-cyan);
}

.card-title.purple {
    color: var(--accent-purple);
}

.card-text {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ==================== CASE CARD ==================== */
.case-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(174, 0, 255, 0.1);
    border: 1px solid rgba(174, 0, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.case-card p {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
}

/* ==================== COMPARISON TABLE ==================== */
.table-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.row:last-child {
    border-bottom: none;
}

.row.header {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cell.feature {
    font-weight: 600;
    color: #fff;
}

.cell.competitor {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.cell.splito {
    color: #fff;
    font-weight: 700;
}

.cell.splito.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    padding: 2rem 5%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.footer-links {
    display: flex;
    gap: 20px;
}

footer a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-cyan);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        padding-top: 100px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stat-badge {
        font-size: 0.8rem;
    }

    header {
        padding: 1rem 5%;
    }

    .glow,
    .glow-2 {
        opacity: 0.5;
        width: 100vw;
    }

    .glow-2 {
        right: 0;
    }

    .glow {
        left: 0;
    }

    .code-block {
        max-width: 90vw;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
        background: rgba(255, 255, 255, 0.02);
        margin-bottom: 10px;
        border-radius: 10px;
        border: none;
    }

    .row.header {
        display: none;
    }

    .cell.feature {
        color: var(--accent-purple);
        font-size: 0.9rem;
        text-transform: uppercase;
        margin-bottom: 5px;
    }
}