/* Shared stylesheet for InvestorMind's public marketing pages (landing,
   about, contact, terms, privacy, explore). Reuses the exact same CSS
   custom properties already defined in login.css so the whole site reads
   as one coherent product -- do not fork the palette here. */
:root {
  --bg-deep: #07110d;
  --bg-panel: rgba(12, 22, 18, 0.92);
  --bg-panel-alt: rgba(16, 28, 23, 0.85);
  --leaf: #6ecf8a;
  --leaf-soft: #3f8f62;
  --leaf-glow: rgba(110, 207, 138, 0.18);
  --mist: #c8ddd2;
  --text: #edf6f0;
  --text-muted: #8aa698;
  --border: rgba(110, 207, 138, 0.18);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --bullish: #6ecf8a;
  --bearish: #f87171;
  --neutral: #e3c878;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body.marketing-body {
  background:
    radial-gradient(circle at 15% 0%, rgba(62, 143, 98, 0.16), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(110, 207, 138, 0.1), transparent 30%),
    linear-gradient(180deg, #04100b 0%, #0a1712 35%, #07110d 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

a {
  color: var(--leaf);
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2f7a52, #6ecf8a);
  color: #04100b;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}

.brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-domain {
  margin: 1px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--leaf);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font: 700 0.92rem var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #3f8f62, #6ecf8a);
  color: #04100b;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: rgba(110, 207, 138, 0.5);
  color: var(--leaf);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.nav-cta-mobile {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--leaf-glow), transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font: italic 600 clamp(2.4rem, 6vw, 4.2rem) / 1.08 var(--display);
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 44rem;
  font-size: 1.1rem;
  color: var(--mist);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-cta-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-cta-caption {
  margin: 0;
  max-width: 28rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-panel-alt);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 40px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font: 600 clamp(1.6rem, 3vw, 2.2rem) var(--display);
}

.section-lead {
  margin: 14px 0 0;
  color: var(--mist);
}

/* ---------- Grids / cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-panel);
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--leaf-glow);
  color: var(--leaf);
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  font-size: 0.85rem;
  color: var(--mist);
}

/* ---------- Example analysis card ---------- */

.example-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-panel);
}

.example-disclaimer {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(227, 200, 120, 0.12);
  border: 1px solid rgba(227, 200, 120, 0.35);
  color: var(--neutral);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.example-ticker {
  font: 700 1.3rem var(--font);
}

.signal-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.signal-buy {
  background: rgba(110, 207, 138, 0.16);
  color: var(--bullish);
  border: 1px solid rgba(110, 207, 138, 0.4);
}

.signal-wait {
  background: rgba(227, 200, 120, 0.14);
  color: var(--neutral);
  border: 1px solid rgba(227, 200, 120, 0.4);
}

.signal-trim {
  background: var(--danger-bg);
  color: var(--bearish);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.example-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.example-stat {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.example-stat .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.example-stat .value {
  font-weight: 700;
}

.example-reason {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.6;
}

.example-callout {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--leaf);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.as-of {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
}

/* ---------- Audience / security lists ---------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--mist);
}

.check-list li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf-glow);
  color: var(--leaf);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 64px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--leaf-glow), transparent 60%),
    var(--bg-panel-alt);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 12px;
  font: 600 clamp(1.5rem, 3vw, 2rem) var(--display);
}

.cta-band p {
  margin: 0 0 28px;
  color: var(--mist);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--leaf);
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- Simple content pages (About / Contact / Terms / Privacy) ---------- */

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font: italic 600 clamp(2rem, 4vw, 2.8rem) / 1.1 var(--display);
}

.page-hero p {
  margin: 14px auto 0;
  max-width: 36rem;
  color: var(--mist);
}

.content-page {
  padding: 56px 0 80px;
}

.content-prose {
  max-width: 720px;
  margin: 0 auto;
}

.content-prose h2 {
  font: 600 1.4rem var(--display);
  margin: 36px 0 12px;
}

.content-prose h2:first-child {
  margin-top: 0;
}

.content-prose p,
.content-prose li {
  color: var(--mist);
  font-size: 0.96rem;
}

.content-prose ul {
  padding-left: 20px;
}

.draft-banner {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 500 0.95rem var(--font);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(110, 207, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 207, 138, 0.12);
}

.form-status {
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-status.ok {
  color: var(--leaf);
}

.form-status.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-nav,
  .header-ctas {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 24px 20px;
    background: rgba(7, 17, 13, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .site-header.nav-open .site-nav a {
    padding: 10px 0;
    width: 100%;
  }

  .site-header.nav-open .nav-cta-mobile {
    display: inline-flex;
    margin-top: 8px;
  }

  .site-header.nav-open .nav-cta-mobile + .nav-cta-mobile {
    margin-top: 10px;
  }

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

  .section {
    padding: 52px 0;
  }
}
