/* Marketing site — page-level styles.
   Pulls tokens from ../../colors_and_type.css, then adds the layout
   primitives (section paddings, orb imagery, sticky header, etc).
*/

@import url("../design-system/colors_and_type.css");

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--si-bg-paper);
  color: var(--si-fg-default);
  font-family: var(--si-font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* --- Layout --- */
.m-shell      { width: 100%; }
.m-container  { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.m-section    { padding: 96px 0; position: relative; }
.m-section-sm { padding: 64px 0; position: relative; }

.m-band-tinted   { background: var(--si-bg-tinted); }
.m-band-violet   { background: var(--si-bg-violet); }
.m-band-ink      { background: var(--si-bg-ink); color: var(--si-fg-inverse); }
.m-band-ink a    { color: var(--si-fg-inverse); }

/* --- Sticky header --- */
.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--si-stroke-hairline);
}
.m-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.m-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--si-font-serif);
  font-weight: 700;
  letter-spacing: -0.012em;
  font-size: 17px;
  color: var(--si-ink);
  white-space: nowrap;
}
.m-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--si-graphite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-logo-mark span {
  color: var(--si-paper);
  font-family: var(--si-font-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}
.m-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--si-fg-muted);
}
.m-nav a {
  transition: color 160ms cubic-bezier(0.25,0.46,0.45,0.94);
}
.m-nav a:hover { color: var(--si-fg-default); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 180ms cubic-bezier(0.25,0.46,0.45,0.94),
              background-color 180ms cubic-bezier(0.25,0.46,0.45,0.94);
}
.btn-lg     { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 8px; }
.btn-primary { background: var(--si-violet-600); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-primary:active { opacity: .8; }
.btn-secondary {
  background: #fff;
  color: var(--si-ink);
  border: 1px solid var(--si-stroke-divider);
}
.btn-secondary:hover { background: var(--si-bone); }
.btn-ghost { background: transparent; color: var(--si-ink); }
.btn-ghost:hover { background: rgba(21,24,58,0.04); }
.btn-on-ink {
  background: var(--si-paper); color: var(--si-ink);
}
.btn-on-ink:hover { background: #fff; }

/* --- Eyebrow / chips --- */
.m-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--si-violet-600);
}
.m-band-ink .m-eyebrow { color: var(--si-violet-300); }
.m-voice .m-eyebrow    { color: var(--si-violet-300); }

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(110, 91, 255, 0.08);
  border: 1px solid rgba(110, 91, 255, 0.16);
  color: var(--si-violet-700);
  font-size: 12px;
  font-weight: 500;
}
.m-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--si-violet-500);
  box-shadow: 0 0 0 3px rgba(110, 91, 255, .18);
}

/* --- Type --- */
.m-display {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--si-ink);
  text-wrap: balance;
}
.m-display em {
  font-family: var(--si-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--si-violet-700);
}
.m-display .stack { display: block; }

.m-h2 {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--si-fg-default);
  text-wrap: balance;
}
.m-band-ink .m-h2 { color: var(--si-paper); }
.m-voice .m-h2   { color: var(--si-paper); }
.m-voice .m-lede { color: rgba(251, 250, 247, 0.72); }

.m-h3 {
  font-family: var(--si-font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: inherit;
}

.m-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--si-fg-muted);
  max-width: 640px;
  text-wrap: pretty;
}
.m-band-ink .m-lede { color: rgba(251, 250, 247, 0.72); }

.m-small { font-size: 13px; color: var(--si-fg-muted); }
.m-band-ink .m-small { color: rgba(251, 250, 247, 0.6); }

/* --- Hero --- */
.m-hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.m-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) {
  .m-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.m-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

/* Orbs — three blurred radial gradients */
.m-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.m-orb-violet { background: radial-gradient(circle, rgba(110,91,255,.36), rgba(110,91,255,0) 70%); }
.m-orb-sage   { background: radial-gradient(circle, rgba(139,168,135,.40), rgba(139,168,135,0) 70%); }
.m-orb-sky    { background: radial-gradient(circle, rgba(168,194,216,.45), rgba(168,194,216,0) 70%); }

/* --- Two products split --- */
.m-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 820px) {
  .m-products { grid-template-columns: 1fr; }
}
.m-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--si-stroke-hairline);
  background: #fff;
  box-shadow: var(--si-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
}
.m-product-card.violet { background: var(--si-bg-violet); border-color: rgba(110,91,255,.16); }
.m-product-card.sage   { background: var(--si-bg-sage); border-color: rgba(111,142,108,.18); }
.m-product-card .glyph {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-product-card.violet .glyph { background: rgba(110,91,255,.14); color: var(--si-violet-700); }
.m-product-card.sage   .glyph { background: rgba(111,142,108,.16); color: var(--si-sage-700); }
.m-product-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-product-card ul li {
  font-size: 14px;
  color: var(--si-fg-default);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.m-product-card ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  margin-top: 8px;
  background: currentColor;
  opacity: .35;
  flex: 0 0 6px;
}

/* --- Capabilities grid --- */
.m-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 820px) { .m-cap-grid { grid-template-columns: 1fr; } }
.m-cap {
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--si-stroke-hairline);
  box-shadow: var(--si-shadow-card);
}
.m-cap .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(110,91,255,.08);
  color: var(--si-violet-700);
  margin-bottom: 14px;
}
.m-cap.sage .icon { background: rgba(111,142,108,.14); color: var(--si-sage-700); }
.m-cap.sky  .icon { background: rgba(95,137,171,.14);  color: var(--si-sky-700); }

/* --- Product preview frame --- */
.m-preview-frame {
  border-radius: 18px;
  background: #0A0A0A;
  border: 1px solid #232328;
  box-shadow:
    0 30px 80px -20px rgba(21,24,58,.35),
    0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden;
}
.m-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #141416;
  border-bottom: 1px solid #232328;
}
.m-preview-bar .dot {
  width: 10px; height: 10px; border-radius: 999px; background: #2A2A2F;
}

/* --- How it works rail --- */
.m-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 820px) { .m-steps { grid-template-columns: 1fr 1fr; } }
.m-step {
  padding: 22px;
  border-radius: 12px;
  background: rgba(251, 250, 247, 0.04);
  border: 1px solid rgba(251, 250, 247, 0.08);
}
.m-step .num {
  font-family: var(--si-font-mono);
  font-size: 12px;
  color: var(--si-violet-300);
  letter-spacing: 0.06em;
}
.m-step h4 {
  margin: 8px 0 6px;
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--si-paper);
  letter-spacing: -0.012em;
}
.m-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(251, 250, 247, 0.6);
}

/* --- Voice agent block --- */
.m-voice {
  position: relative;
  border-radius: 24px;
  padding: 64px;
  background:
    radial-gradient(circle at 80% 30%, rgba(110,91,255,.18), transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(168,194,216,.18), transparent 55%),
    var(--si-ink);
  color: var(--si-paper);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 820px) { .m-voice { padding: 40px; grid-template-columns: 1fr; } }

.m-waveform {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 88px;
}
.m-waveform .bar {
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--si-violet-400), var(--si-violet-600));
  animation: wave 1.4s cubic-bezier(0.25,0.46,0.45,0.94) infinite;
}
.m-waveform .bar:nth-child(1) { animation-delay: 0s;    height: 24px; }
.m-waveform .bar:nth-child(2) { animation-delay: 0.12s; height: 48px; }
.m-waveform .bar:nth-child(3) { animation-delay: 0.24s; height: 72px; }
.m-waveform .bar:nth-child(4) { animation-delay: 0.36s; height: 56px; }
.m-waveform .bar:nth-child(5) { animation-delay: 0.48s; height: 80px; }
.m-waveform .bar:nth-child(6) { animation-delay: 0.6s;  height: 36px; }
.m-waveform .bar:nth-child(7) { animation-delay: 0.72s; height: 64px; }
.m-waveform .bar:nth-child(8) { animation-delay: 0.84s; height: 40px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1); }
}

.m-voice-call {
  background: rgba(251,250,247,0.04);
  border: 1px solid rgba(251,250,247,0.10);
  border-radius: 16px;
  padding: 24px;
}
.m-call-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.m-call-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(95,163,139,0.18);
  color: #8FCEB1;
  font-size: 11px;
  font-family: var(--si-font-mono);
  letter-spacing: 0.04em;
}
.m-call-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: #8FCEB1;
  box-shadow: 0 0 0 3px rgba(95,163,139,0.30);
}
.m-call-transcript { display: flex; flex-direction: column; gap: 12px; }
.m-bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 12px;
  max-width: 84%;
}
.m-bubble.agent {
  background: rgba(110,91,255,0.16);
  border: 1px solid rgba(110,91,255,0.24);
  color: var(--si-paper);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.m-bubble.owner {
  background: rgba(251,250,247,0.06);
  border: 1px solid rgba(251,250,247,0.10);
  color: var(--si-paper);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.m-call-transcript { display: flex; flex-direction: column; gap: 10px; }

/* --- Design-partner block (replaces social-proof) --- */
.m-partners {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 56px 56px;
  border-radius: 20px;
  background: var(--si-bg-tinted);
  border: 1px solid var(--si-stroke-hairline);
}
@media (max-width: 820px) {
  .m-partners { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
}
.m-partners-quote {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.014em;
  color: var(--si-ink);
  margin: 14px 0 0;
  text-wrap: balance;
}
.m-partners-quote em {
  font-family: var(--si-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--si-violet-700);
}
.m-partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.m-partner-grid li {
  padding: 18px 0;
  border-top: 1px solid rgba(21,24,58,0.08);
}
.m-partner-grid li:last-child { border-bottom: 1px solid rgba(21,24,58,0.08); }
.m-partner-label {
  font-family: var(--si-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--si-violet-700);
  font-weight: 600;
  margin-bottom: 6px;
}
.m-partner-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--si-fg-default);
}

/* --- Social proof (legacy logos, kept for reference) --- */
.m-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.m-logo-pill {
  font-family: var(--si-font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  font-size: 18px;
  color: var(--si-fg-muted);
  opacity: 0.85;
}

/* --- Final CTA --- */
.m-cta {
  text-align: center;
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}

/* --- Footer --- */
.m-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--si-stroke-hairline);
  background: var(--si-bone);
}
.m-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 820px) { .m-footer-grid { grid-template-columns: 1fr 1fr; } }
.m-footer h5 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--si-fg-muted);
  font-weight: 600;
}
.m-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.m-footer ul a { font-size: 14px; color: var(--si-fg-default); }
.m-footer ul a:hover { color: var(--si-violet-600); }
.m-footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--si-stroke-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--si-fg-subtle);
}

/* --- Roadmap / long-term vision --- */
.m-roadmap-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .m-roadmap-head { grid-template-columns: 1fr; gap: 24px; }
}
.m-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border-radius: 18px;
  border: 1px solid var(--si-stroke-hairline);
  background: #fff;
  box-shadow: var(--si-shadow-card);
  overflow: hidden;
}
@media (max-width: 1080px) {
  .m-pipeline { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .m-pipeline { grid-template-columns: repeat(2, 1fr); }
}
.m-pipeline-cell {
  position: relative;
  padding: 24px 18px 22px;
  border-right: 1px solid var(--si-stroke-hairline);
  border-bottom: 1px solid var(--si-stroke-hairline);
  background: #fff;
}
.m-pipeline-cell:last-child { border-right: none; }
@media (max-width: 1080px) {
  .m-pipeline-cell:nth-child(4n) { border-right: none; }
  .m-pipeline-cell:nth-child(n+5) { border-bottom: none; }
}
@media (max-width: 640px) {
  .m-pipeline-cell:nth-child(2n) { border-right: none; }
  .m-pipeline-cell:nth-child(n+7) { border-bottom: none; }
}
.m-pipeline-cell.now {
  background: var(--si-bg-violet);
}
.m-pipeline-cell .step-num {
  font-family: var(--si-font-mono);
  font-size: 11px;
  color: var(--si-fg-subtle);
  letter-spacing: 0.06em;
}
.m-pipeline-cell .step-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(110,91,255,.10);
  color: var(--si-violet-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
}
.m-pipeline-cell.future .step-icon {
  background: rgba(21,24,58,.05);
  color: var(--si-fg-muted);
}
.m-pipeline-cell .step-title {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--si-ink);
  margin: 0 0 4px;
  line-height: 1.2;
}
.m-pipeline-cell .step-body {
  font-size: 12px;
  line-height: 1.45;
  color: var(--si-fg-muted);
  margin: 0;
}
.m-pipeline-cell .step-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 16px; right: 14px;
  font-family: var(--si-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--si-sage-700);
  font-weight: 600;
}
.m-pipeline-cell .step-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--si-sage-500);
  box-shadow: 0 0 0 3px rgba(95,163,139,0.18);
}
.m-pipeline-cell.future .step-tag { color: var(--si-fg-subtle); }
.m-pipeline-cell.future .step-tag::before { background: var(--si-fg-subtle); box-shadow: none; opacity: .5; }

.m-roadmap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.m-roadmap-legend {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: var(--si-fg-muted);
}
.m-roadmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.m-roadmap-legend i {
  width: 10px; height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.m-roadmap-legend .ship   { background: var(--si-bg-violet); border: 1px solid rgba(110,91,255,.30); }
.m-roadmap-legend .future { background: #fff; border: 1px solid var(--si-stroke-divider); }

/* --- Stat strip --- */
.m-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 14px;
  border: 1px solid var(--si-stroke-hairline);
  background: #fff;
  overflow: hidden;
  margin-top: 36px;
}
.m-stat-strip > div {
  padding: 28px;
  border-right: 1px solid var(--si-stroke-hairline);
}
.m-stat-strip > div:last-child { border-right: none; }
.m-stat-num {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--si-ink);
}
.m-stat-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--si-fg-muted);
}
