:root {
    --bg-color: #030712;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1e113a 0%, #090514 60%, #030712 100%);
    --card-bg: rgba(17, 14, 30, 0.75);
    --card-border: rgba(139, 92, 246, 0.18);
    --card-hover-border: rgba(168, 85, 247, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-purple: #8b5cf6;
    --accent-fuchsia: #d946ef;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #6366f1 100%);
    --gradient-ninja: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

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

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 5, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
}

nav ul {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-purple);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.nav-cta::after {
    display: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    animation: pulse 3s infinite;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.5);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(168, 85, 247, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

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

/* Floating Orb Background */
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(217, 70, 239, 0.08) 45%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

/* Stats Counter Section */
.stats-banner {
    padding: 2.5rem 0;
    margin-bottom: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Title */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features {
    padding: 80px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    display: flex;
    flex-col: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.feature-tag {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #c084fc;
}

/* Live Math Slicer Mini-Demo */
.interactive-demo {
    padding: 80px 0;
}

.demo-box {
    background: linear-gradient(180deg, rgba(30, 20, 55, 0.7) 0%, rgba(13, 8, 25, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.demo-arena {
    min-height: 220px;
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    user-select: none;
}

.target-equation {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.target-equation span {
    color: #c084fc;
}

.blade-targets {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blade-item {
    padding: 0.9rem 1.8rem;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.blade-item:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(168, 85, 247, 0.4);
    border-color: #d946ef;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.blade-item.sliced {
    animation: sliceSlash 0.5s forwards ease-out;
}

.blade-item.correct {
    background: #10b981;
    border-color: #34d399;
}

.blade-item.wrong {
    background: #ef4444;
    border-color: #f87171;
}

.demo-status {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
}

/* App Download CTA Banner */
.cta-banner {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.5) 0%, rgba(13, 8, 25, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.3);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
    background: rgba(3, 7, 18, 0.8);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer ul {
    display: flex;
    gap: 2rem;
}

footer ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* Legal Content Page Styling */
.legal-wrapper {
    padding: 140px 0 80px;
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 2.2rem 0 0.8rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1.5rem 1.8rem;
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: #c084fc;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #e879f9;
}

.alert-box {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin: 1.5rem 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(139, 92, 246, 0.45);
    }
}

@keyframes sliceSlash {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 0 1.25rem;
    }
    nav ul {
        gap: 1rem;
    }
    nav ul li:not(:last-child) {
        display: none;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .legal-content {
        padding: 2rem 1.5rem;
    }
}
