/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --teal-gradient: linear-gradient(135deg, #667eea 0%, #48bb78 100%);
    --purple: #667eea;
    --purple-dark: #764ba2;
    --teal: #48bb78;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--purple);
}

.nav-link.cta-nav {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    -webkit-text-fill-color: white;
}

.nav-link.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: white;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-secondary:hover {
    background: var(--purple);
    color: white;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.floating-dashboard {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    min-width: 150px;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.5s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 1s;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Problem Section */
.problem-section {
    background: var(--bg-light);
}

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

.problem-text .lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.problem-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.problem-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

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

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

.icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.icon-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Solution Section */
.solution-section {
    background: white;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple);
}

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

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

.solution-cta {
    text-align: center;
}

/* Dashboards Section */
.dashboards-section {
    background: var(--bg-light);
}

.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--purple);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--purple);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.dashboard-preview {
    display: none;
}

.dashboard-preview.active {
    display: block;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
}

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

.dashboard-card-large {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.dashboard-card-large.full-width {
    grid-column: 1 / -1;
}

.dashboard-card-large h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Progress Content */
.progress-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.progress-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.circular-progress {
    position: relative;
    display: inline-block;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
}

.progress-label {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Next Steps */
.next-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.step-icon {
    font-size: 2rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.step-meta {
    font-size: 0.9rem;
}

.difficulty {
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.difficulty.easy {
    background: #c6f6d5;
    color: #22543d;
}

.difficulty.medium {
    background: #feebc8;
    color: #7c2d12;
}

.difficulty.hard {
    background: #fed7d7;
    color: #742a2a;
}

.step-btn {
    padding: 0.5rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Mastery Chart */
.mastery-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mastery-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mastery-label {
    min-width: 100px;
    font-weight: 600;
    color: var(--text-dark);
}

.mastery-bar {
    flex: 1;
    height: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
}

.mastery-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 15px;
    transition: width 1s ease;
}

.mastery-fill.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.mastery-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

/* Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.badge-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.badge-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

.dashboard-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Class Overview */
.class-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.overview-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.overview-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple);
}

.overview-value.warning {
    color: #ed8936;
}

.overview-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.donut-chart {
    position: relative;
    display: inline-block;
}

.donut-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
}

/* Student Table */
.table-container {
    overflow-x: auto;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
}

.student-table thead {
    background: var(--bg-light);
}

.student-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--purple);
}

.student-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.student-table tr:hover {
    background: var(--bg-light);
}

.mastery-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.mastery-badge.low {
    background: #fed7d7;
    color: #742a2a;
}

.mastery-badge.medium {
    background: #feebc8;
    color: #7c2d12;
}

.mastery-badge.high {
    background: #c6f6d5;
    color: #22543d;
}

/* Topic Mastery */
.topic-mastery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topic-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-dark);
}

.topic-bar {
    flex: 1;
    height: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.topic-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 12px;
    transition: width 1s ease;
}

.topic-fill.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.topic-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

/* AI Suggestions */
.ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--purple);
}

.suggestion-icon {
    font-size: 1.5rem;
}

.suggestion-content {
    flex: 1;
}

.suggestion-text {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Impact Section */
.impact-section {
    background: white;
}

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

.impact-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.impact-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.impact-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Technology Section */
.technology-section {
    background: var(--bg-light);
}

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

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tech-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Early Access Section */
.early-access-section {
    background: var(--primary-gradient);
    color: white;
    padding: 6rem 0;
}

.early-access-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.early-access-text .section-title {
    color: white;
    margin-bottom: 1.5rem;
}

.early-access-text .lead-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.signup-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.form-success h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .problem-content {
        grid-template-columns: 1fr;
    }

    .problem-stats {
        grid-template-columns: 1fr;
    }

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

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

    .dashboard-card-large.full-width {
        grid-column: 1;
    }

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

    .class-overview {
        flex-direction: column;
    }

    .table-container {
        overflow-x: scroll;
    }

    .signup-form-container {
        padding: 2rem 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .floating-dashboard {
        flex-direction: column;
    }
}

