/* ─────────────────────────────────────────
   HOMEPAGE — extends base styles.css
   Assumes base provides: nav, buttons, footer,
   problem (base), how-steps (base), FAQ, CTA,
   trust, animations, responsive foundations.
───────────────────────────────────────── */

/* ── TYPOGRAPHY OVERRIDES ───────────────── */
.how .display {
  color: #ffffff;
}

.solutions-headline,
.markets-headline,
.thinking-headline {
  color: var(--heading);
}

/* ── LAYOUT ─────────────────────────────── */
.section    { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ── HERO ───────────────────────────────── */
.hero {
  padding: 6rem 0 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--paper-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  position: relative;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.hero-right {
  animation: riseIn 0.8s ease 0.4s both;
}

.hero-visual-wrap { position: relative; }

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  animation: riseIn 0.7s ease 0.1s both;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--blue);
}

.hero-headline {
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  margin-bottom: 2.5rem;
  animation: riseIn 0.7s ease 0.25s both;
}

.hero-headline em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: riseIn 0.7s ease 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: riseIn 0.7s ease 0.55s both;
}

.hero-trust {
  border-top: 1px solid var(--paper-3);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: riseIn 0.7s ease 0.7s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Hero marquee strip */
.hero-strip {
  background: var(--ink);
  margin-top: 1px;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.hero-strip-inner {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.hero-strip-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 0 3rem;
}

.hero-strip-item span {
  color: var(--blue);
  margin-right: 3rem;
}

/* ── PROBLEM (homepage overrides) ───────── */
.problem {
  position: relative;
  overflow: hidden;
}

.problem::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.04;
  pointer-events: none;
}

.problem-left     { position: sticky; top: 100px; }
.problem-label    { color: var(--ink-3); margin-bottom: 1.25rem; }

.problem-headline {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* ── SOLUTIONS ──────────────────────────── */
.solutions-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.solutions-headline {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
}

.solutions-headline em {
  font-style: italic;
  color: var(--blue);
}

.solutions-right-text {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  padding-bottom: 0.5rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Solution card */
.sol-card {
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 2rem;
  background: var(--paper);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.sol-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.sol-card:hover {
  border-color: var(--paper-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(24, 22, 15, 0.08);
}

.sol-card:hover::before {
  transform: scaleX(1);
}

.sol-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sol-card-icon.ember  { background: var(--blue-pale); }
.sol-card-icon.forest { background: var(--forest-pale); }
.sol-card-icon.slate  { background: var(--paper-3); }

.sol-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--heading);
}

.sol-card p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.7;
  flex: 1;
}

.sol-card-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.sol-card-link::after {
  content: '→';
  transition: transform 0.15s;
}

.sol-card:hover .sol-card-link::after {
  transform: translateX(4px);
}

/* Wide variant */
.sol-card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
}

.sol-card-wide .sol-card-content { flex: 1; }

.sol-card-wide .sol-card-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chip-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
}

/* ── PRODUCTS DIRECTORY ─────────────────── */
.products { background: var(--paper-2); }

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
  align-items: start;
}

.products-left { position: sticky; top: 100px; }

.products-intro {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-top: 1.25rem;
}

.products-list {
  display: flex;
  flex-direction: column;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--paper-3);
  transition: background 0.15s;
}

.product-row:first-child {
  border-top: 1px solid var(--paper-3);
}

.product-row-left {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
}

.product-desc {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.product-badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.badge-self    { background: var(--forest-pale); color: var(--forest); }
.badge-impl    { background: var(--blue-pale);   color: var(--blue); }
.badge-partner { background: var(--paper-3);     color: var(--ink-2); }
.badge-dev     { background: var(--paper-3);     color: var(--heading); }

.product-link {
  font-size: 0.78rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.product-link:hover { color: var(--blue); }
.product-link::after { content: '→'; }

/* ── HOW WE WORK (homepage dark variant) ── */
.how {
  background: var(--ink);
  color: var(--paper);
}

.how-header {
  text-align: center;
  margin-bottom: 5rem;
}

.how-headline {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: #ffffff;
}

.how-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 1.25rem auto 0;
  line-height: 1.8;
}

/* Dark-variant overrides for shared .how-steps */
.how .how-steps {
  background: rgba(255, 255, 255, 0.10);
  margin-bottom: 4rem;
}

.how .how-step {
  background: var(--ink);
  transition: background 0.2s;
}

.how .how-step:hover {
  background: rgba(255, 255, 255, 0.05);
}

.how .how-step-num {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.25);
}

.how .how-step-title { color: #ffffff; }

.how .how-step-body {
  color: rgba(255, 255, 255, 0.60);
}

.how-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.how-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.40);
  text-align: center;
  margin-top: 1.25rem;
}

/* ── THINKING / CONTENT ─────────────────── */
.thinking-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.thinking-headline {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.thinking-headline em {
  font-style: italic;
  color: var(--blue);
}

.thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--paper-3);
  cursor: pointer;
}

.article-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.article-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  line-height: 1.3;
  transition: color 0.15s;
}

.article-card:hover h3 { color: var(--blue); }

.article-card p {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.7;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--ink-4);
  margin-top: auto;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .hero-inner          { padding: 0 1.5rem; }
  .problem-left        { position: static; }
  .solutions-header    { grid-template-columns: 1fr; }
  .solutions-grid      { grid-template-columns: 1fr 1fr; }
  .sol-card-wide       { grid-column: span 2; flex-direction: column; }
  .products-layout     { grid-template-columns: 1fr; gap: 2.5rem; }
  .products-left       { position: static; }
  .thinking-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .solutions-grid      { grid-template-columns: 1fr; }
  .sol-card-wide       { grid-column: 1; }
  .hero-headline       { font-size: 2.6rem; }
  .hero-right          { display: none; }
  .hero-inner          { grid-template-columns: 1fr; padding-bottom: 0.5rem; }
}