/* --- Index Page Styles --- */

/* --- Hero Section --- */
.hero {
    padding: 5rem 0 7rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e0e7ff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* --- Phone Slider (For Pre-framed Screenshots) --- */
.phone-slider-wrapper {
    width: 100%;
    max-width: 340px; /* Balanced size */
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); /* Adds depth to the pre-framed image */
}

.phone-slider-container {
    width: 100%;
    aspect-ratio: 9/18.5; 
    position: relative;
    overflow: hidden;
}

.phone-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps the phone frame visible */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.phone-slider-container img.active {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

.bg-gray {
    background-color: var(--bg-gray);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

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

.feature-desc {
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- Side by Side Section --- */
.sbs-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.sbs-reverse {
    direction: rtl;
}

.sbs-reverse > * {
    direction: ltr;
}

.sbs-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.sbs-content p {
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.check-list li i {
    color: var(--primary);
    margin-top: 0.25rem;
}

/* --- Pricing Preview --- */
.pricing-preview {
    background-color: var(--bg-dark);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.pricing-preview h2 {
    color: white;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: left;
    transition: all 0.3s;
}

.price-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.price-card.featured {
    background-color: var(--primary);
    border-color: var(--primary-hover);
}

.price-card.featured:hover {
    background-color: var(--primary-hover);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.featured .plan-name {
    color: #bfdbfe;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    color: white;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
}

.featured .plan-price span {
    color: #bfdbfe;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features i {
    color: #4ade80;
}

/* --- Dynamic Role Tabs & Carousel --- */
.role-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.role-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: white;
    border: 2px solid var(--border);
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.role-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.role-tab:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary);
}

.carousel-wrapper {
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 85%;
    max-width: 350px;
    scroll-snap-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.carousel-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.carousel-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carousel-desc {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: white;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

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

/* --- Responsive Overrides --- */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-title { font-size: 2.75rem; }
    .hero-desc { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .sbs-section { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .sbs-content h3 { font-size: 1.75rem; }
    .check-list li { justify-content: center; text-align: left; }
}

@media (max-width: 600px) {
    .hero { padding: 4rem 0; }
    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 2rem; }
}
