/* 「人機共鳴」未來音樂創作大賽 — Demo stylesheet (poster-inspired) */
:root {
  /* Poster palette — deep cyberpunk navy + neon accents */
  --bg-deep: #050a18;
  --bg-navy: #0a1228;
  --bg-card: rgba(12, 28, 58, 0.55);
  --bg-card-hover: rgba(18, 40, 78, 0.72);
  --border: rgba(0, 242, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f2f6ff;
  --text-muted: #9db0c9;
  --cyan: #00f2ff;
  --magenta: #ff2bd6;
  --pink: #ff4fc8;
  --orange: #ff9a3c;
  --gold: #ffd36a;
  --purple: #7b5cff;
  --accent-grad: linear-gradient(135deg, #ff2bd6 0%, #7b5cff 45%, #00f2ff 100%);
  --title-grad: linear-gradient(180deg, #ff4fc8 0%, #c77dff 40%, #00e5ff 100%);
  --btn-grad: linear-gradient(135deg, #ff2bd6 0%, #4b6bff 55%, #00c8ff 100%);
  --hero-grad: linear-gradient(160deg, #050a18 0%, #0c1630 45%, #081022 100%);
  --glow-pink: 0 0 18px rgba(255, 43, 214, 0.45), 0 0 42px rgba(255, 43, 214, 0.18);
  --glow-cyan: 0 0 16px rgba(0, 242, 255, 0.4), 0 0 36px rgba(0, 242, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  --nav-h: 64px;
  --max: 1080px;
  --font: "Noto Sans TC", system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sponsor-bar-bg: #ffffff;
  --sponsor-bar-text: #1a1a2e;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Gradient orbs / particle vibe —— */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
}
.orb-1 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #ff2bd6 0%, transparent 70%);
  top: -100px; right: -120px;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #00c8ff 0%, transparent 70%);
  bottom: 18%; left: -140px;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ff9a3c 0%, transparent 70%);
  top: 52%; right: -80px;
  opacity: 0.22;
}

/* Subtle waveform accent (CSS only) */
.wave-accent {
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 8px,
      rgba(0, 242, 255, 0.35) 8px 9px,
      transparent 9px 14px,
      rgba(255, 43, 214, 0.3) 14px 15px,
      transparent 15px 22px
    );
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 10, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #050a18;
  box-shadow: var(--glow-pink);
}

.brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 43, 214, 0.14);
  color: var(--pink);
  border: 1px solid rgba(255, 43, 214, 0.4);
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.15);
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 154, 60, 0.16);
  color: var(--gold);
  border: 1px solid rgba(255, 211, 106, 0.45);
  white-space: nowrap;
  text-transform: uppercase;
}

.sample-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 154, 60, 0.12), rgba(255, 43, 214, 0.1));
  border: 1px dashed rgba(255, 211, 106, 0.5);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.nav-desktop a:hover {
  color: var(--text);
  background: rgba(0, 242, 255, 0.08);
  text-decoration: none;
}
.nav-desktop a.nav-cta {
  background: var(--btn-grad);
  color: #050a18;
  font-weight: 700;
  margin-left: 0.25rem;
  box-shadow: var(--glow-pink);
}
.nav-desktop a.nav-cta:hover {
  filter: brightness(1.08);
  color: #050a18;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5, 10, 24, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}
.nav-mobile a:hover { background: rgba(0, 242, 255, 0.08); }
.nav-mobile a.nav-cta {
  background: var(--btn-grad);
  color: #050a18;
  font-weight: 700;
  text-align: center;
  margin-top: 0.35rem;
}

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-text { display: none; }
}

/* —— Sections —— */
main { position: relative; z-index: 1; }

.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 43, 214, 0.05), rgba(0, 242, 255, 0.04), transparent);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
  text-shadow: 0 0 12px rgba(0, 242, 255, 0.35);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 43, 214, 0.25));
}

.section-lead {
  color: var(--text-muted);
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

/* Tech divider (circuit-style) */
.tech-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  color: var(--cyan);
  opacity: 0.7;
}
.tech-divider::before,
.tech-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.tech-divider .node {
  width: 8px; height: 8px;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
  flex-shrink: 0;
}

/* —— Hero (home) —— */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background: var(--hero-grad);
  overflow: hidden;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
}
.hero.hero-poster {
  background-color: #050a18;
  background-image: url("poster-ref.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 10, 24, 0.92) 0%, rgba(5, 10, 24, 0.78) 42%, rgba(5, 10, 24, 0.45) 70%, rgba(5, 10, 24, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 10, 24, 0.35) 0%, rgba(5, 10, 24, 0.55) 55%, rgba(5, 10, 24, 0.92) 100%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 43, 214, 0.12), transparent);
  pointer-events: none;
}
.hero:not(.hero-poster)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(0, 242, 255, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 43, 214, 0.12), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 740px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hero-org {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.hero h1 .accent {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 43, 214, 0.45));
}

.hero-slogan {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.55rem;
  text-shadow: 0 0 16px rgba(255, 154, 60, 0.25);
}
.hero-tagline {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 38rem;
}
.hero-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero-meta strong {
  color: var(--cyan);
  font-weight: 700;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-grad);
  color: #050a18;
  box-shadow: var(--glow-pink);
}
.btn-primary:hover { filter: brightness(1.08); color: #050a18; }

.btn-ghost {
  background: rgba(8, 20, 48, 0.65);
  color: var(--text);
  border: 1px solid rgba(0, 242, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.1), var(--glow-cyan);
  border-radius: 12px;
  position: relative;
}
.btn-ghost:hover {
  background: rgba(0, 242, 255, 0.1);
  color: var(--text);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* —— Cards / grids —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.08);
}

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(0, 242, 255, 0.12);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.2);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— Rules list —— */
.rules-list {
  display: grid;
  gap: 0.85rem;
}
.rule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.rule-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--magenta);
  background: rgba(255, 43, 214, 0.12);
  border: 1px solid rgba(255, 43, 214, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.rule-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.rule-item p, .rule-item li {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.rule-item ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.35rem;
}

/* —— Chorus blockquote —— */
.chorus {
  margin: 1.5rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), rgba(255, 43, 214, 0.08));
  border: 1px solid rgba(0, 242, 255, 0.3);
  position: relative;
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.06);
}
.chorus::before {
  content: "指定副歌";
  position: absolute;
  top: -0.65rem;
  left: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: var(--bg-deep);
  padding: 0 0.5rem;
}
.chorus cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
.chorus blockquote {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-line;
  border: none;
  margin: 0;
  padding: 0;
}
.chorus-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* —— Score cards —— */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}
.score-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.5);
}
.score-pct {
  font-size: 2rem;
  font-weight: 900;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.score-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.score-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.flow-box, .info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-top: 1rem;
}
.flow-box h3, .info-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.flow-box p, .info-box p, .flow-box li {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}
.flow-step {
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.3);
  color: var(--cyan);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.flow-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* —— Awards —— */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.award-card.featured {
  border-color: rgba(255, 43, 214, 0.45);
  background: linear-gradient(160deg, rgba(255, 43, 214, 0.12), rgba(0, 242, 255, 0.06));
  box-shadow: 0 0 28px rgba(255, 43, 214, 0.1);
}
.award-rank {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--magenta);
  margin-bottom: 0.4rem;
}
.award-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.award-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* —— Timeline —— */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(0, 242, 255, 0.35);
  display: grid;
  gap: 1.25rem;
}
.timeline-item {
  position: relative;
  padding-left: 0.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.45rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.15), 0 0 12px rgba(255, 43, 214, 0.4);
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.15rem;
}
.timeline-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.timeline-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* —— FAQ accordion —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--cyan);
  font-weight: 400;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq-body {
  padding: 0.9rem 1.2rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Form —— */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 560px;
  box-shadow: var(--glow-cyan);
}
.form-note {
  font-size: 0.88rem;
  color: var(--magenta);
  background: rgba(255, 43, 214, 0.1);
  border: 1px solid rgba(255, 43, 214, 0.3);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  gap: 0.35rem;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-row input,
.form-row select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus {
  outline: 2px solid rgba(0, 242, 255, 0.45);
  border-color: var(--cyan);
}
.form-row select option {
  background: #0a1228;
  color: var(--text);
}
.form-actions {
  margin-top: 0.5rem;
}
.form-feedback {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--cyan);
  display: none;
}
.form-feedback.show { display: block; }

/* —— Sponsors —— */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}
.sponsor-card.featured {
  border-color: rgba(255, 43, 214, 0.45);
  background: linear-gradient(160deg, rgba(255, 43, 214, 0.12), rgba(0, 242, 255, 0.08));
  box-shadow: 0 0 28px rgba(255, 43, 214, 0.12);
}
.sponsor-card .sample-watermark {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255, 154, 60, 0.18);
  border: 1px solid rgba(255, 211, 106, 0.45);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  z-index: 2;
}
.sponsor-tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.tier-diamond {
  color: #67e8f9;
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid rgba(0, 242, 255, 0.35);
}
.tier-gold {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.35);
}
.tier-silver {
  color: #cbd5e1;
  background: rgba(203, 213, 225, 0.1);
  border: 1px solid rgba(203, 213, 225, 0.3);
}
.tier-support {
  color: var(--magenta);
  background: rgba(255, 43, 214, 0.12);
  border: 1px solid rgba(255, 43, 214, 0.3);
}
.sponsor-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #050a18;
  background: var(--accent-grad);
  letter-spacing: -0.02em;
  box-shadow: var(--glow-pink);
}
.sponsor-card h3 {
  font-size: 1rem;
}
.sponsor-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.sponsor-placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.sponsor-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-align: center;
  background: rgba(255, 154, 60, 0.08);
  border: 1px dashed rgba(255, 211, 106, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
a.sponsor-card {
  text-decoration: none;
  color: inherit;
}
a.sponsor-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: rgba(0, 242, 255, 0.5);
  transform: translateY(-2px);
}

/* Light sponsor bar (poster-bottom feel) */
.sponsor-bar-light {
  background: var(--sponsor-bar-bg);
  color: var(--sponsor-bar-text);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.25rem 0;
}
.sponsor-bar-light .section-label {
  color: #666;
  text-shadow: none;
}
.sponsor-bar-light h2,
.sponsor-bar-light h3 {
  color: #1a1a2e;
}
.sponsor-bar-light p {
  color: #555;
}
.sponsor-bar-light .sample-badge {
  background: rgba(200, 80, 0, 0.12);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.4);
}

/* —— Product / sponsor post —— */
.product-hero-grid {
  display: grid;
  gap: 1.5rem;
}
.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.spec-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.spec-item dd {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.product-fit {
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.1), rgba(0, 242, 255, 0.08));
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-top: 1rem;
}
.product-fit h3 {
  margin-bottom: 0.5rem;
}
.product-fit p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.ref-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 1rem;
}
.ref-link a { color: var(--cyan); }

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: rgba(0, 0, 0, 0.45);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.footer-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-meta p { margin-bottom: 0.2rem; }
.footer-demo {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.85;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 600px) {
  .section { padding: 3.25rem 0; }
  .hero { padding: 3.5rem 0 3rem; min-height: auto; }
  .rule-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .form-card { padding: 1.25rem; }
}

/* —— Active nav —— */
.nav-desktop a.active {
  color: var(--cyan);
  background: rgba(0, 242, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.35), 0 0 12px rgba(0, 242, 255, 0.15);
}
.nav-desktop a.nav-cta.active {
  background: var(--btn-grad);
  color: #050a18;
  box-shadow: var(--glow-pink);
  filter: brightness(1.05);
}
.nav-mobile a.active {
  background: rgba(0, 242, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.35);
}
.nav-mobile a.nav-cta.active {
  background: var(--btn-grad);
  color: #050a18;
  box-shadow: none;
}

/* —— Page hero (subpages) —— */
.page-hero {
  position: relative;
  padding: 2.75rem 0 2rem;
  background: var(--hero-grad);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 80% 0%, rgba(0, 242, 255, 0.12), transparent),
    radial-gradient(ellipse 45% 50% at 10% 100%, rgba(255, 43, 214, 0.1), transparent);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--cyan);
  text-decoration: none;
}
.breadcrumb .sep {
  opacity: 0.5;
  user-select: none;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 43, 214, 0.3));
}
.page-hero .page-lead {
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.02rem;
}

/* —— Home teaser cards —— */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
a.teaser-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 255, 0.4);
  text-decoration: none;
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}
.teaser-card .teaser-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}
.teaser-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
}
.teaser-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.teaser-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 0.25rem;
}

/* —— Subpage section spacing after page-hero —— */
.page-content .section {
  padding-top: 3rem;
}
.page-content .section:first-child {
  padding-top: 2.5rem;
}

/* —— Sponsor strip teaser on home variant —— */
.sponsor-strip {
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.06), rgba(0, 242, 255, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sponsor-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sponsor-strip h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sponsor-strip p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 32rem;
}

@media (max-width: 600px) {
  .page-hero { padding: 2rem 0 1.5rem; }
}
