/* ============================================================
   Flowpark — homepage styles
   Aesthetic direction: white editorial canvas, deep-green dark
   bands, warm stone cards, pill CTAs, mono technical labels,
   tight large display type. (Original design for Flowpark.)
   ============================================================ */

:root {
  --canvas: #ffffff;
  --ink: #212121;
  --primary: #17171c;
  --band: #003c33;          /* dark feature band — tweakable */
  --stone: #eeece7;
  --pale-green: #edfce9;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;
  --muted: #93939f;
  --body-muted: #616161;
  --accent: #ff7759;        /* kicker accent — tweakable */
  --on-dark: #ffffff;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --hero-size: 92px;        /* tweakable */

  --r-card: 8px;
  --r-media: 22px;
  --r-pill: 32px;

  --container: 1200px;
  --pad-x: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- type ---------- */

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, var(--hero-size));
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display-section {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.heading-card {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-feature {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.body-large {
  font-size: 18px;
  line-height: 1.45;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.mono-label.accent { color: var(--accent); }

.text-muted { color: var(--body-muted); }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-dark);
  border-radius: var(--r-pill);
  padding: 12px 24px;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: #000000; }

.btn-primary.on-dark {
  background: var(--on-dark);
  color: var(--primary);
}
.btn-primary.on-dark:hover { background: #eeece7; }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.15s ease;
}
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow.on-dark { color: var(--on-dark); text-decoration-color: rgba(255, 255, 255, 0.35); }
.link-arrow.on-dark:hover { text-decoration-color: var(--on-dark); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--band);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.nav-links a:hover { color: var(--body-muted); }

.nav-right { display: flex; align-items: center; gap: 24px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: 96px 0 0; text-align: center; }

.hero-sub {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--body-muted);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.hero-proof {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-stats {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.hero-media {
  position: relative;
  margin-top: 64px;
}

.hero-media image-slot {
  width: 100%;
  height: 560px;
}

.hero-chip {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(23, 23, 28, 0.88);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  pointer-events: none;
}

.hero-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 700px) {
  .hero { padding-top: 64px; }
  .hero-media image-slot { height: 320px; }
}

/* ---------- generic section rhythm ---------- */

.section { padding: 112px 0; }
.section.tight { padding: 80px 0; }

.section-kicker { margin-bottom: 20px; }

.section-head { max-width: 760px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body-muted);
  max-width: 640px;
  text-wrap: pretty;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.09em;
  color: var(--body-muted);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-top: 14px;
}

.step p {
  margin-top: 10px;
  color: var(--body-muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.coverage-line {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
}

.coverage-line p {
  max-width: 680px;
  color: var(--body-muted);
  text-wrap: pretty;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .coverage-line { flex-direction: column; }
}

/* ---------- pillar cards ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--stone);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.pillar-card .heading-card { margin-top: 4px; }

.pillar-card p {
  color: var(--body-muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.pillar-card .card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #ddd9d0;
}

@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar-card { min-height: 0; }
}

/* ---------- social proof ---------- */

.proof { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.proof-inner { padding: 56px 0; }

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat .stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.proof-logos {
  margin-top: 48px;
}

/* moving logo carousel */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 36s linear infinite;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }

.logo-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-set img {
  width: 150px;
  height: 44px;
  margin: 0 20px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-set img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .logo-set:last-child { display: none; }
  .logo-set { flex-wrap: wrap; justify-content: center; gap: 16px 0; }
}

.proof-foot {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

@media (max-width: 700px) {
  .proof-stats { grid-template-columns: 1fr; }
}

/* ---------- audience sections ---------- */

.band-dark {
  background: var(--band);
  color: var(--on-dark);
}

.band-dark .section-lead { color: rgba(255, 255, 255, 0.72); }
.band-dark .mono-label { color: rgba(255, 255, 255, 0.6); }
.band-dark .mono-label.accent { color: var(--accent); }

.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.prop { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 20px; }
.prop h3 { font-family: var(--font-body); font-size: 18px; font-weight: 500; }
.prop p { margin-top: 10px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); text-wrap: pretty; }

.props.on-light .prop { border-top-color: var(--ink); }
.props.on-light .prop p { color: var(--body-muted); }

.quote-block {
  margin-top: 64px;
  padding: 28px 32px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.quote-block.on-light {
  background: var(--canvas);
  border: 1px dashed var(--hairline);
}

.quote-block .quote-pending {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.quote-block p.quote-body {
  margin-top: 12px;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  color: inherit;
  opacity: 0.85;
  text-wrap: pretty;
}

.section-cta { margin-top: 56px; }

@media (max-width: 880px) {
  .props { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- property-owner router strip ---------- */

.owner-router {
  background: var(--pale-green);
  padding: 32px 0;
}

.owner-router-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
}

.owner-router-copy {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

.owner-router-copy strong { font-weight: 500; }

.owner-router-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.owner-router-links span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.owner-router-links span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 880px) {
  .owner-router-inner { flex-direction: column; gap: 20px; }
  .owner-router-links { flex-wrap: wrap; }
}

/* ---------- platform teaser ---------- */

.solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.solution-card {
  background: var(--stone);
  border-radius: var(--r-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-card .heading-card { margin-top: 4px; }
.solution-card p { color: var(--body-muted); line-height: 1.5; text-wrap: pretty; }
.solution-card .card-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #ddd9d0; }

.ecosystem-line {
  margin-top: 16px;
  background: var(--pale-green);
  border-radius: var(--r-card);
  padding: 28px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
}

.ecosystem-line p { max-width: 700px; color: var(--ink); text-wrap: pretty; }

@media (max-width: 880px) {
  .solutions { grid-template-columns: 1fr; }
  .ecosystem-line { flex-direction: column; }
}

/* ---------- case study ---------- */

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--r-media);
  overflow: hidden;
}

.case-card image-slot { width: 100%; height: 100%; min-height: 420px; }

.case-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-body .case-metric {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.case-body .card-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border-light); }

@media (max-width: 880px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card image-slot { min-height: 280px; }
  .case-body { padding: 32px 24px; }
}

/* ---------- pricing teaser ---------- */

.money-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 64px;
}

.money-step {
  background: var(--canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  padding: 28px;
}

.money-step .mono-label { margin-bottom: 14px; }
.money-step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.money-step p { margin-top: 8px; color: var(--body-muted); line-height: 1.45; text-wrap: pretty; }

.money-arrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--muted);
}

.pricing-note {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
}

.pricing-note p { max-width: 560px; color: var(--body-muted); text-wrap: pretty; }

@media (max-width: 880px) {
  .money-flow { grid-template-columns: 1fr; }
  .money-arrow { justify-content: center; transform: rotate(90deg); }
  .pricing-note { flex-direction: column; }
}

/* ---------- migration ---------- */

.migration-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.migration-grid .section-lead { max-width: none; }

.migration-steps { list-style: none; border-top: 1px solid var(--hairline); }

.migration-steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}

.migration-steps .mono-label { flex-shrink: 0; width: 32px; }

@media (max-width: 880px) {
  .migration-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- founder ---------- */

.founder-band { background: var(--primary); color: var(--on-dark); }

.founder-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}

.founder-photo image-slot { width: 180px; height: 180px; }

.founder-note {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  text-wrap: pretty;
}

.founder-sig {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.founder-ctas { display: flex; align-items: center; gap: 28px; margin-top: 40px; }

@media (max-width: 760px) {
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 72px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}

.footer-brand .nav-logo { font-size: 20px; }

.footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  max-width: 220px;
  text-wrap: pretty;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

.lang-toggle { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.lang-toggle .active { color: var(--ink); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
