/* ============================================================
   JamShack — landing page styles
   Deliberately single-theme: a midnight-blue live room, lit by
   stage glow and the twelve colors of the circle of fifths.
   ============================================================ */

:root {
  --bg: #080C18;
  --bg-panel: #0F1730;
  --bg-panel-2: #16204A;
  --ink: #EAF0FF;
  --ink-soft: #93A0C8;
  --rule: #263159;
  --accent: #6EC8FF;
  --accent-ink: #041524;
  --accent-2: #B48CFF;
  --accent-2-ink: #180C33;
  --shadow: rgba(0, 0, 0, 0.55);

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, serif;
  --font-body: "Literata", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-stencil: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 34rem;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 20px;
  padding: 0.18rem 0.55rem 0.2rem;
  white-space: nowrap;
}

.measure { max-width: var(--measure); }

/* ---------- announcement banner ---------- */

.banner {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--rule);
}

.banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.banner__inner strong {
  color: var(--accent-2);
  font-weight: 500;
}

.banner__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.7rem 1.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wordmark span { color: var(--accent); }

.site-header nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero__text { position: relative; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0.9rem 0 1.2rem;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

.hero__desc strong {
  color: var(--accent-2);
  font-weight: 500;
}

.stamp {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.3rem 0.55rem;
  transform: rotate(8deg);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .stamp { position: static; display: inline-block; margin-bottom: 1rem; transform: rotate(-3deg); }
}

.hero__graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero__graphic figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

#cof-dial { width: min(100%, 400px); height: auto; }

#cof-dial .hub-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
#cof-dial .hub-fill { fill: var(--bg-panel); stroke: var(--rule); stroke-width: 1.5; }
#cof-dial .hub-spark { fill: var(--accent-2); }
#cof-dial .wedge { stroke: var(--bg); stroke-width: 2; }
#cof-dial .wedge--root { stroke: var(--ink); stroke-width: 2.5; }
#cof-dial .fifths-path { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.16; }
#cof-dial .tick-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  fill: var(--bg);
  text-anchor: middle;
  dominant-baseline: middle;
}
#cof-dial .pointer { fill: var(--accent); }

#cof-rotor { transform-origin: 190px 190px; animation: cof-spin 140s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  #cof-rotor { animation: none; }
}

@keyframes cof-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- live-room ---------- */

.live-room {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .live-room { grid-template-columns: 1fr; }
}

.live-room h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.5rem 0 0.75rem;
  max-width: 18ch;
}

.live-room p { color: var(--ink-soft); max-width: 28rem; }

.live-room__panel {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem;
}

#live-scene { width: 100%; height: auto; }
#live-scene .cable { stroke: var(--rule); stroke-width: 1.4; stroke-dasharray: 3 4; }
#live-scene .figure { fill: var(--ink-soft); opacity: 0.9; }
#live-scene .keys--white { fill: var(--ink); opacity: 0.8; }
#live-scene .keys--black { fill: var(--bg); }
#live-scene .rig { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; }
#live-scene .mic-capsule { fill: var(--accent); }
#live-scene .note-drift { fill: var(--accent-2); opacity: 0.85; }
#live-scene .stem { stroke: var(--accent-2); stroke-width: 1.4; opacity: 0.85; }

/* ---------- network strip ---------- */

.network-strip {
  background: var(--bg-panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 1.5rem;
}

.network-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.network-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.5rem 0 0.75rem;
  max-width: 16ch;
}

.network-strip p {
  color: var(--ink-soft);
  max-width: 30rem;
}

#network-graphic { width: 100%; height: auto; }
#network-graphic .cable { stroke: var(--rule); stroke-width: 1.2; }
#network-graphic .cable--live { stroke: var(--accent); stroke-width: 1.6; }
#network-graphic .node { fill: var(--bg); stroke: var(--ink-soft); stroke-width: 1.4; }
#network-graphic .node--you { fill: var(--accent-2); stroke: var(--accent-2); }
#network-graphic .pulse {
  fill: var(--accent);
  opacity: 0;
  animation: pulse-travel 4s ease-in-out infinite;
}
#network-graphic .pulse--b { animation-delay: 1.3s; }
#network-graphic .pulse--c { animation-delay: 2.6s; }

@keyframes pulse-travel {
  0% { opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #network-graphic .pulse { animation: none; opacity: 0.85; }
}

/* ---------- features ---------- */

.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0.6rem 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-card__icon {
  flex: none;
  width: 56px;
  height: 56px;
}

.feature-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.feature-card h3 { font-size: 1.15rem; margin: 0; }

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* mini icon shared styles */
.icon-cof .t { stroke: var(--rule); stroke-width: 1.4; }
.icon-cof .t--root { stroke: var(--accent); stroke-width: 2; }
.icon-cof .ring { fill: none; stroke: var(--rule); stroke-width: 1.2; }

.icon-net .c { stroke: var(--rule); stroke-width: 1.3; }
.icon-net .n { fill: var(--bg-panel); stroke: var(--ink-soft); stroke-width: 1.3; }
.icon-net .n--you { fill: var(--accent); stroke: var(--accent); }

.icon-improv .scribble { fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; }
.icon-improv .dot { fill: var(--accent); }

.icon-theory .staff { stroke: var(--rule); stroke-width: 1.2; }
.icon-theory .note { fill: var(--accent-2); }
.icon-theory .stem { stroke: var(--accent-2); stroke-width: 1.4; }

/* ---------- also-list ---------- */

.also {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 2rem;
}

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

.also h3 {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink-soft);
}

.also ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.also li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.also li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 1.4px solid var(--accent);
  border-radius: 50%;
}

.also li strong { color: var(--ink); font-weight: 600; }

/* ---------- closing ---------- */

.closing {
  background: var(--bg-panel-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.closing__stamp {
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.closing p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.closing p strong { color: var(--accent-2); font-weight: 500; }

/* ---------- footer ---------- */

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
