/* ── Hero Section ────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

/* Left Side: Content */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.feature-item i {
    width: 24px;
    height: 24px;
    background: var(--secondary-glow);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: bold;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}


.btn-hero-primary {
    background: #10b981;
    /* Saturated Green */
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-hero-primary:hover {
    background: #059669;
    transform: translateY(-3px);
}

.btn-hero-secondary {
    background: #3b82f6;
    /* Saturated Blue */
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-hero-secondary:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* New Visual Overlays */
.analytics-graph-card {
    position: absolute;
    top: 20%;
    right: -40px;
    background: #ffffff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 180px;
    border: 1px solid var(--border);
    animation: float 5s ease-in-out infinite;
    z-index: 5;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.trend-up {
    color: #10b981;
}

.graph-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.bar {
    flex: 1;
    background: #3b82f6;
    border-radius: 2px;
    transition: height 1s ease-in-out;
    animation: growBar 2s ease-out forwards;
}

@keyframes growBar {
    from {
        height: 0;
    }
}

.rank-badge-refined {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.badge-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

/* Right Side: Mockup */
.hero-visual {
    position: relative;
}

.mockup-wrapper {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.mockup-wrapper:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.mockup-image {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.rank-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    padding: 1.25rem;
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ── Live Leaderboard Ticker (Phase 24) ── */
.leaderboard-ticker-wrap {
    width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 0.75rem 0;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.leaderboard-ticker-wrap::before,
.leaderboard-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.leaderboard-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.leaderboard-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.leaderboard-ticker {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 35s linear infinite;
}

.leaderboard-ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    cursor: default;
    transition: transform 0.2s;
}

.ticker-item:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Scroll exactly half to loop duplicates smoothly */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ── How It Works Section ────────────────────────────────── */
.how-it-works {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Subject Grid Section ────────────────────────────────── */
.subjects-grid-section {
    padding: 8rem 0;
    background: #ffffff;
}

.section-header-alt {
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -3.5rem;
    margin-bottom: 3.5rem;
}

.subject-flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.subject-status-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.subject-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s;
}

.subject-status-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    background: #ffffff;
}

.subject-status-card:hover::before {
    background: var(--primary);
}

.subj-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s;
}

.subject-status-card:hover .subj-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Dynamic Backgrounds for Icons */
.physics-bg {
    background: rgba(99, 102, 241, 0.1);
}

.chemistry-bg {
    background: rgba(16, 185, 129, 0.1);
}

.biology-bg {
    background: rgba(236, 72, 153, 0.1);
}

.math-bg {
    background: rgba(245, 158, 11, 0.1);
}

.english-bg {
    background: rgba(79, 70, 229, 0.1);
}

.reasoning-bg {
    background: rgba(139, 92, 246, 0.1);
}

.gk-bg {
    background: rgba(110, 231, 183, 0.1);
}

.subject-status-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.subj-stats {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 1rem;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.stat-line:last-child {
    margin-bottom: 0;
}

.stat-line strong {
    color: var(--text-main);
    font-weight: 700;
}

.btn-subj-practice {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.btn-subj-practice:hover {
    gap: 0.8rem;
    color: var(--secondary);
}

/* ── AI Features Section ─────────────────────────────────── */
.ai-features-section {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ai-feature-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: left;
}

.ai-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

.ai-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-surface);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s, transform 0.3s;
}

.ai-feature-card:hover .ai-icon {
    background: var(--secondary-glow);
    transform: scale(1.1);
}

.ai-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.ai-feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Daily Challenge Banner (Phase 24) ── */
.daily-challenge-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #312e81 100%);
    border-radius: 1.5rem;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px -5px rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.daily-challenge-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.challenge-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.challenge-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.challenge-text h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.25rem;
}

.challenge-text p {
    color: #cbd5e1;
    font-size: 1rem;
    margin: 0;
}

.challenge-timer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timer-label {
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.timer-blocks {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 50px;
}

.timer-block span {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.timer-block small {
    font-size: 0.6rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
}

.timer-colon {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .daily-challenge-banner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .challenge-info {
        flex-direction: column;
    }

    .challenge-timer {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Analytics Preview Section ───────────────────────────── */
.analytics-preview-section {
    padding: 8rem 0;
    background: #ffffff;
}

.analytics-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.analytics-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.analytics-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Topic Mastery */
.mastery-item {
    margin-bottom: 1rem;
}

.mastery-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.progress-under {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    width: 100%;
}

.progress-over {
    height: 100%;
    background: var(--secondary);
    border-radius: 3px;
}

/* Accuracy Trend */
.trend-lines {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mini-chart {
    width: 100%;
    height: 60px;
}

.trend-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 1rem;
}

/* Rank Percentile */
.percentile-view {
    text-align: center;
}

.percentile-circle {
    width: 100px;
    height: 100px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.percentile-circle .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.percentile-circle .label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Time Analysis */
.time-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
}

.time-item {
    text-align: center;
}

.time-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.time-item .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.time-item.highlight .value {
    color: var(--secondary);
}

.mt-4 {
    margin-top: 2rem;
}

/* ── Premium Pro Section ────────────────────────────────── */
.premium-pro-section {
    padding: 8rem 0;
    background: #ffffff;
}

.premium-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 5rem 3rem;
    border-radius: 3rem;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.3);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.premium-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    text-align: left;
}

.pro-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pro-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.pro-icon {
    font-size: 2rem;
}

.pro-text {
    display: flex;
    flex-direction: column;
}

.pro-text strong {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.pro-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.btn-pro-upgrade {
    background: #f59e0b;
    color: #0f172a;
    padding: 1.25rem 3rem;
    border-radius: 1rem;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.4);
}

.btn-pro-upgrade:hover {
    background: #fbbf24;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 50px -10px rgba(245, 158, 11, 0.5);
}

@media (max-width: 768px) {
    .premium-card {
        padding: 4rem 2rem;
    }

    .premium-card h2 {
        font-size: 2rem;
    }
}

/* ── Trust & Credibility Section ────────────────────────── */
.trust-section {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.stats-bar {
    background: #ffffff;
    padding: 3rem;
    border-radius: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid var(--border);
    margin-bottom: 5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.divider-v {
    width: 1px;
    height: 60px;
    background: var(--border);
    margin: 0 auto;
}

.trust-content-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.verified-seal-block {
    text-align: center;
}

.verified-badge {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    margin: 0 auto 2rem;
    padding: 8px;
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
    position: relative;
}

.seal-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.seal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.verified-badge strong {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.verified-badge span {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.verification-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.a-info strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
}

.a-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .trust-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-bar {
        flex-direction: column;
        gap: 3rem;
    }

    .divider-v {
        display: none;
    }
}

/* ── FAQ Section ────────────────────────────────────────── */
.faq-section {
    padding: 8rem 0;
    background: #ffffff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    user-select: none;
}

.faq-toggle {
    font-style: normal;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
    opacity: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary);
}

.faq-item:hover {
    border-color: var(--secondary);
}

/* ── Final CTA Section ──────────────────────────────────── */
.final-cta-section {
    padding: 6rem 0;
    background: #ffffff;
}

.final-cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    padding: 5rem 3rem;
    border-radius: 3rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(30, 58, 138, 0.4);
    position: relative;
    overflow: hidden;
}

.final-cta-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.final-cta-card p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.final-cta-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

@media (max-width: 768px) {
    .final-cta-card h2 {
        font-size: 2rem;
    }
}

/* ── Signup Section ──────────────────────────────────────── */
.signup-section {
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.signup-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--card-shadow);
    animation: fadeIn 1s ease-out;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Progress Indicator */
.step-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-step {
    display: none;
    animation: slideIn 0.4s ease-out forwards;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.signup-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.signup-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.signup-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Selection Grids (Academic Setup & Goals) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.select-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.select-card:hover {
    border-color: var(--secondary);
    background: var(--bg-surface);
}

.select-card.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: scale(1.02);
}

.select-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.select-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-nav-group {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.btn-nav-group .btn {
    flex: 1;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.multiselect-container {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.multiselect-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.subject-chip {
    padding: 0.6rem;
    border-radius: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-align: center;
}

.subject-chip.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: white;
}

.btn-signup {
    width: 100%;
    margin-top: 1rem;
    height: 64px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}


/* ── Security Features ───────────────────────────────────── */
/* Password Strength Meter */
.password-meter {
    height: 4px;
    width: 100%;
    background: var(--border);
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
    display: block;
}

.password-meter-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.pwd-weak {
    width: 33%;
    background: #ef4444;
}

.pwd-medium {
    width: 66%;
    background: #f59e0b;
}

.pwd-strong {
    width: 100%;
    background: var(--secondary);
}

.pwd-text {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 600;
}

/* Duplicate Check Notification */
.duplicate-alert {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    pointer-events: none;
    display: none;
    animation: fadeIn 0.3s;
}

/* OTP Step */
.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.otp-input:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

/* CAPTCHA Style */
.captcha-container {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.captcha-img {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem;
    height: 48px;
}

/* ── Instant Demo Quiz (Phase 24) ── */
.demo-quiz-trigger {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-quiz-trigger .pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

.demo-quiz-trigger .trigger-content {
    position: relative;
    background: var(--accent-gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
    z-index: 2;
    transition: transform 0.2s;
}

.demo-quiz-trigger:hover .trigger-content {
    transform: translateY(-3px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.demo-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.demo-modal-container {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.demo-modal-overlay.active .demo-modal-container {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.demo-header {
    margin-bottom: 2rem;
    text-align: center;
}

.demo-header .badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1rem;
}

.demo-header h3 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 800;
}

.question-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.demo-option {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.demo-option:hover {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.demo-option.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.demo-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.ai-explanation {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.ai-explanation p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.ai-explanation code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    color: var(--primary);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .main-header {
        padding: 0.5rem 0;
    }

    .hero {
        padding-top: 80px !important;
        padding-bottom: 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .feature-list {
        display: none;
        /* Hide feature list on mobile to keep hero compact */
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 3rem;
    }


    .mockup-wrapper {
        transform: none;
        max-width: 100%;
        margin: 0 auto;
    }

    .analytics-graph-card {
        display: none;
        /* Hide complex overlays on mobile hero */
    }

    .rank-badge-refined {
        bottom: 10px;
        right: 10px;
        padding: 0.75rem 1rem;
    }

    /* Horizontal Scroll for Subjects */
    .subject-flex-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2rem;
        gap: 1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .subject-status-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        text-align: left;
    }

    .subject-flex-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for a cleaner mobile look */
    }

    /* Vertical Stacking and Polishing for other sections */
    .steps-grid,
    .ai-features-grid,
    .analytics-preview-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .section-header-alt {
        margin-bottom: 3rem;
    }

    .section-subtitle {
        margin-top: -2.5rem;
        margin-bottom: 2.5rem;
    }

    .premium-card {
        padding: 4rem 2rem;
    }

    .pro-features-grid {
        grid-template-columns: 1fr;
    }

    .trust-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .faq-accordion {
        padding: 0 0.5rem;
    }

    /* Animation Optimization: Simplify/Disable for Mobile */
    .animate-up,
    .animate-in,
    .subject-status-card,
    .ai-feature-card,
    .analytics-card,
    .step-card {
        animation: none !important;
        transform: none !important;
        transition: opacity 0.3s ease-out !important;
    }

    /* Sticky Bottom CTA Styling */
    .sticky-cta-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        display: none;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    .sticky-cta-container.visible {
        display: block !important;
        transform: translateY(0);
    }

    .btn-signup-sticky {
        margin: 0;
        box-shadow: 0 4px 15px var(--secondary-glow);
    }
}