/* Wigoh Media — Privacy & Support */
:root {
  --bg: #070b16;
  --text: #e8ebf5;
  --muted: #98a2b8;
  --faint: rgba(232, 235, 245, 0.4);
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8b5cf6;
  --grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #0ea5e9 100%);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: rgba(139, 92, 246, 0.4); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ---------- animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(76, 29, 149, 0.35), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(8, 47, 73, 0.5), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.b1 { width: 480px; height: 480px; background: #4c1d95; top: -120px; right: -80px; }
.b2 { width: 420px; height: 420px; background: #0e7490; bottom: -140px; left: -100px; animation-delay: -7s; }
.b3 { width: 300px; height: 300px; background: #9d174d; top: 40%; left: 55%; opacity: 0.3; animation-delay: -14s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px rgba(2, 6, 16, 0.45);
}

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  align-items: start;
}
.main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-inner {
  overflow-y: auto;
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  padding: 4px 8px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.5);
}
.brand-text { font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-text b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding: 0 8px;
}

.nav-app { border-radius: 14px; }
.nav-app-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.nav-app-btn:hover { background: rgba(255, 255, 255, 0.06); }
.nav-app.active > .nav-app-btn {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
}
.nav-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chev {
  flex: none;
  color: var(--faint);
  transition: transform 0.2s;
  display: grid;
  place-items: center;
}
.nav-app.open .chev { transform: rotate(180deg); }

.app-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  color: var(--c);
  font-size: 1.05rem;
}
.app-icon:has(img) i { display: none; }

.nav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.nav-app.open .nav-sub { grid-template-rows: 1fr; }
.nav-sub-in { overflow: hidden; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 3px 16px;
  padding: 7px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 0 10px 10px 0;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active {
  color: #c4b5fd;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.16), transparent);
  border-left-color: #8b5cf6;
  font-weight: 600;
}

.nav-contact-wrap {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.nav-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-contact:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-contact.active {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}
.contact-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.nav-contact.active .contact-ic {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}

/* ---------- contact page ---------- */
.contact-card {
  max-width: 480px;
  margin: 34px auto 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 30px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
}
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.c-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.c-ic svg { width: 21px; height: 21px; }
.contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-value { font-weight: 600; font-size: 1rem; }
.contact-value a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.15s;
}
.contact-value a:hover { color: #c7d2fe; }

/* ---------- content ---------- */
.content {
  border-radius: var(--radius);
  padding: 34px 38px 30px;
  position: relative;
  overflow: hidden;
}
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.7), rgba(56, 189, 248, 0.7), transparent);
}

.crumb {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.page-head h1 {
  margin: 0.55rem 0 0.3rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.page-head .meta { color: var(--faint); font-size: 0.82rem; }

/* ---------- prose ---------- */
.prose {
  margin-top: 26px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #c6ccdd;
}
.prose h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.1rem 0 0.8rem;
  color: var(--text);
}
.prose h3 { font-size: 1.02rem; font-weight: 600; margin: 1.6rem 0 0.6rem; color: var(--text); }
.prose h4 { font-size: 0.95rem; font-weight: 600; margin: 1.2rem 0 0.5rem; color: var(--text); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.prose li { margin: 0.4rem 0; }
.prose a {
  color: #a5b4fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 180, 252, 0.35);
  transition: border-color 0.15s, color 0.15s;
}
.prose a:hover { color: #c7d2fe; border-bottom-color: #c7d2fe; }
.prose .trademark {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
}

/* ---------- hero (index) ---------- */
.hero { padding: 10px 0 4px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 13px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.3rem);
  margin: 18px 0 10px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- app cards (index) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.app-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.app-card .app-icon { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 14px; }
.app-card h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.app-card .tag {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  min-height: 2.6em;
}
.app-card .links { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip-link:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ddd6fe;
}

/* ---------- support ---------- */
.support-card {
  max-width: 580px;
  margin: 34px auto 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 46px 34px 40px;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  right: -20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.25), transparent);
  pointer-events: none;
}
.support-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
  position: relative;
}
.support-icon svg { width: 28px; height: 28px; }
.support-lead { color: var(--muted); margin: 0 0 22px; line-height: 1.65; }
.support-email {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  background: var(--grad);
  padding: 14px 26px;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  word-break: break-all;
  position: relative;
}
.support-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.55);
}
/* ---------- footer (discreet) ---------- */
.site-footer {
  padding: 6px 4px 2px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(232, 235, 245, 0.34);
  text-align: center;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--muted); }

/* ---------- mobile ---------- */
.menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 20, 36, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 7, 14, 0.6);
  backdrop-filter: blur(3px);
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 72px 14px 14px; }
  .menu-btn { display: grid; }
  .sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(350px, 88vw);
    max-height: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
  }
  .sidebar.open { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5); }
  .scrim.show { display: block; }
  .content { padding: 26px 20px 24px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; }
}

/* ---------- print ---------- */
@media print {
  .bg, .menu-btn, .sidebar, .scrim, .site-footer { display: none !important; }
  body { background: #fff; color: #111; }
  .layout { display: block; padding: 0; max-width: none; }
  .content { box-shadow: none; background: #fff; }
  .content::before { display: none; }
  .prose, .prose p, .prose h2, .prose h3, .prose h4 { color: #111; }
  .prose a { color: #111; border-bottom-color: #999; }
  .page-head h1 { color: #111; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
