/* ================================================
   TradeSpyAI — styles.css
   Shared across index.html, about.html, privacy.html
   ================================================ */

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

:root {
  --bg:          #0a0a0a;
  --bg-raised:   #0f0f0f;
  --bg-card:     #131313;
  --text:        #ffffff;
  --text-muted:  #9a9a9a;
  --text-dim:    #4a4a4a;
  --accent:      #f5a623;
  --accent-dark: #d4891a;
  --border:      #1c1c1c;
  --border-mid:  #282828;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --max-w:       1060px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .8; }

/* ── Layout helpers ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
}

.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
  height: 60px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--accent); }
.nav-logo:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-right a {
  font-size: .87rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .18s;
}
.nav-right a:hover { color: var(--text); opacity: 1; }

.nav-cta {
  background: var(--accent);
  color: #0a0a0a !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: .84rem !important;
  transition: background .18s !important;
}
.nav-cta:hover { background: var(--accent-dark); opacity: 1 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(245,166,35,.11) 0%, transparent 70%),
    var(--bg);
}

.hero-wordmark {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 36px;
}
.hero-wordmark .accent { color: var(--accent); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.18);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
  margin-bottom: 28px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.07;
  margin-bottom: 22px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(.97rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  padding: 15px 38px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, transform .14s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); opacity: 1; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════ */
.hiw {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 52px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  background: var(--bg-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transition: background .18s;
}
.step:hover { background: #161616; }

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245,166,35,.09);
  border: 1px solid rgba(245,166,35,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.step-emoji {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--text);
}

.step p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   FEATURES
   ══════════════════════════════════════ */
.features { padding: 80px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.feat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .18s, transform .18s;
}
.feat:hover { border-color: var(--border-mid); transform: translateY(-2px); }

.feat-icon { font-size: 1.9rem; margin-bottom: 14px; line-height: 1; }

.feat-title {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.soon {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245,166,35,.09);
  border: 1px solid rgba(245,166,35,.22);
  padding: 2px 8px;
  border-radius: 4px;
}

.feat p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   BUILT FOR TRADESMEN
   ══════════════════════════════════════ */
.bft {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.bft-inner { max-width: 660px; }

.bft-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.bft-title .accent { color: var(--accent); }

.bft-body p {
  font-size: 1.03rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.bft-body p + p { margin-top: 14px; }

/* ══════════════════════════════════════
   GIVING BACK
   ══════════════════════════════════════ */
.giving { padding: 52px 0; }

.giving-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 660px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.giving-icon { font-size: 1.9rem; flex-shrink: 0; line-height: 1; padding-top: 2px; }

.giving-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.giving-card a { color: var(--accent); font-weight: 600; }
.giving-card a:hover { opacity: .8; }

/* ══════════════════════════════════════
   WAITLIST
   ══════════════════════════════════════ */
.waitlist {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════
   SHARED FORM STYLES
   ══════════════════════════════════════ */
.form-wrap {
  max-width: 500px;
  margin: 48px auto 0;
}

.form-row { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.req { color: #ef4444; margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #111;
  border: 1px solid #232323;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 15px;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #3a3a3a; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.1);
  background: #131313;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option { background: #1a1a1a; color: #fff; }

.form-textarea { min-height: 118px; resize: vertical; line-height: 1.6; }

.radio-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .93rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s;
}
.radio-label:hover { color: var(--text); }
.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: .98rem;
  font-weight: 700;
  margin-top: 8px;
}

.form-success {
  display: none;
  background: rgba(245,166,35,.06);
  border: 1px solid rgba(245,166,35,.18);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.form-err {
  display: none;
  color: #f87171;
  font-size: .83rem;
  margin-top: 10px;
  text-align: center;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 52px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 9px;
  display: block;
}
.footer-logo .accent { color: var(--accent); }

.footer-tag {
  font-size: .83rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 220px;
}

.socials { display: flex; gap: 9px; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .18s, border-color .18s, color .18s;
}
.social-btn:hover {
  background: rgba(245,166,35,.09);
  border-color: rgba(245,166,35,.32);
  color: var(--accent);
  opacity: 1;
}
.social-btn svg { fill: currentColor; width: 17px; height: 17px; }

.footer-col-head {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: .78rem; color: var(--text-dim); }

/* ══════════════════════════════════════
   INNER PAGES
   ══════════════════════════════════════ */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(245,166,35,.06) 0%, transparent 70%);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.page-body {
  padding: 60px 0 96px;
  max-width: 700px;
}
.page-body p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; }
.page-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 48px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.page-body h3 { font-size: .98rem; font-weight: 700; color: var(--text); margin: 26px 0 8px; }
.page-body ul, .page-body ol { padding-left: 22px; margin-bottom: 18px; }
.page-body li { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 6px; }
.page-body a { color: var(--accent); font-weight: 500; }
.page-body strong { color: var(--text); font-weight: 600; }

.policy-date {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: .82rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 767px)
   ══════════════════════════════════════ */
@media (max-width: 767px) {
  .hiw, .bft, .waitlist, .features, .contact, .giving { padding: 64px 0; }

  /* Nav */
  .hamburger { display: flex; }

  .nav-right {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10,10,10,.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 22px 20px;
    gap: 0;
    align-items: stretch;
  }
  .nav-right.open { display: flex; }
  .nav-right li { width: 100%; }
  .nav-right a {
    display: block;
    padding: 13px 0;
    font-size: .97rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-right li:last-child a { border-bottom: none; }
  .nav-cta {
    display: block;
    text-align: center;
    padding: 13px;
    margin-top: 10px;
    border-radius: var(--radius-sm);
    border-bottom: none !important;
  }

  /* Steps */
  .steps { grid-template-columns: 1fr; background: none; gap: 10px; }
  .step { border-radius: var(--radius); border: 1px solid var(--border); }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Giving */
  .giving-card { flex-direction: column; gap: 12px; padding: 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Page body */
  .page-header { padding: 48px 0 36px; }
  .page-body { padding: 44px 0 72px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET  (768–1023px)
   ══════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
