/* ViviMate Player — shared styles */

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

:root {
  --bg:           #0A0A0F;
  --surface:      #111118;
  --surface-2:    #17171F;
  --border:       rgba(255, 255, 255, 0.07);
  --purple:       #7C3AED;
  --purple-mid:   #9F67FF;
  --purple-light: #C4A0FF;
  --cyan:         #06B6D4;
  --text:         #FFFFFF;
  --text-muted:   rgba(255, 255, 255, 0.55);
  --text-dim:     rgba(255, 255, 255, 0.35);
  --radius:       14px;
  --radius-sm:    8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Navbar ── */
.navbar {
  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, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: #6D28D9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: var(--surface); }

.btn-dark {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  padding: 13px 22px;
  font-size: 15px;
}
.btn-dark:hover { background: #1e1e28; border-color: rgba(255,255,255,0.14); }

.btn-purple-full {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  width: 100%;
  padding: 13px 22px;
  font-size: 15px;
}
.btn-purple-full:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Hero (index) ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 120px;
  overflow: hidden;
  min-height: 100vh;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
}
.hero-glow-left {
  width: 500px; height: 500px;
  background: var(--cyan);
  top: 5%; left: -10%;
}
.hero-glow-right {
  width: 400px; height: 400px;
  background: var(--purple);
  bottom: 10%; right: -8%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-size: 13px;
  color: var(--purple-light);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 22px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-actions .btn {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 10px;
}

/* Platform badges */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 700px;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  transition: border-color 0.2s;
  cursor: default;
}

.platform-badge.active {
  border-color: rgba(124, 58, 237, 0.4);
  cursor: pointer;
}
.platform-badge.active:hover { border-color: rgba(124, 58, 237, 0.7); }

.platform-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

.platform-label { line-height: 1.2; }
.platform-label small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.badge-soon {
  position: absolute;
  top: -8px; right: -4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Page header (android, etc.) ── */
.page-header {
  padding: 130px 24px 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
}

/* ── Download cards ── */
.download-section {
  padding: 0 24px 80px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  position: relative;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(255,255,255,0.12); }

.card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(124, 58, 237, 0.18);
}

.card-icon-wrap svg { width: 28px; height: 28px; }

.card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

/* Downloader code box */
.downloader-code-box {
  width: 100%;
  background: var(--bg);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.downloader-code-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.downloader-code-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--purple-light);
  font-variant-numeric: tabular-nums;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}
.btn-copy:hover { background: rgba(124, 58, 237, 0.28); }
.btn-copy.copied { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #6EE7B7; }

/* System requirements */
.sys-req {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.sys-req-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.sys-req-title svg { width: 18px; height: 18px; color: var(--cyan); }

.sys-req-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sys-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sys-req-item svg { width: 16px; height: 16px; color: #10B981; flex-shrink: 0; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

footer p {
  font-size: 13px;
  color: var(--text-dim);
}

footer .footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

footer .footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }

  .cards-grid { grid-template-columns: 1fr; max-width: 440px; }

  .hero { padding: 120px 20px 80px; }
  .hero h1 { letter-spacing: -0.8px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; }
  .hero-actions .btn { justify-content: center; }

  footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .footer-links { flex-wrap: wrap; }
}
