/* ============================================================
   MINE — Landing styles
   Identity: deep black + violet, Manrope + Playfair Display
   ============================================================ */

:root {
    /* Aligned with app theme (src/constants/Theme.ts) */
    --bg: #050505;
    --bg-2: #121212;
    --surface: #1E1E1E;
    --border: rgba(255, 255, 255, 0.08);
    --text: #F5F5F5;
    --text-dim: #E0E0E0;
    --text-mute: #A0A0A0;
    --primary: #7F00FF;
    --primary-light: #E100FF;
    --primary-dark: #5D00BC;
    --primary-glow: rgba(127, 0, 255, 0.4);
    --gold: #F5B547;
    /* App uses iOS system font for the MINE wordmark and titles */
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1180px;
    --max-narrow: 820px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-system);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Background orbs ─────────────────────────────────────── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    animation: drift 28s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: #7F00FF; top: -150px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #E100FF; top: 40%; right: -160px; animation-delay: -8s; opacity: .3; }
.orb-3 { width: 600px; height: 600px; background: #5D00BC; bottom: -200px; left: 30%; animation-delay: -16s; opacity: .4; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -40px) scale(1.08); }
    100% { transform: translate(-40px, 60px) scale(0.96); }
}

/* ── Layout helpers ──────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: var(--max-narrow); }
.center { text-align: center; }
.muted { color: var(--text-dim); font-size: 1.05rem; }

.section { padding: 90px 0; position: relative; z-index: 1; }
.section-features { padding-top: 60px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.eyebrow.center { text-align: center; }
.section-title {
    font-family: var(--font-system);
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }

.gradient-text {
    background: linear-gradient(120deg, #7F00FF 0%, #B266FF 50%, #E100FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10, 10, 15, 0.65);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-name {
    font-family: var(--font-system);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 4px;
    color: var(--text);
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .nav-link-subtle {
    color: var(--text-mute);
    font-size: 0.88rem;
    border-left: 1px solid var(--border);
    padding-left: 24px;
    margin-left: -8px;
}
.nav .nav-link-subtle:hover { color: var(--primary-light); }
.nav .nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 20px -8px var(--primary-glow);
}
.nav .nav-cta:hover { transform: translateY(-1px); }

.lang-switcher { display: flex; gap: 4px; background: rgba(255,255,255,0.04); padding: 4px; border-radius: 999px; border: 1px solid var(--border); }
.lang-switcher button {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    border-radius: 999px;
    transition: all .2s;
    letter-spacing: 0.05em;
}
.lang-switcher button.active { background: var(--primary); color: #fff; }
.lang-switcher button:hover:not(.active) { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 48px 24px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero .video-wrap { margin: 0 auto 56px; max-width: 1080px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(187, 134, 252, 0.1);
    border: 1px solid rgba(187, 134, 252, 0.3);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--font-system);
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-tagline { color: var(--text-mute); font-size: 0.88rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all .25s;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 12px 40px -10px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px var(--primary-glow); }
.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; margin-top: 28px; }

/* ── Video ───────────────────────────────────────────────── */
.video-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px -30px var(--primary-glow), 0 0 0 1px rgba(127, 0, 255, 0.15);
    background: #000;
}
.video-wrap video { width: 100%; height: auto; display: block; }

/* Unmute button overlay */
.unmute-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all .2s;
    z-index: 2;
}
.unmute-btn:hover { background: rgba(127, 0, 255, 0.85); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.unmute-btn .icon-sound { display: none; }
.unmute-btn.is-on .icon-sound { display: block; }
.unmute-btn.is-on .icon-mute { display: none; }
.unmute-btn.is-on .unmute-label { display: none; }

/* ── Features ────────────────────────────────────────────── */
.section-features .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 110px;
}
.section-features .feature.reverse { direction: rtl; }
.section-features .feature.reverse > * { direction: ltr; }
.feature-screen {
    position: relative;
    display: flex;
    justify-content: center;
}
.feature-screen img {
    max-width: 360px;
    width: 100%;
    border-radius: 28px;
    filter: drop-shadow(0 30px 60px rgba(187, 134, 252, 0.25));
}
.feature-text h3 {
    font-family: var(--font-system);
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    background: linear-gradient(120deg, #FFFFFF 0%, #BB86FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.feature-text p { color: var(--text-dim); font-size: 1.1rem; line-height: 1.65; max-width: 460px; }

/* ── Social proof ────────────────────────────────────────── */
.section-social { padding: 80px 0; }
.stars { font-size: 1.6rem; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 12px; }
.big-rating {
    font-family: var(--font-system);
    font-size: clamp(4.5rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #BB86FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.big-rating span { font-size: 0.45em; color: var(--text-mute); -webkit-text-fill-color: var(--text-mute); }
.section-social .muted { max-width: 520px; margin: 12px auto 0; }

/* ── Final CTA ───────────────────────────────────────────── */
.section-cta {
    padding: 140px 0 160px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
}
.section-cta .muted { max-width: 540px; margin: 16px auto 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 60px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 0.95rem; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { color: var(--text-dim); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--primary); }
.footer-rights { color: var(--text-mute); font-size: 0.82rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .site-header { padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
    .nav { gap: 18px; order: 3; width: 100%; justify-content: center; }
    .nav a { font-size: 0.88rem; }
    .lang-switcher { order: 2; }
    .section { padding: 80px 0; }
    .hero { padding: 60px 20px 80px; }
    .section-features .feature {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 80px;
    }
    .section-features .feature.reverse { direction: ltr; }
    .feature-text { text-align: center; }
    .feature-text p { margin: 0 auto; }
    .feature-screen img { max-width: 280px; }
}
@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}
