/* ══════════════════════════════════════
   Screen MP — main.css
   ══════════════════════════════════════ */
:root {
  --bg:          #0a0c10;
  --bg2:         #0f1318;
  --bg3:         #141820;
  --border:      rgba(255,255,255,0.07);
  --accent:      #3b82f6;
  --accent2:     #60a5fa;
  --accent-glow: rgba(59,130,246,0.25);
  --text:        #e8eaf0;
  --muted:       #6b7280;
  --success:     #22c55e;
  --white:       #ffffff;
  --yellow:      #fbbf24;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.35); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: rgba(59,130,246,0.35) var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-head);
  font-weight: 800; font-size: 1.2rem; color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-logo .logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.88rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links .btn-login { color: var(--text); border: 1px solid var(--border); background: var(--bg3); }
.nav-links .btn-login:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: all .25s; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 4px; }
.mobile-menu a { color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; display: block; }
.mobile-menu a:hover { background: var(--bg3); }
.mobile-menu.open { display: flex; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none; border: none; transition: all .2s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent2); box-shadow: 0 4px 24px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); transform: translateY(-1px); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 40px 80px; overflow: hidden; }
.hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%); top: -100px; left: -200px; pointer-events: none; }
.hero-glow2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%); bottom: 0; right: 100px; pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: var(--accent2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 28px; opacity: 0; animation: fadeUp .6s .1s forwards; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--white); margin-bottom: 24px; opacity: 0; animation: fadeUp .7s .2s forwards; }
.hero h1 span { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--muted); font-size: 1.05rem; font-weight: 300; max-width: 480px; margin-bottom: 36px; opacity: 0; animation: fadeUp .7s .3s forwards; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s .4s forwards; }

/* ── UPLOAD CARD ── */
.upload-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 28px; position: relative; overflow: hidden; opacity: 0; animation: fadeUp .7s .5s forwards; }
.upload-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.upload-zone { border: 2px dashed rgba(59,130,246,0.3); border-radius: 14px; padding: 36px 24px; text-align: center; cursor: pointer; transition: all .25s; background: rgba(59,130,246,0.03); position: relative; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: rgba(59,130,246,0.08); }
.upload-icon { width: 48px; height: 48px; background: rgba(59,130,246,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 20px; }
.upload-zone h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.upload-zone p { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-tip { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); margin-top: 14px; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.upload-tip kbd { background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: 0.7rem; }

/* Progress */
.progress-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.progress-track { height: 4px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); width: 0%; border-radius: 4px; transition: width .3s ease; }

/* Result gallery */
.result-gallery { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.result-item { display: flex; align-items: center; gap: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.result-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg2); }
.result-url { flex: 1; font-size: 0.75rem; font-family: monospace; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; outline: none; width: 100%; }
.result-url:focus { border-color: var(--accent); }
.copy-btn { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25); color: var(--accent2); font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all .2s; flex-shrink: 0; }
.copy-btn:hover { background: var(--accent); color: white; }
.copy-btn.copied { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: #22c55e; }
.gallery-actions { display: flex; gap: 8px; margin-top: 8px; }
.gallery-actions button { flex: 1; padding: 8px; font-size: 0.75rem; font-weight: 600; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); background: var(--bg3); color: var(--text); transition: all .2s; }
.gallery-actions button:hover { border-color: var(--accent); color: var(--accent); }

/* Stats */
.stats-row { display: flex; gap: 0; margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stat-item { flex: 1; padding: 12px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--white); display: block; }
.stat-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.section-desc { color: var(--muted); max-width: 560px; font-size: 1rem; font-weight: 300; }

/* Features */
.features { padding: 100px 0; border-top: 1px solid var(--border); }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header .section-label { justify-content: center; }
.features-header .section-desc { margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.feature-card { background: var(--bg2); padding: 28px 24px; transition: background .25s; }
.feature-card:hover { background: var(--bg3); }
.feature-icon { width: 44px; height: 44px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 18px; }
.feature-card h3 { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* VTC */
.vtc-section { padding: 100px 0; border-top: 1px solid var(--border); }
.vtc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.vtc-cards { display: flex; flex-direction: column; gap: 10px; }
.vtc-feature { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, background .2s; }
.vtc-feature:hover { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.04); }
.vtc-feature-icon { width: 34px; height: 34px; flex-shrink: 0; background: rgba(59,130,246,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.vtc-feature h4 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.vtc-feature p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.badge-dev { display: inline-flex; align-items: center; gap: 6px; background: rgba(234,179,8,0.12); border: 1px solid rgba(234,179,8,0.25); color: #fbbf24; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }

/* Patchnotes */
.patchnotes { padding: 100px 0; border-top: 1px solid var(--border); }
.patchnotes-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.patchnotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.patch-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .25s, border-color .25s; text-decoration: none; color: inherit; display: block; }
.patch-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.3); }
.patch-img { height: 150px; background: linear-gradient(135deg, #0f1318 0%, #1a2030 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.patch-body { padding: 22px; }
.patch-version { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--accent); background: rgba(59,130,246,0.1); border-radius: 6px; padding: 3px 10px; margin-bottom: 10px; letter-spacing: 0.04em; }
.patch-card h3 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.3; }
.patch-meta { font-size: 0.73rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* Partners */
.partners { padding: 70px 0; border-top: 1px solid var(--border); text-align: center; }
.partners-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.partners-list { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.partner-chip { display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: var(--bg2); border: 1px solid var(--border); border-radius: 100px; text-decoration: none; color: var(--text); font-size: 0.88rem; font-weight: 500; transition: border-color .2s, background .2s; }
.partner-chip:hover { border-color: rgba(255,255,255,0.2); background: var(--bg3); }
.partner-logo { width: 26px; height: 26px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 60px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); max-width: 280px; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; color: var(--white); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 0.83rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* Toast */
#toast { position: fixed; bottom: 28px; right: 28px; background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-size: 0.83rem; color: var(--text); box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 999; display: flex; align-items: center; gap: 10px; transform: translateY(80px); opacity: 0; transition: all .3s cubic-bezier(.34,1.56,.64,1); max-width: 300px; }
#toast.show { transform: translateY(0); opacity: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

/* ── LEGAL / INNER PAGES ── */
.page-hero { padding: 120px 40px 60px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); letter-spacing: -0.03em; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1rem; font-weight: 300; }
.page-content { padding: 60px 40px 100px; }
.page-content .inner { max-width: 780px; margin: 0 auto; }
.legal-section { margin-bottom: 48px; }
.legal-section h2 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.legal-section h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.legal-section p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { color: var(--muted); font-size: 0.9rem; line-height: 1.8; padding-left: 20px; margin-bottom: 12px; }
.legal-section ul li { margin-bottom: 6px; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-date { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); color: var(--accent2); font-size: 0.78rem; padding: 6px 14px; border-radius: 100px; margin-bottom: 40px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .container { padding: 0 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .vtc-inner { grid-template-columns: 1fr; }
  .patchnotes-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .patchnotes-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero { padding: 100px 20px 40px; }
  .page-content { padding: 40px 20px 60px; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}
