:root {
  --bg: #0b1120;
  --bg-elevated: #131b2e;
  --bg-card: #161f36;
  --border: #253150;
  --text: #f4f6fb;
  --text-muted: #9aa7c2;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #0056d2 0%, #4fd8eb 100%);
  --radius: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  font-size: 1.1rem;
}
.site-header nav a {
  color: var(--text-muted);
  margin-left: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* App grid (hub page) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0 0 80px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.app-card img.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.app-card h3 {
  margin: 0;
  font-size: 1.25rem;
}
.app-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  flex-grow: 1;
}
.app-card .card-link {
  font-weight: 700;
  font-size: 0.9rem;
}

/* App detail page */
.app-hero {
  padding: 64px 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.app-hero img.app-icon-lg {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex-shrink: 0;
}
.app-hero-text h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
}
.app-hero-text p.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 18px;
  max-width: 560px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.video-frame {
  max-width: 380px;
  margin: 0 auto 56px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(59, 130, 246, 0.35);
}
.video-frame video { width: 100%; display: block; }

.features {
  padding: 0 0 72px;
}
.features h2 {
  font-size: 1.6rem;
  margin: 0 0 28px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-size: 0.98rem;
  color: var(--text-muted);
}
.feature-list li strong { color: var(--text); display: block; margin-bottom: 6px; }

/* More-from-DBD-Soft cross-links (app detail pages) */
.more-apps {
  padding: 48px 0 72px;
  border-top: 1px solid var(--border);
}
.more-apps h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
}
.more-apps .app-grid { padding: 0; }
.more-apps .app-card img.app-icon { width: 48px; height: 48px; }
.more-apps .app-card h3 { font-size: 1.05rem; }
.more-apps .app-card p { font-size: 0.88rem; }

.pending-note {
  background: rgba(59, 130, 246, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 40px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-muted); margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }

@media (max-width: 640px) {
  .app-hero { flex-direction: column; text-align: center; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .site-footer a { margin: 0 10px; }
}
