:root {
  --bg: #0A0908;
  --bg-1: #121110;
  --bg-2: #1A1918;
  --bg-3: #222120;
  --amber: #E88010;
  --amber-soft: rgba(232, 128, 16, 0.08);
  --amber-border: rgba(232, 128, 16, 0.25);
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, 0.35);
  --red: #EF4444;
  --text: #D8D4D0;
  --text-mid: #888888;
  --text-dim: #555555;
  --border: #2A2824;
  --border-sub: #1E1C1A;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --radius: 6px;
  --radius-sm: 5px;
  --radius-pill: 9999px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, #0A0908 0%, #0E0D0B 38%, #121110 100%);
  font-family: var(--mono);
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

::selection {
  color: #0A0908;
  background: var(--amber);
}

a {
  color: inherit;
}

img,
iframe {
  display: block;
}

/* Header */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.82), rgba(10, 9, 8, 0.2));
  backdrop-filter: blur(18px);
}

.brand-link,
.main-nav,
.hero-actions,
.contact-actions,
.build-meta,
.window-bar {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  text-decoration: none;
}

.brand-link img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.brand-link span,
.mini-brand span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.main-nav {
  gap: clamp(14px, 2.2vw, 26px);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.main-nav a {
  text-decoration: none;
  transition: color 150ms ease-out;
}

.main-nav a:hover {
  color: var(--amber);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 120px;
  padding-bottom: 64px;
}

.hero-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 0;
  align-items: stretch;
}

.hero-meta {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(36px, 5vw, 64px) auto 0;
  display: flex;
  flex-direction: column;
}

/* Hero signal (shader bridge) */

.hero-signal {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 400px;
}

.hero-signal iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  display: block;
}

/* Eyebrow / Kicker labels */

.eyebrow,
.section-kicker,
.build-meta,
.tutorial-step,
.step-tag,
.guide-note strong {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 11px;
}

/* Typography */

h1,
h2,
h3,
p,
dl,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.hero-line {
  max-width: 820px;
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--text);
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--text-mid);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.hero-actions {
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Buttons */

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    transform 150ms ease-out,
    border-color 150ms ease-out,
    background 150ms ease-out,
    color 150ms ease-out;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #0A0908;
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 18px 42px rgba(232, 128, 16, 0.18);
}

.button-primary:hover {
  background: #F09020;
  border-color: #F09020;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.button-disabled {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
}

/* Hero status bar */

.hero-status {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 54px 0 0;
  border: 1px solid var(--border-sub);
  background: var(--border-sub);
}

.hero-status div {
  padding: 15px 16px;
  background: rgba(10, 9, 8, 0.52);
  backdrop-filter: blur(14px);
}

.hero-status dt {
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
}

/* Sections */

.intro-band,
.builds-section,
.contact-section,
.tutorial-hero,
.tutorial-section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.intro-band {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border-sub);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 88px);
}

.section-grid-top {
  align-items: end;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 10px;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -1px;
}

.intro-copy,
.section-note,
.contact-copy p,
.guide-note p,
.step-body p,
.build-card p,
.release-note p {
  color: var(--text-mid);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.58;
  letter-spacing: 0.2px;
}

.intro-copy p:last-child,
.contact-copy p:last-child,
.build-card p:last-child,
.release-note p:last-child,
.step-body p:last-child {
  margin-bottom: 0;
}

.builds-section {
  padding: 84px 0;
}

/* Desktop window mockup */

.desktop-window,
.phone-frame,
.release-note,
.build-card,
.guide-note,
.tutorial-card,
.telegram-shot,
.trackcast-shot {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.desktop-window {
  overflow: hidden;
  border-radius: 10px;
  height: 480px;
  display: flex;
  flex-direction: column;
}

.window-bar {
  height: 38px;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-sub);
  background: var(--bg-2);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) {
  background: #EF4444;
}

.window-bar span:nth-child(2) {
  background: #FFBD2E;
}

.window-bar span:nth-child(3) {
  background: #22C55E;
}

.window-bar strong {
  margin-left: 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
}

/* App titlebar */

.app-titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.app-titlebar-mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  margin-right: 10px;
  flex-shrink: 0;
}

.app-titlebar-tabs {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.app-tab {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
}

.app-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.app-titlebar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}

/* App channel pill bar */

.app-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-sub);
}

.app-channel-pill {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.app-pill-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.app-pill-opt.active {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

.app-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-soft);
}

.app-receiver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.03em;
}

.app-receiver-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-soft);
}

/* App now-playing panel */

.app-panel {
  height: 150px;
  padding: 20px 14px 16px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.np-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.np-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Idle / live state text */

.np-idle-text {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 12px;
}

.np-eyebrow-live { display: none; }

/* Telegram idle placeholder */
.tg-idle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #3D4E5C;
  font-size: 12px;
  font-weight: 300;
}

.is-live .tg-idle { display: none; }

@keyframes npDotPulse {
  from { opacity: 1; }
  to { opacity: 0.4; }
}

.track-cycle {
  position: relative;
  min-height: 32px;
  overflow: hidden;
  margin-bottom: 4px;
}

.track-cycle .np-artist-line {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(14px);
  color: var(--text);
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
}

/*
 * Synchronized 24s timeline (4 tracks)
 * ─────────────────────────────────────────────────
 * Track 1 (DJ Life):       2% – 21%   (0.5s – 5s)
 * Track 2 (Roza Terenzi): 27% – 46%   (6.5s – 11s)
 * Track 3 (Priori):       52% – 71%   (12.5s – 17s)
 * Track 4 (Vael):    77% – 96%   (18.5s – 23s)
 *
 * Crossovers: 21%–27%, 46%–52%, 71%–77%
 * Telegram posts lag app by ~7% (~1.7s first, ~1.2s rest)
 * Set list rows + highlights switch at crossover midpoints (23%, 48%, 73%)
 */

.track-cycle .np-artist-line:nth-child(1) { animation: appTrack1 24s infinite; }
.track-cycle .np-artist-line:nth-child(2) { animation: appTrack2 24s infinite; }
.track-cycle .np-artist-line:nth-child(3) { animation: appTrack3 24s infinite; }
.track-cycle .np-artist-line:nth-child(4) { animation: appTrack4 24s infinite; }

.np-title-cycle {
  position: relative;
  min-height: 18px;
  overflow: hidden;
  margin-bottom: 12px;
}

.np-title-cycle span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(10px);
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
}

.np-title-cycle span:nth-child(1) { animation: appTrack1 24s infinite; }
.np-title-cycle span:nth-child(2) { animation: appTrack2 24s infinite; }
.np-title-cycle span:nth-child(3) { animation: appTrack3 24s infinite; }
.np-title-cycle span:nth-child(4) { animation: appTrack4 24s infinite; }

/* Tags cycle in sync */

.np-tags-cycle {
  position: relative;
  min-height: 22px;
}

.np-tags-cycle .np-tags {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}

.np-tags-cycle .np-tags:nth-child(1) { animation: appTrack1 24s infinite; }
.np-tags-cycle .np-tags:nth-child(2) { animation: appTrack2 24s infinite; }
.np-tags-cycle .np-tags:nth-child(3) { animation: appTrack3 24s infinite; }
.np-tags-cycle .np-tags:nth-child(4) { animation: appTrack4 24s infinite; }

/* App track keyframes (24s loop) */

@keyframes appTrack1 {
  0%       { opacity: 0; transform: translateY(14px); }
  2%, 21%  { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes appTrack2 {
  0%, 23%  { opacity: 0; transform: translateY(14px); }
  27%, 46% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes appTrack3 {
  0%, 48%  { opacity: 0; transform: translateY(14px); }
  52%, 71% { opacity: 1; transform: translateY(0); }
  75%, 100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes appTrack4 {
  0%, 73%  { opacity: 0; transform: translateY(14px); }
  77%, 96% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-14px); }
}

.np-tags {
  display: flex;
  gap: 5px;
}

.np-tag {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-dim);
}

.np-tag.amber {
  color: var(--amber);
  border-color: var(--amber-border);
  background: var(--amber-soft);
}

/* Set list rows appear as tracks change */

.app-log-r1 { animation: logRow1 24s infinite; }
.app-log-r2 { animation: logRow2 24s infinite; }
.app-log-r3 { animation: logRow3 24s infinite; }
.app-log-r4 { animation: logRow4 24s infinite; }

.app-log-r1 .app-log-artist { animation: logHighlight1 24s infinite; }
.app-log-r2 .app-log-artist { animation: logHighlight2 24s infinite; }
.app-log-r3 .app-log-artist { animation: logHighlight3 24s infinite; }
.app-log-r4 .app-log-artist { animation: logHighlight4 24s infinite; }

@keyframes logRow1 {
  0%, 100% { opacity: 1; }
}

@keyframes logRow2 {
  0%, 23% { opacity: 0; max-height: 0; padding: 0 14px; border-bottom-color: transparent; }
  27%     { opacity: 1; max-height: 60px; padding: 8px 14px; border-bottom-color: var(--border-sub); }
  100%    { opacity: 1; }
}

@keyframes logRow3 {
  0%, 48% { opacity: 0; max-height: 0; padding: 0 14px; border-bottom-color: transparent; }
  52%     { opacity: 1; max-height: 60px; padding: 8px 14px; border-bottom-color: var(--border-sub); }
  100%    { opacity: 1; }
}

@keyframes logRow4 {
  0%, 73% { opacity: 0; max-height: 0; padding: 0 14px; border-bottom-color: transparent; }
  77%     { opacity: 1; max-height: 60px; padding: 8px 14px; border-bottom-color: var(--border-sub); }
  100%    { opacity: 1; }
}

@keyframes logHighlight1 {
  0%, 23% { color: var(--amber); }
  27%, 100% { color: var(--text); }
}

@keyframes logHighlight2 {
  0%, 23% { color: var(--text); }
  27%, 48% { color: var(--amber); }
  52%, 100% { color: var(--text); }
}

@keyframes logHighlight3 {
  0%, 48% { color: var(--text); }
  52%, 73% { color: var(--amber); }
  77%, 100% { color: var(--text); }
}

@keyframes logHighlight4 {
  0%, 73% { color: var(--text); }
  77%, 100% { color: var(--amber); }
}

/* App controls bar */

.app-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

/* Start broadcast button (idle) */

.app-btn-start {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #080808;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  animation: startPulse 2s ease-in-out infinite;
  transition: transform 150ms ease-out;
}

.app-btn-start:hover {
  transform: scale(1.04);
}

@keyframes startPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.15); }
}

.app-btn-stop {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.app-btn-stop:hover {
  background: rgba(239, 68, 68, 0.1);
}

.app-live-runtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.app-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-soft);
  animation: npDotPulse 1.4s ease-in-out infinite alternate;
}

/* App set list */

.app-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-sub);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.app-log-count {
  font-weight: 400;
  color: var(--border);
  text-transform: none;
  letter-spacing: normal;
}

.app-setlist {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-2);
}

/* Scrollbar (DESIGN.md: 3px, transparent track, warm thumb) */

.app-setlist::-webkit-scrollbar,
.tg-chat::-webkit-scrollbar {
  width: 3px;
}

.app-setlist::-webkit-scrollbar-track,
.tg-chat::-webkit-scrollbar-track {
  background: transparent;
}

.app-setlist::-webkit-scrollbar-thumb,
.tg-chat::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 9999px;
}

.app-setlist::-webkit-scrollbar-thumb:hover,
.tg-chat::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.app-log-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-sub);
  overflow: hidden;
}

.app-log-time {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.app-log-track {
  min-width: 0;
}

.app-log-artist {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-log-row.current .app-log-artist {
  color: var(--amber);
}

.app-log-title {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-log-bpm {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Signal lane (legacy CSS dots — replaced by hero-signal shader) */

/* Phone frame */

.phone-frame {
  overflow: hidden;
  height: 480px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 18%),
    var(--bg);
}

/* Telegram channel mockup */

.tg-frame {
  display: flex;
  flex-direction: column;
  background: #0E1621;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #17212B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tg-back {
  flex-shrink: 0;
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E88010, #c06a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.tg-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tg-header-info strong {
  color: #e9f0f5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-header-info span {
  color: #6D7F8E;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
}

.tg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 18px;
  overflow-y: auto;
  min-height: 0;
}

.tg-post {
  padding: 8px 11px 6px;
  border-radius: 10px;
  background: #212D3B;
  opacity: 0;
  transform: translateY(12px);
}

/* Telegram posts sync to 24s loop, lagging app by ~1.2s */

.tg-post-start { animation: tgStart 24s infinite; }
.tg-post-t1 { animation: tgPost1 24s infinite; }
.tg-post-t2 { animation: tgPost2 24s infinite; }
.tg-post-t3 { animation: tgPost3 24s infinite; }
.tg-post-t4 { animation: tgPost4 24s infinite; }

.tg-post-name {
  color: #3A95D9;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
  letter-spacing: normal;
  text-transform: none;
}

.tg-post-body {
  margin: 0;
  color: #e9f0f5;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
}

.tg-post-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 4px;
  color: #5B6F7F;
  font-size: 11px;
  font-weight: 300;
}

.tg-eye {
  color: #5B6F7F;
}

/* Telegram synced keyframes (24s loop)
 * "Set started" visible from start, fades at loop reset
 * Track posts appear ~1.2s after app track change:
 *   t1 at 9% (~2.2s), t2 at 32% (~7.7s), t3 at 57% (~13.7s), t4 at 82% (~19.7s)
 */

@keyframes tgStart {
  0%        { opacity: 0; transform: translateY(12px); }
  2%, 95%   { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0.3; transform: translateY(0); }
}

@keyframes tgPost1 {
  0%, 9%    { opacity: 0; transform: translateY(12px); }
  13%, 95%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0.3; transform: translateY(0); }
}

@keyframes tgPost2 {
  0%, 32%   { opacity: 0; transform: translateY(12px); }
  36%, 95%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0.3; transform: translateY(0); }
}

@keyframes tgPost3 {
  0%, 57%   { opacity: 0; transform: translateY(12px); }
  61%, 95%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0.3; transform: translateY(0); }
}

@keyframes tgPost4 {
  0%, 82%   { opacity: 0; transform: translateY(12px); }
  86%, 95%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0.3; transform: translateY(0); }
}

/* Builds */

.build-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.build-card {
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}

.build-card-live {
  background:
    linear-gradient(145deg, rgba(232, 128, 16, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.build-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-dim);
  font-size: 10px;
}

.build-meta strong {
  color: var(--text-mid);
  font-weight: 400;
}

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

.status-ready {
  background: var(--green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
}

.status-wip {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(232, 128, 16, 0.7);
}

h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.build-card .button {
  margin-top: 24px;
}

.release-note {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.022);
}

/* Contact */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 80px;
  padding: clamp(26px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--border-sub);
}

.contact-copy h2 {
  max-width: 740px;
}

.contact-copy p:last-child {
  max-width: 700px;
  margin-top: 20px;
}

.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
}

/* Footer */

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-sub);
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* How it works */

.hero-platform-note {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}

.flow-section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border-sub);
}

.flow-section h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 48px);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.flow-step {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: #0A0908;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.flow-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 980px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

/* Onboarding page */

.tutorial-page {
  background:
    linear-gradient(180deg, #0A0908 0%, #121110 60%, #0A0908 100%);
}

.tutorial-hero {
  padding: 150px 0 70px;
}

.tutorial-hero h1 {
  max-width: 1060px;
  margin-top: 14px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
}

.tutorial-hero p {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--text-mid);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.tutorial-section {
  padding-bottom: 86px;
}

.guide-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  margin-bottom: 40px;
  padding: 22px;
  border-radius: var(--radius);
}

.guide-note strong {
  color: var(--amber);
  font-size: 11px;
}

.tutorial-list {
  display: grid;
  gap: 22px;
}

.tutorial-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(20px, 3.5vw, 42px);
  border-radius: var(--radius);
}

.tutorial-step {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 10px;
}

.step-body h2 {
  font-size: clamp(24px, 3.5vw, 40px);
}

.step-body p {
  margin-top: 20px;
}

.step-detail {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-mid);
}

.step-detail li {
  position: relative;
  padding-left: 20px;
}

.step-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.telegram-shot,
.trackcast-shot {
  overflow: hidden;
  border-radius: 12px;
}

.telegram-shot {
  max-width: 420px;
  margin-inline: auto;
  background: #101820;
}

.telegram-header,
.trackcast-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-sub);
}

.telegram-header {
  color: #e9f0f5;
  background: #17212b;
}

.telegram-header span,
.trackcast-header span {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chat {
  min-height: 350px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.bubble {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 12px;
  background: #182533;
  color: #edf4f7;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.38;
}

.bubble.me {
  justify-self: end;
  color: #101820;
  background: #d4f6c8;
}

.bubble code,
.settings-row code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.bubble .token {
  display: block;
  margin-top: 6px;
  color: var(--green);
  word-break: break-all;
}

.trackcast-shot {
  background: var(--bg);
}

.trackcast-header {
  background: var(--bg-2);
}

.settings-pane {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.settings-row {
  display: grid;
  gap: 8px;
}

.settings-row label {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-input {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg-1);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.test-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--green);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.test-result::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ── Idle / Live state gating ──────────────────
 * These rules come AFTER component styles so they
 * win on specificity for display toggles.
 */

.hero-stage:not(.is-live) .track-cycle,
.hero-stage:not(.is-live) .np-title-cycle,
.hero-stage:not(.is-live) .np-tags-cycle { display: none; }

.hero-stage:not(.is-live) .app-btn-stop,
.hero-stage:not(.is-live) .app-live-runtime { display: none; }

.hero-stage:not(.is-live) .app-log-r1,
.hero-stage:not(.is-live) .app-log-r2,
.hero-stage:not(.is-live) .app-log-r3,
.hero-stage:not(.is-live) .app-log-r4 { display: none; }

.hero-stage:not(.is-live) .tg-post { display: none; }

.is-live .np-idle-text { display: none; }
.is-live .np-eyebrow-idle { display: none; }
.is-live .np-eyebrow-live { display: inline; }
.is-live .np-eyebrow { color: var(--amber); }
.is-live .np-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-soft);
  animation: npDotPulse 1.4s ease-in-out infinite alternate;
}
.is-live .app-btn-start { display: none; }

/* Responsive */

@media (max-width: 980px) {
  .section-grid,
  .build-list,
  .contact-section,
  .tutorial-card,
  .guide-note {
    grid-template-columns: 1fr;
  }

  /* Hero: horizontal swipe between app and Telegram */
  .hero-stage {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    scrollbar-width: none;
  }

  .hero-stage::-webkit-scrollbar {
    display: none;
  }

  .hero-signal {
    display: none;
  }

  .desktop-window,
  .phone-frame {
    flex: 0 0 85vw;
    max-width: 420px;
    height: 420px;
    scroll-snap-align: start;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .main-nav {
    max-width: 180px;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
    font-size: 10px;
  }

  .hero {
    padding-top: 84px;
    padding-bottom: 40px;
  }

  .hero-header,
  .hero-stage,
  .hero-meta {
    width: min(100% - 28px, 1180px);
  }

  .hero-line {
    margin-top: 10px;
  }

  .hero-meta {
    margin-top: 32px;
  }

  .hero-status {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .intro-band,
  .builds-section {
    padding: 58px 0;
  }

  .intro-band,
  .flow-section,
  .builds-section,
  .contact-section,
  .tutorial-hero,
  .tutorial-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .desktop-window,
  .phone-frame {
    flex-basis: 90vw;
    height: 400px;
  }

  .desktop-window {
    border-radius: 8px;
  }

  .app-titlebar {
    height: 32px;
    padding: 0 8px;
  }

  .app-titlebar-mark {
    width: 20px;
    height: 20px;
  }

  .app-tab {
    font-size: 8px;
    padding: 0 7px;
  }

  .app-pill-bar {
    padding: 4px 10px;
  }

  .app-pill-opt {
    padding: 2px 7px;
    font-size: 8px;
  }

  .app-panel {
    padding: 14px 10px 12px;
    height: 120px;
  }

  .np-eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .track-cycle {
    min-height: 26px;
  }

  .track-cycle .np-artist-line {
    font-size: clamp(16px, 5vw, 24px);
  }

  .np-title-cycle {
    min-height: 14px;
    margin-bottom: 8px;
  }

  .np-title-cycle span {
    font-size: 10px;
  }

  .np-tag {
    font-size: 8px;
    padding: 1px 5px;
  }

  .app-controls {
    padding: 7px 10px;
  }

  .app-btn-stop {
    font-size: 9px;
    padding: 4px 10px;
  }

  .app-log-header {
    padding: 6px 10px;
    font-size: 8px;
  }

  .app-log-row {
    grid-template-columns: 32px 1fr auto;
    gap: 8px;
    padding: 6px 10px;
  }

  .app-log-time {
    font-size: 9px;
  }

  .app-log-artist {
    font-size: 11px;
  }

  .app-log-title {
    font-size: 10px;
  }

  .app-log-bpm {
    font-size: 9px;
  }

  .tg-header {
    padding: 10px 12px;
  }

  .tg-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .tg-chat {
    padding: 10px 10px 14px;
    gap: 5px;
  }

  .tg-post {
    padding: 6px 9px 5px;
  }

  .tg-post-name {
    font-size: 11px;
  }

  .tg-post-body {
    font-size: 12px;
  }

  .build-card,
  .release-note,
  .tutorial-card,
  .guide-note {
    border-radius: var(--radius);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
