/* ─────────────────────────────────────────────
   saasr.ai shared stylesheet
   Loaded by: index.html, products/publish.html
   ───────────────────────────────────────────── */

/* ── VARIABLES ── */
:root {
  --fire: #FF3D00;
  --hellred: #B71C1C;
  --gold: #FFD600;
  --slop: #00E5FF;
  --dark: #0A0A0A;
  --darker: #050505;
  --mid: #1A1A1A;
  --text: #F0EDE8;
  --muted: #888;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Mono', monospace;
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--fire); color: #fff;
  padding: 0.5rem 1.2rem; font-family: 'Space Mono', monospace;
  font-size: 0.85rem; text-decoration: none; z-index: 10000;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: 3px;
}

/* ── HERO (structure) ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }

.tag-chip {
  display: inline-block;
  border: 1px solid var(--fire); color: var(--fire);
  font-size: 0.7rem; padding: 0.3rem 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-sub {
  font-size: 1rem; color: var(--muted); max-width: 560px;
  line-height: 1.8; margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-sub strong { color: var(--text); }

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--fire); color: #fff;
  padding: 1rem 2.2rem; font-family: 'Space Mono', monospace;
  font-size: 0.85rem; border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #FF6E40; transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.2); color: var(--text);
  padding: 1rem 2.2rem; font-family: 'Space Mono', monospace;
  font-size: 0.85rem; background: transparent; cursor: pointer; text-decoration: none;
  transition: border-color 0.15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--fire); }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes gridDrift { from { transform: translateY(0); } to { transform: translateY(60px); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden; background: var(--fire);
  padding: 0.75rem 0; white-space: nowrap;
  border-top: 2px solid var(--hellred);
  border-bottom: 2px solid var(--hellred);
}
.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff;
}

/* ── SECTIONS ── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 1rem;
}
h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
}
.section-body { color: var(--muted); line-height: 1.9; max-width: 640px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 3rem; text-align: center;
  font-size: 0.72rem; color: var(--muted); line-height: 2;
}
footer a { color: var(--fire); text-decoration: none; }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
