/* ================================
   KCODEIO — Base UI
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #09090b;
    --surface: #111113;
    --surface-hover: #18181b;

    --border: #27272a;

    --text: #fafafa;
    --text-muted: #a1a1aa;

    --accent: #7c5cff;
    --accent-hover: #9178ff;

    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            rgba(124, 92, 255, 0.12),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);
}


/* ================================
   NAVBAR
   ================================ */

nav {
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}


/* ================================
   BUTTONS
   ================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 18px;

    border: 1px solid transparent;
    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    background: var(--surface);
    color: var(--text);

    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--surface-hover);
    border-color: #3f3f46;
}


/* ================================
   HERO
   ================================ */

.hero {
    max-width: 1100px;

    margin: 0 auto;
    padding: 130px 30px 100px;

    text-align: center;
}

.hero-badge {
    display: inline-block;

    margin-bottom: 24px;
    padding: 7px 12px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-muted);

    font-size: 13px;
}

.hero h1 {
    max-width: 850px;

    margin: 0 auto;

    font-size: clamp(48px, 8vw, 84px);
    line-height: 1;
    letter-spacing: -4px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        #ffffff,
        var(--accent)
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 620px;

    margin: 28px auto 0;

    color: var(--text-muted);

    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 35px;

    display: flex;
    justify-content: center;
    gap: 12px;
}


/* ================================
   CONTENT
   ================================ */

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 10px;

    font-size: 32px;
    letter-spacing: -1px;
}

.section-description {
    margin-bottom: 35px;

    color: var(--text-muted);
    line-height: 1.6;
}


/* ================================
   APP CARDS
   ================================ */

.app-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 18px;
}

.app-card {
    min-height: 210px;

    padding: 24px;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.25s,
        border-color 0.25s,
        background 0.25s;
}

.app-card:hover {
    transform: translateY(-5px);

    background: var(--surface-hover);
    border-color: #3f3f46;
}

.app-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(124, 92, 255, 0.12);
    color: var(--accent);

    font-size: 22px;
}

.app-card h3 {
    margin-bottom: 8px;

    font-size: 20px;
}

.app-card p {
    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.6;
}

.app-card .button {
    margin-top: auto;
    align-self: flex-start;
}


/* ================================
   USER
   ================================ */

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent);

    color: white;
    font-weight: 700;
}


/* ================================
   FOOTER
   ================================ */

footer {
    width: min(1100px, 90%);

    margin: 80px auto 0;
    padding: 30px 0;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 13px;
}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 700px) {

    nav {
        padding: 0 20px;
    }

    .nav-links > a:not(.button) {
        display: none;
    }

    .hero {
        padding-top: 90px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }
}