/* ==========================================================================
   apps.quinnware.com — Quinnware Apps Showcase
   Matched to the deep dark-blue blueprint aesthetic of quinnware.com Apps
   ========================================================================== */

:root {
  /* Core dark-blue Quinnware Apps palette (matching website/styles.css) */
  --bg-deep: #0c131a;
  --bg-surface: rgba(16, 26, 36, 0.82);
  --bg-surface-hover: rgba(20, 33, 46, 0.92);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-accent: rgba(56, 189, 248, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: rgba(203, 213, 225, 0.84);
  --text-muted: #94a3b8;

  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --navy-glow: rgba(39, 58, 96, 0.42);
  --emerald: #34d399;

  /* App accents */
  --spellrz-gold: #ffd06e;
  --headrz-sage: #dce6cf;
  --headrz-sage-dot: #a2b596;
  --headrz-gold: #f5cc62;
  --headrz-ink: #193b2d;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 80% 14%, rgba(56, 189, 248, 0.18), transparent 46%),
    radial-gradient(circle at 16% 86%, var(--navy-glow), transparent 52%),
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

/* ==========================================================================
   Page Shell & Ambient Constellation
   ========================================================================== */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(186, 230, 253, 0.12);
  pointer-events: none;
  z-index: 0;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 19, 26, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 13px clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-wordtype {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.brand-wordtype:hover {
  opacity: 0.92;
  transform: translateY(-0.5px);
}

.qcd-mark {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(34, 229, 90, 0.16));
}

.wordtype-text {
  display: inline-flex;
  align-items: baseline;
  margin-left: -3px;
  font-family: var(--font-sans);
  font-size: 1.34rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1;
  transform: translateY(1px);
}

.wordtype-uinn {
  color: #e2e8f0;
}

.wordtype-ware {
  color: var(--sky);
}

.brand-slash {
  color: rgba(148, 163, 184, 0.4);
  font-size: 1rem;
}

.brand-division {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6ee7b7;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 24px);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link--pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.08);
}

.nav-link--pill:hover {
  background: var(--sky);
  border-color: transparent;
  color: #071b29;
}

/* ==========================================================================
   Main Hero + Showcase Grid
   ========================================================================== */

.main {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(22px, 3.2vh, 38px) clamp(20px, 4vw, 36px) clamp(26px, 3.5vh, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3.2vh, 34px);
}

.hero {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #7dd3fc;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.accent-sky {
  color: var(--sky);
}

.hero-sub {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.04rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   2-Column Dark-Blue Glass App Cards
   ========================================================================== */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  border-color: var(--border-accent);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.16);
  outline: none;
}

.app-card:focus-visible {
  box-shadow: 0 0 0 2px var(--sky), 0 22px 48px rgba(0, 0, 0, 0.45);
}

/* Card Header: Crisp Light Logo Plate + Status Pill */
.card-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-plate {
  height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  background: rgba(250, 247, 239, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.app-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-wordmark {
  width: auto;
  object-fit: contain;
}

.app-wordmark--spellrz {
  height: 23px;
}

.app-wordmark--headrz {
  height: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--live {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.34);
}

.status-pill--soon {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.36);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot--live {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.status-dot--soon {
  background: var(--sky);
  animation: pulse-sky 2.2s ease-in-out infinite;
}

@keyframes pulse-sky {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
    opacity: 0.72;
  }
}

/* ==========================================================================
   Visual Motif Banners (Mirrored Height Across Both Cards)
   ========================================================================== */

.card-visual {
  height: 168px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spellrz Visual: Deep Teal Honeycomb */
.card-visual--spellrz {
  background: radial-gradient(circle at 50% 42%, #2b756a 0%, #114a49 52%, #0a3536 100%);
  border: 1px solid rgba(94, 169, 155, 0.3);
}

.spellrz-motif {
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card--spellrz:hover .spellrz-motif {
  transform: scale(1.04);
}

/* Headrz Visual: Dotted Sage Board + Tilted Sticky Notes */
.card-visual--headrz {
  background-color: var(--headrz-sage);
  background-image: radial-gradient(var(--headrz-sage-dot) 1.1px, transparent 1.1px);
  background-size: 14px 14px;
  border: 1px solid rgba(185, 201, 174, 0.45);
  padding: 16px;
}

.board-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--headrz-ink);
  box-shadow: 0 2px 6px rgba(25, 59, 45, 0.1);
}

.board-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #457254;
}

.sticky-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 98px;
  margin-top: 8px;
}

.sticky {
  position: absolute;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 22px rgba(25, 59, 45, 0.16);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky--gold {
  top: 4px;
  left: 0;
  width: 48%;
  background: #f7d574;
  color: #243d28;
  transform: rotate(-3.5deg);
}

.sticky--ivory {
  top: 14px;
  right: 0;
  width: 48%;
  background: #fffaeb;
  color: #243d28;
  transform: rotate(3deg);
}

.app-card--headrz:hover .sticky--gold {
  transform: rotate(-5.5deg) translate(-3px, -2px);
}

.app-card--headrz:hover .sticky--ivory {
  transform: rotate(5deg) translate(3px, 2px);
}

.sticky-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(36, 61, 40, 0.65);
}

.sticky-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.25;
}

.sticky-check {
  align-self: flex-end;
  font-size: 0.85rem;
  font-weight: 800;
  color: #366445;
  margin-top: -2px;
}

.board-fabs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 6px;
}

.fab {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(25, 59, 45, 0.18);
}

.fab--gold {
  background: var(--headrz-gold);
  color: var(--headrz-ink);
}

.fab--dark {
  background: #254d3a;
  color: #f8f6ef;
  font-size: 0.7rem;
}

/* ==========================================================================
   Card Copy & CTA Footer
   ========================================================================== */

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 auto;
}

.card-title {
  margin: 0;
  font-size: clamp(1.22rem, 1.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.card-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card-foot {
  padding-top: 4px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.app-card:hover .cta-arrow {
  transform: translateX(3px);
}

.card-cta--spellrz {
  background: var(--sky);
  color: #071b29;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.24);
}

.app-card--spellrz:hover .card-cta--spellrz {
  background: #7dd3fc;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.36);
}

.card-cta--headrz {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.44);
}

.app-card--headrz:hover .card-cta--headrz {
  background: var(--sky);
  color: #071b29;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.32);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .qcd-mark {
    height: 28px;
  }

  .wordtype-text {
    font-size: 1.08rem;
  }

  .card-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .spellrz-motif,
  .sticky,
  .cta-arrow {
    transition: none;
  }
  .status-dot--soon {
    animation: none;
  }
}
