/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050510;
    color: #e0e0f0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:root {
    --primary: #6C5CE7;
    --primary-glow: rgba(108, 92, 231, 0.4);
    --accent: #00D2FF;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --neon-green: #00F5A0;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --text: #E2E8F0;
    --text-dim: rgba(255, 255, 255, 0.45);
    --dark: #050510;
    --radius: 16px;
    --radius-lg: 24px;
}

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

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(108,92,231,0.07) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===== LOADER ===== */
.loader {
    position: fixed; inset: 0;
    background: #050510;
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 24px;
}
.loader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.loader-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 10px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 0 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.3rem; color: #fff;
}
.logo-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.logo-mark::after {
    content: ''; position: absolute; inset: -3px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.3; filter: blur(8px);
}
.logo-mark svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
    font-size: 0.875rem; font-weight: 500;
    color: var(--text-dim); transition: all 0.3s;
    position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.85rem; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 12px;
    font-weight: 600; font-size: 0.9rem; font-family: 'Inter', sans-serif;
    border: none; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: white; box-shadow: 0 0 30px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--primary-glow); }
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost {
    background: rgba(255,255,255,0.05); color: white;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-glow {
    background: transparent; color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(0,210,255,0.15);
}
.btn-glow:hover { background: rgba(0,210,255,0.1); box-shadow: 0 0 40px rgba(0,210,255,0.25); transform: translateY(-2px); }

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 180px 0 100px; position: relative; overflow: hidden;
    min-height: 60vh; display: flex; align-items: center;
}
.page-hero .grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}
.page-hero .orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.15;
    animation: orbFloat 12s ease-in-out infinite;
}
.page-hero .orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; }
.page-hero .orb-2 { width: 400px; height: 400px; background: var(--accent); bottom: -50px; left: -100px; animation-delay: -6s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.95); }
}
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }
.page-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 20px;
}
.page-hero-tag::before, .page-hero-tag::after {
    content: ''; width: 24px; height: 1px;
    background: var(--accent);
}
.page-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; line-height: 1.1;
    color: #fff; margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.page-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--neon-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero-desc {
    font-size: 1.1rem; color: var(--text-dim);
    line-height: 1.75; max-width: 560px;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 20px;
}
.section-tag::before, .section-tag::after { content: ''; width: 24px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-tag::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; line-height: 1.15;
    color: #fff; letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem; color: var(--text-dim);
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.glass-card:hover {
    background: var(--surface-hover); border-color: rgba(108,92,231,0.2);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.glass-card::after {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.glass-card:hover::after { opacity: 0.5; }

/* ===== ICON WRAP ===== */
.icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.4rem;
}
.icon-wrap.iw-purple { background: rgba(108,92,231,0.1); border: 1px solid rgba(108,92,231,0.15); }
.icon-wrap.iw-cyan { background: rgba(0,210,255,0.1); border: 1px solid rgba(0,210,255,0.15); }
.icon-wrap.iw-green { background: rgba(0,245,160,0.1); border: 1px solid rgba(0,245,160,0.15); }
.icon-wrap.iw-amber { background: rgba(255,196,0,0.1); border: 1px solid rgba(255,196,0,0.15); }
.icon-wrap.iw-rose { background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.15); }
.icon-wrap.iw-blue { background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.15); }

/* ===== TAG/BADGE ===== */
.tag {
    display: inline-block; font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 4px 10px; border-radius: 6px;
    margin-top: 14px;
}
.tag-purple { color: var(--primary); background: rgba(108,92,231,0.1); }
.tag-green { color: var(--neon-green); background: rgba(0,245,160,0.08); border: 1px solid rgba(0,245,160,0.15); }

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative; padding: 100px 0;
    text-align: center; overflow: hidden;
}
.cta-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,210,255,0.06));
    border-top: 1px solid rgba(108,92,231,0.15);
    border-bottom: 1px solid rgba(0,210,255,0.1);
}
.cta-bg::before {
    content: ''; position: absolute;
    width: 600px; height: 600px; border-radius: 50%;
    background: var(--primary); filter: blur(200px); opacity: 0.08;
    top: -200px; left: 50%; transform: translateX(-50%);
}
.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; color: #fff;
    margin-bottom: 16px; position: relative;
}
.cta-section p {
    font-size: 1.05rem; color: var(--text-dim);
    max-width: 520px; margin: 0 auto 36px;
    line-height: 1.7; position: relative;
}
.cta-buttons { display: flex; justify-content: center; gap: 16px; position: relative; }

/* ===== FOOTER ===== */
.footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4); margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-dim); margin-bottom: 10px; transition: all 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px; display: flex;
    justify-content: space-between;
    font-size: 0.8rem; color: var(--text-dim);
}

/* ===== DIVIDER LINE ===== */
.divider {
    height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: block; }
    .page-hero { padding: 140px 0 80px; min-height: auto; }
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
}
