/* TradeFlow Crew — IQ venture page */
/* Overrides align --iq-* tokens to the site's warm palette (matching products.html / about.html).
   The --iq-* token system uses cool/blue neutrals by default; these page-level overrides
   substitute the warm values used across existing IQ pages. */

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

html { scroll-behavior: smooth }

:root {
  /* Warm palette overrides — match products.html / about.html visual standard */
  --iq-bg-base:          #fafaf8;
  --iq-bg-subtle:        #f2f0eb;
  --iq-bg-muted:         #e8e5de;
  --iq-bg-dark:          #14203b;
  --iq-text-primary:     #0a0a0a;
  --iq-text-secondary:   #444444;
  --iq-text-muted:       #888888;
  --iq-border-light:     rgba(0,0,0,0.08);
  --iq-border-default:   rgba(0,0,0,0.15);
  --iq-card-bg:          #ffffff;
  --iq-neutral-0:        #ffffff;
  /* Body font: Geist (site standard) */
  --iq-font-body:        'Geist', system-ui, sans-serif;
  /* Heading font: Instrument Serif (site standard for section titles) */
  --iq-font-serif:       'Instrument Serif', Georgia, serif;

  /* nav.js old-token aliases — nav CSS uses these names directly */
  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'Geist', system-ui, sans-serif;
  --ink:      #0a0a0a;
  --ink2:     #444444;
  --ink-2:    #444444;
  --ink3:     #888888;
  --ink-3:    #888888;
  --surface:  #fafaf8;
  --accent:   #e8562a;
  --ah:       #c94420;
  --accent-h: #c94420;
  --border:   rgba(0,0,0,0.08);
  --max:      1140px;
  --r:        4px;

  /* Page-level component tokens */
  --tf-status-text: var(--iq-color-success);
  --tf-status-bg:   var(--iq-color-success-light);
  --tf-cta-label:   var(--iq-cta-bg)
}

body {
  font-family: var(--iq-font-body);
  background: var(--iq-bg-base);
  color: var(--iq-text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

/* HERO */
.tf-hero {
  background: var(--iq-bg-dark);
  padding: 5rem 2rem 4rem;
  color: var(--iq-neutral-0);
  position: relative;
  overflow: hidden
}

.tf-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,86,42,0.1) 0%, transparent 60%);
  pointer-events: none
}

.tf-hero-i {
  max-width: 860px;
  margin: 0 auto;
  position: relative
}

.tf-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap
}

.tf-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--iq-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--iq-tracking-wide);
  color: var(--tf-status-text);
  background: var(--tf-status-bg);
  border: 1px solid var(--tf-status-text);
  border-radius: var(--iq-radius-full);
  padding: 0.25rem 0.75rem
}

.tf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tf-status-text)
}

.tf-eyebrow-label {
  font-size: var(--iq-text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: var(--iq-tracking-wider)
}

.tf-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--iq-neutral-0);
  margin-bottom: 1.25rem
}

.tf-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 2rem
}

.tf-hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

.tf-btn-p {
  background: var(--iq-cta-bg);
  color: var(--iq-neutral-0);
  padding: 0.75rem 1.75rem;
  border-radius: var(--iq-radius-md);
  font-size: var(--iq-text-sm);
  font-weight: var(--iq-weight-semibold);
  text-decoration: none;
  transition: var(--iq-transition-color)
}

.tf-btn-p:hover { background: var(--iq-cta-hover) }

.tf-btn-g {
  color: rgba(255,255,255,0.55);
  font-size: var(--iq-text-sm);
  text-decoration: none;
  padding: 0.75rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--iq-transition-color)
}

.tf-btn-g:hover { color: var(--iq-neutral-0) }

/* SECTIONS */
.tf-section {
  padding: 5rem 2rem
}

.tf-section-alt {
  padding: 5rem 2rem;
  background: var(--iq-bg-subtle)
}

.tf-inner {
  max-width: 860px;
  margin: 0 auto
}

.tf-wide {
  max-width: 1100px;
  margin: 0 auto
}

.tf-label {
  font-size: var(--iq-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--iq-tracking-widest);
  color: var(--tf-cta-label);
  font-weight: var(--iq-weight-medium);
  margin-bottom: 0.6rem
}

.tf-h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 400;
  color: var(--iq-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem
}

.tf-lead {
  font-size: 0.98rem;
  color: var(--iq-text-secondary);
  line-height: 1.75;
  max-width: 680px;
  font-weight: 300;
  margin-bottom: 2.5rem
}

/* JV GRID */
.tf-jv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem
}

.tf-jv-card {
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-card-radius);
  padding: 2rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s
}

.tf-jv-card:hover {
  border-color: var(--iq-border-default);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px)
}

.tf-jv-card h3 {
  font-size: var(--iq-text-base);
  font-weight: var(--iq-weight-semibold);
  color: var(--iq-text-primary);
  margin-bottom: 0.3rem
}

.tf-jv-card .tf-jv-role {
  font-size: var(--iq-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--iq-tracking-wider);
  color: var(--iq-text-muted);
  margin-bottom: 1rem
}

.tf-jv-card p {
  font-size: 0.92rem;
  color: var(--iq-text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0.5rem
}

.tf-jv-card a {
  font-size: 0.8rem;
  color: var(--iq-accent-300);
  text-decoration: none
}

.tf-jv-card a:hover { text-decoration: underline }

/* ORIGIN STORY */
.tf-origin {
  background: var(--iq-bg-dark);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden
}

.tf-origin::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,86,42,0.07) 0%, transparent 60%);
  pointer-events: none
}

.tf-origin .tf-inner {
  border-left: 3px solid var(--iq-cta-bg);
  padding-left: 2rem;
  position: relative
}

.tf-origin .tf-label { color: var(--iq-cta-bg) }

.tf-origin .tf-h2 { color: var(--iq-neutral-0) }

.tf-origin p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0.85rem
}

/* WHAT IQ BUILT */
.tf-built-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem
}

.tf-built-item {
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-card-radius);
  padding: 1.5rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s
}

.tf-built-item:hover {
  border-color: var(--iq-border-default);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px)
}

.tf-built-item h4 {
  font-size: var(--iq-text-sm);
  font-weight: var(--iq-weight-semibold);
  color: var(--iq-text-primary);
  margin-bottom: 0.4rem
}

.tf-built-item p {
  font-size: 0.87rem;
  color: var(--iq-text-secondary);
  line-height: 1.72;
  font-weight: 300
}

/* PIPELINE */
.tf-pipeline {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap
}

.tf-stage {
  display: flex;
  align-items: center;
  gap: 0.5rem
}

.tf-stage-box {
  background: var(--iq-bg-subtle);
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-radius-md);
  padding: 0.6rem 1rem;
  font-size: var(--iq-text-xs);
  font-weight: var(--iq-weight-medium);
  color: var(--iq-text-primary);
  white-space: nowrap
}

.tf-stage-box.live {
  background: var(--tf-status-bg);
  border-color: var(--tf-status-text);
  color: var(--tf-status-text)
}

.tf-arrow {
  font-size: 0.85rem;
  color: var(--iq-text-muted);
  padding: 0 0.4rem
}

/* ROADMAP */
.tf-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem
}

.tf-phase {
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-card-radius);
  padding: 1.5rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s
}

.tf-phase:hover {
  border-color: var(--iq-border-default);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px)
}

.tf-phase.live {
  border-color: rgba(232,86,42,0.25);
  background: rgba(232,86,42,0.02)
}

.tf-phase.live:hover {
  border-color: rgba(232,86,42,0.45)
}

.tf-phase-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--iq-tracking-widest);
  font-weight: var(--iq-weight-semibold);
  color: var(--iq-text-muted);
  margin-bottom: 0.4rem
}

.tf-phase.live .tf-phase-label { color: var(--iq-cta-bg) }

.tf-phase h4 {
  font-size: var(--iq-text-sm);
  font-weight: var(--iq-weight-semibold);
  color: var(--iq-text-primary);
  margin-bottom: 0.75rem
}

.tf-phase ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.tf-phase ul li {
  font-size: 0.82rem;
  color: var(--iq-text-secondary);
  line-height: 1.6;
  font-weight: 300;
  padding: 0.2rem 0;
  border-top: 1px solid var(--iq-border-light)
}

.tf-phase ul li:first-child { border-top: none }

/* CTA */
.tf-cta {
  background: var(--iq-bg-subtle);
  padding: 5rem 2rem;
  text-align: center
}

.tf-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left
}

.tf-cta-card {
  border: 1px solid var(--iq-border-light);
  border-radius: var(--iq-card-radius);
  padding: 2rem;
  background: var(--iq-neutral-0);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s
}

.tf-cta-card:hover {
  border-color: var(--iq-border-default);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px)
}

.tf-cta-card h3 {
  font-size: var(--iq-text-base);
  font-weight: var(--iq-weight-semibold);
  color: var(--iq-text-primary);
  margin-bottom: 0.5rem
}

.tf-cta-card p {
  font-size: 0.92rem;
  color: var(--iq-text-secondary);
  line-height: 1.72;
  font-weight: 300;
  margin-bottom: 1.25rem
}

/* MOBILE */
@media (max-width: 768px) {
  .tf-jv-grid,
  .tf-built-grid,
  .tf-cta-grid {
    grid-template-columns: 1fr
  }

  .tf-phases {
    grid-template-columns: 1fr 1fr
  }

  .tf-pipeline {
    gap: 0.25rem
  }

  .tf-hero { padding: 3rem 1.25rem 2.5rem }

  .tf-section,
  .tf-section-alt { padding: 3.5rem 1.25rem }

  .tf-origin { padding: 3rem 1.25rem }

  .tf-wide { padding-left: 1.25rem; padding-right: 1.25rem }
}

@media (max-width: 480px) {
  .tf-phases {
    grid-template-columns: 1fr
  }

  .tf-hero { padding: 2.5rem 1rem 2rem }

  .tf-section,
  .tf-section-alt { padding: 3rem 1rem }

  .tf-origin { padding: 2.5rem 1rem }
}

/* FOOTER */
footer {
  background: #080808;
  color: rgba(255,255,255,0.45);
  padding: 3rem 2rem
}

.foot-i {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem
}

.foot-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem
}

.foot-logo span { color: var(--accent) }

.foot-tag {
  font-size: 0.8rem;
  line-height: 1.6
}

.foot-col h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
  font-weight: 400
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem
}

.foot-col a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s
}

.foot-col a:hover { color: rgba(255,255,255,0.8) }

.foot-btm {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.2);
  flex-wrap: wrap;
  gap: 0.5rem
}

@media (max-width: 900px) {
  .foot-i { grid-template-columns: 1fr 1fr }
}

@media (max-width: 600px) {
  .foot-i { grid-template-columns: 1fr }
}
