:root {
  --bg-color: #F6F4F0;
  --text-color: #111111;
  --secondary-color: #7a7a74;
  --hairline: #dcd9d1;
  --accent: #111111;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --pad: 24px;
}

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

}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
}
.hero-text {
  pointer-events: auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--text-color);
}

.hero-subline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cta-form {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--accent);
  background: var(--bg-color);
}

.cta-email {
  flex: 1;
  min-width: 240px;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-color);
}

.cta-email::placeholder {
  color: var(--secondary-color);
}

.cta-email--error {
  background: #fff4f4;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #333;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.cta-arrow {
  display: inline-block;
}

/* Dark variant — used in the footer black band */
.cta-form--dark {
  border-color: #ffffff;
  background: #000000;
}

.cta-form--dark .cta-email {
  color: #ffffff;
}

.cta-form--dark .cta-email::placeholder {
  color: #888888;
}

.cta-form--dark .cta-email--error {
  background: #2a1010;
}

.cta-form--dark .cta-button {
  background: #ffffff;
  color: #000000;
}

.cta-form--dark .cta-button:hover {
  background: #dddddd;
}

/* Success confirmation — replaces the form after submit */
.cta-success {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  background: var(--bg-color);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.cta-success--dark {
  border-color: #ffffff;
  background: #000000;
  color: #ffffff;
}

/* Inline server-error message — shown when the API didn't return 200 */
.cta-error {
  margin-top: 10px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  color: #b00020;
}

.cta-error--dark {
  color: #ff8888;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .cta-form {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .cta-email {
    min-width: 0;
    padding: 12px 14px;
  }

  .cta-button {
    justify-content: center;
  }
}
.signal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.signal-stream .signal-backdrop {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
}
.signal-stream {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Glass card (iOS-style frosted container) ──────────── */
.glass-card {
  position: relative;
  z-index: 1;
  width: min(640px, 92%);
  padding: 36px 40px 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.1);
}

.glass-card-body {
  transition: min-height 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Signal (top of card) ──────────────────────────────── */
.signal {
  opacity: 1;
  transform: translateY(0);
  animation: card-enter 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition:
    opacity 380ms ease,
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.signal--out {
  animation: none;
  opacity: 0;
  transform: translateY(-12px);
}

.signal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 14px;
}

.signal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
  animation: signal-pulse 1.8s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

.signal-text {
  font-family: var(--font-display, var(--font-main));
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-color);
  line-height: 1.25;
}

/* ── Action (notification card, below signal) ─────────── */
.action {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 1;
  transform: translateY(0);
  animation: card-enter 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition:
    opacity 380ms ease,
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.action--out {
  animation: none;
  opacity: 0;
  transform: translateY(-12px);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.action-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.action-body {
  flex: 1;
  min-width: 0;
}

.action-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.action-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.action-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-color);
}

.action-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-color);
  letter-spacing: -0.005em;
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .signal,
  .action {
    transition: none;
    animation: none;
  }
  .signal--in,
  .action--in {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .signal-dot {
    animation: none;
    opacity: 0.7;
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .glass-card {
    padding: 24px 22px 28px;
    border-radius: 22px;
  }
  .signal-text {
    font-size: 1.25rem;
  }
  .action {
    margin-top: 20px;
    padding: 14px 14px;
  }
  .action-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}
/* ASCII field for the Why-Merkant section. Canvas-based, single font. */

.thought-log {
  width: 100%;
  position: relative;
}

.thought-log-canvas {
  display: block;
  width: 100%;
  height: 200px;
}

/* caption sits above the canvas, set in Sections.jsx */
.thought-log-caption {
  margin-top: -16px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-color);
  max-width: 560px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .thought-log-canvas {
    height: 160px;
  }

  .thought-log-caption {
    font-size: 0.95rem;
    margin-top: -12px;
    margin-bottom: 24px;
  }
}
/* Section wrapper — all sections share the container for horizontal alignment */
.section {
  width: 100%;
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}

.section:first-of-type {
  border-top: none;
  padding-top: 64px;
}

/* Small mono uppercase label above every block */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--text-color);
  margin-bottom: 40px;
  max-width: 780px;
}

/* ── Bucket grid ─────────────────────────────────────────── */
/* Subgrid aligns header / blurb / item 1 / item 2 rows across all three columns */
.bucket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.bucket {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  padding: 0;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.bucket-header,
.bucket-blurb,
.capability {
  padding: 24px 28px;
}

.bucket-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.bucket-num {
  color: var(--text-color);
}

.bucket-sep {
  opacity: 0.5;
}

.bucket-label {
  color: var(--text-color);
}

.bucket-blurb {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-color);
  letter-spacing: -0.01em;
  padding-top: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.capability {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.capability--first {
  border-bottom: 1px solid var(--hairline);
}

.capability-lead {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.capability-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--secondary-color);
}

/* ── Compare split (agent vs automation) ─────────────────── */
.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
}

.compare-col {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.compare-col--before {
  border-right: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.025);
}

.compare-col-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.compare-col--after .compare-col-label {
  color: var(--text-color);
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.compare-list li {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--secondary-color);
  letter-spacing: -0.01em;
  padding-left: 20px;
  position: relative;
}

.compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--secondary-color);
}

.compare-list--agent li {
  color: var(--text-color);
}

.compare-list--agent li::before {
  background: var(--text-color);
}

/* ── Logo wall ───────────────────────────────────────────── */
.logo-wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.logo-item {
  background: var(--bg-color);
  padding: 28px 24px;
  display: grid;
  place-items: center;
  grid-template-areas: 'stack';
  min-height: 92px;
  position: relative;
}

.logo-img {
  grid-area: stack;
  width: 120px;
  max-width: 100%;
  height: 32px;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.logo-img--default {
  opacity: 0.5;
}

.logo-img--hover {
  opacity: 0;
}

.logo-item:hover .logo-img--default {
  opacity: 0;
}

.logo-item:hover .logo-img--hover {
  opacity: 1;
}

.logo-more {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary-color);
  opacity: 0.5;
  letter-spacing: -0.01em;
}

/* ── Footer zone (integrations + marquee with ASCII backdrop) ── */
.footer-zone {
  position: relative;
  isolation: isolate;
}

.footer-ascii {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 22%,
    #000 32%,
    #000 62%,
    transparent 80%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 22%,
    #000 32%,
    #000 62%,
    transparent 80%
  );
}

.section.section--integrations {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  padding-top: 96px;
}

.footer-zone .footer-hero {
  position: relative;
  z-index: 1;
}

/* ── Footer dark hero (statement + form, mirrors top hero) ── */
.footer-hero {
  background: #000;
  color: #fff;
  margin-top: 96px;
  padding: 120px 0;
}

.footer-hero-title {
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 40px;
  max-width: 900px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
  }

  .bucket-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .bucket {
    grid-row: auto;
    grid-template-rows: none;
  }

  .bucket-header,
  .bucket-blurb,
  .capability {
    padding: 20px 20px;
  }

  .bucket-header {
    padding-bottom: 20px;
  }

  .compare-split {
    grid-template-columns: 1fr;
  }

  .compare-col--before {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-hero {
    margin-top: 64px;
    padding: 64px 0;
  }

  .footer-hero-title {
    font-size: 2.75rem;
    margin-bottom: 28px;
  }
}
.content-zone {
  width: 100%;
  background: var(--bg-color);
  padding-top: 96px;
  padding-bottom: 48px;
}

.signal-zone {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 0 var(--pad);
  height: 480px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}
