/* TarkTara Homepage — Light Theme */

/* ── Variables ── */
:root {
    --navy:      #0f172a;
    --navy-2:    #1e293b;
    --violet:    #6d28d9;
    --violet-2:  #7c3aed;
    --violet-lt: #ede9fe;
    --gold:      #d97706;
    --gold-lt:   #fef3c7;
    --coral:     #ea580c;
    --white:     #ffffff;
    --off-white: #f8fafc;
    --text:      #0f172a;
    --text-2:    #334155;
    --text-3:    #64748b;
    --border:    #e2e8f0;
    --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --r:         16px;
    --r-lg:      24px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--white); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Layout ── */
.tt-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tt-section    { padding: 88px 0; }
.tt-section-sm { padding: 56px 0; }

/* ── Typography ── */
.tt-label {
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--violet-2);
    display: block; margin-bottom: 12px;
}
.tt-h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
    color: var(--navy);
}
.tt-h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800; line-height: 1.15; letter-spacing: -1px;
    color: var(--navy);
}
.tt-h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px; font-weight: 700; color: var(--navy);
}
.tt-body { font-size: 17px; color: var(--text-2); line-height: 1.75; font-weight: 300; }
.tt-accent { color: var(--violet-2); }
.tt-gold   { color: var(--gold); }

/* ── Buttons ── */
.tt-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--violet-2); color: #fff;
    border-radius: 50px; padding: 14px 32px;
    font-size: 16px; font-weight: 700;
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
    transition: transform .2s, box-shadow .2s;
    border: none; cursor: pointer;
}
.tt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.4); color: #fff; }

.tt-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--violet-2);
    border: 2px solid var(--violet-2); border-radius: 50px;
    padding: 13px 30px; font-size: 16px; font-weight: 700;
    transition: background .2s, color .2s;
    cursor: pointer;
}
.tt-btn-secondary:hover { background: var(--violet-lt); }

.tt-btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold); color: #fff;
    border-radius: 50px; padding: 14px 32px;
    font-size: 16px; font-weight: 700;
    box-shadow: 0 4px 20px rgba(217,119,6,0.3);
    transition: transform .2s, box-shadow .2s;
    border: none; cursor: pointer;
}
.tt-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,119,6,0.4); color: #fff; }

/* ── NAV ── */
.tt-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.tt-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.tt-nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.tt-nav-logo {
    font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
    color: var(--navy); letter-spacing: -0.5px;
}
.tt-nav-logo span { color: var(--violet-2); }
.tt-nav-links { display: flex; align-items: center; gap: 4px; }
.tt-nav-link {
    color: var(--text-2); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px;
    transition: background .2s, color .2s;
}
.tt-nav-link:hover { background: var(--violet-lt); color: var(--violet-2); }
.tt-nav-cta { margin-left: 8px; }
.tt-nav-login { color: var(--text-3); font-size: 14px; font-weight: 500; padding: 8px 16px; transition: color .2s; }
.tt-nav-login:hover { color: var(--violet-2); }

/* ── HERO ── */
.tt-hero {
    padding: 140px 0 80px;
    background: linear-gradient(165deg, #faf5ff 0%, #f0f9ff 50%, #fff 100%);
    position: relative; overflow: hidden;
}
.tt-hero::before {
    content: ''; position: absolute; top: -100px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.tt-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tt-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--violet-lt); color: var(--violet-2);
    border-radius: 50px; padding: 6px 16px; font-size: 13px; font-weight: 600;
    margin-bottom: 24px;
}
.tt-hero-sub { font-size: 18px; color: var(--text-2); line-height: 1.7; margin: 20px 0 36px; font-weight: 300; max-width: 480px; }
.tt-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.tt-hero-trust { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.tt-hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.tt-hero-visual {
    background: linear-gradient(135deg, var(--violet-lt), #e0f2fe);
    border-radius: var(--r-lg); padding: 32px; position: relative;
    box-shadow: var(--shadow-lg);
}
.tt-hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tt-hero-stat {
    background: var(--white); border-radius: var(--r); padding: 20px;
    box-shadow: var(--shadow); text-align: center;
}
.tt-hero-stat-num { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: var(--violet-2); line-height: 1; }
.tt-hero-stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 500; }
.tt-hero-stat.gold .tt-hero-stat-num { color: var(--gold); }
.tt-hero-stat.coral .tt-hero-stat-num { color: var(--coral); }

/* ── TRUST BAR ── */
.tt-trust-bar { background: var(--navy); padding: 20px 0; }
.tt-trust-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.tt-trust-item { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 14px; font-weight: 500; }
.tt-trust-icon { font-size: 18px; }

/* ── BENCHMARK ── */
.tt-benchmark { background: var(--off-white); }
.tt-benchmark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tt-flag-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.tt-flag-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--white); border-radius: var(--r); padding: 16px 20px;
    box-shadow: var(--shadow); border-left: 4px solid var(--violet-2);
    transition: transform .2s;
}
.tt-flag-item:hover { transform: translateX(4px); }
.tt-flag-emoji { font-size: 28px; }
.tt-flag-info h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.tt-flag-info p  { font-size: 13px; color: var(--text-3); margin: 0; }
.tt-benchmark-right { display: flex; flex-direction: column; gap: 24px; }
.tt-evidence-card {
    background: var(--white); border-radius: var(--r-lg); padding: 28px 32px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.tt-evidence-num { font-family: 'Syne', sans-serif; font-size: 48px; font-weight: 800; color: var(--violet-2); line-height: 1; }
.tt-evidence-desc { font-size: 15px; color: var(--text-2); margin-top: 6px; }

/* ── SUBJECTS ── */
.tt-subjects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.tt-subject-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 36px 28px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tt-subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--violet-2); }
.tt-subject-icon { font-size: 40px; margin-bottom: 20px; }
.tt-subject-name { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.tt-subject-desc { font-size: 14px; color: var(--text-3); line-height: 1.65; }
.tt-subject-tag  { display: inline-block; margin-top: 18px; background: var(--violet-lt); color: var(--violet-2); border-radius: 50px; padding: 4px 14px; font-size: 12px; font-weight: 700; }

/* ── HOW IT WORKS ── */
.tt-how { background: var(--off-white); }
.tt-steps { display: flex; gap: 0; margin-top: 56px; position: relative; }
.tt-steps::before {
    content: ''; position: absolute; top: 36px; left: 40px; right: 40px; height: 2px;
    background: linear-gradient(90deg, var(--violet-lt), var(--violet-2), var(--gold-lt));
    z-index: 0;
}
.tt-step { flex: 1; text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.tt-step-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 20px;
    background: var(--white); box-shadow: var(--shadow);
    border: 2px solid var(--border);
}
.tt-step:nth-child(1) .tt-step-icon { border-color: var(--violet-2); background: var(--violet-lt); }
.tt-step:nth-child(2) .tt-step-icon { border-color: var(--violet-2); background: var(--violet-lt); }
.tt-step:nth-child(3) .tt-step-icon { border-color: var(--gold); background: var(--gold-lt); }
.tt-step:nth-child(4) .tt-step-icon { border-color: var(--gold); background: var(--gold-lt); }
.tt-step-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.tt-step-desc  { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ── DEMO QUIZ ── */
.tt-demo { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: #fff; }
.tt-demo .tt-label { color: #a78bfa; }
.tt-demo .tt-h2    { color: #fff; }
.tt-demo-sub { font-size: 17px; color: #94a3b8; margin: 12px 0 40px; font-weight: 300; }

.tt-demo-selector {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-lg); padding: 36px; margin-bottom: 32px;
}
.tt-demo-selector-title { font-size: 16px; font-weight: 700; color: #e2e8f0; margin-bottom: 20px; }
.tt-grade-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; margin-bottom: 24px; }
.tt-grade-btn {
    background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 14px 4px; text-align: center;
    cursor: pointer; transition: .2s; color: #94a3b8; font-size: 13px; font-weight: 600;
}
.tt-grade-btn:hover { border-color: #7c3aed; color: #fff; background: rgba(124,58,237,0.2); }
.tt-grade-btn.selected { border-color: #7c3aed; background: rgba(124,58,237,0.3); color: #fff; }
.tt-grade-btn-num { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; display: block; color: #a78bfa; }

.tt-subject-row { display: flex; gap: 12px; }
.tt-subject-btn {
    flex: 1; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 14px; text-align: center; cursor: pointer;
    transition: .2s; color: #94a3b8; font-size: 14px; font-weight: 600;
}
.tt-subject-btn:hover { border-color: #7c3aed; color: #fff; background: rgba(124,58,237,0.2); }
.tt-subject-btn.selected { border-color: #7c3aed; background: rgba(124,58,237,0.3); color: #fff; }
.tt-subject-btn-icon { font-size: 24px; display: block; margin-bottom: 6px; }

.tt-demo-start-row { display: flex; justify-content: center; margin-top: 24px; }

/* Quiz active */
#tt-quiz-area { display: none; }
.tt-quiz-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-lg); padding: 36px;
}
.tt-quiz-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tt-quiz-counter { font-size: 13px; color: #94a3b8; font-weight: 600; }
.tt-quiz-progress-track { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 0 16px; }
.tt-quiz-progress-fill  { height: 100%; background: linear-gradient(90deg,#7c3aed,#a78bfa); border-radius: 3px; transition: width .4s ease; }
.tt-quiz-score  { font-size: 13px; color: #fcd34d; font-weight: 700; }
.tt-quiz-question { font-size: 20px; font-weight: 600; color: #f1f5f9; line-height: 1.5; margin-bottom: 12px; }
.tt-quiz-qimg { max-width: 100%; border-radius: 12px; margin-bottom: 16px; }
.tt-quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.tt-quiz-opt {
    background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 14px 18px; font-size: 15px; color: #cbd5e1;
    cursor: pointer; text-align: left; transition: .15s; font-family: 'DM Sans', sans-serif;
    display: flex; align-items: center; gap: 10px;
}
.tt-quiz-opt:hover:not([disabled]) { background: rgba(124,58,237,0.2); border-color: #7c3aed; color: #fff; }
.tt-quiz-opt.correct  { background: rgba(34,197,94,0.15);  border-color: #22c55e; color: #fff; }
.tt-quiz-opt.wrong    { background: rgba(239,68,68,0.15);   border-color: #ef4444; color: #fff; }
.tt-quiz-opt-letter { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.tt-quiz-explanation {
    background: rgba(124,58,237,0.15); border-left: 3px solid #7c3aed;
    border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 14px;
    color: #c4b5fd; line-height: 1.6; margin-bottom: 16px; display: none;
}
.tt-quiz-next { display: none; }

/* Score screen */
#tt-score-screen { display: none; }
.tt-score-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-lg); padding: 48px 36px; text-align: center;
}
.tt-score-big { font-family: 'Syne', sans-serif; font-size: 80px; font-weight: 800; color: #a78bfa; line-height: 1; }
.tt-score-label { font-size: 18px; color: #94a3b8; margin: 8px 0 28px; }
.tt-score-message { font-size: 22px; font-weight: 700; color: #f1f5f9; margin-bottom: 12px; }
.tt-score-sub { font-size: 15px; color: #64748b; margin-bottom: 36px; }
.tt-score-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Demo loading */
.tt-demo-loading { text-align: center; padding: 40px; color: #94a3b8; display: none; }
.tt-demo-error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 12px; padding: 16px; color: #fca5a5; font-size: 14px; display: none; margin-top: 16px; }

/* ── TESTIMONIALS ── */
.tt-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.tt-testi-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px;
    box-shadow: var(--shadow);
}
.tt-testi-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; }
.tt-testi-text  { font-size: 15px; color: var(--text-2); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.tt-testi-author { display: flex; align-items: center; gap: 12px; }
.tt-testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--violet-lt); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tt-testi-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.tt-testi-meta { font-size: 12px; color: var(--text-3); }

/* ── GRADES ── */
.tt-grades { background: var(--off-white); }
.tt-grades-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 12px; margin-top: 40px; }
.tt-grade-chip {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
    padding: 20px 8px; text-align: center;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tt-grade-chip:hover { border-color: var(--violet-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.tt-grade-chip-num   { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: var(--violet-2); display: block; }
.tt-grade-chip-label { font-size: 11px; color: var(--text-3); margin-top: 4px; display: block; }

/* ── PRICING ── */
.tt-pricing-card {
    max-width: 640px; margin: 48px auto 0;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border-radius: var(--r-lg); padding: 56px; text-align: center;
    box-shadow: 0 20px 60px rgba(109,40,217,0.2);
    position: relative; overflow: hidden;
}
.tt-pricing-card::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
    pointer-events: none;
}
.tt-price-tag { font-family: 'Syne', sans-serif; font-size: 72px; font-weight: 800; color: #fcd34d; line-height: 1; }
.tt-price-tag sup { font-size: 32px; vertical-align: super; color: #f59e0b; }
.tt-price-sub { font-size: 16px; color: #94a3b8; margin: 8px 0 36px; }
.tt-price-features { display: flex; flex-direction: column; gap: 14px; text-align: left; max-width: 360px; margin: 0 auto 36px; }
.tt-price-feat { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #cbd5e1; }
.tt-price-feat-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(124,58,237,0.4); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; color: #a78bfa; }

/* ── CTA STRIP ── */
.tt-cta-strip {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    padding: 80px 0; text-align: center;
}
.tt-cta-strip .tt-h2 { color: #fff; }
.tt-cta-strip .tt-body { color: rgba(255,255,255,0.8); max-width: 520px; margin: 16px auto 36px; }

/* ── FOOTER ── */
.tt-footer { background: var(--navy); color: #94a3b8; padding: 64px 0 32px; }
.tt-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.tt-footer-brand { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.tt-footer-brand span { color: #a78bfa; }
.tt-footer-tagline { font-size: 13px; color: #64748b; line-height: 1.6; max-width: 260px; }
.tt-footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #e2e8f0; margin-bottom: 16px; }
.tt-footer-links { display: flex; flex-direction: column; gap: 10px; }
.tt-footer-link { color: #64748b; font-size: 14px; transition: color .2s; }
.tt-footer-link:hover { color: #a78bfa; }
.tt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tt-footer-copy { font-size: 13px; color: #334155; }
.tt-footer-legal { display: flex; gap: 20px; }
.tt-footer-legal a { font-size: 13px; color: #334155; transition: color .2s; }
.tt-footer-legal a:hover { color: #a78bfa; }

/* ── Reveal animations ── */
.tt-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.tt-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .tt-hero-grid, .tt-benchmark-grid { grid-template-columns: 1fr; gap: 40px; }
    .tt-hero-visual { display: none; }
    .tt-subjects-grid { grid-template-columns: 1fr 1fr; }
    .tt-testi-grid { grid-template-columns: 1fr 1fr; }
    .tt-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .tt-nav-links { display: none; }
    .tt-steps { flex-direction: column; gap: 28px; }
    .tt-steps::before { display: none; }
    .tt-grade-grid { grid-template-columns: repeat(4,1fr); }
    .tt-grades-grid { grid-template-columns: repeat(4,1fr); }
    .tt-quiz-options { grid-template-columns: 1fr; }
    .tt-subjects-grid { grid-template-columns: 1fr; }
    .tt-testi-grid { grid-template-columns: 1fr; }
    .tt-pricing-card { padding: 36px 24px; }
    .tt-price-tag { font-size: 52px; }
}
@media (max-width: 480px) {
    .tt-section { padding: 56px 0; }
    .tt-hero { padding: 100px 0 56px; }
    .tt-hero-ctas { flex-direction: column; }
    .tt-footer-grid { grid-template-columns: 1fr; }
    .tt-subject-row { flex-direction: column; }
}
