/* Landing Page Styles */

/* Languages Marquee */
.languages-marquee {
    padding: 0.5rem 1rem 1.5rem;
}

.languages-marquee__container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.languages-marquee__badge {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(120deg, #a855f7, #7c3aed);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
    white-space: nowrap;
}

[data-bs-theme="dark"] .languages-marquee__badge {
    color: #ffffff;
    background: linear-gradient(120deg, rgba(168, 85, 247, 0.92), rgba(124, 58, 237, 0.95));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.55);
}

.languages-marquee__viewport {
    overflow: hidden;
	background-color: transparent;
}

.languages-marquee__track {
    display: flex;
    gap: 1rem;
    animation: languages-marquee-scroll 22s linear infinite;
}

.languages-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.15);
    font-weight: 600;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .languages-marquee__item {
    background: rgba(17, 24, 39, 0.92);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.languages-marquee__flag {
    font-size: 1.1rem;
}

.languages-marquee__name {
    font-size: 0.95rem;
}

@keyframes languages-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .languages-marquee__container {
        flex-direction: column;
        align-items: flex-start;
    }

    .languages-marquee__viewport {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(139, 92, 246, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .hero-title {
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-bs-theme="dark"] .hero-subtitle {
    color: var(--muted-dark);
}

/* Hero CTA */
.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.hero-cta .btn:hover::before {
    left: 100%;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}

/* Access Section */
.access-section {
    padding: 70px 20px;
}

.access-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.access-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
}

[data-bs-theme="dark"] .access-eyebrow {
    color: var(--muted-dark);
}

.access-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

[data-bs-theme="dark"] .access-header h2 {
    color: var(--text-light);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.access-card {
    position: relative;
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(124, 58, 237, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 210px;
    text-decoration: none;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
}

[data-bs-theme="dark"] .access-card {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
}

.access-card:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.6);
    outline-offset: 4px;
}

.access-card.access-card--android,
.access-card.access-card--chrome {
    cursor: pointer;
}

.access-card.access-card--android {
    background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
    border-color: rgba(52, 211, 153, 0.5);
}

[data-bs-theme="dark"] .access-card.access-card--android {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.15));
    border-color: rgba(52, 211, 153, 0.35);
}

.access-card.access-card--chrome {
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
    border-color: rgba(14, 165, 233, 0.45);
}

[data-bs-theme="dark"] .access-card.access-card--chrome {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.18));
    border-color: rgba(125, 211, 252, 0.5);
}

.access-card.access-card--soon {
    cursor: default;
    opacity: 0.8;
}

.access-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.14);
    border-color: rgba(124, 58, 237, 0.35);
}

[data-bs-theme="dark"] .access-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
}

.access-card--soon:hover {
    transform: none;
    box-shadow: inherit;
}

.access-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

[data-bs-theme="dark"] .access-icon {
    background: rgba(255, 255, 255, 0.08);
}

.access-copy h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .access-copy h3 {
    color: var(--text-light);
}

.access-copy p {
    margin: 0;
    color: var(--text-gray);
    font-weight: 500;
}

[data-bs-theme="dark"] .access-copy p {
    color: var(--muted-dark);
}

.access-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
}

.access-badge--beta {
    background: #f59e0b;
    color: #0f172a;
}

.access-badge--live {
    background: #22d3ee;
    color: #0f172a;
}

.access-badge--soon {
    background: rgba(148, 163, 184, 0.4);
    color: rgba(15, 23, 42, 0.7);
}

[data-bs-theme="dark"] .access-badge--soon {
    color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 600px) {
    .access-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Android Modal */
.android-access-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.5rem;
    background: var(--bs-body-bg, #ffffff);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

[data-bs-theme="dark"] .android-access-modal .modal-content {
    background: rgba(0, 0, 0, 0.92);
    border-color: rgba(15, 23, 42, 0.65);
}

.android-access-modal .modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #059669;
    margin-bottom: 1rem;
}

.android-access-modal h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.android-access-modal .modal-note {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

[data-bs-theme="dark"] .android-access-modal .modal-note {
    color: rgba(226, 232, 240, 0.75);
}

.android-access-form .form-floating {
    margin-bottom: 1rem;
}

.android-access-form .form-control {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: transparent;
}

[data-bs-theme="dark"] .android-access-form .form-control {
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-light);
    background: rgba(15, 23, 42, 0.6);
}

.android-access-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.android-access-form button {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 14px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1rem 0;
    }
}


/* Flashcards Carousel */
.flashcards-container {
	position: relative;
	width: 100%;
	min-height: 400px; /* Minimum height, will be dynamically adjusted */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 2rem 0;
	transition: height 0.3s ease; /* Smooth height transitions */
}

.carousel-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.carousel-card {
	width: 350px;
	max-width: 350px;
	height: fit-content;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center center;
	will-change: transform, opacity;
}

/* Navigation arrows */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: all 0.3s ease;
	font-size: 1.2rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.carousel-nav-left {
	left: 20px;
}

.carousel-nav-right {
	right: 20px;
}

[data-bs-theme="dark"] .carousel-nav {
	background: rgba(37, 36, 36, 0.95);
	border-color: var(--primary-color);
}

[data-bs-theme="dark"] .carousel-nav:hover {
	background: var(--primary-color);
}

/* Small mobile specific carousel styles - only very small screens get single card layout */
@media (max-width: 480px) {
	.flashcards-container {
		min-height: 450px; /* Increased height for mobile */
		padding: 1rem 0;
		align-items: flex-start; /* Align to top instead of center */
	}
	
	.carousel-wrapper {
		align-items: flex-start; /* Align wrapper content to top */
	}
	
	.carousel-track {
		align-items: center; /* Align track content to top */
		justify-content: flex-start; /* Align to top, not center */
		padding-top: 60px; /* Space for arrows */
		width: 100%;
		position: relative;
		display: flex;
		flex-direction: column; /* Stack cards vertically if needed */
	}
	
	.carousel-card {
		width: calc(100vw - 80px); /* More margin for arrows */
		max-width: 320px; /* Slightly smaller max for mobile */
		min-width: 260px;
		margin: 0 auto; /* Center the card */
		display: block; /* Ensure proper display */
	}
	
	.carousel-nav {
		width: 40px;
		height: 40px;
		font-size: 1rem;
		top: 20px;
		transform: none !important; /* Override the translateY(-50%) centering */
	}
	
	.carousel-nav:hover {
		transform: scale(1.1) !important; /* Keep hover scale effect but no translateY */
	}
	
	.carousel-nav:active {
		transform: scale(0.95) !important; /* Slight scale down on press */
	}
	
	.carousel-nav-left {
		left: 10px;
	}
	
	.carousel-nav-right {
		right: 10px;
	}
}

/* Medium screens (tablets, large phones) - get the king and ministers effect */
@media (min-width: 481px) and (max-width: 768px) {
	.flashcards-container {
		align-items: flex-start; /* Align to top for tablets too */
	}
	
	.carousel-wrapper {
		align-items: flex-start;
	}
	
	.carousel-track {
		align-items: flex-start;
	}
	
	.carousel-nav {
		top: 20px;
		transform: none !important;
	}
	
	.carousel-nav:hover {
		transform: scale(1.1) !important;
	}
	
	.carousel-nav:active {
		transform: scale(0.95) !important;
	}
}

/* Very small screens */
@media (max-width: 400px) {
	.flashcards-container {
		min-height: 500px; /* Even more height for very small screens */
	}
	
	.carousel-card {
		width: calc(100vw - 70px); /* More space for arrows */
		max-width: 300px;
		min-width: 250px;
	}
	
	.carousel-nav {
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
		top: 15px;
		transform: none !important; /* Override the translateY(-50%) centering */
	}
	
	.carousel-nav:hover {
		transform: scale(1.1) !important;
	}
	
	.carousel-nav:active {
		transform: scale(0.95) !important;
	}
	
	.carousel-nav-left {
		left: 5px;
	}
	
	.carousel-nav-right {
		right: 5px;
	}
}


/* Features Section */
.features-section {
    padding: 80px 20px;
}

.features-section h2 {
    text-align: center;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .features-section h2 {
    color: var(--text-light);
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .feature-card {
    border-color: var(--border-dark);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
    transform: translateY(-5px);
}

.feature-icon-large {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-dark);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

[data-bs-theme="dark"] .feature-card h3 {
    color: var(--text-light);
}

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

[data-bs-theme="dark"] .feature-card p {
    color: var(--muted-dark);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(139, 92, 246, 0.03) 100%);
}

[data-bs-theme="dark"] .how-it-works {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(139, 92, 246, 0.04) 100%);
}

.how-it-works h2 {
    text-align: center;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .how-it-works h2 {
    color: var(--text-light);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

[data-bs-theme="dark"] .step {
    background: var(--card-dark);
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.step h3 {
    color: var(--text-dark);
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 700;
}

[data-bs-theme="dark"] .step h3 {
    color: var(--text-light);
}

.step p {
    color: var(--text-gray);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

[data-bs-theme="dark"] .step p {
    color: var(--muted-dark);
}

.step-arrow {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}
/* Responsive Design */
@media (max-width: 768px) {
    .features-section h2,
    .how-it-works h2 {
        font-size: 2em;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 300px;
        width: 300px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

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