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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

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

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.btn-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
    display: inline-block;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

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

.hero-text {
    color: var(--white);
}

.hero-logo {
    height: 60px;
    width: auto;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

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

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 18px;
}

/* Badges Section */
.badges-section {
    background: var(--white);
    padding: 60px 0;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.badges-section .badge {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--text-dark);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.badges-section .badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 150px;
    right: 80px;
    animation-delay: 2s;
}

.card-3 {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 80px;
    left: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Hero Card SVG Styles */
.card-svg {
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: visible;
}

/* Card 1 - Network Animation */
.store-node {
    animation: nodePulse 3s ease-in-out infinite;
}

.node-1 {
    animation-delay: 0s;
}

.node-2 {
    animation-delay: 1s;
}

.node-3 {
    animation-delay: 2s;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.connection-line {
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Card 2 - POS Animation */
.credit-card {
    animation: cardSwipe 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes cardSwipe {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(5px) rotate(-2deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(2deg); }
}

.success-check {
    animation: checkPulse 3s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Card 3 - Analytics Animation */
.bar {
    animation: barGrow 2s ease-in-out infinite;
    transform-origin: bottom;
}

.bar-1 {
    animation-delay: 0s;
}

.bar-2 {
    animation-delay: 0.2s;
}

.bar-3 {
    animation-delay: 0.4s;
}

.bar-4 {
    animation-delay: 0.6s;
}

@keyframes barGrow {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50% { transform: scaleY(1.1); opacity: 1; }
}

.trend-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 3s ease-in-out infinite;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 100; }
    50%, 100% { stroke-dashoffset: 0; }
}

.trend-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.kpi-badge {
    animation: badgeFloat 3s ease-in-out infinite;
}

.badge-1 {
    animation-delay: 0s;
}

.badge-2 {
    animation-delay: 1.5s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.up-arrow {
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-gray);
}

/* Feature Blocks */
.feature-block {
    margin-bottom: 120px;
}

.feature-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}

.feature-block.reverse .feature-content {
    grid-template-columns: 1fr 400px;
}

.feature-block.reverse .feature-icon {
    order: 2;
}

.feature-block.reverse .feature-text {
    order: 1;
}

/* Feature Icons */
.feature-icon {
    position: relative;
}

.icon-3d {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.icon-3d svg {
    width: 100%;
    height: 300px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.feature-block:hover .icon-3d svg {
    transform: scale(1.05) rotateY(5deg);
}

/* Specific Icon Animations */
.omnichannel-icon .shop-icon {
    animation: bounce 2s ease-in-out infinite;
}

.warehouse-icon .excel-file {
    animation: slideIn 3s ease-in-out infinite;
}

.pos-icon .scanner {
    animation: scan 2s ease-in-out infinite;
}

.promo-icon .tag-1 {
    animation: swing 3s ease-in-out infinite;
}

.promo-icon .tag-2 {
    animation: swing 3s ease-in-out infinite;
    animation-delay: 1s;
}

.loyalty-icon .card {
    animation: cardFlip 4s ease-in-out infinite;
}

.analytics-icon .charts {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slideIn {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
}

@keyframes scan {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

@keyframes cardFlip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(5deg); }
}

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

/* Feature Text */
.feature-text {
    max-width: 600px;
}

.feature-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-emoji {
    font-size: 40px;
}

.feature-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 20px;
}

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

.feature-description strong {
    color: var(--primary);
    font-weight: 600;
}

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

.feature-list li {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-left: 8px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-logo p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

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

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

.footer-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .feature-content,
    .feature-block.reverse .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-icon {
        order: 1 !important;
    }

    .feature-text {
        order: 2 !important;
    }

    .icon-3d svg {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

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

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

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 32px;
        font-size: 16px;
    }

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

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

    .feature-subtitle {
        font-size: 20px;
    }

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-hero,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .badge {
        justify-content: center;
    }

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

    .feature-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .icon-3d svg {
        height: 200px;
    }
}

/* Animation on Scroll */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: var(--white);
}
