/* MaestroSuite landing — brand tokens from 05-tokens/brand-tokens.css */

:root {
  --ms-bg-ink: #050719;
  --ms-bg-navy: #07143a;
  --ms-bg-violet: #170827;
  --ms-cyan: #02d9ff;
  --ms-blue: #1558ff;
  --ms-purple: #7219ff;
  --ms-magenta: #ff24c8;
  --ms-pink: #ff3b88;
  --ms-orange: #ff9d00;
  --ms-white: #f7fbff;
  --ms-muted: #b9c5db;
  --ms-line: rgba(154, 202, 255, 0.22);

  --ms-font-display: "Manrope", "Avenir Next", system-ui, sans-serif;
  --ms-font-body: "Inter", "SF Pro Text", system-ui, sans-serif;

  --ms-radius-sm: 8px;
  --ms-radius-md: 14px;
  --ms-radius-pill: 999px;
  --ms-glow-cyan: 0 0 28px rgba(2, 217, 255, 0.32);
  --ms-glow-magenta: 0 0 28px rgba(255, 36, 200, 0.3);

  --ms-gradient: linear-gradient(90deg, var(--ms-orange), var(--ms-pink), var(--ms-magenta), var(--ms-cyan));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--ms-font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ms-cyan); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.kicker {
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ms-cyan);
  margin-bottom: 0.9em;
}

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

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(5, 7, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ms-line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ms-white);
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.nav-links a {
  color: var(--ms-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.nav-links a:hover { color: var(--ms-white); }

.nav-cta {
  color: var(--ms-white) !important;
  font-weight: 600 !important;
  padding: 9px 18px;
  border-radius: var(--ms-radius-pill);
  border: 1px solid rgba(2, 217, 255, 0.55);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.nav-cta:hover {
  border-color: var(--ms-cyan);
  box-shadow: var(--ms-glow-cyan);
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.88rem; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% 120%, rgba(114, 25, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 15% -10%, rgba(7, 20, 58, 0.9), transparent 70%),
    var(--ms-bg-ink);
}

#wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 46%, transparent 45%, rgba(5, 7, 25, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 7, 25, 0.5) 0%, transparent 22%, transparent 72%, var(--ms-bg-ink) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 110px 24px 80px;
  max-width: 880px;
  /* pull the whole block up to trim the empty headspace under the nav */
  margin-top: clamp(-130px, -9vh, -40px);
}

.hero-wordmark {
  width: min(600px, 86vw);
  margin: 0 auto 18px;
  filter:
    drop-shadow(0 10px 38px rgba(114, 25, 255, 0.4))
    drop-shadow(0 0 22px rgba(2, 217, 255, 0.22));
  animation: wordmark-float 7s ease-in-out infinite;
}

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

.hero-tagline {
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--ms-white);
  margin-bottom: 0.55em;
  text-shadow: 0 2px 24px rgba(5, 7, 25, 0.9);
}

.hero-sub {
  color: var(--ms-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  max-width: 560px;
  margin: 0 auto 2em;
  text-shadow: 0 2px 18px rgba(5, 7, 25, 0.9);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-block;
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--ms-radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--ms-magenta), var(--ms-purple) 55%, var(--ms-blue));
  box-shadow: var(--ms-glow-magenta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 36, 200, 0.45);
}

.btn-ghost {
  color: var(--ms-white);
  background: rgba(7, 20, 58, 0.55);
  border: 1px solid var(--ms-line);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 217, 255, 0.6);
  box-shadow: var(--ms-glow-cyan);
}

/* ---------- Scroll cue ---------- */

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(185, 197, 219, 0.45);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ms-cyan);
  animation: cue-drop 1.8s ease-in-out infinite;
}

@keyframes cue-drop {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ---------- Sections shared ---------- */

section { padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 72px); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(44px, 6vw, 72px);
  text-align: center;
}

.section-sub { color: var(--ms-muted); }

/* ---------- Features ---------- */

.features { background: var(--ms-bg-ink); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(160deg, rgba(7, 20, 58, 0.65), rgba(23, 8, 39, 0.65));
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  padding: 34px 28px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 217, 255, 0.45);
  box-shadow: 0 12px 44px rgba(2, 9, 40, 0.7), var(--ms-glow-cyan);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-card p {
  color: var(--ms-muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Wave divider ---------- */

.wave-divider {
  background: var(--ms-bg-ink);
  line-height: 0;
}

.wave-divider img { width: 100%; }

/* ---------- Session ---------- */

.session {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  background: transparent;
}

.session-copy p { color: var(--ms-muted); }

.session-points {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 0;
}

.session-points li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--ms-white);
  font-size: 0.99rem;
  border-bottom: 1px solid rgba(154, 202, 255, 0.12);
}

.session-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--ms-gradient);
}

.session-visual {
  margin: 0;
  border-radius: var(--ms-radius-md);
  overflow: hidden;
  border: 1px solid var(--ms-line);
  box-shadow: 0 24px 80px rgba(2, 9, 40, 0.85), 0 0 60px rgba(114, 25, 255, 0.18);
}

@media (max-width: 860px) {
  .session { grid-template-columns: 1fr; }
  .session-visual { order: -1; }
}

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

.access {
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(114, 25, 255, 0.16), transparent 65%),
    var(--ms-bg-ink);
}

.access-panel {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(170deg, rgba(7, 20, 58, 0.75), rgba(23, 8, 39, 0.75));
  border: 1px solid var(--ms-line);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  box-shadow: 0 24px 90px rgba(2, 9, 40, 0.8);
}

.access-panel p { color: var(--ms-muted); }

.access-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

.access-form input {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 14px 20px;
  font: inherit;
  color: var(--ms-white);
  background: rgba(5, 7, 25, 0.75);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-pill);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.access-form input::placeholder { color: rgba(185, 197, 219, 0.55); }

.access-form input:focus {
  border-color: var(--ms-cyan);
  box-shadow: var(--ms-glow-cyan);
}

.access-note {
  font-size: 0.85rem;
  margin: 1.4em 0 0;
  color: rgba(185, 197, 219, 0.7) !important;
}

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

.footer {
  border-top: 1px solid var(--ms-line);
  padding: 44px clamp(20px, 6vw, 72px) 54px;
  text-align: center;
  background: var(--ms-bg-ink);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ms-font-display);
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-brand img { border-radius: 6px; }

.footer-tag {
  color: var(--ms-muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.footer-legal {
  color: rgba(185, 197, 219, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  background: linear-gradient(160deg, rgba(7, 20, 58, 0.55), rgba(23, 8, 39, 0.55));
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  padding: 26px 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-family: var(--ms-font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.4em; }

.step p { color: var(--ms-muted); font-size: 0.93rem; margin: 0; }

.signal-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 44px auto 0;
}

.signal-chain .node {
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: var(--ms-radius-pill);
  border: 1px solid rgba(2, 217, 255, 0.4);
  background: rgba(7, 20, 58, 0.6);
}

.signal-chain .arrow {
  color: var(--ms-cyan);
  font-size: 1.1rem;
}

.chain-note {
  text-align: center;
  color: var(--ms-muted);
  font-size: 0.92rem;
  max-width: 640px;
  margin: 22px auto 0;
}

/* ---------- Performance / studio split ---------- */

.split-list { list-style: none; padding: 0; margin: 1.2em 0 0; }

.split-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--ms-muted);
  font-size: 0.96rem;
}

.split-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--ms-gradient);
}

/* ---------- Requirements ---------- */

.req-panel {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(7, 20, 58, 0.55), rgba(23, 8, 39, 0.55));
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  padding: 34px clamp(22px, 4vw, 44px);
}

.req-list { list-style: none; padding: 0; margin: 0; }

.req-list li {
  padding: 11px 0 11px 32px;
  position: relative;
  border-bottom: 1px solid rgba(154, 202, 255, 0.1);
  font-size: 0.98rem;
}

.req-list li:last-child { border-bottom: none; }

.req-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--ms-cyan);
  font-weight: 700;
}

.req-unsupported {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ms-line);
  color: var(--ms-muted);
  font-size: 0.9rem;
}

/* ---------- Trust strip ---------- */

.trust {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: 1.6em 0;
  text-align: left;
  display: inline-block;
}

.trust-points li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ms-muted);
  font-size: 0.97rem;
}

.trust-points li::before {
  content: "●";
  position: absolute;
  left: 4px;
  font-size: 0.55rem;
  top: 15px;
  color: var(--ms-magenta);
}

.text-link { color: var(--ms-cyan); text-decoration: none; border-bottom: 1px solid rgba(2, 217, 255, 0.35); }

.text-link:hover { border-bottom-color: var(--ms-cyan); }

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

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  background: linear-gradient(160deg, rgba(7, 20, 58, 0.5), rgba(23, 8, 39, 0.5));
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 22px;
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ms-cyan);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--ms-muted);
  font-size: 0.96rem;
}

.faq-body p { margin: 0 0 0.8em; }

.faq-body p:last-child { margin-bottom: 0; }

.faq-body code {
  background: rgba(5, 7, 25, 0.7);
  border: 1px solid var(--ms-line);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.86em;
}

.faq-more { text-align: center; margin-top: 28px; }

.open-decision {
  border-left: 3px solid var(--ms-orange);
  padding: 10px 14px;
  background: rgba(255, 157, 0, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.92em;
}

/* ---------- Subpages ---------- */

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 150px clamp(20px, 5vw, 40px) 90px;
}

.page-head { margin-bottom: clamp(36px, 5vw, 56px); }

.page-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); }

.page-sub { color: var(--ms-muted); max-width: 620px; }

.page section { padding: 26px 0; }

.page h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-top: 0.6em;
}

.page p, .page li { color: var(--ms-muted); }

.page .setup-step {
  background: linear-gradient(160deg, rgba(7, 20, 58, 0.5), rgba(23, 8, 39, 0.5));
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  padding: 26px clamp(20px, 3vw, 32px);
  margin-bottom: 18px;
}

.setup-step h2 { margin: 0 0 0.5em; font-size: 1.15rem; }

.setup-step h2 .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
}

.setup-step ol, .setup-step ul { margin: 0.6em 0 0; padding-left: 22px; }

.setup-step li { padding: 3px 0; font-size: 0.97rem; }

.setup-step code {
  background: rgba(5, 7, 25, 0.7);
  border: 1px solid var(--ms-line);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.86em;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 1.2em;
}

.asset-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  background: rgba(7, 20, 58, 0.45);
  padding: 16px;
  transition: border-color 160ms ease;
}

.asset-card:hover { border-color: rgba(2, 217, 255, 0.5); }

.asset-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 12px;
}

.asset-card span {
  display: block;
  color: var(--ms-white);
  font-size: 0.88rem;
  font-weight: 600;
}

.asset-card small { color: var(--ms-muted); font-size: 0.78rem; }

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: 14px 0 6px;
}

.footer-nav a {
  color: var(--ms-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover { color: var(--ms-white); }

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .hero-wordmark { animation: none; }
  .btn, .feature-card { transition: none; }
}
