﻿@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
    --indigo: #5b4fcf;
    --indigo-light: #7c6fe0;
    --bg: #0f0f1a;
    --surface: #181828;
    --surface-2: #1e1e32;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);
    --text: #eef0ff;
    --text-muted: rgba(238,240,255,0.45);
    --text-sub: rgba(238,240,255,0.65);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── PAGE ───────────────────────────────────────────── */
html, body {
    background: var(--bg);
    min-height: 100vh;
    height: 100%;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: radial-gradient(ellipse 700px 500px at 80% -10%, rgba(91,79,207,0.22) 0%, transparent 70%), radial-gradient(ellipse 500px 400px at -5% 90%, rgba(232,67,147,0.14) 0%, transparent 70%);
}

/* ─── HEADER ─────────────────────────────────────────── */
header {
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

/* Desktop nav */
header nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    header nav a {
        text-decoration: none;
        color: var(--text-sub);
        font-weight: 600;
        font-size: 14px;
        padding: 9px 20px;
        border-radius: var(--radius-sm);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--surface-2);
        white-space: nowrap;
        border: 1px solid var(--border);
    }

        header nav a:hover {
            background: var(--border);
            border-color: var(--border-hover);
            color: var(--text);
            transform: translateY(-2px);
        }

        header nav a.btn-primary {
            background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 16px rgba(91,79,207,0.4);
        }

            header nav a.btn-primary:hover {
                box-shadow: 0 6px 22px rgba(91,79,207,0.55);
            }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 9px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

    .hamburger:hover {
        background: var(--border);
        border-color: var(--border-hover);
    }

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 20px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    animation: slideDown 0.25s ease;
    border-bottom: 1px solid var(--border);
}

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        text-decoration: none;
        color: var(--text-sub);
        font-weight: 600;
        font-size: 15px;
        padding: 13px 18px;
        border-radius: var(--radius);
        background: var(--surface-2);
        text-align: center;
        transition: background 0.2s;
        border: 1px solid var(--border);
    }

        .mobile-nav a.btn-primary {
            background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 16px rgba(91,79,207,0.4);
        }

        .mobile-nav a:hover {
            background: var(--border);
            color: var(--text);
        }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: clamp(80px, 14vh, 130px) 20px clamp(70px, 12vh, 110px);
    animation: fadeUp 0.7s ease;
    position: relative;
    z-index: 1;
}

.hero-emoji {
    font-size: clamp(56px, 11vw, 80px);
    display: block;
    margin-bottom: 28px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 6px 20px rgba(91,79,207,0.4));
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 7.5vw, 64px);
    margin-bottom: 24px;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero p {
    font-size: clamp(16px, 2.8vw, 20px);
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.hero .btn {
    padding: 16px 42px;
    background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(91,79,207,0.45);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    border: 1px solid rgba(91,79,207,0.3);
}

    .hero .btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 48px rgba(91,79,207,0.6);
    }

/* ─── FEATURES ───────────────────────────────────────── */
.features {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: clamp(60px, 10vh, 90px) 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: var(--surface);
    backdrop-filter: blur(10px);
    width: 290px;
    padding: 34px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    text-align: center;
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
    animation: fadeUp 0.7s ease both;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

    .feature-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--indigo), var(--indigo-light));
    }

    .feature-box:nth-child(1) {
        animation-delay: 0.1s;
    }

    .feature-box:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-box:nth-child(3) {
        animation-delay: 0.3s;
    }

    .feature-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 56px rgba(91,79,207,0.4);
        border-color: var(--border-hover);
    }

    .feature-box .icon {
        font-size: 52px;
        display: inline-block;
        margin-bottom: 18px;
        transition: transform 0.3s;
    }

    .feature-box:hover .icon {
        transform: scale(1.15) rotate(5deg);
    }

    .feature-box h3 {
        color: var(--text);
        margin-bottom: 12px;
        font-size: 19px;
        font-weight: 700;
    }

    .feature-box p {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.65;
    }

/* ─── CTA ────────────────────────────────────────────── */
.cta {
    background: var(--surface);
    backdrop-filter: blur(16px);
    color: var(--text);
    text-align: center;
    padding: clamp(70px, 12vh, 100px) 24px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
}

    .cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 800px 400px at 50% 50%, rgba(91,79,207,0.12), transparent);
        z-index: -1;
    }

    .cta h2 {
        margin-bottom: 36px;
        font-size: clamp(26px, 5.5vw, 44px);
        font-family: 'Playfair Display', serif;
        line-height: 1.2;
        letter-spacing: -0.03em;
        font-weight: 700;
        color: var(--text);
    }

    .cta a {
        background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
        color: white;
        padding: 16px 42px;
        border-radius: var(--radius);
        text-decoration: none;
        font-weight: 700;
        font-size: 16px;
        box-shadow: 0 8px 32px rgba(91,79,207,0.45);
        transition: transform 0.3s, box-shadow 0.3s;
        display: inline-block;
    }

        .cta a:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 48px rgba(91,79,207,0.6);
        }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 28px 20px;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
    border-top: 1px solid var(--border);
}

/* ─── TOAST ──────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 20px;
    right: -350px;
    min-width: 240px;
    padding: 14px 20px;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 32px rgba(0,0,0,0.4);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.15);
}

    .toast.show {
        right: 20px;
    }

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
    header {
        padding: 14px 16px;
        position: relative;
    }

        header nav {
            display: none;
        }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 70px 16px 60px;
    }

    .hero-emoji {
        font-size: 60px;
    }

    .features {
        padding: 50px 16px;
        gap: 18px;
    }

    .feature-box {
        width: 100%;
        max-width: 360px;
    }

    .cta {
        padding: 60px 16px;
    }

    .toast {
        left: 16px;
        right: 16px;
        min-width: unset;
        top: auto;
        bottom: 20px;
    }

        .toast.show {
            right: 16px;
        }
}

@media (min-width: 641px) and (max-width: 900px) {
    header {
        padding: 15px 28px;
    }

        header nav a {
            padding: 8px 16px;
            font-size: 13px;
        }

    .features {
        gap: 20px;
    }

    .feature-box {
        width: calc(50% - 10px);
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 16px 50px;
    }

        .hero h1 {
            font-size: 32px;
            margin-bottom: 20px;
        }

        .hero p {
            font-size: 15px;
            margin-bottom: 36px;
        }

    .feature-box {
        padding: 28px 22px;
    }

        .feature-box h3 {
            font-size: 18px;
        }

        .feature-box p {
            font-size: 13px;
        }

    .cta {
        padding: 50px 16px;
    }

        .cta h2 {
            margin-bottom: 28px;
        }
}
