/* ========================================
   ClassMate Website Styles
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --pink: #ec4899;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: 1.25rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #f0f5ff 0%, #fdf4ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 540px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 24px 0 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.phone-screenshot {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: 100px 0;
    background: white;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
    border: 2px solid var(--accent);
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-light);
}

/* ========================================
   Grades Section
   ======================================== */

.grades {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.grades-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.grade-card {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    transition: transform 0.3s ease;
}

.grade-card:hover {
    transform: scale(1.1);
}

.grades-note {
    color: var(--text-light);
}

/* ========================================
   Download Section
   ======================================== */

.download {
    padding: 100px 0;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.download .section-title {
    color: white;
}

.download .section-title .highlight {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.app-store-badge img {
    height: 60px;
    transition: transform 0.3s ease;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.download-features {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.footer-tagline {
    margin-top: 12px;
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 6px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   Privacy & Support Pages
   ======================================== */

.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    text-align: center;
}

.page-content {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: var(--primary);
}

.page-content h3 {
    margin: 24px 0 12px;
}

.page-content p,
.page-content li {
    color: var(--text-light);
    margin-bottom: 16px;
}

.page-content ul {
    padding-left: 24px;
}

.page-content a {
    color: var(--primary);
}

.contact-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    margin: 32px 0;
}

.contact-card h3 {
    margin-top: 0;
}

.faq-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.faq-item h3 {
    margin: 0 0 8px;
    color: var(--text);
}

.faq-item p {
    margin: 0;
}
