/* AJT Vault - public demo page styles. Builds on home.css; extra classes are prefixed dn-. */
.dn-hero { min-height: min(94vh, 900px); }

/* counters */
.dn-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 38px 0 0; }
.dn-stats > div { min-width: 150px; padding: 14px 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; flex-direction: column-reverse; }
.dn-stats dt { font-size: 13px; color: #a3b2c2; }
.dn-stats dd { margin: 0; font-size: 2.2rem; line-height: 1.1; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
.dn-stats > div:nth-child(2) dd { color: #f4a46e; }

/* example restaurants */
.dn-rests { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dn-rests li { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 14px; color: #dbe5ee; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.dn-rests img { width: 28px; height: 28px; border-radius: 9px; }

/* filter tabs */
.dn-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 12px 0 44px; }
.dn-tab { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer; font: 600 14.5px var(--font);
  color: var(--text); background: var(--surface); border: 1px solid var(--border); transition: background .2s, border-color .2s, color .2s, box-shadow .25s; }
.dn-tab b { min-width: 28px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; line-height: 22px; text-align: center; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.dn-tab:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.dn-tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px var(--brand); }
.dn-tab[aria-pressed="true"] b { background: rgba(255, 255, 255, .22); color: #fff; }
.dn-tab:focus-visible { outline: 3px solid #4f8fbf; outline-offset: 3px; }

/* screen cards (links) */
.dn-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; cursor: pointer; }
.dn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.dn-card-top .hn-ic { margin-bottom: 0; }
.dn-card-top + h3 { margin-top: 22px; }
.dn-card h3 { margin-bottom: 10px; }
.dn-group { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; padding: 8px 14px; margin-right: 2px; border-radius: 999px; color: var(--brand); background: var(--brand-50); }
.dn-group-finance { color: var(--accent); background: var(--accent-50); }
.dn-group-manage { color: var(--ok); background: var(--ok-50); }
.dn-card p { flex: 1; }
.dn-open { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600)); box-shadow: 0 10px 22px -12px var(--brand); overflow: hidden;
  transition: box-shadow .25s, background .25s; }
.dn-open::before { content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -75%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-20deg); transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.dn-card:hover .dn-open { box-shadow: 0 14px 28px -12px var(--brand); }
.dn-card:hover .dn-open::before { left: 130%; }
.dn-open svg { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.dn-card:hover .dn-open svg { transform: translateX(5px); }
.dn-card:focus-visible { outline: 3px solid #4f8fbf; outline-offset: 3px; }
.dn-card.dn-out { display: none; }

/* closing call to action */
.dn-cta-wrap { padding-top: 0; }
.dn-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #e6ebf1; border-radius: 26px; padding: 64px 24px;
  background: radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%), #0b1219; }
.dn-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; letter-spacing: -.02em; margin: 0 0 12px; }
.dn-cta p { color: #b9c7d5; max-width: 520px; margin: 0 auto 28px; }
.dn-cta-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dn-cta-rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); transform: translate(-50%, -50%); }
.dn-cta-rings i:nth-child(1) { width: 380px; height: 380px; }
.dn-cta-rings i:nth-child(2) { width: 620px; height: 620px; border-color: rgba(232, 112, 42, .22); }
.dn-cta-rings i:nth-child(3) { width: 880px; height: 880px; }

@media (max-width: 760px) {
  .dn-tabs { gap: 10px; margin: 8px 0 34px; }
  .dn-tab { padding: 0 18px; }
  .dn-stats > div { min-width: 0; flex: 1 1 30%; padding: 12px 10px; }
  .dn-stats dd { font-size: 1.8rem; }
  .dn-card { text-align: center; align-items: center; }
  .dn-open { align-self: center; }
  .dn-card-top { flex-direction: column; align-items: center; gap: 0; width: 100%; }
  .dn-card-top .hn-ic { margin: 8px auto 18px; }
  .dn-group { margin-bottom: 4px; }
  .dn-card-top + h3 { margin-top: 18px; }
  .dn-cta { padding: 48px 18px; border-radius: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .dn-stats > div { animation: hn-float 6s ease-in-out infinite; }
  .dn-stats > div:nth-child(2) { animation-delay: -2s; }
  .dn-stats > div:nth-child(3) { animation-delay: -4s; }
  .dn-rests img { animation: hn-idle 5s ease-in-out infinite; }
  .dn-rests li:nth-child(2) img { animation-delay: -1.6s; }
  .dn-rests li:nth-child(3) img { animation-delay: -3.2s; }
  .dn-card.dn-in { animation: dn-pop .45s cubic-bezier(.2, .8, .2, 1); }
  .dn-cta-rings i:nth-child(1) { animation: dn-spin 40s linear infinite; }
  .dn-cta-rings i:nth-child(2) { animation: dn-spin 70s linear infinite reverse; }
  .dn-cta-rings i:nth-child(3) { animation: dn-spin 100s linear infinite; }
  .dn-tab:active b { transform: scale(.9); }
}
@keyframes dn-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dn-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
