/* ==========================================================================
   Cueify — marketing site
   Palette is lifted straight from the app's own KaraokeHost.Web/wwwroot/styles.css
   so the site and the product read as one thing. The cyan is taken from the logo
   mark, which the app UI itself doesn't use.
   ========================================================================== */

:root {
  --bg: #121018;
  --bg-2: #0c0a12;
  --surface: #1d1a27;
  --surface-2: #272235;
  --accent: #e6307a;
  --accent-2: #6f3ff5;
  --cyan: #35d6f5;
  --text: #f4f2fb;
  --text-dim: #a39db8;
  --success: #2bd576;
  --line: #ffffff14;

  --grad: linear-gradient(115deg, var(--cyan), var(--accent-2) 55%, var(--accent));
  --maxw: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ambient background glow ---------- */

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 620px; height: 620px; background: #6f3ff5; top: -220px; left: -180px; }
.glow-2 { width: 520px; height: 520px; background: #e6307a; top: 240px; right: -220px; opacity: 0.35; }
.glow-3 { width: 460px; height: 460px; background: #35d6f5; top: 1400px; left: -200px; opacity: 0.18; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #121018cc;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.nav-logo { height: 46px; width: auto; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav-links a { text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 34px -12px var(--accent-2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -12px var(--accent); }

.btn-ghost {
  background: #ffffff0a;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: #ffffff14; transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 0.92rem; }

/* ---------- Section furniture ---------- */

section { position: relative; z-index: 1; }

.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }

/* Alternating band so neighbouring sections separate without a hard rule. */
.tint {
  background: #ffffff05;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.1rem; }

/* ---------- Hero ---------- */

.hero { padding: 92px 0 72px; text-align: center; position: relative; z-index: 1; }

.hero-logo {
  width: 190px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 18px 46px #6f3ff566);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff14, #ffffff07);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin: 0 0 26px;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  max-width: 15ch;
  margin: 0 auto 22px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 62ch;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note { color: var(--text-dim); font-size: 0.9rem; }

.hero-shot {
  margin-top: 58px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px -40px #000, 0 0 90px -50px var(--accent-2);
  background: var(--surface);
}

/* ---------- Marquee strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff05;
  padding: 22px 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 9px; }
.strip-inner b { color: var(--text); font-weight: 650; }

/* ---------- Feature rows (image + copy) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 62px;
  align-items: center;
}

.feature-row + .feature-row { margin-top: 108px; }

.feature-row.reverse .feature-media { order: 2; }

.feature-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.feature-copy > p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 26px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1rem;
}
.checklist .tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
  margin-top: 4px;
}
.checklist b { color: var(--text); }
.checklist span.t { color: var(--text-dim); }
.checklist a { color: var(--cyan); text-decoration: none; font-weight: 650; }
.checklist a:hover { text-decoration: underline; }

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 90px -40px #000;
}

.shot-caption {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}

/* Phone-shaped screenshot frame */
.phone-pair { display: flex; gap: 22px; justify-content: center; }
.phone {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px #000, 0 0 0 8px #ffffff08;
  background: var(--surface);
  max-width: 260px;
}

/* ---------- Cards ---------- */

.card {
  background: linear-gradient(180deg, #ffffff0d, #ffffff05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: #ffffff2e; background: linear-gradient(180deg, #ffffff14, #ffffff07); }

.card-icon { font-size: 1.9rem; line-height: 1; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Cue-type cards echo the app's own .cue-type-card picker */
.cue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.cue-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cue-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cue-card .ic { font-size: 2.2rem; line-height: 1; display: block; margin-bottom: 12px; }
.cue-card h3 { font-size: 1rem; margin-bottom: 7px; }
.cue-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Preset cards ---------- */

.preset {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.preset::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.preset .ic { font-size: 2rem; display: block; margin-bottom: 12px; }
.preset h3 { font-size: 1.2rem; margin-bottom: 10px; }
.preset p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.preset ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-dim); }
.preset li::before { content: "▸ "; color: var(--accent); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 18px; }
.step-num {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Spec table ---------- */

.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
table.spec th, table.spec td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec th { color: var(--text-dim); font-weight: 600; width: 34%; white-space: nowrap; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: none; }

/* ---------- Quote ---------- */

.quote {
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  padding: 6px 0 6px 26px;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  max-width: 800px;
  margin: 0 auto;
}
.quote small { display: block; font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; letter-spacing: 0.04em; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-dim); margin-top: 12px; font-size: 0.97rem; }

.faq-more {
  text-align: center;
  color: var(--text-dim);
  margin: 26px 0 0;
  font-size: 0.97rem;
}
.faq-more a { color: var(--cyan); font-weight: 650; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  border-radius: 26px;
  padding: 74px 32px;
  background: radial-gradient(120% 140% at 50% 0%, #6f3ff533, transparent 62%), var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 30px; font-size: 1.08rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  margin-top: 96px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer img { height: 40px; width: auto; }
.footer .foot-right { margin-left: auto; }
.footer .foot-right a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer .foot-right a:hover { color: var(--text); }

/* ---------- Contact form ---------- */

.contact-wrap { max-width: 620px; }

.contact-form {
  display: grid;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form .field { display: grid; gap: 8px; }

.contact-form label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-dim);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.contact-form button { justify-self: start; }
.contact-form { position: relative; }

/* Honeypot — clipped to 1px rather than display:none, so it survives bots that skip hidden
   fields, but stays at its normal in-flow position (no huge negative offset that would otherwise
   push the page's scrollable width out) and is unreachable by tab or a screen reader. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-status { min-height: 1.4em; margin: 0; font-size: 0.95rem; }
.contact-status.success { color: var(--success); }
.contact-status.error { color: var(--danger); }

/* ---------- Scroll reveal ----------
   Scoped to .js (set by an inline script in <head>) so that with scripting off — or if the
   observer never runs — the content is simply visible rather than stuck at opacity 0. */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
  .badge-pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-row.reverse .feature-media { order: 0; }
  .nav-links { display: none; }
  .section { padding: 76px 0; }
  .feature-row + .feature-row { margin-top: 76px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .cta { padding: 54px 22px; }
  .phone-pair { flex-direction: column; align-items: center; }
}
