/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.title-line {
    display: block;
}

#typewriter {
    position: relative;
}

#typewriter::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 520px;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
    margin-right: -10px;
}

.avatar-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-off-white);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 0;
}

.social-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    width: 420px;
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
    z-index: 2;
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-off-white);
    border-bottom: 1px solid var(--border-light);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-medium);
}

.card-dots span:nth-child(1) { background: #ff6b6b; }
.card-dots span:nth-child(2) { background: #ffd93d; }
.card-dots span:nth-child(3) { background: #6bcb77; }

.card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.card-body {
    padding: 20px;
}

.question-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.question-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.option:hover {
    border-color: var(--accent-primary-light);
    background: rgba(108, 92, 231, 0.03);
}

.option.correct {
    border-color: var(--accent-green);
    background: rgba(0, 184, 148, 0.06);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.option.correct .option-letter {
    background: var(--accent-green);
    color: white;
}

.check-icon {
    margin-left: auto;
    animation: checkPop 0.5s var(--transition-spring);
}

@keyframes checkPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08), transparent 70%);
    top: -40px;
    right: -60px;
    animation: floatSlow 8s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.08), transparent 70%);
    bottom: 0;
    left: -40px;
    animation: floatSlow 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.08), transparent 70%);
    bottom: 60px;
    right: 20px;
    animation: floatSlow 7s ease-in-out infinite 1s;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -15px); }
    66% { transform: translate(-5px, 10px); }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 32px 0;
}

.stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Exam Scroll */
.exam-scroll {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding: 0 24px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.exam-scroll-track {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: scrollExams 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.exam-scroll-track span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.scroll-dot {
    color: var(--border-medium) !important;
    font-weight: 400 !important;
}

@keyframes scrollExams {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 120px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--bg-off-white);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-description {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: all var(--transition-fast);
}

.feature-link:hover {
    color: var(--accent-primary-dark);
    gap: 6px;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-primary);
}

.steps-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step-connector {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    z-index: 0;
}

.connector-line {
    width: 100%;
    height: 100%;
    background: var(--border-medium);
    border-radius: 2px;
}

.steps-wrapper {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(108, 92, 231, 0.06);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== DEMO SECTION ==================== */
.demo {
    padding: 120px 0;
    background: var(--bg-white);
}

.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.demo-content .section-tag {
    margin-bottom: 12px;
}

.demo-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.demo-content .section-description {
    margin: 0 0 32px;
    max-width: 100%;
}

.demo-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Demo Question Card */
.demo-question-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.demo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-off-white);
    border-bottom: 1px solid var(--border-light);
}

.demo-exam-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-difficulty {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-orange);
    background: rgba(225, 112, 85, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.demo-question-text {
    padding: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-light);
}

.demo-options {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-option:hover {
    border-color: var(--accent-primary-light);
    background: rgba(108, 92, 231, 0.03);
}

.demo-option.selected {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.06);
}

.demo-option.correct-reveal {
    border-color: var(--accent-green);
    background: rgba(0, 184, 148, 0.08);
}

.demo-option.wrong-reveal {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.06);
}

.demo-option-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.demo-option.correct-reveal .demo-option-letter {
    background: var(--accent-green);
    color: white;
}

.demo-option.wrong-reveal .demo-option-letter {
    background: #ff6b6b;
    color: white;
}

.demo-feedback {
    padding: 0 20px 20px;
}

.demo-feedback-content {
    background: rgba(0, 184, 148, 0.06);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
}

.demo-feedback-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-green);
    margin-bottom: 6px;
}

.demo-feedback-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    padding: 120px 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-base);
    position: relative;
}

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

.pricing-card.popular {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pricing-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 120px 0;
    background: var(--bg-white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-medium);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ==================== FINAL CTA ==================== */
.cta-final {
    padding: 100px 0;
    background: var(--bg-primary);
}

.cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 32px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
}