/* Landing Page - Human Body Explorer */

:root {
    --l-bg: #1a1a2e;
    --l-bg-alt: #16213e;
    --l-card: #1e2a45;
    --l-primary: #4A90D9;
    --l-primary-dark: #3A7BC8;
    --l-secondary: #5CB85C;
    --l-accent: #F5A623;
    --l-text: #eaeaea;
    --l-text-muted: #a0a0b8;
    --l-border: #2a2a4a;
    --l-radius: 16px;
    --l-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--l-bg);
    color: var(--l-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--l-primary);
    text-decoration: none;
}

/* ==================== NAV ==================== */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--l-border);
    transition: background 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--l-text);
}

.nav-logo span {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--l-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--l-text);
}

.nav-cta {
    background: var(--l-primary);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--l-radius-sm);
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--l-primary-dark);
    transform: translateY(-1px);
}

.lang-switcher {
    position: relative;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--l-border);
    color: var(--l-text);
    padding: 0.35rem 0.75rem;
    border-radius: var(--l-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--l-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-sm);
    overflow: hidden;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    color: var(--l-text-muted);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--l-text);
}

.lang-option.active {
    color: var(--l-primary);
    background: rgba(74, 144, 217, 0.1);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--l-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== HERO ==================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 144, 217, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(92, 184, 92, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
        var(--l-bg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

/* Dekoracyjne mockupy telefonów - screeny z gry + nowe 3D, wjeżdżające z krawędzi za tekstem */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-phone {
    position: absolute;
}

.phone-dev {
    padding: 6px;
    border-radius: 30px;
    background: linear-gradient(155deg, #283246 0%, #0a0d13 62%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 38px 72px -26px rgba(0, 0, 0, 0.92),
        0 0 60px -16px rgba(74, 144, 217, 0.55);
    animation: heroFloat 7s ease-in-out infinite alternate;
}

.phone-dev img {
    display: block;
    width: 100%;
    aspect-ratio: 1290 / 2796;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    background: #0a0d13;
}

/* lewy klaster */
.phone-l1 { left: 0.5%; top: 3%;  transform: rotate(-12deg); z-index: 1; }
.phone-l1 .phone-dev { width: 172px; animation-delay: -1s; }
.phone-l2 { left: 5%;   top: 30%; transform: rotate(-3deg); z-index: 2; }
.phone-l2 .phone-dev { width: 206px; animation-delay: -3.6s;
    box-shadow: 0 42px 78px -24px rgba(0, 0, 0, 0.92), 0 0 70px -12px rgba(124, 77, 255, 0.6); }
.phone-l2 .phone-dev img { object-position: top center; }

/* prawy klaster */
.phone-r1 { right: 0.5%; top: 5%;  transform: rotate(12deg); z-index: 1; }
.phone-r1 .phone-dev { width: 172px; animation-delay: -2.3s; }
.phone-r2 { right: 5%;   top: 32%; transform: rotate(3deg); z-index: 2; }
.phone-r2 .phone-dev { width: 206px; animation-delay: -5s; }

@keyframes heroFloat {
    from { transform: translateY(-11px); }
    to   { transform: translateY(11px); }
}

/* Wąskie ekrany: chowamy mockupy, żeby nie kolidowały z tekstem */
@media (max-width: 1279px) {
    .hero-decor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .phone-dev { animation: none; }
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 144, 217, 0.15);
    color: var(--l-primary);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(74, 144, 217, 0.25);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #a0c4f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .emoji {
    -webkit-text-fill-color: initial;
}

.hero p {
    font-size: 1.2rem;
    color: var(--l-text-muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--l-primary);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: var(--l-radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.3);
}

.btn-primary:hover {
    background: var(--l-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(74, 144, 217, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--l-text);
    padding: 0.9rem 2rem;
    border-radius: var(--l-radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    border: 1px solid var(--l-border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: var(--l-card);
    border-color: var(--l-text-muted);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--l-border);
}

.hero-stat .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--l-primary);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--l-text-muted);
}

/* ==================== SECTIONS ==================== */

section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--l-text-muted);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== FEATURES ==================== */

.features {
    background: var(--l-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--l-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 2rem 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card .badge {
    display: inline-block;
    background: rgba(245, 166, 35, 0.15);
    color: var(--l-accent);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--l-text-muted);
    line-height: 1.5;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}
.pricing .section-title {
    color: #fff;
}
.pricing .section-subtitle {
    color: #cbd5e1;
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 40px auto 0;
}
@media (max-width: 720px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
/* Find me 3D box: stack na mobile (model nad opisem) */
@media (max-width: 760px) {
    .findme3d-box > div { grid-template-columns: 1fr !important; }
}
/* HUD nakladany na model — wierna kopia stylu z gry (q3-*), ale tlumaczony przez i18n */
.fm3d-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none;
    padding: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fm3d-prompt { max-width: 72%; background: rgba(13,18,28,.82); border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px; padding: 9px 13px; backdrop-filter: blur(8px); color: #f2f5fa; }
.fm3d-lead { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8ea2c0; margin-bottom: 2px; }
.fm3d-name { font-size: clamp(15px,2.4vw,21px); font-weight: 800; line-height: 1.12; }
.fm3d-latin { font-size: 11px; font-style: italic; color: #9fb2cf; margin-top: 1px; }
.fm3d-timer { flex-shrink: 0; display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(13,18,28,.82);
    backdrop-filter: blur(8px); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: #eaf1fb; }
.fm3d-timer.warn { color: #ffc14d; border-color: rgba(255,193,77,.5); }

/* ── Wiecej trybow 3D: 3 kompaktowe karty (Co to jest / Zloz uklad / Przesledz droge) ──
   Tlo = PRAWDZIWY render modelu (neutralny jezykowo), HUD = HTML tlumaczony przez i18n,
   wzorzec jak find-me. Wyglad HUD = wierna, mniejsza kopia stylu gry (id3-/asm3-/pth3-). */
.mode3d-heading { text-align: center; font-size: clamp(18px,2.6vw,24px); font-weight: 900; margin: 0 0 6px; }
.mode3d-sub { text-align: center; color: #9fb2cf; font-size: 14px; margin: 0 0 22px; }
.mode3d-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 760px) { .mode3d-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.mode3d-card { background: linear-gradient(135deg,rgba(53,208,255,.08),rgba(74,168,255,.04));
    border: 1px solid rgba(127,227,255,.20); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; }
.mode3d-card h4 { font-size: 16px; font-weight: 800; margin: 13px 0 4px; }
.mode3d-card > p { color: #b9c6da; font-size: 13px; line-height: 1.5; margin: 0; }
.mode3d-card .m3-stat { color: #cdd8ea; font-size: 12px; margin-top: 9px; line-height: 1.7; }

.m3-stage { position: relative; aspect-ratio: 4/3; border-radius: 13px; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 38%,#0d1422,#06090f); border: 1px solid rgba(255,255,255,.07); }
.m3-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m3-hud { position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none; padding: 9px; }
.m3-top { top: 0; display: flex; gap: 7px; align-items: flex-start; justify-content: space-between; }
.m3-prompt { min-width: 0; background: rgba(13,18,28,.82); border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px; padding: 7px 10px; backdrop-filter: blur(8px); color: #f2f5fa; }
.m3-lead { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #8ea2c0; margin-bottom: 2px; }
.m3-q, .m3-name { font-size: 13px; font-weight: 800; line-height: 1.14; }
.m3-timer { flex-shrink: 0; display: flex; align-items: center; gap: 4px; height: 25px; padding: 0 9px;
    border-radius: 13px; border: 1px solid rgba(255,193,77,.5); background: rgba(13,18,28,.82); backdrop-filter: blur(8px);
    font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; color: #ffc14d; }
.m3-tool { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; border: 1px solid rgba(127,227,255,.5); background: rgba(13,18,28,.82); font-size: 13px; backdrop-filter: blur(8px); }
.m3-progress { margin-top: 6px; }
.m3-bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.13); overflow: hidden; }
.m3-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#7fe3ff,#4aa8ff); }
.m3-count { font-size: 9.5px; font-weight: 700; color: #9fb2cf; margin-top: 3px; }

/* Co to jest? — opcje 2x2 na dole (poprawna podswietlona) */
.m3-opts { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 9px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m3-opt { border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 6px 8px; min-height: 30px;
    font-size: 10.5px; font-weight: 700; color: #eaf1fb; background: rgba(13,18,28,.85); backdrop-filter: blur(8px);
    line-height: 1.15; display: flex; align-items: center; }
.m3-opt.m3-correct { background: linear-gradient(135deg,#7bf0a4,#2ecc71); color: #06281a; border-color: transparent;
    box-shadow: 0 6px 20px rgba(46,204,113,.4); animation: m3glow 2.2s ease-in-out infinite; }
@keyframes m3glow { 50% { box-shadow: 0 6px 28px rgba(46,204,113,.75); } }

/* Zloz uklad — taca chipow (dolny pasek) */
.m3-tray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 8px; display: flex; gap: 6px; overflow: hidden; }
.m3-chip { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 6px 9px;
    font-size: 10.5px; font-weight: 700; color: #eaf1fb; background: rgba(13,18,28,.85); backdrop-filter: blur(8px); white-space: nowrap; }
.m3-chip.m3-on { background: linear-gradient(135deg,#7fe3ff,#4aa8ff); color: #07121e; border-color: transparent;
    box-shadow: 0 6px 20px rgba(74,168,255,.4); animation: m3pulse 2.2s ease-in-out infinite; }
@keyframes m3pulse { 50% { transform: translateY(-2px); } }

/* Przesledz droge — swiecacy slad jest teraz w PRAWDZIWYM renderze (mode_pathway.jpg), nie fejk-SVG */

@media (prefers-reduced-motion: reduce) {
    .m3-opt.m3-correct, .m3-chip.m3-on { animation: none !important; }
}
.pricing-card {
    background: #0f172a;
    border-radius: 20px;
    padding: 36px 28px;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card.free {
    border-color: rgba(148,163,184,0.3);
}
.pricing-card.pro {
    border-color: rgba(139,92,246,0.6);
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
}
.pricing-card h3 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
}
.pricing-card.free h3 { color: #cbd5e1; }
.pricing-card.pro h3 {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pricing-features li.muted { color: #64748b; }
.pricing-cta.secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: none;
}
.pricing-cta.secondary:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.06em;
}
.pricing-card h2 {
    margin: 8px 0 16px;
    font-size: 26px;
}
/* Make Free card's free-card price less prominent */
.pricing-card.free .pricing-amount {
    background: none;
    -webkit-text-fill-color: initial;
    color: #cbd5e1;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 4px;
}
.pricing-strike {
    font-size: 24px;
    color: #64748b;
    text-decoration: line-through;
    font-weight: 600;
    margin-right: 4px;
}
.pricing-countdown {
    font-size: 12px;
    color: #fbbf24;
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}
.pricing-amount {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pricing-period {
    font-size: 16px;
    color: #94a3b8;
}
.pricing-or {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 28px;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-features li {
    padding: 8px 0;
    color: #e2e8f0;
    font-size: 15px;
}
.pricing-cta {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    margin-top: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}
.pricing-note {
    color: #64748b;
    font-size: 12px;
    margin-top: 20px;
}

/* ==================== HOW IT WORKS ==================== */

.how-it-works {
    background: var(--l-bg);
}

.steps {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.step {
    flex: 1;
    text-align: center;
    max-width: 260px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--l-primary), var(--l-primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--l-text-muted);
}

/* Connector arrows between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--l-border);
}

/* ==================== SHOWCASE ==================== */

.showcase {
    background: var(--l-bg-alt);
}

/* --- Main showcase: viewer + info side by side --- */

.showcase-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto 3rem;
    align-items: start;
}

/* --- Breadcrumbs (matching game dark mode) --- */

.sc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
}

.sc-crumb {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.sc-crumb:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sc-crumb-active {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* --- Organ preview card (matching game dark mode) --- */

.sc-organ-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin: 0 16px 16px;
}

.sc-canvas-wrap {
    position: relative;
    background: radial-gradient(ellipse at center, #1a2744 0%, #0f1829 100%);
}

.sc-canvas-wrap canvas {
    width: 100%;
    height: 280px;
    display: block;
}

.sc-rate {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff6666;
    animation: ratePulse 1s ease-in-out infinite;
}

@keyframes ratePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* --- View tabs (matching game dark mode exactly) --- */

.sc-view-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    gap: 6px;
}

.sc-vtab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 5px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.sc-vtab span:first-child {
    font-size: 18px;
}

.sc-vtab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.sc-vtab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Organ stats (matching game dark mode exactly) --- */

.sc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.sc-stat {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.sc-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
}

.sc-stat-lbl {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

/* --- Animation viewer (left column wrapper) --- */

.showcase-viewer {
    background: var(--l-card);
    border-radius: 20px;
    overflow: hidden;
}

/* --- Info panel (right, matching game dark mode exactly) --- */

.sc-info-panel {
    background: rgba(0, 0, 0, 0.4);
    border-top: 3px solid var(--l-primary);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
}

.sc-info-header {
    font-size: 12px;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sc-info-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sc-info-latin {
    font-style: italic;
    color: var(--l-text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.sc-info-type {
    display: inline-block;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.sc-info-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.55;
    margin-bottom: 16px;
}

.sc-info-details {
    border-top: 1px solid var(--l-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-detail {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.sc-detail-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.sc-fun-fact {
    background: rgba(255, 200, 100, 0.1);
    border-left: 3px solid #ffcc66;
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
}

.sc-fun-fact .sc-detail-label {
    color: #ffcc66;
}

.sc-mechanism {
    font-size: 13px;
}

/* --- Bottom preview row --- */

.preview-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.preview-mini {
    text-align: center;
}

.mini-label {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--l-text-muted);
    font-weight: 500;
}

/* --- Screen frame (shared for all bottom previews) --- */

.sc-screen {
    background: var(--l-bg);
    border-radius: var(--l-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 12px;
}

.preview-mini:hover .sc-screen {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Main menu mockup (matching game: menu-card, quick-stats) --- */

.sc-menu-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--l-text);
    text-align: center;
    margin-bottom: 8px;
}

.sc-menu-xp {
    margin-bottom: 10px;
}

.sc-xp-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.sc-xp-fill {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, var(--l-primary), #6bb3f0);
    border-radius: 3px;
}

.sc-xp-text {
    font-size: 10px;
    color: var(--l-text-muted);
    text-align: right;
    margin-top: 2px;
}

.sc-menu-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.sc-ms {
    text-align: center;
    font-size: 10px;
    color: var(--l-text-muted);
    line-height: 1.4;
}

.sc-ms b {
    color: var(--l-text);
    font-size: 14px;
    display: block;
}

.sc-ms span {
    font-size: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sc-menu-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* Game mode cards - matching game exactly: menu-card */
.sc-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--l-radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Glossy overlay like the real game (menu-card::after) */
.sc-mode::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sc-mode span:first-child {
    font-size: 16px;
}

/* Exact gradients from the game */
.sc-mode-green { background: linear-gradient(145deg, #5CB85C, #449d44); }
.sc-mode-orange { background: linear-gradient(145deg, #F5A623, #d4910e); }
.sc-mode-red { background: linear-gradient(145deg, #e74c3c, #c0392b); }
.sc-mode-coral { background: linear-gradient(145deg, #FF5722, #E64A19); }

/* --- Explorer mockup (matching game: body-part-card) --- */

.sc-expl-crumbs {
    margin-bottom: 8px;
}

.sc-ec {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 11px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.sc-expl-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Matching game: body-part-card */
.sc-expl-card {
    background: var(--l-card);
    border: 2px solid transparent;
    border-radius: var(--l-radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.25s;
}

.sc-expl-discovered {
    border-color: var(--l-secondary);
    background: rgba(92, 184, 92, 0.05);
}

.sc-expl-icon {
    font-size: 28px;
}

.sc-expl-info {
    flex: 1;
    min-width: 0;
}

.sc-expl-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--l-text);
}

.sc-expl-latin {
    font-size: 10px;
    color: var(--l-text-muted);
    font-style: italic;
    margin-top: 2px;
}

/* --- PvP mockup (matching game: pvp-battle-header) --- */

.sc-pvp-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--l-text);
    text-align: center;
    margin-bottom: 10px;
}

.sc-pvp-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--l-card);
    border-radius: var(--l-radius-sm);
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
}

.sc-pvp-p {
    text-align: center;
    flex: 1;
}

.sc-pvp-lvl {
    font-size: 10px;
    color: var(--l-text-muted);
}

.sc-pvp-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--l-text);
    display: block;
}

.sc-pvp-score {
    font-size: 24px;
    font-weight: 800;
}

.sc-score-me {
    color: var(--l-primary);
}

.sc-score-opp {
    color: #e74c3c;
}

.sc-pvp-vs {
    font-size: 16px;
    font-weight: 800;
    color: var(--l-text-muted);
    padding: 0 8px;
}

.sc-pvp-info {
    font-size: 11px;
    color: var(--l-text-muted);
    text-align: center;
}

.sc-pvp-elo {
    font-size: 11px;
    color: var(--l-accent);
    font-weight: 600;
    text-align: center;
    margin-top: 4px;
}

/* ==================== FAQ ==================== */

.faq {
    background: var(--l-bg);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--l-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--l-text);
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: var(--l-text-muted);
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

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

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

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--l-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== CTA ==================== */

.cta-section {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(74, 144, 217, 0.1) 0%, transparent 60%),
        var(--l-bg-alt);
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--l-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--l-card);
    border: 1px solid var(--l-border);
    color: var(--l-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--l-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.store-btn:hover {
    background: var(--l-bg);
    border-color: var(--l-text-muted);
}

.store-btn .store-icon {
    font-size: 1.5rem;
}

/* ==================== FOOTER ==================== */

.landing-footer {
    background: var(--l-bg);
    border-top: 1px solid var(--l-border);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--l-text-muted);
    font-size: 0.85rem;
}

.landing-footer a {
    color: var(--l-text-muted);
    transition: color 0.2s;
}

.landing-footer a:hover {
    color: var(--l-text);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ==================== ANIMATIONS ==================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.97);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--l-border);
    }

    .lang-dropdown {
        left: 0;
        right: auto;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat .number {
        font-size: 1.35rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .showcase-main {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .sc-organ-card {
        margin: 0 8px 8px;
    }

    .sc-stats {
        padding: 0 8px 12px;
    }

    .sc-info-panel {
        padding: 16px;
    }

    .preview-row {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    section {
        padding: 3.5rem 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sc-canvas-wrap canvas {
        height: 220px;
    }

    .sc-vtab span:first-child {
        font-size: 16px;
    }

    .sc-vtab {
        padding: 8px 3px;
        font-size: 10px;
    }

    .sc-breadcrumbs {
        gap: 6px;
        padding: 8px 12px;
    }

    .sc-crumb {
        font-size: 11px;
        padding: 4px 8px;
    }

    .sc-info-name {
        font-size: 18px;
    }

    .sc-info-desc,
    .sc-detail {
        font-size: 12px;
    }
}
