/* ==========================================
   MSUB YOTESHIN 3.0 — STYLES
   Dark cinematic, FLAT design, NO glass cards,
   NO gradients on buttons, bold filled icons
   ========================================== */

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

/* Custom Fonts */

@font-face {
    font-family: 'Z08Strong';
    src: url('Z10-Cartoon.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Z08Strong';
    src: url('Z10-Cartoon.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0c0c0e;
    --bg-alt: #101012;
    --bg-raised: #18181b;
    --accent: #d72c2c;
    --accent-dark: #b91c1c;
    --white: #f2f2f2;
    --gray: #9a9aa3;
    --muted: #5c5c66;
    --divider: #222226;
    --radius: 12px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.mm-font { font-family: 'Z08Strong', 'Noto Sans Myanmar', 'Inter', sans-serif; font-weight: 500; }
.accent { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(12,12,14,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(12,12,14,0.97); box-shadow: 0 1px 0 var(--divider); }

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 40px; height: 40px; object-fit: contain; }
.logo-text { font-family: 'Z08Strong', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; -webkit-text-stroke: 0.5px var(--accent); paint-order: stroke fill; }

.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--gray); transition: var(--transition);
}
.nav-link svg { width: 16px; height: 16px; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 0 80px; text-align: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(215,44,44,0.07) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; animation: fadeUp .7s ease; }

.hero-logo-wrap { margin-bottom: 24px; }
.hero-logo-img {
    width: 130px; height: 130px; object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(215,44,44,0.2));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-title {
    font-family: 'Z08Strong', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 16px; letter-spacing: -0.02em;
    -webkit-text-stroke: 1.5px var(--accent);
    paint-order: stroke fill;
}
.hero-subtitle {
    font-size: 1rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 32px;
}

/* Platform chips */
.hero-platforms { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.plat-chip {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 10px 14px; min-width: 72px;
    background: var(--bg-raised); border-radius: 10px;
    color: var(--gray); transition: var(--transition); cursor: default;
}
.plat-chip svg { width: 24px; height: 24px; }
.plat-chip span { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.plat-chip:hover { color: var(--accent); background: rgba(215,44,44,0.1); }

/* CTA button */
.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; background: var(--accent); color: #fff;
    font-weight: 600; font-size: .95rem; border-radius: 50px;
    transition: var(--transition);
}
.hero-cta svg { width: 20px; height: 20px; }
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .15em;
    color: var(--accent); margin-bottom: 10px;
}
.section-title {
    font-family: 'Z08Strong', 'Inter', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800; line-height: 1.25;
    -webkit-text-stroke: 1px var(--accent);
    paint-order: stroke fill;
}
.section-desc { color: var(--gray); margin-top: 10px; font-size: .95rem; }

/* ===== ABOUT ===== */
.about { background: var(--bg-alt); }

.about-intro {
    display: flex; align-items: center; gap: 36px;
    margin-bottom: 56px;
}
.about-logo { width: 100px; height: 100px; flex-shrink: 0; }
.about-text p { color: var(--gray); font-size: .95rem; line-height: 2; margin-bottom: 8px; }

/* Stats — flat row, no cards */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}
.stat-item {
    text-align: center; padding: 32px 16px;
    border-right: 1px solid var(--divider);
}
.stat-item:last-child { border-right: none; }
.stat-icon-wrap {
    width: 40px; height: 40px; margin: 0 auto 12px;
    color: var(--accent);
}
.stat-icon-wrap svg { width: 100%; height: 100%; }
.stat-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.stat-item p { font-size: .8rem; color: var(--muted); }

/* ===== FEATURES ===== */
.features { background: var(--bg); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feat-item {
    padding: 36px 28px;
    border-bottom: 1px solid var(--divider);
    border-right: 1px solid var(--divider);
    transition: var(--transition);
}
.feat-item:nth-child(3n) { border-right: none; }
.feat-item:nth-last-child(-n+3) { border-bottom: none; }
.feat-item:hover { background: var(--bg-raised); }

.feat-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 16px; }
.feat-icon svg { width: 100%; height: 100%; }
.feat-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; -webkit-text-stroke: 0.5px var(--accent); paint-order: stroke fill; }
.feat-item p { font-size: .88rem; color: var(--gray); line-height: 1.7; }

/* ===== DOWNLOADS ===== */
.downloads { background: var(--bg-alt); }

.dl-block {
    padding: 36px 0;
    border-bottom: 1px solid var(--divider);
}
.dl-block:last-child { border-bottom: none; }

.dl-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.dl-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(215,44,44,0.1); border-radius: 10px;
    color: var(--accent);
}
.dl-icon svg { width: 26px; height: 26px; }
.dl-heading h3 { font-family: 'Z08Strong', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; -webkit-text-stroke: 0.5px var(--accent); paint-order: stroke fill; }
.dl-heading span { font-size: .82rem; color: var(--muted); display: block; margin-top: 2px; }

.dl-desc { color: var(--gray); font-size: .9rem; line-height: 1.8; margin-bottom: 20px; padding-left: 64px; }

.dl-links { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 64px; }

.dl-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: 8px;
    font-weight: 600; font-size: .85rem;
    transition: var(--transition);
}
.dl-btn svg { width: 16px; height: 16px; }

.dl-btn.primary { background: var(--accent); color: #fff; }
.dl-btn.primary:hover { background: var(--accent-dark); }

.dl-btn.outline {
    background: transparent; color: var(--white);
    box-shadow: inset 0 0 0 1.5px var(--divider);
}
.dl-btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--gray); }

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid var(--divider); padding: 56px 0 28px; }

.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { width: 48px; height: 48px; }
.footer-brand h3 { font-family: 'Z08Strong', 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; }
.footer-brand p { color: var(--muted); font-size: .85rem; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
    font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--gray); margin-bottom: 6px;
}
.footer-col a { font-size: .85rem; color: var(--muted); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid var(--divider); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: .8rem; color: var(--muted); }

/* ===== FAB ===== */
.fab-wrap {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
}
.fab-btn {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(215,44,44,0.35);
    transition: var(--transition); position: relative;
}
.fab-btn:hover { background: var(--accent-dark); transform: scale(1.06); }
.fab-btn svg { width: 22px; height: 22px; transition: var(--transition); }
.fab-close { position: absolute; opacity: 0; transform: rotate(-90deg); }

.fab-wrap.open .fab-open { opacity: 0; transform: rotate(90deg); }
.fab-wrap.open .fab-close { opacity: 1; transform: rotate(0); }

.fab-items {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: var(--transition);
}
.fab-wrap.open .fab-items { opacity: 1; visibility: visible; transform: translateY(0); }

.fab-item {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-raised); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); position: relative;
    opacity: 0; transform: scale(.5);
}
.fab-wrap.open .fab-item { opacity: 1; transform: scale(1); }
.fab-wrap.open .fab-item:nth-child(1) { transition-delay: .04s; }
.fab-wrap.open .fab-item:nth-child(2) { transition-delay: .08s; }
.fab-wrap.open .fab-item:nth-child(3) { transition-delay: .12s; }
.fab-wrap.open .fab-item:nth-child(4) { transition-delay: .16s; }

.fab-item:hover { background: var(--accent); }
.fab-item svg { width: 20px; height: 20px; }

.fab-item[data-label]::before {
    content: attr(data-label); position: absolute;
    right: 54px; top: 50%; transform: translateY(-50%);
    background: var(--bg-raised); color: var(--white);
    padding: 4px 10px; border-radius: 6px;
    font-size: .75rem; font-weight: 500; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: var(--transition);
}
.fab-item:hover[data-label]::before { opacity: 1; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-item:nth-child(2n) { border-right: none; }
    .feat-item:nth-child(3) { border-right: 1px solid var(--divider); }
    .feat-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--divider); }
    .feat-item:nth-last-child(-n+2) { border-bottom: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 68px; left: 0; right: 0;
        background: rgba(12,12,14,0.98); backdrop-filter: blur(14px);
        flex-direction: column; padding: 12px 20px;
        transform: translateY(-110%); opacity: 0; visibility: hidden;
        transition: var(--transition);
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-logo-img { width: 100px; height: 100px; }

    .about-intro { flex-direction: column; text-align: center; }
    .about-logo { width: 80px; height: 80px; }

    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }

    .features-grid { grid-template-columns: 1fr; }
    .feat-item { border-right: none !important; }
    .feat-item:not(:last-child) { border-bottom: 1px solid var(--divider) !important; }

    .dl-desc, .dl-links { padding-left: 0; }
    .dl-links { flex-direction: column; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.9rem; }
    .plat-chip { min-width: 56px; padding: 8px 10px; }
    .plat-chip svg { width: 20px; height: 20px; }
    .plat-chip span { font-size: .6rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

::selection { background: rgba(215,44,44,0.3); color: #fff; }
