/* ==================== CSS VARIABLES ==================== */
:root {
    --ferrari-red: #DC0000;
    --ferrari-red-dark: #b30000;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-900: #1a202c;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #718096;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --white: #ffffff;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.2s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ferrari-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--ferrari-red-dark);
}

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--ferrari-red);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--ferrari-red-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-400);
}

.btn-secondary:hover {
    border-color: var(--gray-600);
    color: var(--gray-900);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 500;
}

.nav a:hover {
    color: var(--ferrari-red);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--ferrari-red);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--gray-100);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 48px;
}

.section-dark .section-subtitle {
    color: var(--gray-400);
}

/* ==================== HOW IT WORKS - WORKFLOW DIAGRAM ==================== */
.workflow-diagram {
    margin-top: 40px;
    overflow-x: auto;
    padding: 20px 0;
}

.workflow-svg {
    display: block;
    max-width: 100%;
    height: auto;
    min-width: 900px;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
}

.step-sublabel {
    font-size: 11px;
}

/* Mobile workflow */
.workflow-mobile {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.workflow-step-mobile {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-300);
}

.workflow-step-mobile.highlight {
    background: var(--ferrari-red);
    border-color: var(--ferrari-red);
    color: var(--white);
}

.workflow-step-mobile.highlight .step-number {
    background: var(--white);
    color: var(--ferrari-red);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--ferrari-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    opacity: 0.8;
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--ferrari-red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== WHO IS IT FOR ==================== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.audience-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.audience-card:hover {
    border-color: var(--ferrari-red);
    box-shadow: var(--shadow-md);
}

.audience-icon {
    margin-bottom: 20px;
}

.audience-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.audience-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ==================== SCREENSHOTS ==================== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.screenshot-item {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--gray-200);
}

.screenshot-caption {
    padding: 20px;
}

.screenshot-caption h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.screenshot-caption p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.screenshot-clickable {
    cursor: zoom-in;
    transition: var(--transition);
}

.screenshot-item:hover .screenshot-clickable {
    opacity: 0.9;
}

.click-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.screenshot-item:hover .click-hint {
    opacity: 1;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.2s ease-in-out;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--ferrari-red);
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: #ccc;
    font-size: 16px;
    max-width: 800px;
    padding: 0 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-300);
}

.required {
    color: var(--ferrari-red);
}

.optional {
    color: var(--gray-500);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ferrari-red);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-email {
    text-align: center;
    margin-top: 32px;
    font-size: 16px;
    color: var(--gray-300);
}

.contact-email a {
    color: var(--ferrari-red);
    font-weight: 500;
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 16px;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 8px;
}

.footer-contact a {
    color: var(--gray-300);
}

.footer-contact a:hover {
    color: var(--ferrari-red);
}

.footer-copy {
    font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat {
        flex: 1 0 40%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Hide desktop workflow, show mobile */
    .workflow-diagram {
        display: none;
    }

    .workflow-mobile {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat {
        flex: none;
    }

    .feature-card,
    .audience-card {
        padding: 24px;
    }
}
