:root {
    --bg-main: #080910;
    --bg-glass: rgba(18, 22, 35, 0.65);
    --bg-glass-strong: rgba(255, 255, 255, 0.03);
    
    --accent: #29BCFF;
    --accent-glow: rgba(41, 188, 255, 0.3);
    
    --text-main: #EDF0FF;
    --text-muted: rgba(237, 240, 255, 0.65);
    
    --border: rgba(41, 188, 255, 0.15);
    --border-strong: rgba(41, 188, 255, 0.4);
    
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background animated glowing blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.bg-glow-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(41,188,255,0.15) 0%, transparent 70%);
}
.bg-glow-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(162,89,255,0.1) 0%, transparent 70%);
    animation-delay: -5s;
}
.bg-glow-3 {
    top: 40%; left: 40%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(41,188,255,0.05) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.1); }
    66% { transform: translate(-5%, 10%) scale(0.9); }
}

/* Floating Math Symbols */
.floating-math {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    z-index: -1;
    pointer-events: none;
    user-select: none;
}
.floating-1 { font-size: 15rem; top: 10%; left: 5%; transform: rotate(-15deg); }
.floating-2 { font-size: 12rem; top: 60%; right: 5%; transform: rotate(10deg); }
.floating-3 { font-size: 8rem; top: 30%; right: 20%; transform: rotate(-5deg); }
.floating-4 { font-size: 18rem; bottom: 10%; left: 15%; transform: rotate(25deg); }
.floating-5 { font-size: 10rem; bottom: 40%; left: 40%; transform: rotate(0); }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(8, 9, 16, 0.8);
    transition: all 0.3s ease;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}
.brand-plus { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn-outline, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline {
    border: 1.5px solid var(--border);
    background: rgba(41, 188, 255, 0.05);
    color: var(--accent) !important;
}
.btn-outline:hover {
    background: rgba(41, 188, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary {
    background: var(--accent);
    color: #000 !important;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow), inset 0 2px 4px rgba(255,255,255,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 188, 255, 0.5), inset 0 2px 4px rgba(255,255,255,0.5);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 120px 8% 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(41,188,255,0.1);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 900; font-family: var(--font-heading); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Hero Visual / Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-screenshot {
    width: 280px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 2;
    border: 1px solid var(--border);
}
.hero-screenshot:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.mockup-float {
    position: absolute;
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 3;
    animation: float-ui 6s infinite ease-in-out;
}
.mockup-float-1 { top: 10%; right: -5%; animation-delay: -1s; }
.mockup-float-2 { bottom: 15%; left: -10%; animation-delay: -3s; color: #FFEE55; border-color: rgba(255, 238, 85, 0.3); }

@keyframes float-ui {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Features */
.features {
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: transparent; transition: background 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-card:hover::before { background: var(--accent); box-shadow: 0 0 20px var(--accent); }

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-card p { color: var(--text-muted); line-height: 1.7; }

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 8% 40px;
    background: rgba(0,0,0,0.5);
    text-align: center;
}
.footer-brand {
    font-family: var(--font-heading); font-size: 24px; font-weight: 900; margin-bottom: 16px;
}
.footer p { color: var(--text-muted); margin-bottom: 30px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; }
.footer-links a { color: var(--text-main); text-decoration: none; font-weight: 600; opacity: 0.7; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.copyright { color: rgba(255,255,255,0.3); font-size: 13px; }

/* Responsive */
@media (max-width: 968px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 140px; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-screenshot { margin: 40px auto 0; transform: none; width: 220px; }
    .hero-screenshot:hover { transform: translateY(-5px); }
    .mockup-float { display: none; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .nav-links { display: none; /* simple mobile hide for now */ }
    .hero-stats { flex-direction: column; gap: 20px; }
    .feature-card { padding: 30px 20px; }
}
