/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --surface: #ffffff;
    --surface-elevated: #f8fafc;
    --surface-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --success: #10b981;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-surface: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.hero-headline {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

.hero-subline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-button-alt {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button-alt:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== HERO ===== */
.hero {
    background: var(--gradient-surface);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
    padding: 12px 24px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-ai {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== NAVIGATION ===== */
.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 700;
}

.nav-logo-ai {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== VALUE PROPS ===== */
.value-props {
    padding: 120px 0;
    background: var(--surface-elevated);
}

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

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

.prop-item {
    background: var(--surface);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.prop-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prop-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.prop-item:hover::after {
    transform: scaleX(1);
}

.prop-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prop-item:hover .prop-icon {
    transform: scale(1.1);
}

.prop-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.prop-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.prop-metric {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    margin-top: 16px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--surface-subtle);
    padding: 120px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.testimonial {
    background: var(--surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.testimonial-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== USP VIDEOS ===== */
.usp-videos {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.usp-videos iframe {
    border-radius: 16px;
    max-width: 100%;
}

/* ===== PROBLEM/SOLUTION ===== */
.problem-solution {
    padding: 120px 0;
    background: var(--surface);
}

.problem-text {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 64px;
    line-height: 1.6;
    font-weight: 500;
}

.solution-box {
    background: var(--surface-elevated);
    padding: 64px 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.solution-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.solution-box p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    margin-top: 48px;
}

.approach-item {
    padding: 32px 24px;
    text-align: left;
    position: relative;
}

.approach-item:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border-light);
}

.approach-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.approach-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CASE STUDIES ===== */
.case-studies {
    background: var(--surface-subtle);
    padding: 120px 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.case-study {
    background: var(--surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
}

.case-study:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.case-study-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.case-study-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.case-study h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.case-study-header p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.case-study-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.case-study-result {
    margin-top: 16px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.case-study-result-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

/* ===== N8N HIGHLIGHT ===== */
.n8n-highlight {
    background: 
        linear-gradient(135deg, rgba(0,15,60,0.85) 0%, rgba(0,30,120,0.85) 100%),
        url('/assets/img/n8nbackground.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.n8n-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.n8n-highlight h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.n8n-highlight p {
    font-size: 18px;
    margin-bottom: 48px;
    opacity: 0.9;
    line-height: 1.6;
}

.n8n-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.n8n-feature {
    background: rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.n8n-feature:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.n8n-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.n8n-feature p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

/* ===== PACKAGES ===== */
.packages {
    padding: 120px 0;
    background: var(--surface-elevated);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.package {
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.package:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.package.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.package.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.package.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.package-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.package-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.package-period {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 16px;
}

.package-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
}

.package-features li.subheading:before {
    content: none;
}

.package-features li.subheading {
    padding-left: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.package .cta-button {
    margin-top: auto;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--surface-subtle);
    padding: 120px 0;
    text-align: center;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.form-container iframe {
    border-radius: 16px;
    background: white;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary);
    color: var(--surface-elevated);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer-left {
    text-align: left;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-bottom: 16px !important;
}

.footer-logo-text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    letter-spacing: -0.5px !important;
}

.footer-logo-ai {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    margin-left: 4px !important;
    letter-spacing: 0.5px !important;
}

.footer-right {
    text-align: right;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--surface-elevated);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0 60px;
    }
    
    .logo {
        margin-bottom: 48px;
        padding: 10px 20px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-ai {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .hero-subline {
        font-size: 18px;
    }
    
    .value-props,
    .case-studies,
    .packages,
    .contact,
    .problem-solution,
    .testimonials {
        padding: 80px 0;
    }

    .n8n-highlight {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }

    .props-grid {
        gap: 24px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .package.featured {
        transform: none;
    }

    .package.featured:hover {
        transform: translateY(-8px);
    }

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

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 8px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .approach-item:first-child::after {
        display: none;
    }

    .approach-item {
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 24px;
    }

    .approach-item:last-child {
        border-bottom: none;
    }

    .solution-box {
        padding: 40px 32px;
    }

    .form-container {
        max-width: 90%;
        padding: 32px 24px;
    }

    .n8n-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }
}

/* ===== UTILITIES ===== */
html {
    scroll-behavior: smooth;
}
