/* ============================================================
   Landing page — "Signals" theme.
   ============================================================ */

.landing { background: var(--surface); }

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

.hero-shell {
  position: relative;
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(84, 87, 242, 0.4), transparent 62%),
    radial-gradient(900px 520px at 92% -4%, rgba(155, 92, 247, 0.32), transparent 58%),
    radial-gradient(700px 400px at 55% 110%, rgba(56, 189, 248, 0.14), transparent 60%),
    var(--ink);
  color: #fff;
  overflow: hidden;
}
/* faint grid — the "radar" backdrop */
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 600px at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-shell > * { position: relative; }

.nav-dark { background: rgba(7, 11, 25, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); }
.nav-dark .nav-links a { color: rgba(255, 255, 255, 0.82); }
.nav-dark .nav-links a:hover { color: #fff; text-decoration: none; }
.brand-dark { color: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 72px;
}

.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a5b3ff;
  margin-bottom: 20px;
}

/* Rotating headline */

.rotator {
  position: relative;
  height: 4.6em;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
.rot-line {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
/* incoming line waits for the outgoing one to clear — no ghost overlap */
.rot-line.is-active { opacity: 1; transform: translateY(0); transition-delay: 0.38s; }
.rot-line em {
  font-style: normal;
  background: linear-gradient(100deg, #98a8ff 0%, #cfa9ff 60%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.merchant-proof {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.merchant-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 600;
}
.merchant-proof strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
}

.live-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 13.5px;
}
.live-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.live-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Hero visual: the flow diagram ---------- */

.hero-visual { min-width: 0; }
.flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 430px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: 26px 26px 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.flow-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow-signals { flex-direction: row; flex-wrap: wrap; }
.flow-signals .flow-title { width: 100%; }
.flow-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
.flow-signals .sig-chip { white-space: nowrap; font-size: 12.5px; padding: 5px 12px; }

@keyframes chip-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 22px 0 rgba(139, 156, 255, 0.35); }
}
.pulse-1 { animation: chip-glow 4.5s ease-in-out infinite; }
.pulse-2 { animation: chip-glow 4.5s ease-in-out 1.5s infinite; }
.pulse-3 { animation: chip-glow 4.5s ease-in-out 3s infinite; }

.flow-link { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin: 2px 0; }
.flow-line { height: 1px; flex: 1; max-width: 110px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); }
.flow-node {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 8px 26px rgba(84, 87, 242, 0.55);
  white-space: nowrap;
}

.flow-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  color: var(--ink);
  border-radius: 13px;
  padding: 10px 13px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.flow-card.rank-1 { outline: 2px solid rgba(155, 92, 247, 0.65); }
.flow-rank {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flow-info { min-width: 0; }
.flow-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-why { font-size: 11.5px; color: var(--muted); }
.flow-score { margin-left: auto; flex: none; width: 52px; height: 6px; background: #e9ebf5; border-radius: 999px; overflow: hidden; }
.flow-score span { display: block; height: 100%; width: var(--w, 50%); background: var(--grad); border-radius: 999px; animation: fill-in 1.4s ease both; }
@keyframes fill-in { from { width: 0; } }

.flow-copy {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.66);
  border-left: 2px solid rgba(155, 92, 247, 0.7);
  padding-left: 10px;
  margin-top: 2px;
}

/* works-with strip */

.works-with {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 34px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}
.works-with strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.works-with i { color: rgba(255, 255, 255, 0.3); font-style: normal; }

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

.section { padding: 100px 0; }
.section-alt { background: var(--paper); }
.section .section-eyebrow { color: var(--primary-deep); }
.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.14;
  font-weight: 800;
  margin: 0 0 18px;
}
.grad-em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; max-width: 640px; margin: 0 0 44px; }

/* Concept cards */

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.concept-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.concept-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cc, var(--primary));
  opacity: 0.85;
}
.concept-card { --cc: var(--primary); }
.concept-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.concept-card h3 { margin: 0 0 12px; font-size: 18.5px; letter-spacing: -0.015em; }
.concept-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.concept-card .sig-chip { padding: 2px 10px; font-size: 12px; vertical-align: 1px; }

/* Dark how-it-works */

.section-dark {
  background:
    radial-gradient(800px 460px at 85% 0%, rgba(155, 92, 247, 0.22), transparent 60%),
    var(--ink-2);
  color: #fff;
}
.section-dark .section-eyebrow { color: #a5b3ff; }
.section-dark h2 { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.step {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 26px;
}
.step h3 { margin: 0 0 10px; font-size: 17.5px; letter-spacing: -0.01em; color: #fff; }
.step p { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.68); }
.step-num {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 20px 0 14px;
}

.step-visual {
  background: rgba(7, 11, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.mock-input {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
}
.mock-input b {
  background: var(--grad); color: #fff; border-radius: 7px;
  font-family: var(--font); font-size: 11.5px; font-weight: 700;
  padding: 5px 10px;
}
.mock-progress { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 71%; border-radius: 999px; background: var(--grad); animation: fill-in 1.6s ease both; }
.mock-progress-label { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.mock-rank {
  display: flex; align-items: center; gap: 9px;
  background: #fff; color: var(--ink);
  border-radius: 9px; padding: 7px 11px;
  font-size: 12.5px; font-weight: 600;
}
.mock-rank i {
  font-style: normal; font-weight: 800; font-size: 11px;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.mock-rank u {
  margin-left: auto; text-decoration: none;
  width: 44px; height: 5px; border-radius: 999px; background: #e9ebf5;
  position: relative; overflow: hidden; flex: none;
}
.mock-rank u::after {
  content: ""; position: absolute; inset: 0; width: var(--w, 50%);
  background: var(--grad); border-radius: 999px;
}

/* ---------- Live section ---------- */

.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.live-grid .section-sub { margin-bottom: 30px; }
.live-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px 30px;
}
.live-panel-head { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 18px; }
.live-panel-head strong { font-family: var(--font-display); }
.live-panel-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.live-panel-chips .sig-chip { font-size: 14px; padding: 9px 16px; }
.live-panel-note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }

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

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Merchant promise ---------- */

.merchant-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 56px;
  align-items: center;
}
.merchant-grid .section-sub { margin-bottom: 28px; }
.merchant-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.merchant-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.merchant-panel-row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.merchant-panel-row:first-child { padding-top: 0; }
.merchant-panel-row span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.merchant-panel-row strong {
  font-size: 15px;
  line-height: 1.45;
}
.merchant-panel-note {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #a5b3ff;
  border-radius: 8px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- API ---------- */

.api-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.api-grid .section-sub { margin-bottom: 28px; }
.code-block {
  background: var(--ink);
  color: #cdd6f4;
  border-radius: var(--radius);
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.68;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
  margin: 0;
}
.c-cmd { color: #8be9a8; }
.c-key { color: #9db1ff; }
.c-str { color: #f0c98d; }

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

.faq-wrap { max-width: 760px; }
.faq-wrap h2 { margin-bottom: 34px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }

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

.cta-band {
  background:
    radial-gradient(900px 460px at 50% -30%, rgba(155, 92, 247, 0.45), transparent 62%),
    var(--ink);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 14px; }
.cta-inner p { color: rgba(255, 255, 255, 0.72); margin: 0 0 32px; font-size: 16.5px; }
.cta-inner .hero-ctas { justify-content: center; }

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

.footer { border-top: 1px solid var(--line); padding: 52px 0 0; background: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 280px; margin: 14px 0 0; }
.footer-grid h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 14px;
}
.footer-grid a { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 30px;
  font-size: 12.5px;
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; padding-bottom: 56px; }
  .rotator { height: 5.2em; }
  .concept-grid, .steps, .features { grid-template-columns: 1fr; }
  .live-grid, .api-grid, .merchant-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a#nav-signin {
    display: inline-block;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  .flow { max-width: none; margin-left: 0; }
}

@media (max-width: 480px) {
  .nav-links a#nav-signin { display: none; }
  .nav-inner { padding: 13px 18px; }
}
