/* =========================================================
   LinguaUP — Home v2 (dynamic landing, 2026-10-26)
   Everything is namespaced .lh-* so nothing leaks into the app.
   ========================================================= */
.lh {
    --lh-l: #1b56fd; --lh-r: #00c2a8; --lh-w: #f59e0b; --lh-s: #7c5cff; --lh-rose: #e64980;
    --lh-nav: 76px;
    --lh-radius: 28px;
    --lh-ease: cubic-bezier(.16,1,.3,1);
    --lh-glass: color-mix(in srgb, var(--card) 70%, transparent);
    --lh-line: color-mix(in srgb, var(--text) 9%, transparent);
    overflow-x: clip;
    color: var(--text);
}
.lh *, .lh *::before, .lh *::after { box-sizing: border-box; }
.lh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.lh h1, .lh h2, .lh h3, .lh p { margin: 0; }

/* ---------- shared bits ---------- */
.lh-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
    color: var(--primary);
    padding: 7px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    margin-bottom: 18px;
}
.lh-label--light { color: #c9d4ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.lh-h2 {
    font-size: clamp(30px, 4.4vw, 52px); font-weight: 800;
    line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance;
}
.lh-head { max-width: 760px; margin-bottom: 44px; }
.lh-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lh-split .lh-sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.lh-split .lh-sw > span { display: inline-block; will-change: transform; }

.lh-btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 56px; padding: 0 28px; border-radius: 18px;
    font: inherit; font-size: 16.5px; font-weight: 700; text-decoration: none;
    transition: transform .5s var(--lh-ease), box-shadow .5s var(--lh-ease), background .3s;
    -webkit-tap-highlight-color: transparent;
}
.lh-btn .icon { transition: transform .5s var(--lh-ease); }
.lh-btn:hover .icon { transform: translateX(4px); }
.lh-btn:active { transform: scale(.96); }
.lh-btn--primary {
    color: #fff; background: linear-gradient(135deg, #2563ff 0%, #1b56fd 45%, #6d4dff 100%);
    box-shadow: 0 14px 32px -12px rgba(37,80,255,.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.lh-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(37,80,255,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.lh-btn--primary::after, .lh-btn--white::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%);
    transform: translateX(-120%); animation: lh-shine 4.2s var(--lh-ease) infinite 2.4s;
}
.lh-btn--ghost {
    color: var(--text); background: var(--lh-glass);
    border: 1.5px solid var(--lh-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lh-btn--ghost:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.lh-btn--white { color: #2b2fd6; background: #fff; box-shadow: 0 16px 34px -14px rgba(10,10,60,.5); }
.lh-btn--white:hover { transform: translateY(-2px); }
.lh-btn--glass { color: #fff; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lh-btn--glass:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
@keyframes lh-shine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }

.lh-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ======================= STATS + MARQUEE ======================= */
.lh-stats { padding: 30px 0 110px; }
.lh-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border: 1px solid var(--lh-line); border-radius: var(--lh-radius);
    background: var(--lh-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px -34px rgba(25,35,90,.35);
    max-width: 1136px; padding: 0;
}
.lh-stat { padding: 30px 26px; text-align: center; position: relative; }
.lh-stat + .lh-stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--lh-line); }
.lh-stat b {
    display: block; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
    background: linear-gradient(135deg, var(--text) 30%, color-mix(in srgb, var(--primary) 80%, var(--text)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.lh-stat > span { font-size: 14px; font-weight: 600; color: var(--muted); }

.lh-marquee { margin-top: 56px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lh-mq-row { overflow: hidden; }
.lh-mq-track { display: flex; gap: 14px; width: max-content; animation: lh-mq 48s linear infinite; }
.lh-mq-row.rev .lh-mq-track { animation-direction: reverse; animation-duration: 56s; }
@keyframes lh-mq { to { transform: translateX(calc(-50% - 7px)); } }
.lh-mq-item {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 700;
    background: var(--card); border: 1px solid var(--lh-line);
}
.lh-mq-item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 18%, transparent); }
.lh-mq-item.c0 { --mc: var(--lh-l); } .lh-mq-item.c1 { --mc: var(--lh-r); } .lh-mq-item.c2 { --mc: var(--lh-w); }
.lh-mq-item.c3 { --mc: var(--lh-s); } .lh-mq-item.c4 { --mc: var(--lh-rose); }

/* ======================= SKILLS STACK ======================= */
.lh-skills { padding-bottom: 80px; }
.lh-stack { display: grid; gap: 28px; }
.lh-scard {
    --c: var(--lh-l);
    position: sticky; top: calc(var(--lh-nav) + 14px + var(--i) * 16px);
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
    min-height: 440px; padding: 44px;
    border-radius: 34px; overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--card)), var(--card) 70%);
    border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border));
    box-shadow: 0 -10px 50px -30px rgba(20,30,70,.35), 0 30px 60px -40px color-mix(in srgb, var(--c) 60%, transparent);
    transform-origin: 50% 0;
    will-change: transform;
}
.lh-scard::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.lh-scard--reading { --c: var(--lh-r); }
.lh-scard--writing { --c: var(--lh-w); }
.lh-scard--speaking { --c: var(--lh-s); }
.lh-scard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lh-scard-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 12px 24px -10px var(--c); }
.lh-scard-num { font-size: 15px; font-weight: 800; color: color-mix(in srgb, var(--c) 70%, var(--muted)); letter-spacing: .1em; }
.lh-scard h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 14px; }
.lh-scard p { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; max-width: 440px; }
.lh-scard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lh-scard li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); }
.lh-scard li .icon { color: var(--c); }
.lh-scard-vis { position: relative; display: grid; place-items: center; min-height: 340px; }
.lh-scard-mascot { position: absolute; width: 190px; height: auto; right: 0; top: -12px; z-index: 2; filter: drop-shadow(0 18px 24px rgba(20,30,70,.22)); animation: lh-float 6s ease-in-out infinite; }

.lh-demo {
    position: relative; width: 100%; max-width: 380px; margin-top: 90px;
    padding: 22px; border-radius: 24px;
    background: var(--card); border: 1px solid var(--lh-line);
    box-shadow: 0 30px 60px -30px rgba(20,30,70,.35);
}
.lh-demo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lh-demo-row b { font-size: 16px; }
.lh-demo-row small { margin-left: auto; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lh-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent); animation: lh-pulse 2s infinite; }
.lh-play .icon { margin-left: 2px; fill: currentColor; }
@keyframes lh-pulse { 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lh-wave { display: flex; align-items: center; gap: 4px; height: 56px; margin-bottom: 16px; }
.lh-wave i { flex: 1; border-radius: 4px; background: var(--c); height: 30%; opacity: .85; animation: lh-bar 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -73ms); }
.lh-wave i:nth-child(n+15) { opacity: .3; }
@keyframes lh-bar { 0% { height: 18%; } 50% { height: 90%; } 100% { height: 40%; } }
.lh-qline { font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--lh-line); }
.lh-qline span { color: var(--muted); margin-right: 4px; }
.lh-qline em { font-style: normal; font-weight: 800; color: var(--c); border-bottom: 2px dashed var(--c); }

.lh-demo--read p { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.lh-demo--read mark { color: inherit; padding: 1px 2px; border-radius: 4px; background: linear-gradient(color-mix(in srgb, var(--lh-w) 45%, transparent), color-mix(in srgb, var(--lh-w) 45%, transparent)) no-repeat 0 0 / 0% 100%; }
.lh-scard.is-in .lh-demo--read mark { animation: lh-mark 1s var(--lh-ease) forwards .5s; }
@keyframes lh-mark { to { background-size: 100% 100%; } }
.lh-tfng { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-tfng span { padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: .03em; border: 1.5px solid var(--lh-line); background: var(--card-2); transition: all .5s var(--lh-ease); }
.lh-scard.is-in .lh-tfng span:first-child { animation: lh-pick .6s var(--lh-ease) forwards 1.4s; }
@keyframes lh-pick { to { background: var(--c); border-color: var(--c); color: #fff; transform: scale(1.06); } }

.lh-type { font-family: Georgia, 'Times New Roman', serif; font-size: 16.5px; line-height: 1.65; min-height: 6.6em; }
.lh-type::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--c); animation: lh-caret 1s steps(1) infinite; }
@keyframes lh-caret { 50% { opacity: 0; } }
.lh-wband { margin-top: 14px; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 16px; border-radius: 12px; font-weight: 700; color: #fff; background: var(--c); transform: scale(.6); opacity: 0; transition: all .7s var(--lh-ease); }
.lh-wband b { font-size: 20px; }
.lh-demo--write.done .lh-wband { transform: none; opacity: 1; }

.lh-mic { position: relative; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 12px 26px -10px var(--c); }
.lh-mic i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); animation: lh-ripple 2.2s ease-out infinite; }
.lh-mic i + i { animation-delay: 1.1s; }
@keyframes lh-ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(2); opacity: 0; } }
.lh-bubble { padding: 12px 16px; border-radius: 18px 18px 18px 6px; font-size: 15px; font-weight: 600; line-height: 1.5; background: color-mix(in srgb, var(--c) 10%, var(--card-2)); margin-bottom: 14px; }
.lh-meters { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-meters span { flex: 1; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--card-2); border: 1px solid var(--lh-line); }
.lh-meters b { display: block; font-size: 20px; color: var(--text); }

/* ======================= AI DEMO ======================= */
.lh-ai { padding: 60px 0 120px; }
.lh-ai-panel {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 40px; padding: 64px;
    color: #eef1ff;
    background: radial-gradient(120% 120% at 0% 0%, #26308a 0%, #141a4d 45%, #0b0f2e 100%);
    box-shadow: 0 50px 100px -50px rgba(20,25,90,.8);
}
.lh-ai-glow { position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,92,255,.5), transparent); animation: lh-breathe 7s ease-in-out infinite; }
.lh-ai-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.lh-ai-text { max-width: 640px; margin-bottom: 44px; }
.lh-ai-text .lh-h2 { color: #fff; margin-bottom: 16px; }
.lh-ai-text p { font-size: 18px; line-height: 1.6; color: #b9c1ea; }
.lh-ai-demo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: stretch; }
.lh-essay { position: relative; overflow: hidden; padding: 0 26px 28px; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.lh-essay-bar { display: flex; align-items: center; gap: 7px; height: 52px; margin: 0 -26px 30px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.lh-essay-bar > i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.lh-ai-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #b9c1ea; }
.lh-ai-status em { font-style: normal; display: none; align-items: center; gap: 5px; }
.lh-ai-status .s1 { display: inline-flex; }
.lh-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #8ea2ff; animation: lh-spin .8s linear infinite; }
.lh-ai-panel.done .lh-spin, .lh-ai-panel.done .s1 { display: none; }
.lh-ai-panel.done .s2 { display: inline-flex; color: #5eead4; }
.lh-essay p { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 2.1; color: #e3e7ff; }
.lh-err { position: relative; text-decoration: none; transition: all .5s var(--lh-ease); border-radius: 4px; }
.lh-err.on { background: rgba(255,90,120,.18); text-decoration: line-through wavy #ff6b8b; text-decoration-thickness: 1.5px; }
.lh-err::after {
    content: attr(data-fix); position: absolute; left: 50%; bottom: calc(100% - 2px);
    transform: translate(-50%, 6px) scale(.8); opacity: 0;
    padding: 2px 9px; border-radius: 8px; white-space: nowrap;
    font-family: Manrope, sans-serif; font-size: 12.5px; font-weight: 800; line-height: 1.6;
    color: #062c24; background: #5eead4; box-shadow: 0 6px 16px -6px rgba(94,234,212,.7);
    transition: all .5s var(--lh-ease); pointer-events: none;
}
.lh-err.on::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.lh-scanline { position: absolute; left: 0; right: 0; top: 52px; height: 80px; background: linear-gradient(to bottom, transparent, rgba(124,140,255,.22), transparent); border-bottom: 2px solid rgba(142,162,255,.7); opacity: 0; pointer-events: none; }
.lh-ai-panel.scanning .lh-scanline { animation: lh-scan 1.6s ease-in-out 2; }
@keyframes lh-scan { 0% { opacity: 0; transform: translateY(-60px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(220px); } }

.lh-score { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.lh-score-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.lh-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lh-score-ring circle { fill: none; stroke-width: 9; }
.lh-score-ring .bg { stroke: rgba(255,255,255,.1); }
.lh-score-ring .fg { stroke: #7c8cff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(124,140,255,.7)); }
.lh-score-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lh-score-ring b { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.lh-score-ring small { font-size: 12px; font-weight: 700; color: #9aa6dd; margin-top: 4px; }
.lh-crit { display: grid; gap: 12px; }
.lh-crit-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; font-weight: 700; color: #c9d0f5; }
.lh-crit-row b { color: #fff; opacity: 0; transition: opacity .5s; }
.lh-crit-row.on b { opacity: 1; }
.lh-crit-row i { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.lh-crit-row em { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5b7bff, #a78bfa); }

/* ======================= BENTO ======================= */
.lh-bento-sec { padding-bottom: 120px; }
.lh-bento {
    display: grid; gap: 18px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: "vocab vocab tutor rank" "mock plan tutor grammar";
}
.lh-tile {
    --tc: var(--primary);
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 18px;
    padding: 26px; border-radius: var(--lh-radius);
    background: var(--card); border: 1px solid var(--lh-line);
    box-shadow: 0 20px 44px -36px rgba(20,30,70,.4);
    transition: transform .6s var(--lh-ease), box-shadow .6s var(--lh-ease), border-color .4s;
    min-height: 250px;
}
.lh-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tc) 14%, transparent), transparent 60%); }
.lh-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--tc) 70%, transparent); border-color: color-mix(in srgb, var(--tc) 30%, transparent); }
.lh-tile:hover::before { opacity: 1; }
.lh-tile h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.lh-tile p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.lh-tile-m { position: absolute; right: -6px; top: -4px; width: 92px; height: auto; z-index: -1; opacity: .95; transition: transform .6s var(--lh-ease); }
.lh-tile:hover .lh-tile-m { transform: rotate(-8deg) scale(1.08); }
.lh-tile-m + .lh-tile-text { padding-right: 70px; }
.lh-tile--vocab { grid-area: vocab; --tc: var(--lh-r); flex-direction: row; align-items: center; gap: 26px; }
.lh-tile--vocab .lh-tile-text { flex: 1; }
.lh-tile--tutor { grid-area: tutor; --tc: var(--lh-s); }
.lh-tile--tutor .lh-tile-m { position: static; width: 150px; margin: 6px auto 0; z-index: 0; }
@media (max-width: 700px) { .lh-tile--tutor .lh-tile-m { position: absolute; width: 92px; margin: 0; } .lh-tile--tutor .lh-tile-text { padding-right: 70px; order: -1; } }
.lh-tile--rank { grid-area: rank; --tc: var(--lh-w); }
.lh-tile--mock { grid-area: mock; --tc: var(--lh-rose); }
.lh-tile--plan { grid-area: plan; --tc: var(--lh-r); }
.lh-tile--grammar { grid-area: grammar; --tc: var(--lh-l); }

.lh-flash { flex: 0 0 240px; height: 160px; perspective: 900px; cursor: pointer; outline: none; }
.lh-flash-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--lh-ease); }
.lh-flash.flip .lh-flash-in { transform: rotateY(180deg); }
.lh-flash .f, .lh-flash .b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.lh-flash .f { color: #fff; background: linear-gradient(135deg, #00c2a8, #0ea5e9); box-shadow: 0 18px 36px -16px rgba(0,170,160,.7); }
.lh-flash .f small { font-size: 12px; font-weight: 700; opacity: .8; }
.lh-flash .b { font-size: 19px; color: var(--text); background: var(--card-2); border: 2px solid color-mix(in srgb, var(--lh-r) 40%, transparent); transform: rotateY(180deg); padding: 0 16px; }

.lh-timer { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lh-rose); background: color-mix(in srgb, var(--lh-rose) 10%, transparent); }

.lh-chat { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.lh-chat > div { max-width: 92%; padding: 12px 16px; font-size: 14.5px; font-weight: 600; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: all .7s var(--lh-ease); }
.lh-chat .q { align-self: flex-end; color: #fff; background: var(--lh-s); border-radius: 18px 18px 6px 18px; }
.lh-chat .a { align-self: flex-start; background: var(--card-2); border: 1px solid var(--lh-line); border-radius: 18px 18px 18px 6px; }
.lh-chat .a .t { display: none; }
.lh-tile.is-in .lh-chat .q { opacity: 1; transform: none; transition-delay: .2s; }
.lh-tile.is-in .lh-chat .a { opacity: 1; transform: none; transition-delay: .9s; }
.lh-tile.answered .lh-chat .a .t { display: inline; }
.lh-tile.answered .lh-dots { display: none; }
.lh-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.lh-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: lh-dot 1s infinite; }
.lh-dots i:nth-child(2) { animation-delay: .15s; } .lh-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lh-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.lh-rank { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; }
.lh-rank li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; font-weight: 700; background: var(--card-2); border: 1px solid var(--lh-line); transition: transform 1s var(--lh-ease), background .6s, border-color .6s; }
.lh-rank li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.lh-rank .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--c); }
.lh-rank li.me { transform: translateY(calc(100% + 8px)); }
.lh-rank li.me + li { transform: translateY(calc(-100% - 8px)); }
.lh-tile.is-in .lh-rank li.me, .lh-tile.is-in .lh-rank li.me + li { transform: none; transition-delay: .8s; }
.lh-tile.is-in .lh-rank li.me { background: color-mix(in srgb, var(--primary) 12%, var(--card)); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }

.lh-cal { margin-top: auto; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.lh-cal i { aspect-ratio: 1; border-radius: 8px; background: var(--card-2); border: 1px solid var(--lh-line); transition: background .4s, transform .5s var(--lh-ease); transition-delay: calc(var(--d) * 45ms); }
.lh-tile.is-in .lh-cal i.on { background: linear-gradient(135deg, #00c2a8, #22c55e); border-color: transparent; transform: scale(.92); }
.lh-tile.is-in .lh-cal i.on:nth-child(15) { background: linear-gradient(135deg, #f59e0b, #e64980); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lh-w) 30%, transparent); }

.lh-big { margin-top: auto; font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(135deg, #1b56fd, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ======================= HOW IT WORKS ======================= */
.lh-how { padding-bottom: 120px; }
.lh-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lh-steps-line { position: absolute; left: 16.66%; right: 16.66%; top: 29px; height: 3px; border-radius: 3px; background: var(--lh-line); }
.lh-steps-line i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lh-l), var(--lh-s), var(--lh-rose)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.lh-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.lh-step-dot { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: var(--muted-2); background: var(--card); border: 2px solid var(--lh-line); transition: all .6s var(--lh-ease); }
.lh-step.on .lh-step-dot { color: #fff; border-color: transparent; background: var(--gradient-hero); box-shadow: 0 14px 30px -12px rgba(80,70,240,.7); transform: scale(1.08) rotate(-6deg); }
.lh-step-card { padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--lh-line); width: 100%; transition: transform .6s var(--lh-ease), border-color .6s; }
.lh-step.on .lh-step-card { border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.lh-step-n { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--primary); margin-bottom: 8px; }
.lh-step-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.lh-step-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ======================= CTA ======================= */
.lh-cta-sec { padding-bottom: 100px; }
.lh-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px;
    padding: 56px 64px; border-radius: 40px; color: #fff;
    background: linear-gradient(130deg, #2b4dff 0%, #5b3ff0 50%, #b93ccf 100%);
    box-shadow: 0 50px 90px -50px rgba(70,50,230,.8);
}
.lh-cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lh-cta-bg i { position: absolute; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); }
.lh-cta-bg i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -180px; animation: lh-drift1 12s ease-in-out infinite alternate; }
.lh-cta-bg i:nth-child(2) { width: 360px; height: 360px; right: -100px; bottom: -200px; animation: lh-drift2 14s ease-in-out infinite alternate; }
.lh-cta-bg i:nth-child(3) { width: 200px; height: 200px; right: 30%; top: -80px; animation: lh-drift1 10s ease-in-out infinite alternate-reverse; }
.lh-cta-m { width: 220px; height: auto; filter: drop-shadow(0 24px 30px rgba(10,10,60,.4)); animation: lh-float 5s ease-in-out infinite; }
.lh-cta h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px; text-wrap: balance; }
.lh-cta p { font-size: 17px; line-height: 1.6; opacity: .88; margin-bottom: 28px; max-width: 520px; }

/* ======================= DARK ======================= */
html[data-theme="dark"] .lh { --lh-line: rgba(255,255,255,.08); }
html[data-theme="dark"] .lh-aurora i { opacity: .5; }
html[data-theme="dark"] .lh-btn--primary { color: #fff; }
html[data-theme="dark"] .lh-ai-panel { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -50px rgba(0,0,0,.8); }
html[data-theme="dark"] .lh-big { background-image: linear-gradient(135deg, #5b8cff, #a78bfa); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1020px) {
    .lh-bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "vocab vocab" "tutor rank" "tutor mock" "plan grammar"; }
    .lh-ai-panel { padding: 48px 36px; }
}
@media (max-width: 900px) {
    .lh-actions { justify-content: center; }
    .lh-scard { grid-template-columns: 1fr; padding: 30px 26px 26px; gap: 6px; min-height: 0; }
    .lh-scard-vis { min-height: 0; }
    .lh-scard-vis { position: static; }
    .lh-scard-mascot { width: 104px; top: 14px; right: 58px; }
    .lh-demo { margin-top: 18px; max-width: none; }
    .lh-ai-demo { grid-template-columns: 1fr; }
    .lh-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 44px 26px; gap: 10px; }
    .lh-cta .lh-actions { justify-content: center; }
    .lh-cta-m { width: 160px; }
}
@media (max-width: 700px) {
    .lh-wrap { padding: 0 16px; }
    .lh-actions .lh-btn { flex: 1 1 auto; }
    .lh-stats { padding: 10px 0 80px; }
    .lh-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lh-stat { padding: 22px 12px; }
    .lh-stat:nth-child(3)::before { display: none; }
    .lh-stat:nth-child(n+3) { border-top: 1px solid var(--lh-line); }
    .lh-marquee { margin-top: 40px; gap: 10px; }
    .lh-mq-item { padding: 10px 18px; font-size: 14.5px; }
    .lh-head { margin-bottom: 30px; }
    .lh-scard { top: calc(var(--lh-nav) + 4px + var(--i) * 10px); border-radius: 28px; }
    .lh-scard p { font-size: 15.5px; margin-bottom: 16px; }
    .lh-scard li { font-size: 13px; padding: 7px 12px; }
    .lh-demo { padding: 18px; border-radius: 20px; }
    .lh-wave { height: 44px; }
    .lh-ai { padding: 30px 0 80px; }
    .lh-ai-panel { padding: 34px 18px 18px; border-radius: 30px; }
    .lh-ai-text { margin-bottom: 28px; padding: 0 4px; }
    .lh-ai-text p { font-size: 16px; }
    .lh-essay { padding: 0 18px 22px; }
    .lh-essay-bar { margin: 0 -18px 26px; padding: 0 16px; }
    .lh-essay p { font-size: 16.5px; line-height: 2.2; }
    .lh-score { padding: 22px; }
    .lh-bento { grid-template-columns: 1fr; grid-template-areas: "vocab" "tutor" "rank" "mock" "plan" "grammar"; gap: 14px; }
    .lh-tile { min-height: 0; padding: 22px; }
    .lh-tile--vocab { flex-direction: column; align-items: stretch; }
    .lh-flash { flex-basis: auto; height: 140px; }
    .lh-bento-sec, .lh-how { padding-bottom: 80px; }
    .lh-steps { grid-template-columns: 1fr; gap: 16px; padding-left: 0; }
    .lh-steps-line { left: 29px; right: auto; top: 30px; bottom: 30px; width: 3px; height: auto; }
    .lh-steps-line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
    .lh-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
    .lh-step-dot { flex: 0 0 60px; }
    .lh-step-card { padding: 20px; }
    .lh-cta-sec { padding-bottom: 60px; }
    .lh-cta { border-radius: 30px; }
}

/* ======================= REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
    .lh *, .lh *::before, .lh *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* =========================================================
   HERO v3 — dark cinematic card + live phone (2026-10-26)
   ========================================================= */
@keyframes lh-float { 50% { translate: 0 -14px; } }
@keyframes lh-breathe { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes lh-spin { to { transform: rotate(360deg); } }
@keyframes lh-drift1 { to { transform: translate(8vmax, 6vmax) scale(1.12); } }
@keyframes lh-drift2 { to { transform: translate(-10vmax, 8vmax) scale(.9); } }
@keyframes lh-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes lh-fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lh-lineup { from { transform: translateY(105%); } to { transform: none; } }

.lh-hero3 { padding: 14px 14px 70px; }
.lh-h3card {
    position: relative; isolation: isolate; overflow: hidden;
    max-width: 1320px; margin: 0 auto;
    border-radius: 40px;
    color: #fff;
    background:
        radial-gradient(90% 70% at 85% 10%, rgba(124,92,255,.45), transparent 60%),
        radial-gradient(80% 70% at 0% 100%, rgba(27,86,253,.45), transparent 60%),
        linear-gradient(160deg, #10155a 0%, #0a0d33 55%, #070920 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 60px 120px -60px rgba(16,20,90,.9);
}
.lh-h3-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lh-h3-bg .beam { position: absolute; top: -40%; width: 38%; height: 180%; transform-origin: 50% 0; filter: blur(28px); opacity: .55; mix-blend-mode: screen; }
.lh-h3-bg .b1 { left: 8%;  background: linear-gradient(180deg, rgba(91,124,255,.55), transparent 70%); transform: rotate(18deg); animation: lh-beam 11s ease-in-out infinite alternate; }
.lh-h3-bg .b2 { left: 45%; background: linear-gradient(180deg, rgba(167,139,250,.5), transparent 65%); transform: rotate(-12deg); animation: lh-beam 14s ease-in-out infinite alternate-reverse; }
.lh-h3-bg .b3 { left: 70%; width: 26%; background: linear-gradient(180deg, rgba(0,194,168,.35), transparent 60%); transform: rotate(-26deg); animation: lh-beam 17s ease-in-out infinite alternate; }
@keyframes lh-beam { from { rotate: -8deg; opacity: .35; } to { rotate: 8deg; opacity: .65; } }
.lh-h3-bg .stars { position: absolute; inset: 0; background-repeat: repeat; }
.lh-h3-bg .s1 { background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 120px, #cfd6ff, transparent), radial-gradient(1.4px 1.4px at 160px 60px, #fff, transparent), radial-gradient(1px 1px at 230px 180px, #fff, transparent); background-size: 260px 220px; opacity: .45; animation: lh-twinkle 4s ease-in-out infinite alternate; }
.lh-h3-bg .s2 { background-image: radial-gradient(1px 1px at 50px 80px, #fff, transparent), radial-gradient(1.6px 1.6px at 140px 20px, #b9c4ff, transparent), radial-gradient(1px 1px at 200px 140px, #fff, transparent); background-size: 300px 260px; opacity: .3; animation: lh-twinkle 5.5s ease-in-out infinite alternate-reverse; }
@keyframes lh-twinkle { to { opacity: .8; } }
.lh-h3-bg .spot { position: absolute; width: 600px; height: 600px; margin: -300px; left: var(--sx, 70%); top: var(--sy, 30%); border-radius: 50%; background: radial-gradient(closest-side, rgba(140,160,255,.18), transparent); transition: left .8s var(--lh-ease), top .8s var(--lh-ease); }
.lh-h3card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000, transparent 75%); }

.lh-h3-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 84px 72px 84px; min-height: min(760px, calc(100svh - var(--lh-nav) - 28px)); }

.lh-h3-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 12px; border-radius: 999px; margin-bottom: 26px;
    font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: #d5dcff;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; animation: lh-fadeup .9s var(--lh-ease) forwards .05s;
}
.lh-h3-pill .live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.lh-h3-pill .live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; animation: lh-ping 1.8s var(--lh-ease) infinite; }

.lh-h3-title { font-size: clamp(44px, 6vw, 84px); font-weight: 800; line-height: 1.0; letter-spacing: -0.045em; margin: 0 0 26px !important; }
.lh-h3-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.04em; }
.lh-h3-title .ln > span { display: block; animation: lh-lineup 1.1s var(--lh-ease) both; text-wrap: balance; }
.lh-h3-title .pre > span { animation-delay: .1s; color: #fff; }
.lh-h3-title .post > span { animation-delay: .32s; color: rgba(255,255,255,.92); }
.lh-rot { display: block; position: relative; font-size: 1.14em; height: 1.2em; overflow: hidden; animation: lh-fadeup 1s var(--lh-ease) both .18s; }
.lh-rot-track { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.7,0,.2,1); }
.lh-rot-track.snap { transition: none; }
.lh-rot b {
    display: block; height: 1.2em; line-height: 1.1; font-weight: 800; white-space: nowrap;
    background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent;
    width: max-content;
}
.lh-rot .c-l { --g: linear-gradient(95deg, #6d9bff, #4f7bff 50%, #8fb4ff); }
.lh-rot .c-r { --g: linear-gradient(95deg, #2ee6c8, #00c2a8 55%, #7ef0dd); }
.lh-rot .c-w { --g: linear-gradient(95deg, #ffc65c, #f59e0b 55%, #ffd88a); }
.lh-rot .c-s { --g: linear-gradient(95deg, #b9a3ff, #8b6cff 50%, #f472b6); }
.lh-rot::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--uw, 3.2em); border-radius: 4px; background: var(--uc, #4f7bff); box-shadow: 0 0 18px var(--uc, #4f7bff); transition: width .9s cubic-bezier(.7,0,.2,1), background .6s, box-shadow .6s; }

.lh-h3-lead { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.65; color: #b8c0ea; max-width: 520px; margin: 0 0 32px !important; opacity: 0; animation: lh-fadeup 1s var(--lh-ease) forwards .45s; }
.lh-h3-actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: lh-fadeup 1s var(--lh-ease) forwards .58s; }
.lh-btn--neon {
    color: #0a0d33; background: linear-gradient(135deg, #ffffff, #dfe6ff);
    box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 18px 40px -14px rgba(120,140,255,.9), 0 0 40px -10px rgba(124,92,255,.8);
}
.lh-btn--neon:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 22px 46px -14px rgba(120,140,255,1), 0 0 60px -8px rgba(124,92,255,.9); }
.lh-btn--neon::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(124,92,255,.25) 50%, transparent 65%); transform: translateX(-120%); animation: lh-shine 4.2s var(--lh-ease) infinite 2s; }
.lh-btn--dark { color: #fff; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lh-btn--dark:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }

.lh-proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14.5px; color: #c7cef2; opacity: 0; animation: lh-fadeup 1s var(--lh-ease) forwards .72s; }
.lh-proof b { color: #fff; font-variant-numeric: tabular-nums; }
.lh-proof small { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: #8f9ad0; }
.lh-proof small .icon { color: #34d399; }
.lh-avs { display: flex; flex-shrink: 0; }
.lh-avs span { width: 34px; height: 34px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--c); border: 2.5px solid #0d1140; }
.lh-avs span:first-child { margin-left: 0; }

/* ---- phone ---- */
.lh-h3-vis { position: relative; display: grid; place-items: center; perspective: 1400px; }
.lh-phone-wrap { position: relative; opacity: 0; animation: lh-phonein 1.4s var(--lh-ease) forwards .25s; }
@keyframes lh-phonein { from { opacity: 0; transform: translateY(80px) scale(.9); } to { opacity: 1; transform: none; } }
.lh-phone {
    position: relative; width: 300px; aspect-ratio: 9 / 18.6;
    padding: 11px; border-radius: 50px;
    background: linear-gradient(145deg, #2d3473, #0d1033 45%, #1b2058);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 0 0 1px #05071a, 0 50px 90px -30px rgba(0,0,0,.75), 0 0 80px -20px rgba(110,120,255,.55);
    transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 7deg)) rotateZ(1.5deg);
    transform-style: preserve-3d;
    transition: transform 1s var(--lh-ease);
    animation: lh-sway 9s ease-in-out infinite;
}
@keyframes lh-sway { 50% { translate: 0 -12px; } }
.lh-island { position: absolute; z-index: 3; left: 50%; top: 22px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #05061a; }
.lh-scr { position: relative; height: 100%; overflow: hidden; border-radius: 40px; padding: 48px 16px 16px; background: linear-gradient(180deg, #f3f6ff, #eef1fb); color: #1c2333; display: flex; flex-direction: column; gap: 12px; }
.lh-scr::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, transparent 32%); z-index: 2; }
.lh-scr-status { position: absolute; top: 18px; left: 26px; right: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.lh-scr-status span { display: flex; gap: 2px; align-items: flex-end; }
.lh-scr-status i { width: 3px; border-radius: 1px; background: #1c2333; }
.lh-scr-status i:nth-child(1) { height: 5px; } .lh-scr-status i:nth-child(2) { height: 7px; } .lh-scr-status i:nth-child(3) { height: 9px; }
.lh-scr-head { display: flex; align-items: center; justify-content: space-between; }
.lh-scr-head small { display: block; font-size: 10.5px; font-weight: 700; color: #8a93a8; letter-spacing: .02em; }
.lh-scr-head b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.lh-scr-head .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #e64980, #7c5cff); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e1e6f5; }
.lh-scr-ring { position: relative; width: 128px; height: 128px; margin: 2px auto 0; }
.lh-scr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lh-scr-ring circle { fill: none; stroke-width: 10; }
.lh-scr-ring .bg { stroke: #e3e8f6; }
.lh-scr-ring .fg { stroke: url(#lhRingG); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--lh-ease); }
.lh-scr-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lh-scr-ring b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lh-scr-ring small { font-size: 9.5px; font-weight: 700; color: #8a93a8; margin-top: 3px; }
.lh-scr-skills { display: grid; gap: 6px; }
.lh-sk { --c: #1b56fd; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px 8px; padding: 7px 10px; border-radius: 13px; background: #fff; border: 1px solid #e7ebf6; transition: transform .6s var(--lh-ease), box-shadow .6s var(--lh-ease), border-color .5s; }
.lh-sk .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--c); }
.lh-sk .nm { font-size: 12px; font-weight: 700; }
.lh-sk b { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lh-sk i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: #eef1f8; overflow: hidden; }
.lh-sk em { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1.4s var(--lh-ease); }
.lh-phone.on .lh-sk em { width: calc(var(--v) * 100%); }
.lh-sk.sk-r { --c: #00c2a8; } .lh-sk.sk-w { --c: #f59e0b; } .lh-sk.sk-s { --c: #7c5cff; }
.lh-sk.act { transform: scale(1.045); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 10px 22px -12px var(--c); }
.lh-scr-fb { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #1b56fd, #7c5cff); box-shadow: 0 12px 24px -12px rgba(60,70,240,.8); }
.lh-scr-fb .spark { width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.lh-scr-fb small { display: block; font-size: 9.5px; font-weight: 700; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }
.lh-fb-t { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; transition: opacity .35s, transform .35s; }
.lh-fb-t.swap { opacity: 0; transform: translateY(6px); }

.lh-toast {
    position: absolute; right: -54px; top: 18%; z-index: 4;
    display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px;
    color: #fff; background: rgba(20,26,80,.55); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
    opacity: 0; transform: translateY(14px) scale(.9);
    transition: opacity .6s var(--lh-ease), transform .7s var(--lh-ease);
}
.lh-toast.show { opacity: 1; transform: none; }
.lh-toast > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #34d399; color: #04261a; }
.lh-toast b { display: block; font-size: 15px; font-weight: 800; }
.lh-toast small { display: block; font-size: 11.5px; color: #b8c0ea; font-weight: 600; }
.lh-peek { position: absolute; z-index: 5; left: -118px; bottom: -26px; width: 200px; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); animation: lh-peek 1.2s var(--lh-ease) both .9s, lh-float 6s ease-in-out infinite 2s; }
@keyframes lh-peek { from { opacity: 0; transform: translateX(40px) rotate(12deg) scale(.7); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
    .lh-h3-in { padding: 64px 40px; }
    .lh-peek { left: -80px; width: 160px; }
}
@media (max-width: 900px) {
    .lh-h3-in { grid-template-columns: 1fr; gap: 54px; min-height: 0; padding: 48px 28px 70px; }
    .lh-h3-vis { padding-left: 40px; }
}
@media (max-width: 700px) {
    .lh-hero3 { padding: 8px 8px 56px; }
    .lh-h3card { border-radius: 30px; }
    .lh-h3-in { padding: 34px 20px 54px; gap: 46px; }
    .lh-h3-pill { margin-bottom: 20px; font-size: 12.5px; }
    .lh-h3-title { font-size: clamp(40px, 11.6vw, 54px); margin-bottom: 20px !important; }
    .lh-h3-lead { font-size: 16px; margin-bottom: 26px !important; }
    .lh-h3-actions .lh-btn { flex: 1 1 auto; height: 54px; }
    .lh-h3-actions .lh-btn--neon { flex-basis: 100%; }
    .lh-proof { margin-top: 24px; font-size: 13.5px; }
    .lh-avs span { width: 30px; height: 30px; font-size: 12px; }
    .lh-h3-vis { padding-left: 46px; }
    .lh-phone { width: 248px; border-radius: 42px; padding: 9px; }
    .lh-scr { border-radius: 34px; padding: 42px 13px 13px; gap: 9px; }
    .lh-island { top: 18px; width: 78px; height: 22px; margin-left: -39px; }
    .lh-scr-status { top: 15px; left: 22px; right: 20px; font-size: 11px; }
    .lh-scr-ring { width: 104px; height: 104px; }
    .lh-scr-ring b { font-size: 28px; }
    .lh-sk { padding: 6px 9px; }
    .lh-toast { right: -18px; top: 9%; padding: 8px 13px 8px 8px; }
    .lh-toast > span { width: 28px; height: 28px; }
    .lh-peek { left: -86px; bottom: -18px; width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    .lh-h3-pill, .lh-h3-lead, .lh-h3-actions, .lh-proof, .lh-phone-wrap, .lh-rot, .lh-peek { opacity: 1 !important; }
}

/* =========================================================
   UNIFIED DARK — whole landing speaks the hero's language
   (header.php forces data-theme=dark on "/", visual only)
   ========================================================= */
html[data-theme="dark"]:has(.lh) {
    --bg: #070920;
    --card: #0d1137;
    --card-2: #131848;
    --border: rgba(255,255,255,.09);
    --text: #eef1ff;
    --muted: #a3acd6;
    --muted-2: #7781b4;
    --primary: #7b93ff;
    --primary-dark: #9aaeff;
    --primary-wash: rgba(123,147,255,.14);
    --purple: #a78bfa;
    --accent: #2ee6c8;
    --gradient-hero: linear-gradient(135deg, #3b5bff 0%, #6d4dff 60%, #a855f7 100%);
    background: #070920;
}
html[data-theme="dark"]:has(.lh) body { background: #070920; }
html[data-theme="dark"]:has(.lh) .navbar { background: rgba(7,9,32,.62); border-bottom-color: rgba(255,255,255,.07); box-shadow: none; }
html[data-theme="dark"]:has(.lh) .btn-nav { color: #fff; background: linear-gradient(135deg, #3b5bff, #6d4dff); box-shadow: 0 8px 22px -10px rgba(90,90,255,.8); }
html[data-theme="dark"]:has(.lh) .site-footer { background: #05061a; border-top-color: rgba(255,255,255,.07); margin-top: 0; }

html[data-theme="dark"] .lh { --lh-line: rgba(255,255,255,.08); --lh-glass: rgba(255,255,255,.045); position: relative; }
.lh-cosmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.lh-cosmos i { position: absolute; inset: 0; }
.lh-cosmos .c1 { background: radial-gradient(60% 50% at 100% 30%, rgba(109,77,255,.16), transparent 70%), radial-gradient(60% 50% at 0% 80%, rgba(27,86,253,.16), transparent 70%); }
.lh-cosmos .c2 { background-image: radial-gradient(1px 1px at 30px 40px, #fff, transparent), radial-gradient(1.3px 1.3px at 170px 110px, #c9d1ff, transparent), radial-gradient(1px 1px at 260px 220px, #fff, transparent); background-size: 320px 280px; opacity: .3; animation: lh-twinkle 6s ease-in-out infinite alternate; }

/* section heads — same pill + white headline + gradient last word as the hero */
html[data-theme="dark"] .lh .lh-label { color: #d5dcff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); letter-spacing: .12em; }
.lh .lh-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
html[data-theme="dark"] .lh-h2 { color: #fff; }
html[data-theme="dark"] .lh-split .lh-sw:last-child > span { background: linear-gradient(95deg, #8fa6ff, #b69cff 50%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* stats */
html[data-theme="dark"] .lh-stats-grid { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.1); box-shadow: 0 30px 60px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
html[data-theme="dark"] .lh-stat b { background: linear-gradient(180deg, #fff 30%, #a9b6ff); -webkit-background-clip: text; background-clip: text; }
html[data-theme="dark"] .lh-mq-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); color: #dfe4ff; }

/* skill stack cards */
html[data-theme="dark"] .lh-scard {
    background:
        radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
        linear-gradient(160deg, #121752 0%, #0b0f33 65%);
    border-color: color-mix(in srgb, var(--c) 30%, rgba(255,255,255,.08));
    box-shadow: 0 -20px 60px -30px rgba(0,0,0,.8), 0 40px 80px -50px color-mix(in srgb, var(--c) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.07);
}
html[data-theme="dark"] .lh-scard::after { background: #070920; }
html[data-theme="dark"] .lh-scard h3 { color: #fff; }
html[data-theme="dark"] .lh-scard li { background: rgba(255,255,255,.05); border-color: color-mix(in srgb, var(--c) 35%, transparent); color: #e4e8ff; }
html[data-theme="dark"] .lh-scard-num { color: color-mix(in srgb, var(--c) 70%, #fff); }
html[data-theme="dark"] .lh-demo { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-theme="dark"] .lh-qline, html[data-theme="dark"] .lh-tfng span, html[data-theme="dark"] .lh-meters span { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .lh-bubble { background: color-mix(in srgb, var(--c) 18%, transparent); }
html[data-theme="dark"] .lh-scard-mascot, html[data-theme="dark"] .lh-tile-m { filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); }

/* AI panel sits on the same sky — give it the hero card's edge */
.lh-ai-panel { background: radial-gradient(90% 70% at 85% 10%, rgba(124,92,255,.4), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(27,86,253,.35), transparent 60%), linear-gradient(160deg, #10155a 0%, #0a0d33 55%, #070920 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 60px 120px -60px rgba(0,0,0,.9); }

/* bento */
html[data-theme="dark"] .lh-tile { background: linear-gradient(165deg, #10154a, #0b0f33); border-color: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -40px rgba(0,0,0,.8); }
html[data-theme="dark"] .lh-tile h3 { color: #fff; }
html[data-theme="dark"] .lh-tile:hover { border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -36px color-mix(in srgb, var(--tc) 80%, transparent); }
html[data-theme="dark"] .lh-tile::before { opacity: .5; }
html[data-theme="dark"] .lh-rank li, html[data-theme="dark"] .lh-chat .a, html[data-theme="dark"] .lh-cal i { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
html[data-theme="dark"] .lh-tile.is-in .lh-rank li.me { background: rgba(123,147,255,.16); border-color: rgba(123,147,255,.45); }
html[data-theme="dark"] .lh-flash .b { background: #131848; color: #fff; }
html[data-theme="dark"] .lh-big { background-image: linear-gradient(180deg, #fff, #9aaeff); }

/* steps */
html[data-theme="dark"] .lh-step-dot { background: #0d1137; border-color: rgba(255,255,255,.12); color: #7781b4; }
html[data-theme="dark"] .lh-step-card { background: linear-gradient(165deg, #10154a, #0b0f33); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .lh-step-card h3 { color: #fff; }
html[data-theme="dark"] .lh-step.on .lh-step-card { border-color: rgba(123,147,255,.4); box-shadow: 0 20px 50px -30px rgba(109,77,255,.8); }
html[data-theme="dark"] .lh-step-n { color: #8fa6ff; }

/* closing CTA = the hero card again (bookends the page) */
.lh-cta { background: radial-gradient(90% 80% at 100% 0%, rgba(168,85,247,.45), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(27,86,253,.5), transparent 60%), linear-gradient(160deg, #141a66 0%, #0a0d33 60%, #070920 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 60px 120px -60px rgba(60,50,220,.7); }
.lh-cta-bg i { background: radial-gradient(closest-side, rgba(140,160,255,.22), transparent); }
.lh-cta p { color: #b8c0ea; opacity: 1; }
.lh-hero3 { padding-bottom: 40px; }
@media (max-width: 900px) {
    .lh-cta .lh-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; gap: 12px; }
    .lh-cta .lh-btn { width: 100%; }
}

/* =========================================================
   LIGHT — same language as the dark version, daylight palette.
   Hero card, AI panel and closing CTA stay deep-indigo "showcase"
   cards in both themes, so the page still bookends consistently.
   ========================================================= */
html:not([data-theme="dark"]):has(.lh) body { background: #f5f7ff; }
html:not([data-theme="dark"]) .lh { --lh-line: rgba(20,30,90,.09); --lh-glass: rgba(255,255,255,.72); }
html:not([data-theme="dark"]) .lh-cosmos .c1 { background: radial-gradient(55% 45% at 100% 20%, rgba(109,77,255,.13), transparent 70%), radial-gradient(55% 45% at 0% 75%, rgba(27,86,253,.11), transparent 70%), radial-gradient(40% 35% at 60% 100%, rgba(0,194,168,.08), transparent 70%); }
html:not([data-theme="dark"]) .lh-cosmos .c2 { background-image: radial-gradient(rgba(27,40,120,.10) 1px, transparent 1.2px); background-size: 26px 26px; opacity: .55; animation: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
html:not([data-theme="dark"]) .lh .lh-label { color: #3049d9; background: rgba(255,255,255,.8); border-color: rgba(48,73,217,.16); letter-spacing: .12em; box-shadow: 0 6px 18px -10px rgba(40,60,200,.35); }
html:not([data-theme="dark"]) .lh-h2 { color: #0b1036; }
html:not([data-theme="dark"]) .lh-split .lh-sw:last-child > span { background: linear-gradient(95deg, #1b56fd, #6d4dff 50%, #e64980); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:not([data-theme="dark"]) .lh-stats-grid { background: rgba(255,255,255,.8); border-color: rgba(20,30,90,.08); box-shadow: 0 30px 60px -40px rgba(30,40,120,.35), inset 0 1px 0 #fff; }
html:not([data-theme="dark"]) .lh-stat b { background: linear-gradient(180deg, #0b1036 30%, #3a5bff); -webkit-background-clip: text; background-clip: text; }
html:not([data-theme="dark"]) .lh-mq-item { background: #fff; border-color: rgba(20,30,90,.08); color: #1a2150; box-shadow: 0 8px 20px -14px rgba(30,40,120,.35); }
html:not([data-theme="dark"]) .lh-scard {
    background: radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), linear-gradient(160deg, #ffffff 0%, #f4f6ff 70%);
    border-color: color-mix(in srgb, var(--c) 22%, rgba(20,30,90,.06));
    box-shadow: 0 -20px 60px -34px rgba(30,40,120,.25), 0 40px 80px -50px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 #fff;
}
html:not([data-theme="dark"]) .lh-scard::after { background: #f5f7ff; }
html:not([data-theme="dark"]) .lh-scard h3, html:not([data-theme="dark"]) .lh-tile h3, html:not([data-theme="dark"]) .lh-step-card h3 { color: #0b1036; }
html:not([data-theme="dark"]) .lh-scard li { background: #fff; border-color: color-mix(in srgb, var(--c) 28%, transparent); color: #1a2150; }
html:not([data-theme="dark"]) .lh-demo { background: rgba(255,255,255,.85); border-color: rgba(20,30,90,.08); box-shadow: 0 30px 60px -34px rgba(30,40,120,.35), inset 0 1px 0 #fff; }
html:not([data-theme="dark"]) .lh-tile { background: linear-gradient(165deg, #ffffff, #f3f5ff); border-color: rgba(20,30,90,.08); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -42px rgba(30,40,120,.4); }
html:not([data-theme="dark"]) .lh-tile:hover { border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 30px 70px -36px color-mix(in srgb, var(--tc) 55%, transparent); }
html:not([data-theme="dark"]) .lh-step-card { background: linear-gradient(165deg, #ffffff, #f3f5ff); border-color: rgba(20,30,90,.08); }
html:not([data-theme="dark"]) .lh-step.on .lh-step-card { border-color: rgba(59,91,255,.35); box-shadow: 0 20px 50px -30px rgba(59,91,255,.55); }
html:not([data-theme="dark"]) .lh-step-dot { background: #fff; }
/* dark showcase cards keep their own light-on-dark text in light theme */
html:not([data-theme="dark"]) .lh-ai-panel .lh-h2 { color: #fff; }
html:not([data-theme="dark"]) .lh-ai-panel .lh-split .lh-sw:last-child > span { background: linear-gradient(95deg, #8fa6ff, #b69cff 50%, #f472b6); -webkit-background-clip: text; background-clip: text; }
html:not([data-theme="dark"]) .lh-ai-panel .lh-label { color: #d5dcff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); box-shadow: none; }
