/* =========================================================
   MIXIE — Warm, Playful, Premium Dark
   Nunito (headings) + DM Sans (body)
   ========================================================= */

:root {
    --bg:       #0e0c0a;
    --bg-warm:  #141110;
    --surface:  #1a1714;
    --surface2: #211e1a;
    --surface3: #292420;
    --border:   rgba(255,200,120,0.07);
    --border-h: rgba(255,200,120,0.15);
    --fire:     #e8531e;
    --fire-soft:#f0723a;
    --ember:    #faa94b;
    --gold:     #ffd06a;
    --glow:     rgba(232,83,30,0.22);
    --glow-warm:rgba(250,169,75,0.12);
    --text:     #f2ebe4;
    --text-dim: #937e6e;
    --text-faint:#5a4d42;
    --heading:  'Nunito', sans-serif;
    --body:     'DM Sans', sans-serif;
    --ease:     cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h:    64px;
    --radius:   20px;
    --radius-sm:12px;
}

/* ===== RESET ===== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232,83,30,0.3); color: #fff; }

/* ===== GRAIN ===== */
.grain {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none; opacity: 0.022;
    filter: url(#grain);
    mix-blend-mode: overlay;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(26px) }
    to   { opacity:1; transform:translateY(0) }
}
@keyframes bounce-in {
    0%   { opacity:0; transform: scale(.85) translateY(20px) }
    60%  { transform: scale(1.03) translateY(-4px) }
    100% { opacity:1; transform: scale(1) translateY(0) }
}
@keyframes wiggle {
    0%,100% { transform: rotate(0deg) }
    25%     { transform: rotate(6deg) }
    75%     { transform: rotate(-6deg) }
}
@keyframes float {
    0%,100% { transform: translateY(0) }
    50%     { transform: translateY(-8px) }
}
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes orbit-spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes pulse-glow {
    0%,100% { opacity: .4; transform: scale(1) }
    50%     { opacity: .7; transform: scale(1.15) }
}

/* ===== LAYOUT ===== */
.container { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1.5rem,5vw,2.5rem); }
.center { text-align: center; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
    font-family: var(--heading);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 1rem;
}
.sec-h2 {
    font-family: var(--heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
.body-text {
    font-size: .93rem;
    color: var(--text-dim);
    line-height: 1.85;
    max-width: 480px;
}
.body-text + .body-text { margin-top: 1.2rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    padding: 0 clamp(1.5rem,5vw,2.5rem);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 900;
    transition: background .35s, backdrop-filter .35s;
}
.navbar.scrolled {
    background: rgba(14,12,10,0.88);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--heading); font-weight: 900; font-size: 1.2rem;
    color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: .35rem;
    transition: transform .2s var(--ease);
}
.nav-logo:hover { transform: scale(1.04); }
.nav-logo span { color: var(--ember); }

.nav-right { display: flex; align-items: center; }
.lang-switch { position: relative; cursor: pointer; }
.lang-current {
    display: flex; align-items: center; gap: .35rem;
    padding: .35rem .8rem;
    font-size: .78rem; font-weight: 500;
    color: var(--text-dim);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all .2s;
}
.lang-current:hover { border-color: var(--border-h); color: var(--text); }
.lang-menu {
    position: absolute; top: 140%; right: 0;
    background: var(--surface2);
    border: 1px solid var(--border-h);
    border-radius: var(--radius-sm); padding: .4rem; width: 155px;
    opacity: 0; visibility: hidden; transform: translateY(6px) scale(.96);
    transition: all .2s var(--ease-out);
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.lang-switch:hover .lang-menu { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.lang-option {
    padding: .5rem .7rem;
    font-size: .82rem; color: var(--text-dim);
    border-radius: 8px; cursor: pointer; transition: all .15s;
}
.lang-option:hover { background: var(--glow-warm); color: var(--ember); }

.menu-toggle {
    display: none; flex-direction: column; gap: 7px;
    cursor: pointer; z-index: 1002; padding: 10px;
}
.menu-toggle span {
    width: 20px; height: 1.5px; background: var(--text-dim);
    border-radius: 2px; transition: all .3s var(--ease-out); display: block;
}
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(3px,3px); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg) translate(3px,-3px); }

/* Mobile overlay */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 1001;
    background: rgba(14,12,10,0.97);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all .4s var(--ease-out);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mob-inner { text-align: center; }
.mob-emoji { font-size: 2.5rem; margin-bottom: .8rem; }
.mob-brand { font-family: var(--heading); font-size: 2rem; font-weight: 900; color: var(--ember); margin-bottom: 2.5rem; }
.mob-lang-list { display: flex; flex-direction: column; gap: 1rem; }
.mob-lang {
    font-family: var(--heading); font-size: 1.2rem; font-weight: 700;
    color: var(--text-dim); cursor: pointer; transition: color .2s; padding: .3rem 1rem;
}
.mob-lang.active,.mob-lang:hover { color: var(--ember); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: calc(var(--nav-h) + 3rem) 0 3rem;
}
#emberCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    top: 20%; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(250,169,75,0.08) 0%, transparent 70%);
    filter: blur(60px); pointer-events: none; z-index: 0;
    animation: pulse-glow 6s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; }

.hero-title {
    font-family: var(--heading);
    font-size: clamp(4.5rem, 15vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 0; animation: bounce-in .8s var(--ease) .05s forwards;
}
.hero-sub {
    font-family: var(--heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp .7s var(--ease-out) .15s forwards;
}


.hero-p {
    font-size: clamp(.88rem, 1.05vw, .95rem);
    color: var(--text-dim);
    line-height: 1.85;
    max-width: 520px; margin: 0 auto 2rem;
    opacity: 0; animation: fadeUp .7s var(--ease-out) .3s forwards;
}

.hero-ctas {
    display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 3rem;
    opacity: 0; animation: fadeUp .7s var(--ease-out) .4s forwards;
}

/* Buttons */
.btn-main {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.8rem;
    font-family: var(--heading); font-size: .85rem; font-weight: 800;
    color: #fff; text-decoration: none;
    background: var(--fire);
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: all .25s var(--ease);
    box-shadow: 0 2px 8px var(--glow);
    position: relative; overflow: hidden;
}
.btn-main::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 50%);
    pointer-events: none;
}
.btn-main:hover {
    background: var(--fire-soft);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px var(--glow);
}
.btn-main:active { transform: translateY(0) scale(.97); }
.btn-lg { padding: .95rem 2.4rem; font-size: .9rem; border-radius: 14px; }

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: .8rem 1.5rem;
    font-family: var(--heading); font-size: .85rem; font-weight: 700;
    color: var(--text-dim); text-decoration: none;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all .2s;
}
.btn-ghost:hover { border-color: var(--border-h); color: var(--text); background: rgba(255,255,255,.03); }

/* Element chips */
.hero-chips {
    display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: fadeUp .7s var(--ease-out) .55s forwards;
}
.chip {
    display: flex; align-items: center; gap: .4rem;
    padding: .35rem .85rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--heading); font-size: .72rem; font-weight: 700;
    color: var(--text-dim);
    transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--border-h); transform: translateY(-2px); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chip-mystery {
    background: var(--surface2); border-style: dashed; color: var(--text-faint);
    cursor: default;
}
.chip-mystery span { font-size: .85rem; }

/* ===== MARQUEE ===== */
.marquee-wrap {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden; user-select: none;
}
.marquee-track {
    display: flex; gap: 0;
    animation: marquee 45s linear infinite; width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.mq-item {
    display: flex; align-items: center; gap: .7rem;
    padding: 0 2rem; white-space: nowrap;
}
.mq-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--fire); opacity: .4; flex-shrink: 0;
}
.mq-text {
    font-family: var(--heading); font-size: .82rem; font-weight: 700;
    color: var(--text-faint); letter-spacing: .02em;
}

/* ===== WHAT IS IT ===== */
.section-what { padding: clamp(4rem,8vw,7rem) 0; }
.what-grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem,5vw,5rem); align-items: start;
}
.what-left .sec-h2 { margin-bottom: 0; }

/* ===== FEATURES ===== */
.section-feat {
    padding: clamp(4rem,8vw,7rem) 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section-feat .sec-h2 { margin-bottom: clamp(2.5rem,4vw,3.5rem); }

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
}
.feat-card {
    padding: clamp(1.5rem,2.5vw,2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .3s var(--ease);
    position: relative;
}
.feat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-h);
    box-shadow: 0 12px 36px rgba(0,0,0,.3);
    background: var(--surface2);
}

.fc-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--glow-warm);
    color: var(--ember);
    font-size: .95rem;
    margin-bottom: 1.1rem;
    transition: transform .3s var(--ease), background .3s;
}
.feat-card:hover .fc-icon { transform: scale(1.08); background: rgba(250,169,75,0.18); }

.feat-card h3 {
    font-family: var(--heading); font-size: 1rem; font-weight: 800;
    color: var(--text); margin-bottom: .5rem;
}
.feat-card p { font-size: .84rem; color: var(--text-dim); line-height: 1.7; }

/* ===== DISCOVERY TEASER ===== */
.section-disc { padding: clamp(4rem,8vw,7rem) 0; }
.disc-card {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem,4vw,4rem); align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(2rem,4vw,3.5rem);
}

.disc-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative; min-height: 280px;
}
.orbit-ring {
    position: absolute; border: 1px solid var(--border); border-radius: 50%;
    animation: orbit-spin linear infinite;
}
.r1 { width: 260px; height: 260px; animation-duration: 30s; }
.r2 { width: 190px; height: 190px; animation-duration: 22s; animation-direction: reverse; }
.r3 { width: 120px; height: 120px; animation-duration: 16s; }
.orbit-dots { position: absolute; width: 260px; height: 260px; }
.orbit-center {
    position: absolute;
    font-family: var(--heading); font-size: 2rem; font-weight: 900;
    color: var(--text-faint);
}
.orbit-center span { color: var(--fire-soft); }
.o-dot {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: float 3s ease-in-out infinite;
}

.disc-text .sec-h2 { margin-bottom: 1.2rem; }

/* ===== CTA ===== */
.section-cta {
    padding: clamp(4rem,8vw,7rem) 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
}
.cta-inner { text-align: center; max-width: 520px; margin: 0 auto; }

.cta-h2 {
    font-family: var(--heading); font-size: clamp(2rem,4.5vw,3rem);
    font-weight: 900; color: var(--text); letter-spacing: -0.02em;
    margin-bottom: .8rem;
}
.cta-sub { color: var(--text-dim); font-size: .92rem; line-height: 1.7; margin-bottom: 2.2rem; }

/* ===== FOOTER ===== */
footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.foot-inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--text-faint);
}
.foot-brand { font-family: var(--heading); font-weight: 800; font-size: .9rem; color: var(--text-dim); }
.foot-link { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.foot-link:hover { color: var(--ember); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-right { display: none; }
    .menu-toggle { display: flex; }

    .hero-h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-main, .btn-ghost { width: 100%; max-width: 300px; justify-content: center; }

    .what-grid { grid-template-columns: 1fr; gap: 2rem; }
    .feat-grid { grid-template-columns: 1fr; }
    .disc-card { grid-template-columns: 1fr; }
    .disc-visual { min-height: 240px; }
    .r1 { width: 220px; height: 220px; }
    .r2 { width: 160px; height: 160px; }
    .r3 { width: 100px; height: 100px; }

    .foot-inner { flex-direction: column; gap: .6rem; text-align: center; }
}

@media (max-width: 600px) {
    .feat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
    .feat-grid { grid-template-columns: 1fr; }
}
