/* Den Digital LLC — shared site styles (app pages) */
:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #0f1729;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.12) 60%, rgba(6, 182, 212, 0.10) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(50rem 36rem at 110% 12%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(40rem 30rem at 50% 100%, rgba(139, 92, 246, 0.16), transparent 60%);
}
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 900; font-size: 0.9rem; letter-spacing: 0.02em; box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; border-radius: 10px; background: var(--ink); color: var(--bg) !important; font-weight: 600; font-size: 0.9rem; transition: transform 160ms ease, opacity 160ms ease; }
.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta):not(.nav-back) { display: none; } }

.nav-back { display: inline-flex; align-items: center; gap: 6px; }

/* Generic buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 0.98rem; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease; border: 1px solid transparent; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 36px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(99, 102, 241, 0.45); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* App hero */
.app-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 64px); }
.app-hero-grid { display: grid; grid-template-columns: 132px 1fr; gap: 32px; align-items: center; }
@media (max-width: 640px) { .app-hero-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; justify-items: center; } }
.app-icon { width: 132px; height: 132px; border-radius: 30px; display: grid; place-items: center; font-size: 3.2rem; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); border: 1px solid var(--border-strong); }
img.app-icon { object-fit: cover; display: block; }
.app-eyebrow { display: inline-block; color: #a5b4fc; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.app-hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.app-tagline { margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 60ch; }

/* Store badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 640px) { .badge-row { justify-content: center; } }
.store-badge { display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px; border-radius: 13px; background: #000; border: 1px solid rgba(255,255,255,0.22); text-decoration: none; color: #fff; transition: transform 160ms ease, border-color 160ms ease; min-width: 178px; }
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.5); }
.store-badge svg { flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-top { font-size: 0.66rem; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge .sb-bottom { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.disabled { opacity: 0.5; pointer-events: none; }

/* Sections */
section { padding: clamp(48px, 7vw, 90px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: #a5b4fc; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.12; }
.section-lede { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } }
.card { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform 240ms ease, border-color 240ms ease, background 240ms ease; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 16px; font-size: 1.4rem; }
.card h3 { margin: 0 0 9px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Language list (SpeakEasy) */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lang-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); transition: transform 200ms ease, border-color 200ms ease, background 200ms ease; }
.lang-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.lang-card .flag { font-size: 1.7rem; }
.lang-card .lang-ic { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.lang-card .lang-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lang-card .lang-name { font-weight: 700; font-size: 1.02rem; }
.lang-card .lang-go { color: var(--muted); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 4px; }

/* CTA + footer */
.cta-card { padding: clamp(36px, 5vw, 60px); border-radius: 28px; background: radial-gradient(40rem 24rem at 0% 0%, rgba(99,102,241,0.28), transparent 60%), radial-gradient(40rem 24rem at 100% 100%, rgba(6,182,212,0.22), transparent 60%), var(--surface); border: 1px solid var(--border-strong); text-align: center; }
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--muted-2); margin: 0 auto 26px; max-width: 56ch; }
footer { padding: 40px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted-2); text-decoration: none; transition: color 160ms ease; }
.footer-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
