@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #080b14;
    --card: #111625;
    --card2: #151b2d;
    --text: #ffffff;
    --muted: #8992a8;
    --primary: #7c5cff;
    --primary2: #5b8cff;
    --danger: #ff4d67;
    --border: rgba(255,255,255,.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
}

body {
    min-height: 100vh;
}

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

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: min(100% - 30px, 1100px);
    margin: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(8,11,20,.82);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.nav {
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 21px;
    font-weight: 800;

    background: linear-gradient(
        135deg,
        #fff,
        #8f7aff
    );

    -webkit-background-clip: text;
    color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: 0;
    border-radius: 13px;

    padding: 12px 18px;

    cursor: pointer;

    font-weight: 700;

    transition: .2s;
}

.btn-primary {
    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );

    box-shadow:
        0 8px 25px rgba(124,92,255,.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    color: white;
    background: var(--card2);

    border: 1px solid var(--border);
}

.hero {
    padding: 75px 0 50px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 35px;

    align-items: center;
}

.badge {
    display: inline-flex;

    padding: 8px 12px;

    border-radius: 999px;

    background: rgba(124,92,255,.12);

    border: 1px solid
        rgba(124,92,255,.25);

    color: #bdb0ff;

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);

    line-height: 1.02;

    margin: 18px 0;
}

.hero h1 span {
    background: linear-gradient(
        135deg,
        #a999ff,
        #65a8ff
    );

    -webkit-background-clip: text;

    color: transparent;
}

.hero p {
    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;

    max-width: 600px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 25px;

    flex-wrap: wrap;
}

.preview {
    min-height: 380px;

    border-radius: 28px;

    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(124,92,255,.35),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #151b2d,
            #090d17
        );

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;
}

.preview-inner {
    width: 85%;

    padding: 20px;

    border-radius: 22px;

    background: rgba(255,255,255,.05);

    border: 1px solid var(--border);

    backdrop-filter: blur(15px);
}

.live-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #ff4d67;

    display: inline-block;

    margin-right: 6px;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 28px;

    margin-bottom: 25px;
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 22px;
}

.card h3 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.form-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;
}

.form-card {
    width: 100%;

    max-width: 440px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 25px;

    padding: 30px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.35);
}

.form-card h1 {
    margin-top: 0;
}

.field {
    margin-bottom: 17px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    color: #cbd1df;

    font-size: 14px;

    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;

    background: #0b0f1b;

    border: 1px solid var(--border);

    color: white;

    padding: 14px;

    border-radius: 13px;

    outline: none;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary);
}

.alert {
    padding: 13px 15px;

    border-radius: 12px;

    margin-bottom: 15px;

    background: rgba(255,77,103,.1);

    color: #ff9aaa;
}

.dashboard {
    padding: 35px 0;
}

.stat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.stat {
    padding: 20px;

    border-radius: 18px;

    background: var(--card);

    border: 1px solid var(--border);
}

.stat strong {
    display: block;

    font-size: 30px;

    margin-top: 8px;
}

.mobile-nav {
    display: none;
}

@media (max-width: 760px) {

    .container {
        width: min(100% - 22px, 600px);
    }

    .hero {
        padding: 45px 0 25px;
    }

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

    .preview {
        min-height: 280px;
    }

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

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

    .nav-actions .desktop-only {
        display: none;
    }

    .mobile-nav {
        display: flex;

        position: fixed;

        left: 10px;
        right: 10px;
        bottom: 10px;

        z-index: 200;

        background: rgba(17,22,37,.92);

        backdrop-filter: blur(20px);

        border: 1px solid var(--border);

        border-radius: 18px;

        padding: 8px;

        justify-content: space-around;
    }

    .mobile-nav a {
        padding: 10px;

        font-size: 12px;

        color: var(--muted);
    }
}