/* ==========================================
   SKETCH2PRO - MODERN FORWARD-THINKING DESIGN
   ========================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 120px;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark);
    overflow: hidden;
    padding: 80px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: 2s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 540px;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button img {
    height: 56px;
    width: auto;
    display: block;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.device-mockup {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.device-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
    padding: var(--section-spacing) 0;
    background: var(--light);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

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

.feature.reverse {
    direction: rtl;
}

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

.feature-number {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.9;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.feature-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 16px;
    color: var(--gray);
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */

.how-it-works {
    padding: var(--section-spacing) 0;
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 24px;
}

.step-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */

.gallery {
    padding: var(--section-spacing) 0;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.ipad {
    grid-column: span 1;
}

.gallery-item.iphone {
    grid-column: span 1;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: var(--section-spacing) 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.orb-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button.large img {
    height: 64px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--dark);
    padding: 60px 0 24px;
}

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

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-light);
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    font-size: 14px;
    color: var(--gray);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-description {
        max-width: 100%;
    }

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

    .hero-image {
        order: -1;
        margin-bottom: 40px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature.reverse {
        direction: ltr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .section-title {
        font-size: 36px;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature {
        margin-bottom: 80px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .gallery-item.ipad,
    .gallery-item.iphone {
        grid-column: span 1;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-description {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-number {
        font-size: 60px;
    }

    .feature-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 28px;
    }
}
