/* ============================================================
   TradebyAgent — shared site stylesheet
   Used by index.html, privacy.html, and future pages.
   Brand tokens from BRAND.md / design tokens.
   ============================================================ */

:root {
  --teal:        #088080;
  --teal-dark:   #066666;
  --teal-light:  #E8F4F4;
  --gold:        #E5C07F;
  --gold-light:  #FDF6E8;
  --ink:         #1E2D3D;
  --muted:       #5A6A7A;
  --faint:       #8896A6;
  --hair:        #DDE4E4;
  --hair-soft:   #ECF0F0;
  --panel:       #FFFFFF;
  --ground:      #F4F7F7;
  --ok:          #2E9E6B;
  --warn:        #E08A30;
  --shadow:      0 2px 8px rgba(0,0,0,.06);
  --shadow-lift: 0 8px 24px rgba(0,0,0,.10);
  --font-display: 'Comfortaa', 'Trebuchet MS', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem;
  border-radius: 8px; padding: 11px 20px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(8,128,128,.25); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-light); }
.btn-ghost { background: transparent; color: var(--ink); padding: 11px 14px; }
.btn-ghost:hover { color: var(--teal); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-disabled { background: var(--hair-soft); color: var(--faint); cursor: default; border-color: transparent; }
.btn-disabled:hover { transform: none; box-shadow: none; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: var(--ground); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; }

/* ============================ TOAST ============================ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================ HERO ============================ */
.hero { background: linear-gradient(180deg, var(--teal-light) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 24px 80px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--teal); text-transform: uppercase; margin-bottom: 20px; }
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--teal); }
.hero-lede { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-cta-primary { flex-direction: column; align-items: flex-start; padding: 12px 24px; line-height: 1.2; }
.hero-cta-primary small { font-weight: 400; font-size: 0.72rem; opacity: 0.85; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-trust span { font-size: 0.86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--teal); flex: 0 0 auto; }
.hero-visual { position: relative; }
.hero-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 5; background: var(--hair-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lift); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 0.84rem; }
.hero-badge strong { display: block; font-size: 1.02rem; }
.hero-badge .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; flex: 0 0 auto; }
.hero-badge.b1 { top: 22px; left: -22px; }
.hero-badge.b2 { bottom: 90px; left: -34px; }
.hero-badge.b3 { bottom: 24px; right: -18px; }

/* ============================ SECTION RHYTHM ============================ */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--teal); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.head-link { color: var(--teal); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.head-link:hover { gap: 9px; }

/* ============================ USE-CASE TILES ============================ */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usecase { border: 1px solid var(--hair); border-radius: 12px; padding: 24px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.usecase:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.usecase-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.usecase h3 { font-size: 1.08rem; margin-bottom: 8px; }
.usecase p { font-size: 0.92rem; color: var(--muted); }
.usecase .go { position: absolute; top: 24px; right: 24px; color: var(--faint); transition: color .2s; }
.usecase:hover .go { color: var(--teal); }

/* ============================ HOW IT WORKS ============================ */
.how { background: var(--teal-light); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.step { position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }
.step-ico { color: var(--teal); margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); }
.step:not(:last-child) .step-num::after { content: ""; position: absolute; top: 20px; left: 52px; right: -8px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); opacity: .4; }

/* ============================ WAITLIST BAND ============================ */
.waitband { background: var(--teal); color: #fff; }
.waitband-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 52px 0; }
.waitband .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.waitband .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.waitband h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 12px; }
.waitband p { color: rgba(255,255,255,.85); font-size: 1.02rem; max-width: 34em; }
.waitform { display: flex; gap: 10px; flex-wrap: wrap; }
.waitform input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-family: var(--font-ui); font-size: 0.95rem; }
.waitform input::placeholder { color: rgba(255,255,255,.7); }
.waitform input:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.18); }
.waitform .note { width: 100%; font-size: 0.8rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ============================ BUSINESS CARDS ============================ */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.biz-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.biz-photo { aspect-ratio: 16 / 10; background: var(--hair-soft); overflow: hidden; }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: 22px; }
.biz-body .ico { color: var(--teal); margin-bottom: 10px; }
.biz-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.biz-body p { font-size: 0.94rem; color: var(--muted); margin-bottom: 14px; }
.biz-link { color: var(--teal); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.biz-link:hover { gap: 9px; }

/* ============================ FOR AGENTS ============================ */
.agents { background: var(--ground); overflow: hidden; }
.agents-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.agents-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-height: 520px; background: var(--hair-soft); }
.agents-photo img { width: 100%; height: 100%; object-fit: cover; }
.agents h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.agents-lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 30em; }
.agents-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.afeat { display: flex; gap: 12px; }
.afeat .ico { width: 38px; height: 38px; border-radius: 9px; background: #fff; color: var(--teal); display: grid; place-items: center; flex: 0 0 auto; box-shadow: var(--shadow); }
.afeat h4 { font-size: 0.98rem; margin-bottom: 3px; }
.afeat p { font-size: 0.86rem; color: var(--muted); }

/* ============================ ENTERPRISE ============================ */
.ent { position: relative; color: #fff; overflow: hidden; }
.ent-bg { position: absolute; inset: 0; z-index: 0; }
.ent-bg img { width: 100%; height: 100%; object-fit: cover; }
.ent-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,32,40,.94) 0%, rgba(15,32,40,.82) 45%, rgba(8,128,128,.55) 100%); }
.ent-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 72px 0; }
.ent .section-eyebrow { color: var(--gold); }
.ent .section-eyebrow::before { background: var(--gold); }
.ent h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.ent p.lede { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-bottom: 28px; max-width: 32em; }
.ent-list { list-style: none; display: grid; gap: 14px; }
.ent-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; }
.ent-list .check { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.15); color: var(--gold); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.ent-cta { margin-top: 32px; }

/* ============================ CLOSING CTA ============================ */
.closing { text-align: center; padding: 84px 0; }
.closing h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.closing p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.closing-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================ FOOTER ============================ */
.footer { background: #14222b; color: rgba(255,255,255,.72); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .fbrand img { height: 40px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand p { font-size: 0.9rem; max-width: 26em; margin-bottom: 14px; }
.footer-attrib { font-size: 0.82rem; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-attrib a { color: rgba(255,255,255,.72); }
.footer-attrib a:hover { color: var(--gold); }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: rgba(255,255,255,.72); transition: all .2s; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================ LEGAL / CONTENT PAGE ============================ */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--ink); }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal ul { color: var(--muted); margin: 0 0 16px 22px; display: grid; gap: 8px; }
.legal a { color: var(--teal); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; margin-bottom: 30px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px 48px; }
  .hero-ctas { flex-wrap: nowrap; }
  .hero-ctas > a { flex: 1 1 0; min-width: 0; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .step .step-num::after { display: none; }
  .waitband-inner { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .biz-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .agents-grid { grid-template-columns: 1fr; gap: 32px; }
  .agents-photo { max-width: 400px; }
  .ent-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions .btn-desktop { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: block; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; padding: 24px; overflow-y: auto; }
  .mobile-menu.open a { display: block; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--hair); color: var(--ink); }
  .mobile-menu.open .btn { display: flex; width: 100%; margin-top: 10px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .agents-feats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge.b1, .hero-badge.b2, .hero-badge.b3 { position: static; margin: 0; box-shadow: none; border: 1px solid var(--hair); }
  .hero-badges-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
}
@media (max-width: 400px) {
  .hero-ctas { flex-wrap: wrap; }
  .hero-ctas > a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
