:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --background-primary: #ffffff;
    --background-alt: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Code Window */
.code-window {
    background: #1e1b4b;
    border: 1px solid #4f46e5;
    border-radius: 1rem;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 700px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.3);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.window-header {
    background: #312e81;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #4f46e5;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #22c55e; }

.window-title {
    color: #e0e7ff;
    margin-left: 1rem;
    font-size: 0.875rem;
}

/* Animated Flow */
.animated-flow {
    padding: 2rem;
    background: linear-gradient(180deg, #1e1b4b 0%, #2e1065 100%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
    position: relative;
}

.flow-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.25rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flow-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flow-step:hover .flow-box::before {
    opacity: 1;
}

.flow-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-icon i {
    font-size: 1.5rem;
    color: #6366f1;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.flow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.flow-title {
    color: #e0e7ff;
    font-size: 1.125rem;
    font-weight: 600;
}

.flow-detail {
    color: #a5b4fc;
    font-size: 0.875rem;
}

.flow-status {
    color: #34d399;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.flow-step.active .flow-status {
    opacity: 1;
    transform: scale(1);
}

.flow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #6366f1 50%, transparent 50%);
    background-size: 100% 20px;
    position: relative;
    opacity: 0.3;
}

.flow-pulse {
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.flow-step:nth-child(1) { animation-delay: 0.1s; }
.flow-step:nth-child(2) { animation-delay: 0.2s; }
.flow-step:nth-child(3) { animation-delay: 0.3s; }
.flow-step:nth-child(4) { animation-delay: 0.4s; }
.flow-step:nth-child(5) { animation-delay: 0.5s; }

/* Active state animations */
.flow-step.active .flow-box {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.flow-step.active .flow-icon {
    background: rgba(99, 102, 241, 0.3);
}

.flow-step.active .flow-connector {
    opacity: 1;
}

/* Hover effects */
.flow-step:hover .flow-box {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
}

.flow-step:hover .flow-icon {
    background: rgba(99, 102, 241, 0.3);
}

/* Benefits section */
.benefits {
    background: var(--background-alt);
    padding: 4rem 0;
}

.benefits .section-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit-title h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.benefit-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

.flow-benefits {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(30, 27, 75, 0.5);
    border-radius: 0.5rem;
}

.flow-benefits h4 {
    color: #e0e7ff;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.flow-benefits ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.flow-benefits li {
    color: #c7d2fe;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.flow-benefits li i {
    color: #6366f1;
    filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.3));
}

@media (max-width: 768px) {
    .benefits .section-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--background-primary);
    position: relative;
}

.section-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #6366f1;
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Implementation Section */
.implementation {
    padding: 4rem 0;
    background: var(--background);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.5) 50%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 1;
}

.timeline-item {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.timeline-content {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.timeline-icon i {
    color: white;
    font-size: 1.25rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.implementation-note {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.implementation-note i {
    font-size: 1.5rem;
    color: #6366f1;
}

.implementation-note p {
    margin: 0;
    color: var(--text-primary);
}

.implementation-note strong {
    color: #6366f1;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::before {
        top: 0;
        bottom: 0;
        left: 2rem;
        width: 2px;
        height: auto;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .implementation-note {
        margin: 2rem 1rem 0;
        flex-direction: column;
        text-align: center;
    }
}

/* Pricing Section */
.pricing {
    background: var(--background-alt);
    padding: 4rem 0;
}

.pricing-plans {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plan {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.plan.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-features {
    text-align: left;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.plan-features i {
    color: var(--primary-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

/* Buttons */
.primary-button {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.primary-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: 0.5s;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -3px rgba(99, 102, 241, 0.5);
}

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

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(99, 102, 241, 0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.badge i {
    font-size: 1rem;
    color: #6366f1;
}

.badge:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .tech-badges {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .tech-badges::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .badge {
        flex-shrink: 0;
    }
}

/* Footer */
.footer {
    background: var(--background-alt);
    padding: 4rem 0 2rem;
    color: var(--text-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* New Animations */
@keyframes slideInAndScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInAndGrow {
    0% {
        opacity: 0;
        height: 0;
    }
    100% {
        opacity: 1;
        height: 30px;
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
    }
}

@keyframes dotPulseAndRotate {
    0% {
        transform: translate(-50%, 50%) scale(1) rotate(0deg);
        box-shadow: 0 0 10px #6366f1;
    }
    50% {
        transform: translate(-50%, 50%) scale(1.3) rotate(180deg);
        box-shadow: 0 0 15px #6366f1;
    }
    100% {
        transform: translate(-50%, 50%) scale(1) rotate(360deg);
        box-shadow: 0 0 10px #6366f1;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    60% {
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delays */
.flow-step:nth-child(1) { animation-delay: 0.1s; }
.flow-step:nth-child(2) { animation-delay: 0.3s; }
.flow-step:nth-child(3) { animation-delay: 0.5s; }
.flow-step:nth-child(4) { animation-delay: 0.7s; }
.flow-step:nth-child(5) { animation-delay: 0.9s; }

.flow-step:nth-child(1) .flow-connector { animation-delay: 0.2s; }
.flow-step:nth-child(2) .flow-connector { animation-delay: 0.4s; }
.flow-step:nth-child(3) .flow-connector { animation-delay: 0.6s; }
.flow-step:nth-child(4) .flow-connector { animation-delay: 0.8s; }

.flow-benefits li:nth-child(1) { animation-delay: 1.1s; }
.flow-benefits li:nth-child(2) { animation-delay: 1.2s; }
.flow-benefits li:nth-child(3) { animation-delay: 1.3s; }
.flow-benefits li:nth-child(4) { animation-delay: 1.4s; }

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

    .hero-text {
        text-align: center;
    }

    .code-window {
        margin-top: 3rem;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .flow-box {
        width: 90%;
        padding: 0.875rem 1.5rem;
    }

    .flow-benefits ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .features-grid,
    .implementation-steps,
    .pricing-plans {
        grid-template-columns: 1fr;
    }

    .plan {
        padding: 2rem;
    }

    .code-window {
        height: 450px;
    }

    .flow-box {
        width: 95%;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* WhatsApp Nav Button */
.whatsapp-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    margin-right: 1rem;
}

.whatsapp-nav-button i {
    font-size: 1.25rem;
}

.whatsapp-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    background: #22c35e;
}

@media (max-width: 768px) {
    .whatsapp-nav-button {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 0.75rem;
    }

    .whatsapp-nav-button i {
        font-size: 1.125rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    padding: 0;
    z-index: 1001;
    transition: transform 0.2s ease-in-out;
}

.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #6366f1;
    top: 50%;
    left: 0;
    transition: background-color 0.2s ease;
}

.close-modal::before {
    transform: rotate(45deg);
}

.close-modal::after {
    transform: rotate(-45deg);
}

.close-modal:hover {
    transform: rotate(90deg);
}

.close-modal:hover::before,
.close-modal:hover::after {
    background-color: #4f46e5;
}

/* Add a subtle circle background on hover */
.close-modal::before,
.close-modal::after {
    border-radius: 1px;
}

.close-modal:hover::before,
.close-modal:hover::after {
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

/* Remove the × character since we're using pseudo-elements */
.close-modal {
    font-size: 0;
}

.receipt {
    display: none;
    padding: 20px;
}

.receipt h3 {
    color: #4f46e5;
    margin-bottom: 20px;
    text-align: center;
}

.receipt-details {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.receipt-details p {
    margin: 10px 0;
    font-size: 14px;
}

.qr-placeholder {
    text-align: center;
    margin: 20px 0;
    color: #4f46e5;
}

.confirmation-item {
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Overview Section */
.overview {
    background: var(--primary-color);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.overview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.overview-text {
    color: white;
    font-size: 1.75rem;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.1em;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 500;
    hyphens: auto;
}

/* Security Section */
.security {
    padding: 4rem 0;
    background: var(--background-primary);
}

.security-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.security-item {
    text-align: center;
    padding: 2rem;
}

.security-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-alt);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 2rem;
}

.security-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.security-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--background);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: center;
}

.payment-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.flow-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #6366f1;
}

.flow-icon i {
    font-size: 2rem;
    color: #6366f1;
}

.flow-item span {
    font-weight: 600;
    color: #4f46e5;
    font-size: 0.9rem;
}

.flow-arrow {
    color: #6366f1;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .payment-flow-diagram {
        flex-direction: column;
        padding: 1.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-features .feature i {
    color: #6366f1;
    font-size: 1.25rem;
}

.contact-features .feature span {
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-form {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--text-primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.submit-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    .contact-features {
        align-items: center;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* WhatsApp Button */
.whatsapp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.whatsapp-icon {
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .whatsapp-button {
        padding: 0.875rem 1.5rem;
        font-size: 1.125rem;
    }

    .whatsapp-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Split&Go Section */
.split-and-go {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--background-primary), var(--background-alt));
}

.split-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.split-demo, .merchant-preview {
    background: var(--background-primary);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.window-header {
    background: var(--background-alt);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #28c840; }

.window-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.demo-content {
    padding: 2rem;
    background: #1e1b4b;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.payment-flow {
    position: relative;
    height: 100%;
}

.payment-step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) rgba(255, 255, 255, 0.1);
    display: none;
}

.payment-step.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.step-content {
    color: #e0e7ff;
    padding-right: 1rem;
    min-height: 100%;
}

.payment-plans {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.plan-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.plan-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.plan-option.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-weight: 500;
}

.plan-total {
    color: #6366f1;
    font-weight: 600;
}

.plan-splits {
    display: grid;
    gap: 0.75rem;
}

.split-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.split-method i {
    font-size: 1.25rem;
    color: #6366f1;
}

.split-method strong {
    margin-left: auto;
    color: #e0e7ff;
}

.processing-animation {
    padding: 2rem;
}

.processing-methods {
    display: grid;
    gap: 1.5rem;
}

.process-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.process-method i {
    font-size: 1.5rem;
    color: #6366f1;
}

.process-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.process-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #6366f1;
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.success-animation {
    text-align: center;
    margin-bottom: 2rem;
}

.success-animation i {
    font-size: 4rem;
    color: #34d399;
    animation: scale-in 0.5s ease-out;
}

@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-details {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.confirmation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.confirmation-item i {
    font-size: 1.5rem;
}

.confirmation-item i.success {
    color: #10b981;
}

.success-step h4 {
    font-size: 1.5rem;
    color: #6366f1;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.demo-navigation {
    background: var(--background-alt);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-button {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-button:hover:not(:disabled) {
    opacity: 1;
    transform: scale(1.1);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.step-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.indicator.active {
    background: #6366f1;
    transform: scale(1.2);
}

/* Merchant Preview */
.merchant-content {
    padding: 2rem;
    background: var(--background-primary);
}

.merchant-form {
    max-width: 400px;
    margin: 0 auto;
}

.merchant-form h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--background-alt);
    color: var(--text-primary);
}

.split-config {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.config-item i {
    font-size: 1.25rem;
    color: #6366f1;
}

.config-item span {
    color: var(--text-secondary);
}

.config-item input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background: var(--background-primary);
    color: var(--text-primary);
    text-align: center;
    margin-left: auto;
}

.merchant-button {
    width: 100%;
    padding: 1rem;
    background: var(--background-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.merchant-button:hover {
    background: var(--background-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

    .merchant-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .demo-content {
        min-height: 400px;
    }

    .product-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .split-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .split-method strong {
        margin: 0;
    }
}

.cart-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.product-image {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    flex-shrink: 0;
}

.product-details {
    flex-grow: 1;
}

.product-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #e0e7ff;
}

.product-details p {
    color: #a5b4fc;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.cart-total strong {
    font-size: 1.5rem;
    color: #6366f1;
}

.split-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.split-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.split-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    padding: 0;
    z-index: 1001;
    transition: transform 0.2s ease-in-out;
}

.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #6366f1;
    top: 50%;
    left: 0;
    transition: background-color 0.2s ease;
}

.close-modal::before {
    transform: rotate(45deg);
}

.close-modal::after {
    transform: rotate(-45deg);
}

.close-modal:hover {
    transform: rotate(90deg);
}

.close-modal:hover::before,
.close-modal:hover::after {
    background-color: #4f46e5;
}

/* Add a subtle circle background on hover */
.close-modal::before,
.close-modal::after {
    border-radius: 1px;
}

.close-modal:hover::before,
.close-modal:hover::after {
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

/* Remove the × character since we're using pseudo-elements */
.close-modal {
    font-size: 0;
}

.receipt {
    display: none;
    padding: 20px;
}

.receipt h3 {
    color: #4f46e5;
    margin-bottom: 20px;
    text-align: center;
}

.receipt-details {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.receipt-details p {
    margin: 10px 0;
    font-size: 14px;
}

.qr-placeholder {
    text-align: center;
    margin: 20px 0;
    color: #4f46e5;
}

.confirmation-item {
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Merchant Panel Payment Methods */
.merchant-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    height: calc(100% - 40px);
}

.payment-methods-panel {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
}

.payment-methods-panel h4 {
    color: #4f46e5;
    margin-bottom: 15px;
    font-size: 14px;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: move;
    transition: all 0.2s ease;
}

.payment-method-item:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.payment-method-item i {
    color: #6366f1;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.payment-method-item span {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.payment-method-item[draggable="true"] {
    user-select: none;
}

.payment-method-item[draggable="true"]:active {
    opacity: 0.7;
}

.plan-configuration {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}
