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

:root {
    /* Seraph Systems Color Palette */
    --primary-color: #1E54A1;
    --primary-dark: #153d7a;
    --primary-light: #5B8DEF;
    --secondary-color: #4A7DD9;
    --accent-color: #5B8DEF;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    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.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    background: transparent;
}

.footer-logo {
    opacity: 1;
    /* Transparent background logo works on dark footer */
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    transition: right 0.3s ease;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(30, 84, 161, 0.1);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 84, 161, 0.1);
    border: 1px solid rgba(30, 84, 161, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

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

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

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

/* Environment Toggle */
.environment-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.environment-toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.environment-toggle {
    display: flex;
    gap: 3px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.environment-toggle:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 84, 161, 0.1);
}

.env-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.env-btn:hover {
    background: rgba(30, 84, 161, 0.1);
    color: var(--primary-color);
}

.env-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.env-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Seraph ID Form */
.seraph-id-form {
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 4px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-xl);
}

.input-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    margin-left: 16px;
    flex-shrink: 0;
}

.seraph-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.seraph-input::placeholder {
    color: var(--text-light);
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 84, 161, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.login-button:hover .arrow-icon {
    transform: translateX(4px);
}

.error-message {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: var(--error-color);
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Marketing Intro Section */
.marketing-intro-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(30, 84, 161, 0.03), rgba(91, 141, 239, 0.03));
    text-align: center;
}

.marketing-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Marketing Section */
.marketing-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.marketing-content {
    max-width: 1400px;
    margin: 0 auto;
}

.marketing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.marketing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(91, 141, 239, 0.1);
    border: 1px solid rgba(91, 141, 239, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.marketing-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.marketing-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.marketing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.marketing-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.marketing-feature-card {
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.marketing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 84, 161, 0.1), rgba(91, 141, 239, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card-icon svg {
    width: 24px;
    height: 24px;
}

.marketing-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.marketing-feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.benefits-header,
.pricing-header,
.demo-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.benefit-card {
    padding: 32px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 84, 161, 0.15), rgba(91, 141, 239, 0.15));
    border-radius: 16px;
    color: var(--primary-color);
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.benefit-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Customers Section */
.customers-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.customers-header {
    text-align: center;
    margin-bottom: 60px;
}

.customers-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.customers-carousel {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: flex-start;
    animation: scroll 40s linear infinite;
    will-change: transform;
    width: max-content;
    /* Performance optimization */
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.customers-carousel:hover,
.customers-carousel:focus-within {
    animation-play-state: paused;
}

/* Pause animation when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .customers-carousel {
        animation: none;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .customers-carousel-wrapper {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.customer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 120px;
    min-width: 200px;
    width: 200px;
}

.customer-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.customer-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    will-change: filter, opacity;
}

.customer-logo:hover img,
.customer-logo:focus-within img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Accessibility: Focus states */
.customer-logo:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 12px;
}

.customer-logo:hover img,
.customer-logo:focus-within img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Accessibility: Focus states */
.customer-logo:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 12px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .customers-carousel {
        animation: none;
    }
    
    .customer-logo img {
        transition: none;
    }
    
    .customer-logo:hover img {
        transform: none;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 16 - 60px * 15));
    }
}

/* Responsive adjustments for customers section */
@media (max-width: 768px) {
    .customers-section {
        padding: 60px 0;
    }

    .customers-header {
        margin-bottom: 40px;
    }

    .customers-carousel-wrapper {
        padding: 30px 0;
    }

    .customers-carousel {
        gap: 40px;
        animation-duration: 30s;
    }

    .customer-logo {
        height: 100px;
        min-width: 160px;
        width: 160px;
        padding: 15px 30px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 16 - 40px * 15));
        }
    }
}

@media (max-width: 640px) {
    .customers-carousel {
        gap: 30px;
    }

    .customer-logo {
        height: 80px;
        min-width: 140px;
        width: 140px;
        padding: 12px 24px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 16 - 30px * 15));
        }
    }
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.pricing-card {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(30, 84, 161, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header-card {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.pricing-header-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-price .currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-price .amount.custom-amount {
    font-size: 32px;
    font-weight: 700;
}

.pricing-period {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 84, 161, 0.3);
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Demo Section */
.demo-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.demo-content {
    max-width: 900px;
    margin: 0 auto;
}

.demo-form-wrapper {
    margin-top: 48px;
}

/* Demo Form */
.demo-form-card {
    padding: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

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

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 84, 161, 0.1);
}

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

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 84, 161, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

/* Footer */
.footer {
    padding: 48px 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .nav-brand {
    color: white;
}

.footer-brand .logo-icon {
    color: var(--primary-light);
}

.footer-tagline {
    color: var(--text-light);
    font-size: 14px;
}

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

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.7;
}

.footer-copyright a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: white;
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .marketing-grid {
        grid-template-columns: 1fr;
    }

    .demo-form-container {
        position: static;
    }

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

    .hero-features {
        flex-direction: column;
        gap: 24px;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .language-selector {
        width: 100%;
        margin-top: 24px;
        justify-content: center;
    }

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

    .marketing-description {
        font-size: 18px;
    }

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

    .input-wrapper {
        flex-direction: column;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .input-wrapper:focus-within {
        border: none;
        box-shadow: none;
    }

    .input-icon {
        display: none;
    }

    .seraph-input {
        width: 100%;
        padding: 16px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        background: var(--bg-primary);
        margin-bottom: 12px;
        font-size: 16px;
    }

    .seraph-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(30, 84, 161, 0.1);
    }

    .login-button {
        width: 100%;
        padding: 16px;
        justify-content: center;
    }

    .hero-features {
        gap: 16px;
    }

    .feature-item {
        font-size: 13px;
    }

    .demo-form-card {
        padding: 32px 20px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-header-card {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }

    .pricing-price .amount {
        font-size: 42px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    .benefit-card h3 {
        font-size: 20px;
    }
}

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

    .navbar {
        padding: 12px 0;
    }

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

    .hero-section {
        padding: 90px 0 50px;
        min-height: auto;
    }

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

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .environment-toggle-wrapper {
        margin-bottom: 24px;
    }

    .environment-toggle-label {
        font-size: 14px;
    }

    .env-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .marketing-section {
        padding: 60px 0;
    }

    .marketing-intro-section {
        padding: 50px 0;
    }

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

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

    .benefits-section {
        padding: 60px 0;
    }

    .benefits-header,
    .pricing-header,
    .demo-header {
        margin-bottom: 40px;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

    .demo-section {
        padding: 60px 0;
    }

    .demo-form-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .demo-form {
        gap: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-button {
        padding: 16px;
        font-size: 16px;
    }

    .footer {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .footer-link {
        padding: 8px 0;
    }

    .pricing-section {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .pricing-price .amount {
        font-size: 36px;
    }

    .pricing-price .currency {
        font-size: 18px;
    }

    .pricing-period {
        font-size: 13px;
    }

    .pricing-features li {
        padding: 10px 0;
        font-size: 14px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-item {
        padding: 14px;
        font-size: 14px;
    }

    .benefit-icon {
        width: 56px;
        height: 56px;
    }

    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }

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

    .feature-item {
        font-size: 12px;
        gap: 8px;
    }

    .feature-icon {
        width: 18px;
        height: 18px;
    }

    /* Improve touch targets */
    .nav-link,
    .lang-btn,
    .pricing-button,
    .submit-button,
    .login-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for mobile */
    .marketing-intro-content {
        padding: 0;
    }

    .demo-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

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

    .pricing-price .amount {
        font-size: 32px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .benefit-card {
        padding: 20px 16px;
    }

    .benefit-card h3 {
        font-size: 18px;
    }

    .demo-form-card {
        padding: 20px 16px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero-background {
        overflow: hidden;
    }

    .gradient-orb {
        filter: blur(60px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 40px;
    }

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

    .nav-links {
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* Smooth transitions for mobile menu */
@media (max-width: 768px) {
    .nav-links {
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Overlay for mobile menu */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
}

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

/* Improve button touch targets */
@media (max-width: 768px) {
    button,
    .pricing-button,
    .submit-button,
    .login-button,
    .lang-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Better form spacing on mobile */
@media (max-width: 640px) {
    .form-row {
        gap: 20px;
    }

    .form-group {
        gap: 10px;
    }

    .environment-toggle-wrapper {
        flex-direction: row;
        gap: 10px;
        margin-top: 12px;
    }

    .environment-toggle {
        width: auto;
        justify-content: center;
    }

    .env-btn {
        flex: 0 1 auto;
        padding: 8px 14px;
        font-size: 12px;
    }

    .environment-toggle-label {
        font-size: 12px;
    }
}
