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

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f9fafb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-icon {
    height: 45px;
    width: auto;
}

.logo-full {
    height: 50px;
    width: auto;
}

.cta-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cta-button.large {
    padding: 16px 40px;
    font-size: 18px;
    margin-top: 30px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* Banner Scrolling Animation */
.banner-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    padding: 20px 0;
}

.banner-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.banner-content {
    display: flex;
    gap: 80px;
    padding-right: 80px;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.banner-icon {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.banner-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.banner-wrapper:hover .banner-scroll {
    animation-play-state: paused;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.feature-showcase:nth-child(even) {
    animation-delay: 0.1s;
}

.feature-showcase:nth-child(odd) {
    animation-delay: 0.2s;
}

.feature-showcase.reverse {
    direction: rtl;
}

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

.feature-image {
    width: 100%;
}

.feature-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-image img:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-blue);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--primary-blue);
    opacity: 0.5;
    margin-bottom: 16px;
}

.image-placeholder p {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.7;
}

.feature-content {
    padding: 20px;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.3;
}

.feature-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

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

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.modal-content.success-mode {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #10b981 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.6),
                0 0 100px rgba(16, 185, 129, 0.3);
    max-width: 500px;
    padding: 60px 40px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-light);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--primary-blue);
}

.modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 2rem;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-form .cta-button {
    margin-top: 10px;
    width: 100%;
}

.demo-form .cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background-color: #fee;
    border: 2px solid #f44;
    border-radius: 8px;
    padding: 12px 16px;
    color: #c00;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Form and Success States */
.form-state {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), iconPulse 2s ease-in-out 0.6s infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.success-icon svg {
    width: 56px;
    height: 56px;
    color: #10b981;
    stroke-width: 3;
    animation: checkDraw 0.5s ease 0.3s forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-state h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 16px;
    animation: textBounce 0.6s ease 0.4s both;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.success-message {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0;
    line-height: 1.6;
    animation: fadeInUp 0.5s ease 0.6s forwards;
}

@keyframes textBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    60% {
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.close-success {
    color: var(--white);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.8s forwards;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-success:hover,
.close-success:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .banner-content {
        gap: 50px;
        padding-right: 50px;
    }

    .banner-icon {
        width: 40px;
        height: 40px;
    }

    .banner-text {
        font-size: 1.2rem;
    }

    .container-wide {
        padding: 0 20px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 80px;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    .image-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .image-placeholder p {
        font-size: 0.95rem;
    }

    .logo-icon {
        height: 35px;
    }

    .logo-full {
        height: 40px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .cta-button.large {
        padding: 14px 30px;
        font-size: 16px;
    }
}

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

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

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

    .banner-content {
        gap: 40px;
        padding-right: 40px;
    }

    .banner-icon {
        width: 35px;
        height: 35px;
    }

    .banner-text {
        font-size: 1rem;
    }

    .logo-icon {
        height: 32px;
    }

    .logo-full {
        display: none;
    }

    .feature-showcase {
        margin-bottom: 60px;
    }

    .feature-content {
        padding: 10px;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.95rem;
    }

    .image-placeholder svg {
        width: 50px;
        height: 50px;
    }
}

