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

:root {
    --color-bg: #0a0a0f;
    --color-surface: #12121a;
    --color-surface-2: #1a1a26;
    --color-border: #2a2a3a;
    --color-text: #e4e4ef;
    --color-text-muted: #8888a0;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-accent: #22d3ee;
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--color-primary-light);
    font-size: 1.1em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 8px 18px;
    background: var(--color-primary);
    color: #fff;
}

.btn-sm:hover {
    background: var(--color-primary-dark);
}

.btn-lg {
    font-size: 1rem;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
}

.btn-lg:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        var(--color-bg);
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Dashboard Preview ---------- */
.hero-preview {
    max-width: 900px;
    margin: 64px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    text-align: left;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #f87171; }
.preview-dot.yellow { background: #fbbf24; }
.preview-dot.green { background: #34d399; }

.preview-url {
    margin-left: 12px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 3px 14px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    flex: 1;
    max-width: 280px;
}

.preview-body {
    display: flex;
    min-height: 300px;
    background: var(--color-bg);
}

.preview-sidebar {
    width: 180px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 16px 0;
    flex-shrink: 0;
}

.preview-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    cursor: default;
}

.preview-sidebar-item.active {
    color: var(--color-text);
    background: rgba(99, 102, 241, 0.08);
    border-right: 2px solid var(--color-primary-light);
}

.ps-icon {
    font-size: 0.5rem;
    opacity: 0.5;
}

.preview-sidebar-item.active .ps-icon {
    opacity: 1;
    color: var(--color-primary-light);
}

.preview-main {
    flex: 1;
    padding: 24px;
}

.preview-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.preview-user {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.preview-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.preview-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    padding: 14px 16px;
    text-align: center;
}

.preview-stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary-light);
}

.preview-stat-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.preview-table {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.preview-table-header {
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.preview-table-row {
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.dot-green, .dot-blue {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: var(--color-success); }
.dot-blue { background: var(--color-primary-light); }

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary-light);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 120px 0;
    background: var(--color-surface);
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 0 24px;
}

.step-card .step-num {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin-top: 24px;
    flex-shrink: 0;
}

/* ---------- Security ---------- */
.security {
    padding: 120px 0;
}

.security-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.security-text > p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.security-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.security-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.security-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(52, 211, 153, 0.12);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.security-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.security-item span {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- Modules ---------- */
.modules {
    padding: 120px 0;
    background: var(--color-surface);
}

.module-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.module-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px 32px;
    position: relative;
}

.module-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.module-badge.always-on {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary-light);
}

.module-badge.on-default {
    background: rgba(34, 211, 238, 0.12);
    color: var(--color-accent);
}

.module-badge.off-default {
    background: rgba(136, 136, 160, 0.12);
    color: var(--color-text-muted);
}

.module-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.module-card > p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.module-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-card li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-left: 20px;
    position: relative;
}

.module-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ---------- CTA ---------- */
.cta {
    padding: 120px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        var(--color-bg);
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .feature-grid,
    .module-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-items {
        grid-template-columns: 1fr;
    }

    .preview-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .feature-grid,
    .module-cards {
        grid-template-columns: 1fr;
    }

    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step-connector {
        width: 2px;
        height: 32px;
        margin: 0;
    }

    .preview-body {
        flex-direction: column;
    }

    .preview-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 8px 0;
    }

    .preview-sidebar-item {
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .preview-sidebar-item.active {
        border-right: none;
        border-bottom: 2px solid var(--color-primary-light);
    }

    .preview-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .preview-stat {
        padding: 10px 8px;
    }

    .preview-stat-val {
        font-size: 1.1rem;
    }

    .section-header h2,
    .security-text h2,
    .cta h2 {
        font-size: 1.7rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-preview {
        margin-top: 40px;
    }

    .preview-main {
        padding: 16px;
    }

    .preview-table-row {
        font-size: 0.75rem;
    }
}
