/* ═══════════════════════════════════
   Marketing pages — shared styles
   Used by: welcome, about, philosophy, founder
   ═══════════════════════════════════ */

/* Prevent horizontal scrollbar from 100vw full-bleed sections */
body { overflow-x: hidden; }


/* ── Welcome page: lock the page gradient to the viewport so every section
   shares the same gradient tint regardless of scroll position.
   This eliminates visible color shifts between sections. ── */
.welcome-page { background-attachment: fixed; }

/* ── Marketing nav bar (two-row) ── */
.mkt-nav {
  padding: 1.5rem 0 0;
}

/* ── Top row: brand + auth ── */
.mkt-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mkt-nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
}
.mkt-nav-brand img {
  height: 120px;
  width: auto;
}
.mkt-nav-brand span {
  font-size: 2.6rem;
  line-height: 1.1;
}
.mkt-nav-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mkt-nav-auth a.mkt-nav-signin {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(124,92,255,0.45);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mkt-nav-auth a.mkt-nav-signin:hover {
  border-color: rgba(124,92,255,0.8);
  color: #fff;
}
.mkt-nav-auth a.mkt-nav-cta {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1.5px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.mkt-nav-auth a.mkt-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,92,255,0.3);
  color: #fff;
}

/* ── Second row: page links ── */
.mkt-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0.7rem 0 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
}
.mkt-nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.mkt-nav-links a:hover,
.mkt-nav-links a.active {
  color: var(--text);
}
.mkt-nav-links a.active {
  font-weight: 600;
}
.mkt-nav-links a.mkt-nav-demo {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* ── Page header ── */
.mkt-page-header {
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 4vh, 3rem);
  max-width: 800px;
  margin: 0 auto;
}
.mkt-page-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.8rem;
}
.mkt-page-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 640px;
}

/* ── Shared section styles ── */
.mkt-section {
  padding: clamp(3rem, 6vh, 4.5rem) 0;
  max-width: 800px;
  margin: 0 auto;
}
.mkt-eyebrow {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 1rem;
}
.mkt-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.2rem;
}
.mkt-body {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}
.mkt-body:last-child { margin-bottom: 0; }

/* ── Pullquote ── */
.mkt-pullquote {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--brand);
  padding-left: 1.2rem;
  margin: 2rem 0 0;
}

/* ── Divider ── */
.mkt-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0 auto;
  max-width: 200px;
}

/* ── Cards grid ── */
.mkt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.mkt-card {
  background: rgba(15,26,46,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  transition: border-color var(--t-fast) var(--ease);
}
.mkt-card:hover {
  border-color: rgba(255,255,255,0.14);
}
.mkt-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}
.mkt-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.mkt-card-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.mkt-card.draft {
  border-style: dashed;
  opacity: 0.65;
}
.mkt-card .mkt-draft-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warning);
  margin-bottom: 0.4rem;
}

/* ── Link cards (navigation between marketing pages) ── */
.mkt-link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.mkt-link-card {
  display: block;
  text-decoration: none;
  background: rgba(15,26,46,0.55);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mkt-link-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  text-decoration: none;
}
.mkt-link-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.mkt-link-card-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

/* ── Section CTA ── */
.mkt-section-cta {
  margin-top: 2rem;
}
.mkt-section-cta .btn {
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  border-radius: 10px;
  font-size: 0.88rem;
}

/* ── Buttons (reused from welcome) ── */
.mkt-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  color: #fff;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124,92,255,0.3);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.mkt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,92,255,0.4);
  color: #fff;
  text-decoration: none;
}
.mkt-btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.30);
  color: var(--text);
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.mkt-btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}
.mkt-btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* ── Learning loop ── */
.mkt-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 2.5rem 0 1.5rem;
}
.mkt-loop-step {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--text);
  padding: 0.6rem 1.2rem;
  background: rgba(15,26,46,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  white-space: nowrap;
}
.mkt-loop-arrow {
  font-size: 1.1rem;
  color: var(--brand-2);
  padding: 0 0.4rem;
  opacity: 0.6;
}

/* ── Founder image placeholder ── */
.mkt-founder-image {
  width: 440px;
  height: 528px;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Rectangular edge fade — matches hero treatment in spirit */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 14%, black 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 14%, black 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
}
.mkt-founder-image span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}
.mkt-section-wide {
  max-width: 1060px;
}
.mkt-founder-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.mkt-founder-copy {
  flex: 1;
}
.mkt-founder-copy p {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}
.mkt-founder-copy p:last-of-type { margin-bottom: 0; }
.mkt-founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.mkt-founder-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

/* ── Page footer ── */
.mkt-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.mkt-footer-brand {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.mkt-footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}
.mkt-footer-credibility {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.4rem;
}
.mkt-footer-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.mkt-footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.mkt-footer-links a:hover { color: rgba(255,255,255,0.75); }
.mkt-footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

/* ── Photo band (full-bleed atmospheric section) ── */
.mkt-photo-band {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: clamp(390px, 52vh, 660px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
  /* Mask creates a transparent fade at top/bottom that blends into whatever
     the page background is — no color-matching needed, no dark seam possible. */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
}
.mkt-photo-band-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mkt-photo-band-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.06em;
  z-index: 1;
}

/* ── Inset photo (quiet editorial image with 4-edge fade) ── */
.mkt-photo-inset {
  display: block;
  max-width: 450px;
  width: 100%;
  margin: 2rem auto;
  border-radius: 12px;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

/* ── Final CTA section ── */
.mkt-final-cta {
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 700px;
  margin: clamp(2rem, 4vh, 3rem) auto clamp(4rem, 8vh, 6rem);
  border-radius: 20px;
  background: rgba(15,26,46,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 80px rgba(124,92,255,0.15),
    0 0 160px rgba(53,198,255,0.10);
  position: relative;
}
.mkt-final-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1rem;
}
.mkt-final-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
}
.mkt-final-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.mkt-final-buttons .btn,
.mkt-final-buttons .mkt-btn-primary,
.mkt-final-buttons .mkt-btn-secondary {
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .mkt-photo-band { background-attachment: scroll; }
}

/* ── Wide section variant (screenshot proof section) ── */
.home-section-wide {
  padding: clamp(4.5rem, 9vh, 7rem) 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Product screenshots ── */
.mkt-screenshots-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.mkt-screenshot {
  margin-bottom: 4rem;
}
.mkt-screenshot:last-child {
  margin-bottom: 0;
}
.mkt-screenshot-frame {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.25);
}
.mkt-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.mkt-screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  font-style: italic;
}
.mkt-screenshot-caption {
  margin-top: 1.4rem;
  padding: 0 0.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}
.mkt-screenshot-label {
  display: block;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mkt-nav { padding: 1rem 1rem 0; }
  .mkt-nav-brand img { height: 68px; }
  .mkt-nav-brand span { font-size: 1.55rem; }
  .mkt-nav-brand { gap: 0.75rem; }
  .mkt-nav-auth a.mkt-nav-signin,
  .mkt-nav-auth a.mkt-nav-cta { font-size: 0.85rem; padding: 0.45rem 1rem; }
  .mkt-nav-links { gap: 1.6rem; max-width: none; }
  .mkt-nav-links a { font-size: 0.88rem; }
  .mkt-section { padding: 2.5rem 0; }
  .mkt-cards { grid-template-columns: 1fr; }
  .mkt-link-cards { grid-template-columns: 1fr; }
  .mkt-loop-step { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
  .mkt-loop-arrow { padding: 0 0.2rem; font-size: 0.9rem; }
  .mkt-founder-row { flex-direction: column; align-items: center; }
  .mkt-founder-copy { text-align: center; }
  .mkt-screenshot { margin-bottom: 2.5rem; }
  .mkt-screenshot-frame { border-radius: 10px; }
  .mkt-photo-band { background-attachment: scroll; height: clamp(260px, 37vh, 420px); }
}

/* ── Narrow mobile: compact nav ── */
@media (max-width: 540px) {
  .mkt-nav-brand span { display: none; }
  .mkt-nav-links { gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
  .mkt-nav-links a { font-size: 0.82rem; }
}
