/* Global Variables */
:root {
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --primary-blue-light: #EFF6FF;
    --text-dark: #111827;
    --text-body: #4B5563;
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;
    --bg-gray-light: #F9FAFB;
    --success-green: #22C55E;
    --success-green-light: #DCFCE7;
    --danger-red: #EF4444;
    --danger-red-light: #FEE2E2;
    --border-color: #E5E7EB;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.2s ease;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Typography Utilities */
.text-blue { color: var(--primary-blue); }
.text-green { color: var(--success-green); }
.text-red { color: var(--danger-red); }
.text-center { text-align: center; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding { padding: 120px 0; }
}

.bg-gray { background-color: var(--bg-gray); }
.bg-white { background-color: var(--bg-white); }
.bg-blue { background-color: var(--primary-blue); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 12px;
}

.btn-text {
    background: transparent;
    color: var(--text-body);
}

.btn-text:hover {
    color: var(--primary-blue);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

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

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-logo-img {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.logo-icon .hammer-icon {
    position: absolute;
    transform: scale(0.6) translate(8px, 8px);
    opacity: 0.9;
}

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

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    .header-social-top {
        gap: 8px !important;
        font-size: 18px !important;
    }
    .header-actions {
        gap: 10px !important;
    }
    .header .logo-text {
        display: none;
    }
    .header .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    border-radius: 50%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

@media (min-width: 992px) {
    .hero-content {
        flex: 0 0 55%;
    }
}

.hero h1 {
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 56px;
    }
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 32px;
    font-weight: 400;
}

@media (min-width: 768px) {
    .hero .subtitle {
        font-size: 20px;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 576px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

.trust-signals {
    font-size: 14px;
    color: #6B7280;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-signals i {
    margin: 0 2px;
}

.trust-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

/* Mockups CSS Art */
.hero-visual {
    flex: 1;
    position: relative;
    height: 560px;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-visual {
        flex: 0 0 45%;
        height: 500px;
    }
}

.mockup {
    background-color: white;
    border-radius: 30px;
    box-shadow: var(--shadow-2xl);
    position: absolute;
    border: 8px solid #F3F4F6;
    overflow: hidden;
}

.mockup-ipad {
    width: 380px;
    height: 280px;
    top: 20px;
    right: 0;
    opacity: 0.8;
    transform: perspective(800px) rotateY(-15deg) scale(0.9);
    filter: blur(1px);
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.mockup-iphone {
    width: 240px;
    height: 480px;
    border-radius: 40px;
    border-width: 10px;
    top: 40px;
    left: 20px;
    z-index: 2;
    box-shadow: -10px 25px 50px -12px rgba(0, 0, 0, 0.2);
    background-color: var(--bg-gray-light);
}

@media (min-width: 992px) {
    .mockup-iphone {
        left: -40px;
    }
}

/* Mockup Content Styling */
.app-header {
    background: white;
    padding: 24px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.app-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-item-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.app-item-client {
    font-size: 12px;
    color: var(--text-body);
}

.app-item-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 100px;
}

.status-green { background: var(--success-green-light); color: var(--success-green); }
.status-blue { background: var(--primary-blue-light); color: var(--primary-blue); }
.status-gray { background: var(--bg-gray); color: var(--text-body); }

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ml-2 { margin-left: 8px; }
.w-full { width: 100%; }
.w-3-4 { width: 75%; }
.w-1-2 { width: 50%; }

/* General Section Utilities */
.section-title {
    font-size: 32px;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .section-title { font-size: 40px; margin-bottom: 64px; }
}

/* Section 2: The Problem */
.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .problems-grid { gap: 40px; }
}

.problem-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.problem-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.problem-card p {
    font-size: 15px;
    color: var(--text-body);
}

.problem-transition {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.transition-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Section 3: How it Works */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

@media (min-width: 992px) {
    .steps-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.step-card {
    text-align: center;
    max-width: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.step-icon {
    font-size: 56px;
    margin-bottom: 24px;
    background: var(--bg-gray-light);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-body);
}

.step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    transform: rotate(90deg);
}

@media (min-width: 992px) {
    .step-arrow {
        transform: rotate(0deg);
        margin-top: 80px;
        font-size: 24px;
    }
}

.opacity-50 { opacity: 0.5; }

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section 4: Features */
.feature-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 992px) {
    .feature-container {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }
    
    .feature-container.row-reverse {
        flex-direction: row-reverse;
    }
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .feature-content h2 { font-size: 40px; }
}

.feature-content p {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-mockup {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-shadow: var(--shadow-xl) !important;
}

/* Utility Helpers for Mockup content */
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-1 { margin-top: 4px; }
.mt-4 { margin-top: 16px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.p-3 { padding: 12px; }
.radius-8 { border-radius: 8px; }

.font-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-gray { color: #9CA3AF; }

.mockup-line {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
}

.mockup-box {
    border-radius: 8px;
}

.mockup-button {
    height: 44px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.border-blue { border-left: 4px solid var(--primary-blue); }
.border-red { border-left: 4px solid var(--danger-red); }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-align-center { display: flex; align-items: center; }

.progress-container { width: 100%; }
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 4px; }
.bg-green { background-color: var(--success-green); }
.status-red { background: var(--danger-red-light); color: var(--danger-red); }
.bg-red-light { background: var(--danger-red-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-box { padding: 12px; border-radius: 8px; }
.stats-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.stats-value { font-size: 20px; font-weight: 700; }

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Section 5: Comparison Table */
.text-white { color: white !important; }

.comparison-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-dark);
}

.comparison-table th {
    padding: 24px 16px;
    font-size: 18px;
    text-align: left;
    background: var(--bg-gray-light);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table th.col-before {
    width: 50%;
    border-right: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

@media (min-width: 768px) {
    .comparison-table td { font-size: 16px; padding: 24px; }
    .comparison-table th { padding: 32px 24px; font-size: 20px; }
}

.comparison-table td:first-child {
    border-right: 1px solid var(--border-color);
    color: var(--text-body);
}

.comparison-table td:last-child {
    font-weight: 600;
}

.comparison-table .table-footer-row td {
    background: var(--bg-gray-light);
    border-bottom: none;
    font-size: 16px;
}

@media (min-width: 768px) {
    .comparison-table .table-footer-row td { font-size: 18px; }
}

/* Section 6: Testimonials */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
}

@media (min-width: 992px) {
    .testimonials-grid {
        flex-direction: row;
        gap: 32px;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 300px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.text-dark { color: var(--text-dark); }

/* Multi-Platform Section */
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }

.multi-mockup-container {
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .multi-mockup-container { height: 450px; }
}

.mockup-browser {
    width: 600px;
    height: 350px;
    z-index: 1;
    top: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.browser-header {
    height: 32px;
    background: #E5E7EB;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9CA3AF;
}

.browser-dots span:nth-child(1) { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #10B981; }

.mockup-ipad-multi {
    width: 300px;
    height: 220px;
    z-index: 2;
    top: 150px;
    left: 50%;
    transform: translateX(-110%);
    box-shadow: -10px 20px 40px -10px rgba(0,0,0,0.15) !important;
    filter: none;
}

.mockup-iphone-multi {
    width: 180px;
    height: 360px;
    z-index: 3;
    top: 60px;
    right: 50%;
    transform: translateX(110%);
    box-shadow: 15px 20px 40px -10px rgba(0,0,0,0.2) !important;
}

@media (max-width: 767px) {
    .multi-mockup-container { height: 580px; }
    .mockup-browser { width: 90%; margin: 0 auto; left: 5%; transform: none; }
    .mockup-ipad-multi { display: none; }
    .mockup-iphone-multi { transform: none; right: 20px; top: 180px; }
}

/* Section 8: Final CTA */
.cta-title {
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .cta-title { font-size: 56px; margin-bottom: 24px; }
}

.cta-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .cta-subtitle { font-size: 28px; }
}

.btn-white {
    background-color: white;
    color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-white:hover {
    background-color: var(--bg-gray-light);
    color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.cta-note {
    font-size: 13px;
    opacity: 0.7;
}

/* Footer */
.footer-content { align-items: flex-start; }
.gap-4 { gap: 16px; }
.hover-blue:hover { color: var(--primary-blue); }
.pt-5 { padding-top: 48px; }
.pb-4 { padding-bottom: 32px; }
.pt-3 { padding-top: 24px; }
.border-top { border-top: 1px solid var(--border-color); }
.justify-center { justify-content: center; }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
    .footer-links { flex-direction: column; gap: 12px; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-body);
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-body);
    text-align: center;
    margin-bottom: 32px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-option-btn {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
    background: white;
}

.modal-option-btn.border-blue:hover { border-color: var(--primary-blue); background-color: var(--primary-blue-light); }
.modal-option-btn.border-green:hover { border-color: var(--success-green); background-color: var(--success-green-light); }

.option-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.option-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.option-desc {
    font-size: 13px;
    color: var(--text-body);
}
