/* Language Trainer — Landing Pages
   Dark theme with glassmorphism, gradient accents, scroll animations
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: #1e1b4b;
    background: #06060b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Layout ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: glow 6s ease-in-out infinite;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    animation: glow 8s ease-in-out infinite 2s;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: fadeUp 1s ease;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}
.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}
.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4), 0 0 60px rgba(99, 102, 241, 0.1);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5), 0 0 80px rgba(99, 102, 241, 0.15);
    text-decoration: none;
}
.hero-cta svg { width: 20px; height: 20px; }
.hero-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
    color: #475569;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hero-scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, #475569, transparent);
}

/* ===== Section ===== */
section {
    padding: 100px 0;
    position: relative;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #818cf8;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.section-desc {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

/* ===== Glass Cards ===== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}
.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Scenarios ===== */
.scenarios {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scenario {
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.scenario-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
}
.scenario-text strong {
    color: #e2e8f0;
    display: block;
    margin-bottom: 4px;
}
.scenario-text p {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* ===== Try Steps ===== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.step-card {
    padding: 32px;
}
.step-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}
.step-card p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
}

/* ===== Benefits ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.benefit {
    padding: 32px;
}
.benefit-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.benefit h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.benefit p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

/* ===== Pain Points ===== */
.pains {
    display: flex;
    flex-direction: column;
}
.pain-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    color: #cbd5e1;
}
.pain-item:last-child { border-bottom: none; }
.pain-bullet {
    width: 8px;
    height: 8px;
    background: #f472b6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.4);
}

/* ===== How it works ===== */
.how-blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.how-card {
    padding: 32px;
}
.how-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
}
.how-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.how-list li {
    font-size: 15px;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}
.how-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: #818cf8;
    font-size: 12px;
}

/* ===== Vision ===== */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.vision-card {
    padding: 32px;
}
.vision-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
}
.vision-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vision-card li {
    font-size: 14px;
    color: #94a3b8;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

/* ===== Objections ===== */
.objections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.objection {
    padding: 28px 32px;
}
.objection-q {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}
.objection-a {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
}

/* ===== Comparison ===== */
.comparisons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comp-card {
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}
.comp-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #6366f1, #a855f7);
    border-radius: 0 3px 3px 0;
}
.comp-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #818cf8;
    margin-bottom: 8px;
}
.comp-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

/* ===== Final CTA ===== */
.final-cta {
    text-align: center;
    padding: 120px 24px;
    position: relative;
}
.final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.final-cta .section-title {
    margin-bottom: 32px;
}

/* ===== Separator ===== */
.sep {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
    margin: 0 auto;
    opacity: 0.5;
}

/* ===== Landing Footer ===== */
.landing-footer {
    text-align: center;
    padding: 40px 24px;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.landing-footer a {
    color: #818cf8;
}

/* ========================================================
   Shared styles for welcome / updated / uninstalled pages
   ======================================================== */

.lt-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fc;
}

.lt-card {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    text-align: center;
}

.lt-icon { font-size: 56px; margin-bottom: 20px; }

.lt-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 12px;
}

.lt-card p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 16px;
}

.lt-features {
    text-align: left;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.lt-features li {
    padding: 8px 0;
    font-size: 15px;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lt-features li::before {
    content: "\2713";
    color: #4F46E5;
    font-weight: 700;
    flex-shrink: 0;
}

.lt-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: #4F46E5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.lt-btn:hover { background: #4338CA; text-decoration: none; color: #fff; }
.lt-btn:active { transform: scale(0.97); }

.lt-btn-secondary {
    background: #fff;
    color: #4F46E5;
    border: 2px solid #4F46E5;
}
.lt-btn-secondary:hover { background: #f5f3ff; color: #4F46E5; }

.lt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.lt-divider {
    width: 60px;
    height: 3px;
    background: #4F46E5;
    border-radius: 3px;
    margin: 20px auto;
}

.lt-footer {
    margin-top: 32px;
    font-size: 13px;
    color: #9ca3af;
}
.lt-footer a { color: #4F46E5; }

/* Uninstall form */
.lt-feedback { text-align: left; margin: 20px 0; }
.lt-feedback label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
}
.lt-feedback input[type="radio"] { accent-color: #4F46E5; }
.lt-feedback textarea {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
}
.lt-feedback textarea:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Changelog */
.lt-changelog {
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}
.lt-changelog h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #1e1b4b; }
.lt-changelog ul { padding-left: 20px; }
.lt-changelog li { font-size: 14px; color: #374151; padding: 3px 0; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero { padding: 60px 20px; min-height: auto; }
    .hero h1 { font-size: 32px; }
    section { padding: 64px 0; }
    .steps-grid,
    .benefits-grid,
    .vision-grid { grid-template-columns: 1fr; }
    .scenario { flex-direction: column; gap: 12px; }
    .hero-scroll { display: none; }

    .lt-card { padding: 32px 24px; }
    .lt-card h1 { font-size: 22px; }
    .lt-buttons { flex-direction: column; }
    .lt-btn-secondary { margin-left: 0; }
}
