/* ClusterTrade — main stylesheet (dark theme, brick red accent) */

:root {
  --bg: #120E0D;
  --surface: #1B1413;
  --surface-2: #241A18;
  --surface-3: #2E211E;
  --text: #F2ECEA;
  --text-soft: #D6C8C4;
  --text-muted: #A8948E;
  --accent: #B91C1C;
  --accent-deep: #991B1B;
  --accent-bright: #DC2626;
  --border: #3A2A26;
  --border-soft: #2C201D;
  --focus: #F2ECEA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

/* ===== FLOW-ARROW NAVIGATION ===== */

.flowbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 24px;
  background-color: #150F0E;
  border-bottom: 1px solid var(--border);
}

.flowbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.flowbar-brand:hover {
  color: var(--accent-bright);
}

.flowbar-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.flow-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.flow-links li {
  display: flex;
  align-items: center;
}

.flow-links li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  margin: 0 12px 0 2px;
  pointer-events: none;
}

.flow-links li:last-child::after {
  display: none;
}

.flow-links a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  transition: color 0.2s ease;
}

.flow-links a:hover {
  color: var(--accent-bright);
}

.flowbar-cta {
  flex-shrink: 0;
  padding: 10px 20px;
  background-color: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.flowbar-cta:hover {
  background-color: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== HERO — CLUSTER SCATTER ===== */

.hero {
  padding: 96px 0 88px;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 85% 20%, #2A1513 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, #1C1211 0%, transparent 40%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--text);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* cluster scatter */
.cluster-scatter {
  position: relative;
  height: 420px;
  width: 100%;
}

.cluster {
  position: absolute;
}

.dot {
  position: absolute;
  border-radius: 50%;
  background-color: var(--accent);
}

.c1 { top: 8%; left: 12%; }
.c2 { top: 18%; left: 62%; }
.c3 { top: 58%; left: 4%; }
.c4 { top: 62%; left: 48%; }
.c5 { top: 34%; left: 30%; }

.c1 .d1 { width: 54px; height: 54px; top: 0; left: 0; }
.c1 .d2 { width: 22px; height: 22px; top: 8px; left: 64px; }
.c1 .d3 { width: 14px; height: 14px; top: 44px; left: 70px; }
.c1 .d4 { width: 30px; height: 30px; top: 60px; left: 10px; }
.c1 .d5 { width: 10px; height: 10px; top: 90px; left: 40px; }

.c2 .d1 { width: 44px; height: 44px; top: 0; left: 0; }
.c2 .d2 { width: 18px; height: 18px; top: 6px; left: 52px; }
.c2 .d3 { width: 26px; height: 26px; top: 34px; left: 66px; }
.c2 .d4 { width: 12px; height: 12px; top: 54px; left: 8px; }
.c2 .d5 { width: 20px; height: 20px; top: 66px; left: 42px; }
.c2 .d6 { width: 10px; height: 10px; top: 40px; left: 30px; }

.c3 .d1 { width: 60px; height: 60px; top: 0; left: 0; }
.c3 .d2 { width: 20px; height: 20px; top: 4px; left: 70px; }
.c3 .d3 { width: 34px; height: 34px; top: 44px; left: 82px; }
.c3 .d4 { width: 14px; height: 14px; top: 72px; left: 26px; }
.c3 .d5 { width: 10px; height: 10px; top: 90px; left: 64px; }

.c4 .d1 { width: 46px; height: 46px; top: 0; left: 0; }
.c4 .d2 { width: 16px; height: 16px; top: 4px; left: 54px; }
.c4 .d3 { width: 28px; height: 28px; top: 28px; left: 62px; }
.c4 .d4 { width: 12px; height: 12px; top: 52px; left: 6px; }
.c4 .d5 { width: 22px; height: 22px; top: 60px; left: 34px; }
.c4 .d6 { width: 10px; height: 10px; top: 46px; left: 46px; }
.c4 .d7 { width: 8px; height: 8px; top: 84px; left: 58px; }

.c5 .d1 { width: 38px; height: 38px; top: 0; left: 0; }
.c5 .d2 { width: 16px; height: 16px; top: 2px; left: 46px; }
.c5 .d3 { width: 24px; height: 24px; top: 28px; left: 50px; }
.c5 .d4 { width: 10px; height: 10px; top: 44px; left: 8px; }
.c5 .d5 { width: 8px; height: 8px; top: 56px; left: 34px; }

@keyframes dotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.c2 { animation: dotFloat 5s ease-in-out infinite; }
.c4 { animation: dotFloat 6.5s ease-in-out infinite; }
.c5 { animation: dotFloat 4.5s ease-in-out infinite; }

/* ===== STATEMENT ROWS ===== */

.statements-section {
  padding: 90px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.statement-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}

.statement-row:first-child {
  padding-top: 0;
}

.statement-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.statement-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.statement-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.statement-body {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* ===== DISCIPLINES (numbered list) ===== */

.disciplines-section {
  padding: 90px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.discipline-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.discipline {
  display: flex;
  gap: 22px;
  padding: 30px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.discipline:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.discipline-index {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.discipline-text h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.discipline-text p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ===== SCOPE TABLE ===== */

.scope-section {
  padding: 90px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.scope-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--bg);
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.scope-table thead th {
  text-align: left;
  padding: 18px 22px;
  background-color: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.scope-table tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 0.95rem;
  vertical-align: top;
}

.scope-table tbody tr:last-child td {
  border-bottom: none;
}

.scope-table tbody td:first-child {
  color: var(--accent-bright);
  font-weight: 700;
  white-space: nowrap;
}

/* ===== VOICES + METRICS ===== */

.voices-section {
  padding: 90px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.voice-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}

.voice-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.voice-mark {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.voice-quote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}

.voice-author {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric {
  text-align: center;
  padding: 30px 16px;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.count {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1;
}

.metric-suffix {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-bright);
}

.metric-label {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ===== FAQ ===== */

.faq-section {
  padding: 90px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.accordion {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.accordion-trigger::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent-bright);
  line-height: 1;
  transition: transform 0.25s ease;
}

.accordion-item.open .accordion-trigger::after {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel p {
  padding: 0 0 24px;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 70ch;
}

/* ===== CONTACT ===== */

.contact-section {
  padding: 90px 0;
  background-color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 18px;
}

.contact-lede {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 46ch;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-details span {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.contact-details a {
  color: var(--text);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--accent-bright);
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
}

.form-field textarea {
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  min-height: 1.3em;
}

.form-status.error {
  color: #FCA5A5;
}

.form-status.success {
  color: #86EFAC;
}

/* ===== FOOTER ===== */

.site-footer {
  position: relative;
  background-color: #0F0B0A;
  border-top: 1px solid var(--border);
  padding: 70px 0 34px;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  bottom: -30px;
  right: 0;
  left: 0;
  text-align: center;
  font-size: clamp(6rem, 18vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1A1110;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.footer-col ul li {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-col ul a {
  color: var(--text-soft);
}

.footer-col ul a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== SCROLL REVEAL ===== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */

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

  .cluster-scatter {
    height: 340px;
  }

  .discipline-list {
    grid-template-columns: 1fr;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .statement-row {
    grid-template-columns: 60px 1fr;
  }

  .statement-body {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  .flowbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .flowbar-nav {
    flex-basis: 100%;
    order: 3;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .flowbar-nav.open {
    max-height: 320px;
  }

  .flow-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px 0;
  }

  .flow-links li {
    width: 100%;
    flex-direction: row;
  }

  .flow-links li::after {
    display: none;
  }

  .flow-links a {
    display: block;
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-soft);
  }

  .flowbar-cta {
    margin-left: 0;
  }

  .hero {
    padding: 64px 0 64px;
  }

  .statement-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .statement-body {
    grid-column: auto;
  }

  .voice-scroller {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}
