:root {
  --bg:        #060f1a;
  --bg-card:   #0d1c2e;
  --bg-hover:  #132540;
  --bg-app:    #0a1829;
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(34,130,199,0.4);
  --fg:        #e8f2ff;
  --fg-muted:  rgba(232,242,255,0.48);
  --accent:    #2282c7;
  --accent-dim:#0f4a73;
  --badge-pro: #f59e0b;
  --badge-free:#64748b;
  --badge-live:#34d367;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #f0f6fc;
    --bg-card:   #ffffff;
    --bg-hover:  #e3eef8;
    --bg-app:    #eaf3fb;
    --border:    rgba(0,0,0,0.08);
    --border-h:  rgba(34,130,199,0.4);
    --fg:        #0d1f33;
    --fg-muted:  rgba(13,31,51,0.5);
    --accent:    #2282c7;
    --accent-dim:#cce4f7;
    --badge-pro: #d97706;
    --badge-free:#475569;
    --badge-live:#059669;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f0f6fc; --bg-card: #ffffff; --bg-hover: #e3eef8; --bg-app: #eaf3fb;
  --border: rgba(0,0,0,0.08); --border-h: rgba(34,130,199,0.4);
  --fg: #0d1f33; --fg-muted: rgba(13,31,51,0.5); --accent: #2282c7;
  --accent-dim: #cce4f7; --badge-pro: #d97706; --badge-free: #475569; --badge-live: #059669;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 48px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(34,130,199,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 110%, rgba(34,130,199,0.07) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

.page {
  width: 100%; max-width: 480px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}

/* ── Header ── */
.header {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding-bottom: 36px;
}
.logo-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 3px; margin-bottom: 16px;
  position: relative;
}
.logo-ring::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(34,130,199,0.2);
}
.logo-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.logo-fallback {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #1a6aa8, #34d367);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: #fff; letter-spacing: 1px;
}
.brand { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 3px; color: var(--fg); line-height: 1; margin-bottom: 6px; }
.tagline { font-size: 13px; color: var(--fg-muted); max-width: 280px; line-height: 1.5; }

/* ── Section label ── */
.section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  padding: 0 4px 10px; margin-top: 28px;
}

/* ── Product group ── */
.product-group { margin-bottom: 10px; }

/* ── Website card (top of group or standalone) ── */
.link-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 0;
  text-decoration: none; color: var(--fg);
  transition: background 0.18s, border-color 0.18s, transform 0.14s;
  position: relative; overflow: hidden;
}
/* grouped: square bottom corners */
.product-group .link-card { border-radius: 14px 14px 0 0; }
/* standalone cards keep full radius + spacing */
.link-card.standalone { border-radius: 14px; margin-bottom: 10px; }

.link-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0;
  transition: opacity 0.18s;
}
.link-card:hover { background: var(--bg-hover); border-color: var(--border-h); transform: translateY(-1px); }
.link-card:hover::before { opacity: 1; }
.link-card:active { transform: translateY(0); }

/* ── App download row ── */
.app-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-top: 1px dashed rgba(255,255,255,0.06);
  border-radius: 0 0 14px 14px;
  padding: 8px 14px 8px 10px;
  text-decoration: none; color: var(--fg);
  transition: background 0.18s, border-color 0.18s;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .app-card { border-top-color: rgba(0,0,0,0.05); }
}
:root[data-theme="light"] .app-card { border-top-color: rgba(0,0,0,0.05); }
.app-card:hover { background: var(--bg-hover); border-color: var(--border-h); }

.app-mini-icon {
  width: 30px; height: 30px; border-radius: 7px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-left: 4px;
}
.app-mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-mini-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 10px; color: #fff;
}
.app-label {
  flex: 1; font-size: 11px; font-weight: 500; color: var(--fg-muted);
}
.app-label strong { color: var(--fg); font-weight: 600; }
.badge-app {
  font-size: 9px; font-weight: 600; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(34,130,199,0.1); color: var(--accent);
  border: 1px solid rgba(34,130,199,0.2);
  flex-shrink: 0;
}
.play-badge {
  height: 26px; width: auto; display: block; flex-shrink: 0;
  border-radius: 4px; opacity: 0.9; transition: opacity 0.15s;
}
.app-card:hover .play-badge { opacity: 1; }

/* ── Card icon (real logo) ── */
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: #fff;
}

.card-body { flex: 1; min-width: 0; }
.card-name { font-size: 14px; font-weight: 600; line-height: 1.2; margin-bottom: 2px; }
.card-desc { font-size: 11px; color: var(--fg-muted); line-height: 1.4; }

.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.badge { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 20px; }
.badge-pro  { background: rgba(245,158,11,0.15); color: var(--badge-pro); border: 1px solid rgba(245,158,11,0.25); }
.badge-free { background: rgba(100,116,139,0.12); color: var(--badge-free); border: 1px solid rgba(100,116,139,0.2); }
.badge-live { background: rgba(52,211,103,0.12); color: var(--badge-live); border: 1px solid rgba(52,211,103,0.25); }
.badge-ai   { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }

.arrow { width: 16px; height: 16px; opacity: 0.3; transition: opacity 0.15s, transform 0.15s; }
.link-card:hover .arrow { opacity: 0.7; transform: translateX(2px); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 24px 0 0; }

/* ── Social row ── */
.social-row { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 30px; padding: 7px 14px;
  font-size: 11px; font-weight: 500; color: var(--fg);
  text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.social-btn:hover { background: var(--bg-hover); border-color: var(--border-h); }
.si { width: 14px; height: 14px; opacity: 0.7; }

/* ── Footer ── */
.footer { margin-top: 40px; text-align: center; font-size: 11px; color: var(--fg-muted); line-height: 1.7; }
.footer-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 0 8px; vertical-align: middle; opacity: 0.5; }

