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

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

:root {
    color-scheme: dark;
    --bg-primary: #06070f;
    --bg-secondary: #101228;
    --accent: #7c5cff;
    --accent-soft: rgba(124, 92, 255, 0.25);
    --text-primary: #f5f6ff;
    --text-muted: rgba(245, 246, 255, 0.68);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(120% 120% at 10% 10%, rgba(124, 92, 255, 0.28) 0%, transparent 55%),
                radial-gradient(120% 140% at 90% 15%, rgba(16, 198, 255, 0.22) 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 40px 24px;
    color: var(--text-primary);
}

.page {
    position: relative;
    max-width: 1180px;
    width: 100%;
    min-height: calc(100vh - 80px);
    border-radius: 32px;
    overflow: hidden;
    padding: 56px clamp(24px, 5vw, 72px);
    backdrop-filter: blur(18px);
    background: rgba(6, 7, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.glow {
    position: absolute;
    filter: blur(60px);
    opacity: 0.85;
    z-index: -1;
}

.glow.one {
    top: -160px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.55) 0%, transparent 70%);
}

.glow.two {
    bottom: -200px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 198, 255, 0.45) 0%, transparent 70%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7c5cff, #54e0ff);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.55);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-links a.platform-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    background: linear-gradient(135deg, #7c5cff, #667eea);
    color: white !important;
    box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3);
}

.nav-links a.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
    background: linear-gradient(135deg, #667eea, #7c5cff);
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-nav .theme-toggle-container {
    position: static;
}

.hero-nav .nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

main {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1.05;
    font-weight: 600;
}

.hero-title span {
    color: var(--accent);
    text-shadow: 0 0 25px rgba(124, 92, 255, 0.35);
}

.rotating-word {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.rotating-word.fade-out {
    opacity: 0;
}

.hero-text {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
}

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

.cta {
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
    color: #0c0f23;
    background: linear-gradient(135deg, #7c5cff, #54e0ff);
    box-shadow: 0 20px 40px rgba(124, 92, 255, 0.35);
}

.cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(124, 92, 255, 0.45);
}

.cta.secondary {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.cta.secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    position: relative;
    border-radius: 24px;
    padding: 24px 28px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    background: rgba(12, 15, 32, 0.45);
    border: 1px solid rgba(124, 92, 255, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card::after {
    content: "↗";
    position: absolute;
    top: 26px;
    right: 26px;
    font-size: 1.2rem;
    color: rgba(245, 246, 255, 0.4);
    transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.4);
    background: rgba(12, 15, 32, 0.65);
}

.card:hover::after {
    transform: translate(2px, -2px);
    color: var(--text-primary);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Ensure h2 cards look identical to div cards */
h2.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 18px;
}

footer nav {
    display: inline;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

@media (max-width: 960px) {
    body {
        padding: 32px 20px;
    }

    .page {
        padding: 40px clamp(20px, 8vw, 48px);
        gap: 60px;
    }

    main {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .card {
        flex: 1;
        min-width: min(260px, 100%);
    }
}

@media (max-width: 640px) {
    body {
        padding: 20px 16px;
    }

    .page {
        border-radius: 24px;
        min-height: calc(100vh - 40px);
        gap: 48px;
    }

    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .brand {
        font-size: 0.8rem;
    }

    .hero-nav {
        flex-shrink: 0;
    }

    .hero-nav .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        background: rgba(124, 92, 255, 0.15);
        border-radius: 8px;
        border: 1px solid rgba(124, 92, 255, 0.3);
    }

    .nav-links a:hover {
        background: rgba(124, 92, 255, 0.25);
        border-color: rgba(124, 92, 255, 0.5);
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }
}
