/* =======================================================
   Trade Founders website stylesheet
   Palette: charcoal #1A1A2E, amber #D4A843, cream #F8F7F4,
   steel blue #3A6B8C, text on light #2D2D3A, text on dark #E8E6E1
   ======================================================= */

:root {
  --charcoal: #1A1A2E;
  --charcoal-deep: #12121E;
  --charcoal-panel: #2A2A3E;
  --charcoal-border: #3A3A52;
  --amber: #D4A843;
  --amber-hover: #E0B758;
  --amber-tint: #FAEEDA;
  --amber-deep: #854F0B;
  --cream: #F8F7F4;
  --cream-border: #E8E5DD;
  --steel-blue: #3A6B8C;
  --text-dark: #2D2D3A;
  --text-muted: #4A4952;
  --text-soft: #6A6970;
  --text-light: #E8E6E1;
  --text-light-muted: #B8B5AC;
  --text-light-soft: #8B887F;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 88px 0; }
.section--white { background: #FFFFFF; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--charcoal); color: var(--text-light); }

/* ===== Typography ===== */
h1, h2, h3 { font-weight: 500; color: var(--text-dark); letter-spacing: -0.01em; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-light); }

h1 { font-size: 44px; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 30px; line-height: 1.25; margin-bottom: 18px; }
h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }

p { color: var(--text-muted); }
.section--dark p { color: var(--text-light-muted); }

.lead { font-size: 17px; line-height: 1.65; max-width: 760px; }
.lead--dark { color: var(--text-light-muted); }

/* ===== Logo ===== */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 38px; height: 38px;
  background: var(--amber);
  color: var(--charcoal);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.logo__mark--sm { width: 26px; height: 26px; font-size: 12px; border-radius: 5px; }
.logo__text { color: var(--text-light); font-size: 18px; font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  font-family: inherit;
}
.btn--primary {
  background: var(--amber);
  color: var(--charcoal);
}
.btn--primary:hover { background: var(--amber-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--nav { padding: 9px 18px; font-size: 13px; }
.btn--hero { padding: 14px 28px; font-size: 15px; }
.btn--submit { width: 100%; padding: 14px; font-size: 15px; }

/* ===== Nav ===== */
.nav {
  background: var(--charcoal);
  padding: 18px 0;
  border-bottom: 1px solid var(--charcoal-border);
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Hero ===== */
.hero {
  background: var(--charcoal);
  color: var(--text-light);
  padding: 88px 0 104px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__copy h1 { color: var(--text-light); }
.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light-muted);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero__note {
  font-size: 13px;
  color: var(--text-light-soft);
  margin-top: 16px;
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.stat {
  background: #FFFFFF;
  border: 1px solid var(--cream-border);
  border-radius: 8px;
  padding: 24px;
}
.stat__number {
  font-size: 40px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 8px;
  line-height: 1.5;
}
.stat__source {
  font-size: 12px;
  color: var(--text-soft);
  font-style: italic;
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.pillar {
  border: 1px solid var(--cream-border);
  border-radius: 8px;
  padding: 24px;
  background: #FFFFFF;
}
.pillar__icon {
  width: 40px;
  height: 40px;
  background: var(--amber-tint);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pillar p { font-size: 14px; line-height: 1.6; }

/* ===== Founder ===== */
.founder {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  align-items: flex-start;
}
.founder__avatar {
  width: 96px;
  height: 96px;
  background: var(--charcoal);
  color: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
}
.founder__copy p { margin-bottom: 16px; }
.founder__copy p:last-child { margin-bottom: 0; }

/* ===== Waitlist ===== */
.waitlist { max-width: 640px; }
.waitlist__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / 3; }
.field label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}
.optional { color: var(--text-light-soft); font-weight: 400; font-size: 12px; }

.waitlist__form input[type="email"],
.waitlist__form input[type="text"],
.waitlist__form select {
  padding: 12px 14px;
  background: var(--charcoal-panel);
  border: 1px solid var(--charcoal-border);
  color: var(--text-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.waitlist__form input::placeholder { color: var(--text-light-soft); }
.waitlist__form input:focus,
.waitlist__form select:focus {
  outline: none;
  border-color: var(--amber);
}
.waitlist__note {
  grid-column: 1 / 3;
  font-size: 12px;
  color: var(--text-light-soft);
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal-deep);
  color: var(--text-light-muted);
  padding: 24px 0;
  border-top: 1px solid var(--charcoal-border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__copy { font-size: 13px; color: var(--text-light-muted); }
.footer__link {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 13px;
}
.footer__link:hover { color: var(--amber); }

/* ===== Success/Error banners (for submit.php responses) ===== */
.banner {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.banner--success {
  background: rgba(212, 168, 67, 0.12);
  color: var(--amber);
  border: 1px solid rgba(212, 168, 67, 0.3);
}
.banner--error {
  background: rgba(227, 75, 75, 0.1);
  color: #E24B4B;
  border: 1px solid rgba(227, 75, 75, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .hero { padding: 56px 0 72px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__visual { order: -1; }
  .hero__visual svg { max-width: 180px; }
  .hero__subtitle { font-size: 16px; }

  .stats { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }

  .founder {
    grid-template-columns: 64px 1fr;
    gap: 20px;
  }
  .founder__avatar {
    width: 64px; height: 64px;
    font-size: 20px;
  }

  .waitlist__form { grid-template-columns: 1fr; }
  .field--wide { grid-column: 1 / 2; }
  .waitlist__note { grid-column: 1 / 2; }

  .footer__inner { flex-direction: column; gap: 10px; text-align: center; }

  .logo__text { display: none; }
  .nav__inner .logo__text { display: none; }
}
