/* FDJ Lineup Builder - Professional Material Design */
:root {
    --primary: #2D3A8C;
    --primary-dark: #1E2760;
    --primary-light: #4A5BC7;
    --secondary: #D4A853;
    --secondary-light: #E8C97A;
    --accent-green: #4CAF50;
    --bg-gradient-start: #E8F4FD;
    --bg-gradient-end: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A68;
    --text-light: #7A7A94;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(45, 58, 140, 0.1);
    --shadow-md: 0 4px 16px rgba(45, 58, 140, 0.15);
    --shadow-lg: 0 8px 32px rgba(45, 58, 140, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.nav-brand svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #D6E9F8 50%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(45, 58, 140, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

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

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.device-mockup {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.device-frame img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 58, 140, 0.08);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: left;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 20px;
    background: linear-gradient(180deg, #F5F9FC 0%, var(--white) 100%);
    max-height: 500px;
    overflow: hidden;
}

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

.carousel-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.screenshot-device {
    max-width: 160px;
    position: relative;
}

.screenshot-device img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    filter: blur(5px);
    transition: filter 0.3s ease;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

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

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(45, 58, 140, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* 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: 2000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
}

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

/* CTA Section */
.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
}

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

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

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

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

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

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

.footer-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    text-align: left;
}

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

/* Content Pages */
.page-header {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #D6E9F8 100%);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 60px 20px;
    background: var(--white);
}

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

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

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    color: var(--text-medium);
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.8;
}

.content-container ul,
.content-container ol {
    margin: 16px 0 16px 24px;
    color: var(--text-medium);
}

.content-container li {
    margin-bottom: 10px;
    text-align: left;
    line-height: 1.7;
}

.content-container a {
    color: var(--primary);
    text-decoration: underline;
}

.content-container a:hover {
    color: var(--primary-light);
}

.last-updated {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Contact Form */
.contact-section {
    padding: 60px 20px;
    background: var(--white);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8E8F0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

.form-group input[type="file"] {
    padding: 12px;
    background: #F8F8FC;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-message {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    text-align: center;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-align: center;
}

.privacy-accept-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #66BB6A 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

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

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        order: -1;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        text-align: center;
        padding: 14px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

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

    .screenshots {
        max-height: 400px;
    }

    .screenshot-carousel {
        height: 280px;
    }

    .carousel-container {
        height: 230px;
    }

    .screenshot-device {
        max-width: 120px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

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

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

    .footer-section p {
        text-align: center;
    }

    .contact-form {
        padding: 24px;
    }
}

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

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

    .btn {
        width: 100%;
    }

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

    .screenshot-device {
        max-width: 100px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .privacy-accept-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 90px 20px 40px;
        min-height: auto;
    }

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

    .screenshots {
        max-height: 350px;
        padding: 40px 20px;
    }

    .screenshot-carousel {
        height: 250px;
    }

    .carousel-container {
        height: 200px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
