@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

/* Modern Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mesh-gradient {
    background-color: #ffffff;
    background-image: radial-gradient(at 40% 20%, hsla(250, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 96%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(341, 100%, 96%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(260, 100%, 95%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(220, 100%, 96%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(240, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 0%, hsla(343, 100%, 96%, 1) 0px, transparent 50%);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #4F46E5, #9333EA);
}

.text-gradient-prisa {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #DC2626, #DB2777);
}

.feature-grid-item {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    height: 160px;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.feature-grid-item:hover .feature-card-inner,
.feature-grid-item.flipped .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.feature-card-front {
    background: #ffffff;
    border: 1px solid #e8eaed;
}

.feature-card-back {
    background: linear-gradient(to right, #f43f5e, #ec4899, #ef4444);
    transform: rotateY(180deg);
    color: white;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.feature-grid-item:hover .feature-card-front {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .feature-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 0.75rem;
    }
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.feature-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
}

.platform-tab-btn {
    background: white;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.platform-tab-btn.active {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

.platform-tab-btn:hover:not(.active) {
    background: #F9FAFB;
    border-color: #4F46E5;
}

.platform-tab-content {
    display: none;
}

.platform-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-mockup {
    position: relative;
    width: 280px;
    margin: 0 auto;
    padding: 16px 12px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(0, 0, 0, 0.2) inset;
}

.device-screen {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sign In Dropdown */
#signin-dropdown {
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#signin-dropdown-arrow,
#signin-dropdown-arrow-signup,
#signin-dropdown-arrow-mobile {
    transition: transform 0.2s ease;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
#mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 320px);
    max-width: 320px;
    background: white;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu-panel.active {
    transform: translateX(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Blur header when mobile menu is open */
body.menu-open header {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    pointer-events: none;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

/* Mobile Menu Close Button */
#mobile-menu-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #374151;
    transition: background 0.2s ease, color 0.2s ease;
}

#mobile-menu-close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #374151;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: #f9fafb;
    color: #dc2626;
}

.mobile-menu-link.active {
    font-weight: 600;
}

/* Mobile Menu Section Divider */
.mobile-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.75rem 1.25rem;
}

/* Mobile Menu Section Title */
.mobile-menu-section-title {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Menu Icon Link */
.mobile-menu-icon-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #374151;
    font-size: 0.875rem;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 44px;
}

.mobile-menu-icon-link:hover {
    background: #f9fafb;
    color: #dc2626;
}

.mobile-menu-icon-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.mobile-menu-icon-link:hover svg {
    color: #dc2626;
}

/* Mobile Menu CTA Button */
.mobile-menu-cta {
    display: block;
    margin: 1rem 1.25rem;
    padding: 0.875rem 1.25rem;
    background: #4f46e5;
    color: white;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-cta:hover {
    background: #4338ca;
}