:root {
    --color-bg: #0f172a; /* Slate 900 */
    --color-bg-alt: #1e293b; /* Slate 800 */
    --color-surface: rgba(30, 41, 59, 0.7);
    --color-surface-hover: rgba(51, 65, 85, 0.8);
    --color-primary: #3b82f6; /* Blue 500 */
    --color-primary-hover: #2563eb; /* Blue 600 */
    --color-accent: #f97316; /* Orange 500 */
    --color-text: #f8fafc; /* Slate 50 */
    --color-text-muted: #94a3b8; /* Slate 400 */
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #60a5fa);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-image {
    width: 100%;
    border-radius: 1rem;
    display: block;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-image-wrapper:hover .hero-image {
    transform: rotateY(0) rotateX(0);
}

.floating-card {
    position: absolute;
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

.icon-zap { color: #fbbf24; }
.icon-db { color: #34d399; }

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 3s;
}

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

/* Sections Common */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Selling Points */
.selling-points {
    background-color: var(--color-bg-alt);
}

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

.sp-card {
    background: var(--color-bg);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.sp-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.sp-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sp-icon svg {
    width: 30px;
    height: 30px;
}

.sp-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sp-card p {
    color: var(--color-text-muted);
}

/* Roles Section */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.role-card {
    background: linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.role-card:hover {
    border-color: var(--color-accent);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.role-icon {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.role-icon.admin { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.role-icon.teacher { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.role-icon.student { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.role-icon.parent { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.role-icon.guest { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.role-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.role-features li i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tech Stack */
.tech-stack {
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-icon {
    color: var(--color-accent);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.tech-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.tech-circle {
    position: relative;
    width: 150px;
    height: 150px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

.core-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
}

.orbit {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px dashed var(--color-border);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.orbit-item {
    position: absolute;
    background: var(--color-surface);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.875rem;
}

.i1 { top: -15px; left: 50%; transform: translateX(-50%); }
.i2 { bottom: -15px; left: 50%; transform: translateX(-50%); }
.i3 { top: 50%; left: -15px; transform: translateY(-50%); }
.i4 { top: 50%; right: -15px; transform: translateY(-50%); }

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* CTA Section */
.video-section {
    background-color: var(--color-bg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--color-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-section {
    padding: 4rem 0;
}

.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    background-color: var(--color-bg-alt);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-wrap img {
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.social-icon i {
    width: 20px;
    height: 20px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Floating WA Button */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wa-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .tech-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .card-1, .card-2 {
        display: none;
    }
    
    .section-desc {
        text-align: center !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        display: none;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    .mobile-cta {
        display: inline-flex !important;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .sp-grid, .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
