/* freeloadr — Snow Creek Software sub-pub */

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

:root {
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --text: #e0e0e0;
  --text-bright: #ffffff;
  --text-muted: #8892a4;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(124, 58, 237, 0.22);
  /* spectrum poles: cached/edge (violet) -> live/origin (warm) */
  --edge: #7C3AED;
  --origin: #E0779A;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-light);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar — back-link to the portfolio */
.topbar {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.backlink:hover {
  color: var(--accent-light);
}

.backlink .chev {
  font-size: 1.1rem;
  line-height: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 8px 28px var(--accent-glow));
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1.4rem auto 0;
  max-width: 16ch;
  color: var(--text-bright);
}

.hero .lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 1.2rem auto 0;
  max-width: 62ch;
}

.hero .lede strong {
  color: var(--accent-light);
  font-weight: 600;
}

.tagline {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
}

/* Section scaffolding */
section {
  padding: 2.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Cache spectrum (signature visual) ============ */
.spectrum {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05), transparent 70%);
}

.spectrum-card {
  max-width: 760px;
  margin: 0 auto;
}

.spectrum-poles {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.spectrum-poles .pole-edge { color: var(--edge); }
.spectrum-poles .pole-origin { color: var(--origin); }

.spectrum-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      var(--edge) 0%,
      #8E63D9 34%,
      #B36FBE 67%,
      var(--origin) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              0 0 24px rgba(124, 58, 237, 0.25);
}

.spectrum-track .node {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 3px solid var(--accent-light);
  box-shadow: 0 0 0 3px var(--bg), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.spectrum-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.mode {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 0.6rem;
}

.mode .mode-name {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
}

.mode .mode-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.spectrum-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1.4rem;
}

/* ============ Value props ============ */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.prop {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prop:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.prop h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.55rem;
}

.prop p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============ Differentiator ============ */
.diff {
  border-top: 1px solid var(--border);
}

.diff-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 2rem 2.2rem;
}

.diff-card p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text);
}

.diff-card em {
  color: var(--accent-light);
  font-style: normal;
  font-weight: 600;
}

.diff-card code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.05em 0.4em;
  border-radius: 5px;
}

/* ============ Technical credibility ============ */
.tech {
  border-top: 1px solid var(--border);
}

.tech-list {
  max-width: 820px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}

.tech-list .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 0.8rem;
  line-height: 20px;
  text-align: center;
}

.tech-list .tech-body strong {
  color: var(--text-bright);
  font-weight: 600;
}

.tech-list .tech-body {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.tech-list code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.05em 0.4em;
  border-radius: 5px;
}

/* ============ Footer ============ */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  text-align: center;
}

footer .ethos {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

footer .ethos span {
  color: var(--accent-light);
}

footer .home {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

footer .home:hover {
  color: var(--accent-light);
}

footer .copyright {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero .lede {
    font-size: 1.05rem;
  }
  .spectrum-modes {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff-card {
    padding: 1.5rem 1.4rem;
  }
  .diff-card p {
    font-size: 1.02rem;
  }
}

@media (max-width: 420px) {
  .spectrum-poles {
    font-size: 0.7rem;
  }
}
