/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Proxima Nova", "Inter", system-ui, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* CSS Custom Properties */
:root {
    --brand-color-primary: #009fd8;
    --brand-color-secondary: #e9a447;
    --brand-color-tertiary: #e44235;
    --brand-contact-input: rgba(255,255,255,0.09);
    --shadow-glow: 0 0 20px rgba(237, 29, 126, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 2px solid var(--brand-color-primary);
    border-radius: 0.25rem;
    background: var(--brand-color-primary);
    color: white;
    font-weight: 600;
    z-index: 9999;
}

.hidden {
    display: none;
}

/* Utility classes */
.gradient-text {
    background: linear-gradient(to right, var(--brand-color-secondary), var(--brand-color-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

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

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 50;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(128, 90, 213, 0.2);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.navbar-logo .logo-img {
    height: 2rem;
    max-height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.navbar-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-color-primary);
}

.nav-cta {
    background: linear-gradient(to right, #1280a8, var(--brand-color-primary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    background: linear-gradient(to right, var(--brand-color-primary), var(--brand-color-primary));
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    max-height: 16rem;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 1rem;
    background: rgba(11, 16, 38, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(128, 90, 213, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--brand-color-primary);
}

.mobile-nav-cta {
    background: linear-gradient(to right, #1280a8, var(--brand-color-primary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

/* Integration Section */
.integration-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 1rem;
    border-bottom: 1px solid rgba(128, 90, 213, 0.1);
}

.integration-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.integration-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    line-height: 1.2;
    text-align: center;
}

.integration-btn {
    margin: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Main content */
.main-content {
    background-color: white;
    color: black;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem 5rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to bottom right, var(--brand-color-secondary), var(--brand-color-tertiary));
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.4;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-subtitle {
    font-weight: bold;
    color: var(--brand-color-primary);
    font-size: 1.25rem;
    padding-top: 4rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 64rem;
    margin: 0 auto 2rem;
    text-align: center;
    color: #6b7280;
    line-height: 1.6;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 4rem;
}

.btn-primary {
    color: white;
    background: linear-gradient(to right, var(--brand-color-secondary), var(--brand-color-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: scale(1);
    min-height: 44px;
    max-width: 200px;
    margin: 0 0;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--brand-color-tertiary), var(--brand-color-secondary));
    transform: scale(1.05);
}

.btn-arrow {
    margin-left: 0.5rem;
}

.btn-secondary {
    border: 2px solid var(--brand-color-primary);
    padding: 0.75rem 2rem;
    color: var(--brand-color-primary);
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--brand-color-primary);
    color: white;
}

.hero-image {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Features Section */
.features-section {
    padding: 5rem 1rem 10rem;
}

.features-intro {
    text-align: center;
    max-width: 96rem;
    margin: 0 auto 5rem;
}

.features-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.features-description {
    font-size: 1.125rem;
    max-width: 64rem;
    margin: 0 auto 3rem;
    text-align: center;
    color: #6b7280;
    line-height: 1.6;
}

.video-container {
    margin: 3rem auto 0;
    max-width: 80rem;
}

.video-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(219, 39, 119, 0.2));
    padding: 1rem;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.video-link {
    color: #ec4899;
    text-decoration: underline;
}

/* Feature Blocks */
.feature-blocks {
    display: grid;
    gap: 4rem;
    padding: 3rem 0 5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.feature-text {
    padding: 0 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.feature-img {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
}

/* Testimonial Section */
.testimonial-section {
    background-color: #FAF8ED;
    color: black;
    padding: 3rem 1rem 5rem;
    text-align: center;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    background-color: #FAF9E6;
    padding: 0 1rem;
}

.testimonial-slider {
    position: relative;
    background-color: #FAF9E6;
    padding: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
    border-radius: 1rem;
}

.quote-icon {
    margin: 0 auto 1.5rem;
    width: 3rem;
    height: 3rem;
    color: #374151;
}

.testimonial-content {
    min-height: 7.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3rem;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-weight: 600;
    color: black;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    font-style: normal;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem;
    border: 2px solid black;
    border-radius: 50%;
    background: white;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav:hover {
    background-color: black;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
    left: -1rem;
}

.testimonial-next {
    right: -1rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #6b7280;
}

.dot.active {
    background-color: black;
    transform: scale(1.25);
}

.progress-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.progress-bar {
    width: 4rem;
    height: 0.25rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background-color: black;
    border-radius: 9999px;
    animation: progress 5s linear infinite;
}

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

/* CTA Section */
.cta-section {
    background-color: white;
    text-align: center;
    padding: 3rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--brand-color-primary);
    padding: 3rem 1rem;
    color: white;
}

.contact-container {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-weight: bold;
    color: white;
    font-size: 1.5rem;
    padding-top: 4rem;
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 36rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.form-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    text-align: left;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: black;
}

.optional {
    color: #6b7280;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.09);
    border-radius: 0.25rem;
    color: white;
    border: 1px solid black;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #ec4899;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.form-input:disabled {
    opacity: 0.5;
}

.form-status {
    grid-column: 1 / -1;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.form-status.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-submit {
    grid-column: 1 / -1;
    background: linear-gradient(to bottom right, #1280a8, var(--brand-color-primary));
    color: white;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-submit:hover {
    background: linear-gradient(to bottom right, var(--brand-color-primary), #1280a8);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spinner {
    animation: spin 1s linear infinite;
    height: 1.25rem;
    width: 1.25rem;
    color: white;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-alternative {
    margin-top: 2rem;
    color: white;
}

.contact-email {
    color: black;
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .features-title {
        font-size: 2.25rem;
    }
    
    .feature-title {
        font-size: 1.875rem;
    }
    
    .testimonial-quote {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .quote-icon {
        width: 4rem;
        height: 4rem;
    }
}

@media (min-width: 768px) {
    .navbar-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .navbar-logo .logo-img {
        height: 2.5rem;
        max-height: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .integration-title {
        font-size: 1.75rem;
    }
    
    .features-title {
        font-size: 3rem;
    }
    
    .features-description {
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 2.25rem;
    }
    
    .feature-description {
        font-size: 1.25rem;
    }
    
    .contact-title {
        font-size: 1.875rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .video-wrapper {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.875rem;
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .integration-title {
        font-size: 2rem;
    }
    
    .features-title {
        font-size: 3.75rem;
    }
    
    .feature-title {
        font-size: 3rem;
    }
    
    .feature-block {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .feature-reverse .feature-text {
        order: 2;
    }
    
    .feature-reverse .feature-image {
        order: 1;
    }
    
    .feature-text {
        padding: 0 2rem;
    }
    
    .testimonial-nav {
        padding: 1rem;
    }
    
    .testimonial-prev {
        left: 1rem;
    }
    
    .testimonial-next {
        right: 1rem;
    }
    
    .testimonial-content {
        padding: 0 5rem;
        min-height: 8.75rem;
    }
    
    .testimonial-quote {
        font-size: 1.875rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .integration-title {
        font-size: 2.25rem;
    }
    
    .features-title {
        font-size: 4.5rem;
    }
    
    .feature-title {
        font-size: 3.75rem;
    }
    
    .contact-title {
        font-size: 3.75rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--brand-color-primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007bb8;
}
