/* ============================================
   OROPTICA SOLUTION PAGE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR (same as landing) ===== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #1e293b;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .material-symbols-outlined {
    color: #fff;
    font-size: 1.375rem;
}

.nav-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-login-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.nav-login-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.nav-lang-selector {
    position: relative;
}

.nav-lang-select {
    padding: 0.4rem 1.75rem 0.4rem 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: border-color 0.15s;
    min-width: 120px;
    font-family: inherit;
}

.nav-lang-select:hover,
.nav-lang-select:focus {
    outline: none;
    border-color: #94a3b8;
}

/* ===== HERO ===== */
.sol-hero {
    position: relative;
    padding: 10rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
    background: #fafbfd;
}

.sol-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sol-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.sol-hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.sol-hero-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.sol-hero-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    top: 30%;
    left: -80px;
}

.sol-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sol-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.sol-hero-badge .material-symbols-outlined {
    font-size: 1rem;
}

.sol-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.sol-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.sol-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.sol-hero-btn .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.sol-hero-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.sol-hero-btn:hover .material-symbols-outlined {
    transform: translateY(3px);
}

/* ===== SHARED SECTION STYLES ===== */
.sol-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sol-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.sol-section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.sol-badge {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.sol-badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    border-color: rgba(255, 255, 255, 0.15);
}

.sol-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.sol-section-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.sol-features {
    padding: 6rem 2rem;
    background: #ffffff;
}

.sol-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sol-feature-card {
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    background: #fafbfd;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.sol-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sol-feature-card:nth-child(1) { transition-delay: 0s; }
.sol-feature-card:nth-child(2) { transition-delay: 0.06s; }
.sol-feature-card:nth-child(3) { transition-delay: 0.12s; }
.sol-feature-card:nth-child(4) { transition-delay: 0.18s; }
.sol-feature-card:nth-child(5) { transition-delay: 0.24s; }
.sol-feature-card:nth-child(6) { transition-delay: 0.30s; }
.sol-feature-card:nth-child(7) { transition-delay: 0.36s; }
.sol-feature-card:nth-child(8) { transition-delay: 0.42s; }

.sol-feature-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.sol-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.sol-feature-icon .material-symbols-outlined {
    color: var(--accent);
    font-size: 1.5rem;
}

.sol-feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.sol-feature-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===== WHY SECTION ===== */
.sol-why {
    padding: 6rem 2rem;
    background: #f8fafc;
}

.sol-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sol-why-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.sol-why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sol-why-card:nth-child(1) { transition-delay: 0s; }
.sol-why-card:nth-child(2) { transition-delay: 0.1s; }
.sol-why-card:nth-child(3) { transition-delay: 0.2s; }

.sol-why-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.sol-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.sol-why-icon .material-symbols-outlined {
    color: #ffffff;
    font-size: 1.625rem;
}

.sol-why-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.sol-why-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.sol-why-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===== DEMO SECTION ===== */
.sol-demo {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.sol-demo-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sol-demo-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.sol-demo-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sol-demo-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.sol-demo-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.sol-demo-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.sol-demo-subtitle {
    font-size: 1.0625rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
}

.sol-demo .sol-section-header {
    margin-bottom: 2.5rem;
}

/* Demo Form */
.sol-demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.sol-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

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

.sol-form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
}

.sol-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 0.875rem;
    transition: all 0.2s ease;
}

.sol-input-wrap:focus-within {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sol-input-wrap .material-symbols-outlined {
    font-size: 1.125rem;
    color: #64748b;
    flex-shrink: 0;
}

.sol-input-wrap input,
.sol-input-wrap textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #ffffff;
    padding: 0.75rem 0;
}

.sol-input-wrap input::placeholder,
.sol-input-wrap textarea::placeholder {
    color: #475569;
}

.sol-textarea-wrap {
    align-items: flex-start;
}

.sol-textarea-wrap .material-symbols-outlined {
    margin-top: 0.75rem;
}

.sol-textarea-wrap textarea {
    resize: vertical;
    min-height: 60px;
}

.sol-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    margin-top: 0.5rem;
    width: 100%;
}

.sol-demo-btn .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.sol-demo-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.sol-demo-btn:hover:not(:disabled) .material-symbols-outlined {
    transform: translateX(3px);
}

.sol-demo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Demo alert messages */
.sol-demo-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sol-demo-alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sol-demo-alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Demo button spinner */
.sol-btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: solSpin 1s linear infinite;
}

@keyframes solSpin {
    to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.sol-footer {
    padding: 2rem;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sol-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sol-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sol-footer-brand .nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sol-footer-brand .nav-logo .material-symbols-outlined {
    font-size: 1.125rem;
}

.sol-footer-brand .nav-brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.sol-footer-copy {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ===== ROLE MODAL (same as landing) ===== */
.role-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.role-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.role-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    transform: translateY(16px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.role-modal-overlay.active .role-modal {
    transform: translateY(0) scale(1);
}

.role-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.role-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.role-modal-close .material-symbols-outlined {
    font-size: 1.25rem;
}

.role-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.role-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.role-modal-icon .material-symbols-outlined {
    color: #ffffff;
    font-size: 1.75rem;
}

.role-modal-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.role-modal-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
}

.role-modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.role-option:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.03);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.role-option-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-option-icon .material-symbols-outlined {
    color: var(--accent);
    font-size: 1.375rem;
}

.role-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.role-option-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.role-option-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.role-option-arrow {
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.role-option:hover .role-option-arrow {
    color: #3b82f6;
    transform: translateX(2px);
}

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

    .sol-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 0 1.25rem;
        height: 64px;
    }

    .sol-hero {
        padding: 7rem 1.25rem 4rem;
    }

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

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

    .sol-features {
        padding: 4rem 1.25rem;
    }

    .sol-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sol-why {
        padding: 4rem 1.25rem;
    }

    .sol-why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sol-section-title {
        font-size: 1.75rem;
    }

    .sol-section-subtitle {
        font-size: 0.9375rem;
    }

    .sol-demo {
        padding: 4rem 1.25rem;
    }

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

    .sol-demo-title {
        font-size: 1.5rem;
    }

    .sol-footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-lang-select {
        min-width: 100px;
        font-size: 0.75rem;
        padding: 0.375rem 1.5rem 0.375rem 0.5rem;
    }

    .role-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

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

    .sol-hero-badge {
        font-size: 0.75rem;
    }

    .nav-brand-text {
        font-size: 1.125rem;
    }

    .nav-login-btn {
        padding: 0.4375rem 1rem;
        font-size: 0.8125rem;
    }

    .sol-feature-card {
        padding: 1.5rem;
    }

    .sol-why-card {
        padding: 2rem 1.5rem;
    }

    .nav-lang-select {
        min-width: 90px;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .sol-hero {
    text-align: right;
}

[dir="rtl"] .sol-hero-inner {
    text-align: right;
}

[dir="rtl"] .sol-hero-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .sol-hero-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .sol-hero-btn:hover .material-symbols-outlined {
    transform: translateY(3px);
}

[dir="rtl"] .sol-section-header {
    text-align: center;
}

[dir="rtl"] .sol-feature-card {
    text-align: right;
}

[dir="rtl"] .sol-demo-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .role-option {
    flex-direction: row-reverse;
}

[dir="rtl"] .role-option-text {
    text-align: right;
}

[dir="rtl"] .role-option-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .role-option:hover .role-option-arrow {
    transform: scaleX(-1) translateX(2px);
}

[dir="rtl"] .nav-lang-selector {
    direction: ltr;
}

[dir="rtl"] .sol-input-wrap {
    flex-direction: row-reverse;
}

[dir="rtl"] .sol-form-group label {
    text-align: right;
}

[dir="rtl"] .sol-input-wrap input,
[dir="rtl"] .sol-input-wrap textarea {
    text-align: right;
}

[dir="rtl"] .role-modal-close {
    right: auto;
    left: 1rem;
}
