/* SlopeLog - Winter-themed Modern Minimalist Design */
/* Design: Modern Minimalist with Tailwind CSS */
/* Color Mood: Cool/Natural - icy blues, whites, navy */
/* Typography: Modern sans-serif */

:root {
    --primary-blue: #1e3a5f;
    --accent-blue: #3b82f6;
    --light-blue: #60a5fa;
    --ice-blue: #e0f2fe;
    --snow-white: #f8fafc;
    --deep-navy: #0f172a;
    --mountain-gray: #64748b;
    --frost: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--snow-white) 0%, var(--ice-blue) 100%);
    min-height: 100vh;
    color: var(--deep-navy);
    line-height: 1.6;
}

/* Navigation */
.nav-container {
    background: var(--frost);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

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

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--mountain-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--ice-blue);
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--snow-white) 0%, var(--ice-blue) 50%, rgba(59, 130, 246, 0.1) 100%);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.hero-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--mountain-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--ice-blue);
    transform: translateY(-2px);
}

/* Device Mockup */
.device-mockup-container {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-screen {
    border-radius: 30px;
    overflow: hidden;
    background: #000;
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--mountain-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ice-blue), rgba(59, 130, 246, 0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--mountain-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-section {
    background: linear-gradient(180deg, var(--ice-blue) 0%, var(--snow-white) 100%);
    padding: 4rem 1.5rem;
    max-height: 500px;
    overflow: hidden;
}

.screenshot-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 380px;
}

.carousel-container {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.carousel-device {
    position: relative;
    max-width: 200px;
}

.carousel-device .device-frame {
    padding: 8px;
    border-radius: 30px;
}

.carousel-device .device-screen {
    border-radius: 24px;
}

.carousel-device img {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.carousel-device img.loaded {
    filter: blur(0);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mountain-gray);
    opacity: 0.3;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    opacity: 1;
    background: var(--accent-blue);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: var(--primary-blue);
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--accent-blue);
    color: white;
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 3rem 0;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--mountain-gray);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-navy));
    padding: 5rem 1.5rem;
    text-align: center;
    border-radius: 24px;
    margin: 3rem 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

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

.cta-section .btn-primary:hover {
    background: var(--ice-blue);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Page Content (Privacy, Terms, Contact) */
.page-header {
    padding: 8rem 1.5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--snow-white) 0%, var(--ice-blue) 100%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--mountain-gray);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    text-align: left;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin: 2rem 0 1rem;
    padding-top: 1rem;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 1.5rem 0 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--mountain-gray);
}

.page-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--mountain-gray);
}

.page-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--ice-blue);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--snow-white);
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.75rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--frost);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.privacy-accept-container.visible {
    display: block;
}

.privacy-accept-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-navy);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 7rem 1rem 3rem;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .device-mockup {
        max-width: 220px;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .screenshots-section {
        padding: 3rem 1rem;
        max-height: 420px;
    }

    .screenshot-carousel {
        height: 320px;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-device {
        max-width: 160px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

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

    .cta-section {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 7rem 1rem 2rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-content {
        padding: 2rem 1rem 4rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .device-mockup {
        max-width: 180px;
    }

    .carousel-device {
        max-width: 140px;
    }

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