/* ============================================================
   Tradeleaf — Marketing site design system
   Editorial, spacious, image-led. Brand: deep green + emerald,
   brightened for marketing energy. Pairs with the product app.
   ============================================================ */

:root {
  --green-900: #0A2E2A;
  --green-800: #0C3B36;
  --green-700: #0F766E;
  --emerald:   #10B981;
  --emerald-400: #34D399;
  --emerald-300: #6EE7B7;
  --lime: #A3E635;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;

  --ink: #0A1F1C;          /* near-black green-tinted */
  --ink-2: #1C312D;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --line: #E7EDEA;
  --cream: #F6F4EE;        /* warm paper */
  --cream-2: #FBFAF6;
  --bg: #FCFCFA;
  --white: #FFFFFF;

  --amber: #F59E0B;
  --coral: #FB7185;

  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(10,31,28,.05), 0 2px 6px rgba(10,31,28,.05);
  --sh: 0 4px 10px rgba(10,31,28,.05), 0 12px 32px rgba(10,31,28,.08);
  --sh-lg: 0 20px 50px rgba(10,31,28,.14), 0 8px 20px rgba(10,31,28,.07);
  --sh-em: 0 10px 30px rgba(16,185,129,.35);

  --maxw: 1200px;
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 17px; line-height: 1.6;
}
::selection { background: var(--emerald-300); color: var(--green-900); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -.025em; line-height: 1.05; font-weight: 800; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1340px; margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--emerald); border-radius: 2px; }
.eyebrow.light { color: var(--emerald-300); }
.eyebrow.center { }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; border: none; cursor: pointer;
  padding: 14px 26px; border-radius: var(--r-pill); line-height: 1;
  transition: transform .12s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--sh); }
.btn-emerald { background: var(--emerald); color: var(--green-900); box-shadow: var(--sh-em); }
.btn-emerald:hover { background: var(--emerald-400); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--slate-300); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-link { background: none; padding: 0; color: var(--green-700); font-weight: 700; }
.btn-link:hover { gap: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(252,252,250,.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: 1340px; margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, var(--emerald-400), var(--green-700)); display: grid; place-items: center; box-shadow: var(--sh-em); }
.brand-mark svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 15.5px; color: var(--slate-600); transition: color .15s, background .15s; }
.nav-link:hover { color: var(--ink); background: rgba(15,118,110,.07); }
.nav-link.active { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 18px 0 0; }
.section-head p { font-size: 19px; color: var(--slate-500); margin-top: 18px; line-height: 1.55; }

.display { font-size: clamp(44px, 6.6vw, 88px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.serif-accent { font-family: var(--font-serif); font-weight: 500; font-style: italic; letter-spacing: -.01em; }
.text-grad { background: linear-gradient(110deg, var(--green-700), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Image slot styling ---------- */
image-slot {
  border-radius: var(--r-lg); overflow: hidden; display: block;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(16,185,129,.16), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(15,118,110,.18), transparent 55%),
    linear-gradient(135deg, #0C3B36, #0A2E2A);
  box-shadow: var(--sh);
  position: relative;
  color: #cfe9e2;
}
image-slot::part(placeholder) { color: #9CC7BE; }

/* decorative tag pinned on imagery */
.float-card {
  position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: var(--r); box-shadow: var(--sh-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}

/* ---------- Generic cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--emerald-50); color: var(--green-700); font-weight: 700; font-size: 13.5px;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #BFD6CF; padding: 80px 0 36px; }
.footer a { color: #BFD6CF; transition: color .15s; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col li { font-size: 15px; }
.foot-bottom { display: flex; align-items: center; gap: 16px; padding-top: 28px; font-size: 14px; color: #7FA89F; flex-wrap: wrap; }
.foot-newsletter { display: flex; gap: 8px; margin-top: 20px; max-width: 340px; }
.foot-newsletter input { flex: 1; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: var(--r-pill); padding: 12px 18px; color: #fff; font-size: 14.5px; outline: none; font-family: inherit; }
.foot-newsletter input::placeholder { color: #6E928A; }

/* ---------- Marquee logos ---------- */
.logos { display: flex; align-items: center; gap: 52px; flex-wrap: wrap; justify-content: center; opacity: .75; }
.logo-word { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--slate-400); display: flex; align-items: center; gap: 8px; }

/* ---------- Reveal on scroll (armed by JS; visible by default) ---------- */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.reveal-ready .reveal { opacity: 0; transform: translateY(24px); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Utility ---------- */
.grid { display: grid; }
.flex { display: flex; }
.muted { color: var(--slate-500); }
.center { text-align: center; }
hr.rule { border: none; height: 1px; background: var(--line); margin: 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}

/* icon default sizing */
.i { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.ico-box { display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; }
.ico-box .i { width: 24px; height: 24px; }

/* mobile menu */
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; }
.menu-btn .i { width: 22px; height: 22px; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 0; background: var(--bg); z-index: 99; padding: 24px 28px; flex-direction: column; gap: 6px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .mobile-menu.open { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { padding: 16px; border-radius: 12px; font-weight: 700; font-size: 18px; }
  .mobile-menu a:hover { background: var(--emerald-50); }
}
