/* appsforeverything.co — shared site styles */

:root {
  --bg: #FFFFFF;
  --fg: #0F1418;
  --fg-muted: rgba(15, 20, 24, 0.55);
  --fg-faint: rgba(15, 20, 24, 0.12);
  --hl: #F5D547;
  --display: 'Fraunces', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0F1418;
  --fg: #FFFFFF;
  --fg-muted: rgba(255, 255, 255, 0.55);
  --fg-faint: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-image:
    linear-gradient(var(--fg-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--fg-faint) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
}

a { color: inherit; text-decoration: none; }
em {
  font-style: normal;
  font-weight: 700;
  background: var(--hl);
  padding: 0 6px;
  border-radius: 2px;
  color: #0F1418;
}

::selection { background: var(--hl); color: #0F1418; }

/* ── Top nav ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1.5px solid var(--fg);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0;
}
.nav-brand .dot {
  width: 10px; height: 10px; background: var(--fg);
  display: inline-block;
}
.nav-brand .blink {
  width: 8px; height: 14px; background: var(--hl);
  display: inline-block; margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1 } 51%, 100% { opacity: 0 } }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border: 1.5px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-link:hover { border-color: var(--fg); }
.nav-link.active { background: var(--fg); color: var(--bg); }

.nav-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 12px;
  color: var(--fg-muted);
}
.nav-meta .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
  display: inline-block; margin-right: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.3 } }

/* ── Page shell ─────────────────────────────────────────── */
.page { padding-top: 60px; }

.section-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.section-label .line {
  flex: 1; height: 1px; background: var(--fg); opacity: 0.25;
}

/* ── Footer ─────────────────────────────────────────────── */
.foot {
  border-top: 1.5px solid var(--fg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.foot-col h4 {
  font-size: 11px; opacity: 0.5;
  margin-bottom: 12px; font-weight: 500;
}
.foot-col a { display: block; padding: 4px 0; }
.foot-col a:hover { background: var(--hl); color: #0F1418; }

/* ── Marquee ────────────────────────────────────────────── */
.marquee {
  border-top: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.marquee.invert { background: var(--fg); color: var(--bg); }
.marquee-track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  padding: 18px 0;
  animation: marquee 40s linear infinite;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee-track.fast { animation-duration: 20s; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee-item .star { color: var(--hl); }
.marquee-item .x { opacity: 0.4; }
@keyframes marquee {
  from { transform: translateX(0) }
  to { transform: translateX(-50%) }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1.5px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover {
  background: var(--fg); color: var(--bg);
}
.btn.primary {
  background: var(--fg); color: var(--bg);
}
.btn.primary:hover {
  background: var(--hl); color: #0F1418; border-color: var(--hl);
}

/* ── Status pill ────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
}
.pill.outline { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.pill.pill-dl { background: var(--hl); color: #0F1418; pointer-events: auto; opacity: 1; }
.pill.pill-dl:hover { background: var(--fg); color: var(--bg); }
.pill .pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Logo card ─────────────────────────────────────────── */
.logo-slot {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  flex-shrink: 0;
}
.logo-slot .tick {
  position: absolute; width: 10px; height: 10px;
  background: var(--bg);
}
.logo-slot .tick.tl { top: -1px; left: -1px; border-top: 2px solid var(--fg); border-left: 2px solid var(--fg); }
.logo-slot .tick.tr { top: -1px; right: -1px; border-top: 2px solid var(--fg); border-right: 2px solid var(--fg); }
.logo-slot .tick.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--fg); border-left: 2px solid var(--fg); }
.logo-slot .tick.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--fg); border-right: 2px solid var(--fg); }
.logo-slot .logo-inner {
  display: flex; align-items: center; justify-content: center;
}
.logo-slot .logo-inner img {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}
.logo-slot .logo-tag {
  font-size: 9px; opacity: 0.5; letter-spacing: 0.2em;
}
.logo-slot .logo-name {
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px;
}

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Util ──────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }
.muted { color: var(--fg-muted); }
.cap { text-transform: uppercase; letter-spacing: 0.14em; }

/* ── Placeholder links (not yet live) ───────────────────── */
a[href="#"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── Mobile nav ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-meta { display: none; }
  .nav { padding: 14px 20px; }
  .hero { padding: 80px 20px 40px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero-bottom .ctas { justify-content: flex-start; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2) { border-right: none; }
  .log-row { grid-template-columns: 60px 1fr; }
  .log-row .date, .log-row .arrow { display: none; }
}
