:root {
    --primary: #1a3a52;
    --primary-light: #2d5478;
    --accent: #4a90e2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 36px;
    width: auto;
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: var(--bg);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.text-accent {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.ai-chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ai-chat-bubble.user {
    background: var(--bg-gray);
    color: var(--text);
}

.ai-chat-bubble.ai {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.ai-suggestions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.suggestion-pill {
    padding: 0.25rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.float-1 {
    top: -20px;
    right: -40px;
    animation: float 8s ease-in-out infinite;
    animation-delay: 0.5s;
}

.float-2 {
    bottom: 20px;
    right: -60px;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.float-3 {
    top: 50%;
    left: -40px;
    animation: float 9s ease-in-out infinite;
    animation-delay: 1.5s;
}

.mini-chart {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 30px;
}

.chart-bar {
    width: 6px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 1s ease;
}

.progress-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: spin 3s linear infinite;
}

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

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

.float-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

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

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

.feature-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-light);
}

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

.feature-animation {
    height: 180px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Analytics Window Animation */
.analytics-window,
.grading-window,
.groups-window,
.content-window,
.adaptive-window,
.support-window {
    background: var(--text);
    border-radius: var(--radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.window-dot.red {
    background: var(--danger);
}

.window-dot.green {
    background: var(--success);
}

.window-text {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.window-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Analytics Animation */
.metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: white;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

.metric-item:nth-child(1) { animation-delay: 0.2s; }
.metric-item:nth-child(2) { animation-delay: 0.4s; }
.metric-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.metric-icon {
    font-size: 1rem;
}

.metric-label {
    flex: 1;
    font-size: 0.75rem;
    opacity: 0.8;
}

.metric-value {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Grading Animation */
.grading-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    width: 0;
    animation: progressFill 2s ease forwards;
    animation-delay: 0.5s;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

.progress-text {
    color: white;
    font-size: 0.75rem;
    opacity: 0.8;
}

.grading-complete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 2.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.check-icon {
    color: var(--success);
    font-size: 1.25rem;
}

/* Group Formation Animation */
.group-formation {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1rem;
}

.student-avatar {
    width: 35px;
    height: 35px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    animation: popIn 0.4s ease forwards;
}

.s1 { animation-delay: 0.2s; }
.s2 { animation-delay: 0.4s; }
.s3 { animation-delay: 0.6s; }
.s4 { animation-delay: 0.8s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.group-text {
    color: white;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.2s;
}

/* Content Generation Animation */
.content-generator {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gen-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.generating {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.gen-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: bounce 1.4s ease infinite;
}

.gen-dot:nth-child(1) { animation-delay: 0s; }
.gen-dot:nth-child(2) { animation-delay: 0.2s; }
.gen-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.gen-result {
    color: white;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 2s;
}

/* Adaptive Learning Path */
.learning-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.path-node {
    width: 25px;
    height: 25px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.path-node.completed {
    background: var(--success);
    animation-delay: 0.2s;
}

.path-node.current {
    background: var(--accent);
    animation-delay: 0.6s;
}

.path-node.future {
    animation-delay: 1s;
}

.path-line {
    width: 20px;
    height: 2px;
    background: white;
    opacity: 0.3;
}

.path-text {
    color: white;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.5s;
}

/* Support Chat Animation */
.support-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.chat-message,
.chat-response {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: typing 1.4s ease infinite;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Solutions Section */
.solutions {
    padding: 80px 0;
    background: var(--bg);
}

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

.solution-card {
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.solution-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.solution-features {
    list-style: none;
}

.solution-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* Comparison Section */
.comparison {
    padding: 80px 0;
    background: var(--bg-light);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.comparison-card.highlight {
    border: 2px solid var(--accent);
    position: relative;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.75rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-list li::before {
    font-size: 1.25rem;
}

.comparison-list li.check::before {
    content: '✓';
    color: var(--success);
}

.comparison-list li.cross::before {
    content: '✗';
    color: var(--danger);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg);
}

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

.testimonial-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.demo-form {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    font-size: 1.125rem;
}

.btn-submit:hover {
    background: var(--primary-light);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

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

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

.footer-logo {
    height: 32px;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    opacity: 0.6;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}