/* Custom Modern Styling - School Tracker */

:root {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --dark-neutral: #0f172a;
    --text-body: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--dark-neutral);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Scaled Brand Logo and Smart Fallback */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-brand:hover {
    transform: scale(1.03);
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Fallback SVG Icon Badge when PNG image is missing */
.brand-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.brand-icon {
    width: 24px;
    height: 24px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-ghost {
    text-decoration: none;
    color: var(--dark-neutral);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.btn-ghost:hover {
    background: var(--bg-light);
}

.btn-primary-gradient {
    text-decoration: none;
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-gradient:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 24px;
    height: 3px;
    background-color: var(--dark-neutral);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    padding: 80px 24px 100px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.badge-pill {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-neutral);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary-lg {
    text-decoration: none;
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-secondary-lg {
    text-decoration: none;
    background: var(--white);
    color: var(--dark-neutral);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.btn-secondary-lg:hover {
    background: var(--bg-light);
}

/* Floating Glass Visual */
.preview-card-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.glass-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.glass-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.glass-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
}

.stat-badge { color: var(--primary); }
.stat-val { color: #059669; }

.glass-bar-bg {
    background: #e2e8f0;
    height: 10px;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 24px;
}

.glass-bar-fill {
    background: var(--primary-gradient);
    height: 100%;
    border-radius: 50px;
}

.glass-detail-box {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
}

.glass-title { font-weight: 700; color: var(--dark-neutral); margin-bottom: 4px; }
.glass-sub { font-size: 0.9rem; color: var(--text-body); }

/* General Sections */
.section-padding {
    padding: 90px 24px;
}

.light-bg {
    background-color: var(--bg-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark-neutral);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-body);
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card-premium {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.icon-wrapper {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.feature-card-premium h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-premium p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #c7d2fe;
    margin-bottom: 8px;
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-item p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* Showcase Grid */
.preview-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.showcase-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
}

.showcase-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.showcase-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.showcase-card p {
    color: var(--text-body);
    font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 80px 24px;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-cta-white {
    text-decoration: none;
    background: var(--white);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-cta-white:hover {
    transform: scale(1.03);
}

/* Footer */
.footer {
    background: var(--dark-neutral);
    color: #94a3b8;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.9rem;
}

/* Auth Cards Styling */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
    padding: 24px;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 40px 32px;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-link {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 16px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.auth-logo-link:hover {
    transform: scale(1.05);
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-neutral);
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-top: 4px;
}

/* Responsive Navigation Toggle */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-menu.active { display: flex; }
    .nav-links { flex-direction: column; gap: 16px; width: 100%; text-align: center; }
    .nav-actions { flex-direction: column; width: 100%; }
    .btn-ghost, .btn-primary-gradient { width: 100%; text-align: center; }
}