/* ── Reset & tokens ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg:         #0B1120;
  --surface:    #0F172A;
  --card:       #0F172A;
  --secondary:  #1E293B;
  --border:     #243044;
  --accent:     #3B82F6;
  --accent-end: #7C3AED;
  --fg:         #E2E8F0;
  --muted:      #7B8BA3;
  --muted-bg:   #192237;
  --success:    #1BCA5B;
  --warning:    #F59E0B;
  --danger:     #DC2626;
  --code-bg:    #121D33;
  --mono:       'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  font-family: var(--sans); background: var(--bg); color: var(--fg); min-height: 100vh; overflow-x: hidden;
  background-image:
    linear-gradient(rgba(59,130,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.045) 1px, transparent 1px);
  background-size: 60px 60px;
}
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
  background: rgba(11,17,32,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.lp-logo { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.05rem; color: #fff; }
.lp-logo svg { color: var(--accent); }
.lp-logo .logo-svg { width: 140px; height: 26px; }
.lp-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.lp-nav-links a { font-size: .9rem; color: var(--muted); transition: color .2s; }
.lp-nav-links a:hover { color: #fff; }

/* ── Hero ── */
.lp-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 140px 1.5rem 60px;
}
.lp-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .9rem; border-radius: 100px; font-size: .78rem; font-weight: 500;
  background: rgba(59,130,246,.1); color: #60A5FA; border: 1px solid rgba(59,130,246,.2);
  margin-bottom: 1.5rem; letter-spacing: .015em;
}
.lp-badge svg { width: 14px; height: 14px; }
.lp-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.lp-hero h1 span { display: block; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-hero p { margin-top: 1.2rem; font-size: 1.1rem; color: var(--muted); max-width: 540px; line-height: 1.65; }
.lp-hero .lp-hero-lead { margin-top: 1.2rem; font-size: 1.15rem; color: var(--fg); max-width: 580px; line-height: 1.6; font-weight: 500; }
.lp-hero .lp-hero-sub { margin-top: .6rem; font-size: .95rem; color: var(--muted); max-width: 560px; line-height: 1.65; }
.lp-hero-btns { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.lp-btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.5rem; border-radius: 10px; font-size: .95rem; font-weight: 500;
  background: var(--accent); color: #fff; transition: background .2s, transform .15s;
}
.lp-btn-primary:hover { background: #2563EB; transform: translateY(-1px); }
.lp-btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.5rem; border-radius: 10px; font-size: .95rem; font-weight: 500;
  background: transparent; color: var(--fg); border: 1px solid var(--border); transition: border-color .2s, transform .15s;
}
.lp-btn-outline:hover { border-color: #3d5070; transform: translateY(-1px); }
.lp-btn-outline.sm { padding: .45rem 1.1rem; font-size: .85rem; border-radius: 8px; }

/* ── Demo section v2 ── */
.lp-demo-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 980px; margin: 0 auto; padding: 0 1.5rem 80px;
}
/* Row 2: Flow + Result side by side */
.lp-demo-row2 {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.lp-demo-row2 .lp-demo-right {
  flex: 1;
}
.lp-demo-row2 .lp-result-area {
  flex: 1;
}
.hero-sub-flow {
  color:white;
}
/* Pulsating border animation */
@keyframes borderPulse {
  0%, 100% { border-color: var(--accent); box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { border-color: #60A5FA; box-shadow: 0 0 20px 2px rgba(59,130,246,0.3); }
}
.lp-terminal.active, .lp-demo-right.active, .lp-result-area.active {
  border-color: var(--accent) !important;
  animation: borderPulse 1.5s ease-in-out infinite;
}
/* Keep accent border after completion (no pulse) */
.lp-terminal.done, .lp-demo-right.done, .lp-result-area.done {
  border-color: var(--accent) !important;
}

/* Connecting lines between boxes */
.lp-demo-connector {
  position: absolute;
  background: var(--border);
  transition: background 0.4s ease;
}
.lp-demo-connector.active {
  background: var(--accent);
}
.lp-demo-connector.done {
  background: var(--success);
}
/* Line from terminal to flow panel (horizontal) */
.lp-connector-h {
  height: 2px; width: 40px;
  right: -20px; top: 50%;
  transform: translateY(-50%);
}
/* Line from flow panel to result (vertical on right side) */
.lp-connector-v {
  width: 2px; height: 40px;
  left: 50%; bottom: -20px;
  transform: translateX(-50%);
}

/* Connectors - visual flow lines */
.lp-row-connector, .lp-col-connector {
  background: var(--border);
  transition: background 0.4s ease, box-shadow 0.3s;
}
.lp-row-connector.active, .lp-col-connector.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
}
.lp-row-connector.done, .lp-col-connector.done {
  background: var(--accent);
}
/* Vertical line: terminal → row2 */
.lp-row-connector {
  width: 2px; height: 16px;
  margin-left: 24%;
}
/* Horizontal line: flow → result */
.lp-col-connector {
  width: 24px; height: 2px;
  align-self: center;
  flex-shrink: 0;
}
/* Horizontal line from left panel to flow panel */
.lp-panel-connector {
  width: 24px; height: 2px;
  align-self: center;
  flex-shrink: 0;
}

.lp-terminal {
  background: var(--code-bg); border: 2px solid var(--border); border-radius: 14px;
  overflow: hidden; position: relative; transition: border-color 0.3s, box-shadow 0.3s;
}
.lp-terminal-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.lp-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-dot-r { background: #ff5f57; }
.lp-dot-y { background: #febc2e; }
.lp-dot-g { background: #28c840; }
.lp-terminal-title { margin-left: 8px; font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.lp-terminal-body { padding: 20px; font-family: var(--mono); font-size: .8rem; line-height: 1.75; }
.lp-terminal-body .t-prompt { color: var(--success); }
.lp-terminal-body .t-cmd { color: var(--fg); }
.lp-terminal-body .t-flag { color: #60A5FA; }
.lp-terminal-body .t-str { color: var(--warning); }
.lp-cursor { 
  color: var(--accent); font-weight: 300; 
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lp-result-area {
  background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
  padding: 20px; position: relative; transition: border-color 0.3s, box-shadow 0.3s;
}
.lp-result-header {
  font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.lp-result-display {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--secondary);
}
.lp-result-placeholder {
  color: var(--muted); font-size: .9rem; font-style: italic;
  position: absolute;
}
.lp-result-placeholder.hidden { display: none; }
.lp-result-img {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}
.lp-result-img.visible { opacity: 1; }

/* Demo right panel */
.lp-demo-right {
  background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column;
  position: relative; transition: border-color 0.3s, box-shadow 0.3s;
}
.lp-flow-title { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

.lp-pipeline-step {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--secondary); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.3s, background 0.3s;
}
.lp-pipeline-step[data-status="active"] { border-color: var(--accent); background: rgba(59,130,246,.08); }
.lp-pipeline-step[data-status="done"] { border-color: var(--success); }

.lp-step-indicator { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.lp-step-dot {
  position: absolute; inset: 6px; background: var(--muted); border-radius: 50%;
  transition: background 0.3s;
}
.lp-pipeline-step[data-status="active"] .lp-step-dot { display: none; }
.lp-pipeline-step[data-status="done"] .lp-step-dot { display: none; }

.lp-step-spinner {
  display: none; position: absolute; inset: 0;
  border: 2px solid transparent; border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.lp-pipeline-step[data-status="active"] .lp-step-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.lp-step-check {
  display: none; position: absolute; inset: 0;
  color: var(--success); width: 20px; height: 20px;
}
.lp-pipeline-step[data-status="done"] .lp-step-check { display: block; animation: checkPop 0.3s ease; }
@keyframes checkPop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

.lp-step-content strong { display: block; font-size: .88rem; font-weight: 600; }
.lp-step-content span { font-size: .72rem; color: var(--muted); font-family: var(--mono); }

.lp-step-time {
  margin-left: auto; font-size: .72rem; color: var(--muted); font-family: var(--mono);
  opacity: 0; transition: opacity 0.3s;
}
.lp-pipeline-step[data-status="done"] .lp-step-time { opacity: 1; }

.lp-flow-connector { width: 2px; height: 12px; background: var(--border); place-self: center; transition: background 0.3s; }
.lp-flow-connector.active { background: var(--accent); }
.lp-flow-connector.done { background: var(--success); }

.lp-replay-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; padding: 10px; border-radius: 8px;
  background: rgba(59,130,246,.1); color: var(--accent); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
  opacity: 0; pointer-events: none;
}
.lp-replay-btn.visible { opacity: 1; pointer-events: auto; }
.lp-replay-btn:hover { background: rgba(59,130,246,.18); }
.lp-replay-btn svg { width: 16px; height: 16px; }

/* ── Comparison ── */
.lp-compare {
  max-width: 980px; margin: 0 auto; padding: 80px 1.5rem 90px; text-align: center;
}
.lp-compare h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2;
  margin-bottom: 2.5rem; letter-spacing: -.015em;
}
.lp-compare h2 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lp-compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
.lp-compare-header {
  padding: 14px 20px; font-weight: 600; font-size: .85rem;
  letter-spacing: .03em; text-transform: uppercase;
}
.lp-compare-header.lp-compare-them {
  background: var(--secondary); color: var(--muted);
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
}
.lp-compare-header.lp-compare-us {
  background: rgba(59,130,246,.08); color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.lp-compare-cell {
  padding: 14px 20px; font-size: .92rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.lp-compare-cell.lp-compare-them {
  color: var(--muted); background: var(--surface);
  border-right: 1px solid var(--border);
}
.lp-compare-cell.lp-compare-us {
  color: var(--fg); background: rgba(59,130,246,.04);
  font-weight: 500;
}
.lp-compare-grid > .lp-compare-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

/* ── Features ── */
.lp-features {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 1.5rem;
}
.lp-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  max-width: 1060px; margin: 0 auto;
}
.lp-feature-card {
  background: var(--secondary); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px;
  transition: border-color .25s;
}
.lp-feature-card:hover { border-color: rgba(59,130,246,.35); }
.lp-feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,.12); color: var(--accent); margin-bottom: 18px;
}
.lp-feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.lp-feature-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── Quality Gate Section ── */
.lp-gate {
  padding: 80px 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.lp-gate-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.lp-gate-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: .75rem 0 .75rem;
  line-height: 1.2;
}
.lp-gate-lead {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.lp-gate-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.lp-gate-bullets li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--fg);
}
.lp-gate-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.lp-gate-node {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 500;
}
.lp-gate-node-step {
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--fg);
}
.lp-gate-node-gate {
  background: #ee41415c;
  border: 1px solid #dc2626;
  color: #fff;
  flex-direction: column;
  gap: .5rem;
  padding: 14px 22px;
  align-items: stretch;
  min-width: 320px;
}
.lp-gate-node-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
}
.lp-gate-input {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lp-gate-input-label {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.65);
}
.lp-gate-input-field {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: .75rem;
  font-family: inherit;
  min-height: 1.3em;
  line-height: 1.4;
}
.lp-gate-arrow {
  display: flex;
  justify-content: center;
  height: 24px;
}
.lp-gate-branches {
  display: flex;
  gap: 3rem;
  margin-top: 4px;
}
.lp-gate-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}
.lp-gate-branch-line {
  width: 1px;
  height: 12px;
  background: var(--border);
}
.lp-gate-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 10px;
  border-radius: 6px;
}
.lp-gate-badge-yes {
  background: rgba(34,197,94,.12);
  color: #22c55e;
}
.lp-gate-badge-no {
  background: rgba(239,68,68,.12);
  color: #ef4444;
}
.lp-gate-node-output {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  color: #22c55e;
}
.lp-gate-node-stop {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  color: #ef4444;
}

/* ── Batch Section ── */
.lp-batch {
  padding: 80px 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.lp-batch-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.lp-batch-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: .75rem 0 .75rem;
  line-height: 1.2;
}
.lp-batch-lead {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.lp-batch-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.lp-batch-bullets li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--fg);
}
.lp-batch-terminal {
  font-size: .82rem;
}
.lp-batch-terminal .t-comment {
  color: #6a7382;
  font-style: italic;
}
.lp-batch-terminal .t-json {
  color: #7dd3a8;
}

@media (max-width: 768px) {
  .lp-batch-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lp-gate-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lp-gate-visual {
    order: 2;
  }
  .lp-gate-text {
    order: 1;
  }
}

/* ── Footer ── */
.lp-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0 1.5rem;
  font-size: .82rem;
  color: var(--muted);
}
.lp-footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}
.lp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.lp-footer-brand .logo-svg-sm,
.lp-footer-brand .logo-svg { width: 110px; height: 20px; }
.lp-footer-brand svg { color: var(--accent); }
.lp-footer-brand p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 240px;
}
.lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.lp-footer-col h4 {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg);
  margin-bottom: .25rem;
}
.lp-footer-col a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.lp-footer-col a:hover {
  color: #fff;
}
.lp-footer-bottom {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lp-demo-row2 {
    flex-direction: column;
    gap: 0;
  }
  .lp-row-connector {
    margin: 0 auto;
  }
  .lp-col-connector {
    width: 2px; height: 16px;
    margin: 0 auto;
    align-self: auto;
  }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-compare { padding: 60px 1rem 70px; }
  .lp-compare-cell { padding: 12px 14px; font-size: .85rem; }
  .lp-hero { padding: 120px 1rem 40px; }
  .lp-hero h1 { font-size: 2rem; }
  .lp-hero p { font-size: .95rem; }
  .lp-footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .lp-footer-brand { grid-column: 1 / -1; text-align: center; align-items: center; }
}
@media (max-width: 500px) {
  .lp-nav { padding: 0 1rem; }
  .lp-hero-btns { flex-direction: column; align-items: center; }
}

/* ── Fashion eCom Demo (v3) ── */
.lp-demo-v3 {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 980px; margin: 0 auto; padding: 0 1.5rem 80px;
}
.lp-demo-v3-label {
  text-align: center;
  padding: 40px 0 40px;
}
.lp-demo-usecase-tag {
  display: inline-block;
  background: rgba(59,130,246,.1);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lp-demo-v3-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.3;
}
.lp-demo-v3-sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
/* 9:16 portrait result display */
.lp-result-display.portrait {
  aspect-ratio: 9 / 16;
  max-height: 100%;
}
.lp-result-video {
  object-fit: cover;
}

/* ── Hero rotating text ── */
.lp-rotate {
  display: inline-block;
  transition: opacity .45s ease, transform .45s ease;
}
.lp-rotate.fade-out {
  opacity: 0;
  transform: translateY(6px);
}
.lp-rotate.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── APIAI.FM Radio Bar ── */
#radio-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  height: 58px;
  background: #0a0014;
  border-top: 2px solid #ff2d78;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  gap: 1rem;
  font-family: 'Pixelify Sans', 'Courier New', monospace;
  font-size: 13px;
  image-rendering: pixelated;
  box-shadow: 0 -4px 32px rgba(255,45,120,.25), 0 -1px 0 #7c00ff;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
#radio-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.18) 2px,
    rgba(0,0,0,.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}
.radio-brand {
  display: flex; flex-direction: column; gap: 5px;
  min-width: 90px;
}
.radio-onair {
  color: #ff2d78;
  font-size: 10px;
  letter-spacing: .08em;
  animation: radio-blink 1.1s step-end infinite;
}
@keyframes radio-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.radio-name {
  color: #00f5d4;
  font-size: 15px;
  letter-spacing: .05em;
  text-shadow: 0 0 8px #00f5d4, 0 0 2px #fff;
}
.radio-center {
  display: flex; align-items: center; gap: .65rem;
  flex: 1; justify-content: center;
}
.radio-btn {
  background: #1a0030;
  color: #ff2d78;
  border: 1px solid #ff2d78;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  image-rendering: pixelated;
  box-shadow: 2px 2px 0 #7c00ff;
  transition: background .1s, transform .1s;
  line-height: 1;
}
.radio-btn:hover  { background: #2d0050; }
.radio-btn:active { transform: translate(2px,2px); box-shadow: none; }
.radio-play {
  background: #1a0030;
  color: #00f5d4;
  border-color: #00f5d4;
  box-shadow: 2px 2px 0 #007a6a;
  padding: 4px 11px;
  font-size: 15px;
}
.radio-play:hover { background: #002e2a; }
.radio-display {
  display: flex; align-items: baseline; gap: 3px;
  background: #000;
  border: 1px solid #7c00ff;
  padding: 4px 8px;
  box-shadow: inset 0 0 8px rgba(124,0,255,.4);
}
.radio-freq {
  color: #00f5d4;
  font-size: 20px;
  letter-spacing: .04em;
  text-shadow: 0 0 8px #00f5d4;
  min-width: 42px;
  text-align: right;
  transition: color .15s;
}
.radio-freq.tuning { color: #7c00ff; text-shadow: 0 0 8px #7c00ff; }
.radio-fm-label {
  color: #ff2d78;
  font-size: 11px;
}
.radio-station-name {
  color: #a855f7;
  font-size: 11px;
  letter-spacing: .06em;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 6px #a855f7;
}
.radio-right {
  display: flex; align-items: center; gap: .8rem;
  min-width: 80px; justify-content: flex-end;
}
.radio-vu {
  display: flex; align-items: flex-end; gap: 3px;
  height: 28px;
  border: 1px solid #2d0050;
  padding: 2px 3px;
  background: #000;
}
.radio-vu-bar {
  width: 8px;
  background: linear-gradient(to top, #00f5d4 0%, #a855f7 60%, #ff2d78 100%);
  height: 10%;
  transition: height .1s linear;
  image-rendering: pixelated;
  box-shadow: 0 0 4px currentColor;
}
.radio-mute {
  background: #1a0030;
  border: 1px solid #7c00ff;
  color: #a855f7;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 3px 8px;
  box-shadow: 2px 2px 0 #3d0060;
  transition: background .1s, color .15s, transform .1s;
  line-height: 1;
}
.radio-mute:hover  { background: #2d0050; color: #fff; }
.radio-mute:active { transform: translate(2px,2px); box-shadow: none; }
.radio-mute.muted  { color: #cc44ff; border-color: #cc44ff; box-shadow: 0 0 6px #cc44ff88; animation: mute-blink 0.8s step-start infinite; }
.radio-mute:not(.muted) { color: #3d3d5c; border-color: #3d0060; box-shadow: none; animation: none; }
@keyframes mute-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.1; } }
/* bump body so content isn't hidden under bar */
body { padding-bottom: 58px; }

/* ── Contact page ─────────────────────────────── */
.contact-page { max-width: 980px; margin: 100px auto 60px; padding: 0 1.25rem; min-height: 70vh; }
.contact-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.contact-lead { color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: flex; flex-direction: column; gap: .4rem; }
.contact-row label { font-size: .85rem; font-weight: 600; color: var(--fg); }
.contact-row input,
.contact-row select,
.contact-row textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: .65rem .85rem; color: var(--fg); font-family: var(--sans); font-size: .95rem;
  transition: border-color .2s;
}
.contact-row input:focus,
.contact-row select:focus,
.contact-row textarea:focus { outline: none; border-color: var(--accent); }
.contact-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237B8BA3' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.4rem; }
.contact-row select option { background: var(--surface); color: var(--fg); }
.contact-row textarea { resize: vertical; min-height: 120px; }
.contact-submit { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; margin-top: .5rem; }
#contact-status { margin-top: .5rem; }
.contact-ok { color: #34d399; font-size: .9rem; }
.contact-err { color: #f87171; font-size: .9rem; }
.label-optional { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* Pipeline brief — slides open */
.pipeline-fields {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease;
  margin: 0; padding: 0;
  border: 1px solid transparent; border-radius: 10px;
}
.pipeline-fields.open {
  max-height: 900px; opacity: 1;
  margin: .25rem 0; padding: 1.25rem;
  border-color: var(--border);
  background: rgba(15, 23, 42, .6);
}
.pipeline-fields-header {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; color: var(--accent);
  margin-bottom: .25rem;
}
.pipeline-fields-hint {
  color: var(--muted); font-size: .85rem; line-height: 1.5; margin-bottom: 1rem;
}
.pipeline-fields .contact-row { margin-bottom: .15rem; }
@media (max-width: 540px) {
  .radio-display,
  .radio-station-name { display: none !important; }
  #radio-bar { padding: 0 .75rem; gap: .5rem; }
  .radio-center { gap: .5rem; }
  .radio-brand { min-width: unset; gap: 2px; }
  .radio-name { font-size: 12px; }
  .radio-onair { font-size: 8px; letter-spacing: .04em; }
}
