/* ===================================
   Landing Page Styles
   =================================== */

/* Landing Container */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-light {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero Section */
.landing-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.4);
}

.btn-cta-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(66, 133, 244, 0.1);
}

/* Hero Visual - Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-mockup {
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
}

.mockup-window {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.mockup-window:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #f1f3f4;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #28c840; }

.mockup-content {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: #f8f9fa;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-menu-item {
    height: 32px;
    background: #e8eaed;
    border-radius: 6px;
    transition: background 0.3s;
}

.mockup-menu-item.active {
    background: var(--primary-color);
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-card {
    height: 80px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-radius: 8px;
}

.mockup-card.pulse {
    animation: pulse 2s infinite;
}

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

.mockup-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-timeline-item {
    height: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    transition: opacity 0.3s;
}

.hero-scroll-indicator .material-symbols-outlined {
    font-size: 2rem;
    color: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Pain Points Section */
.landing-pain-points {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pain-point-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pain-point-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pain-icon {
    margin-bottom: 1rem;
}

.pain-icon .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary-color);
}

.pain-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Features Section */
.landing-features {
    padding: 6rem 0;
    background: #ffffff;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.feature-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Feature Icon Flow */
.feature-icon-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    border-radius: 16px;
}

.feature-icon-box > * {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-icon-box > *.icon-animate-in {
    opacity: 1;
    transform: scale(1);
}

.feature-icon-box .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-arrow {
    color: var(--text-secondary);
}

.feature-arrow .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Feature Timeline Demo */
.feature-timeline-demo {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 300px;
}

.demo-timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.demo-timeline-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.demo-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 40px;
}

.demo-content {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Feature Chat Demo */
.feature-chat-demo {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    min-height: 258px;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.chat-bubble.bubble-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.chat-bubble.user {
    background: var(--primary-color);
    color: #ffffff;
    margin-left: 2rem;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: #f1f3f4;
    color: var(--text-color);
    margin-right: 2rem;
    border-bottom-left-radius: 4px;
}

.chat-bubble.ai .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--text-color);
    margin-left: 2px;
    animation: blink 1s infinite;
}

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

/* Feature Seat Demo */
.feature-seat-demo {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    position: relative;
}

.seat-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seat-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.seat-item {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.3) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seat-item.seat-animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: seatPulse 2s ease-in-out infinite;
}

.seat-item:nth-child(1) {
    animation-delay: 0s;
}

.seat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.seat-item:nth-child(3) {
    animation-delay: 0.4s;
}

.seat-item:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes seatPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* How It Works Section */
.landing-how-it-works {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    padding: 2rem;
    max-width: 250px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-icon {
    margin-bottom: 1rem;
}

.step-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--text-secondary);
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--border-color) 100%);
    margin-top: 3.5rem;
    border-radius: 1px;
}

/* Social Proof Section */
.landing-social-proof {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.landing-social-proof .stat-label {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* FAQ Section */
.landing-faq {
    padding: 6rem 0;
    background: #ffffff;
}

.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s, opacity 0.6s ease-out, transform 0.6s ease-out;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--background-secondary);
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s;
}

.btn-text-link:hover {
    gap: 0.75rem;
}

.btn-text-link .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Final CTA Section */
.landing-final-cta {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a73e8 100%);
    text-align: center;
}

.landing-final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.landing-final-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3.5rem;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    animation: ctaPulse 2s infinite;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); }
}

/* Footnote Section */
.landing-footnote {
    padding: 2rem 0;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
}

.footnote-content {
    max-width: 800px;
    margin: 0 auto;
}

.footnote-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.footnote-content sup {
    color: var(--primary-color);
    font-weight: 600;
}

.footnote-ref {
    color: var(--primary-color);
    font-size: 0.75em;
    font-weight: 600;
    cursor: help;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.5);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-to-top .material-symbols-outlined {
    font-size: 24px;
}

/* Landing Page Responsive */
@media (max-width: 992px) {
    .landing-hero .landing-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-mockup {
        max-width: 400px;
    }

    .mockup-window {
        transform: none;
    }

    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .feature-block.reverse > * {
        direction: ltr;
    }

    .feature-content {
        text-align: center;
    }

    .step-connector {
        display: none;
    }

    .stats-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 0 1.5rem;
    }

    .section-title,
    .section-title-light {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .landing-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pain-point-card {
        padding: 1.5rem;
    }

    .pain-icon .material-symbols-outlined {
        font-size: 2.5rem;
    }

    .landing-pain-points,
    .landing-features,
    .landing-how-it-works,
    .landing-social-proof,
    .landing-faq {
        padding: 4rem 0;
    }

    .feature-content h3 {
        font-size: 1.4rem;
    }

    .feature-icon-box {
        padding: 1.5rem 2rem;
    }

    .feature-icon-box .material-symbols-outlined {
        font-size: 2rem;
    }

    .step-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .landing-social-proof .stat-label {
        font-size: 0.95rem;
    }

    .landing-final-cta {
        padding: 5rem 0;
    }

    .landing-final-cta h2 {
        font-size: 1.75rem;
    }

    .landing-final-cta p {
        font-size: 1.1rem;
    }

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

    .scroll-to-top {
        bottom: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* Feature Security Note */
.feature-security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(52, 168, 83, 0.08);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e8e3e;
    border-left: 3px solid #34a853;
}

.feature-security-note .material-symbols-outlined {
    font-size: 1.25rem;
    color: #34a853;
}

/* Feature Calendar Demo */
.feature-calendar-demo {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 300px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.calendar-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.calendar-day {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    width: 40px;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-event {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.calendar-event.exam {
    background: rgba(234, 67, 53, 0.1);
    color: #c5221f;
    border-left: 3px solid #ea4335;
}

.calendar-event.field {
    background: rgba(52, 168, 83, 0.1);
    color: #1e8e3e;
    border-left: 3px solid #34a853;
}

.calendar-event.school {
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

@media (max-width: 768px) {
    .feature-security-note {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}
