/* ============================================================
   TrustReview.ai — Core Design System
   Light · Clean · Trust-first · Emerald
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;450;500;600;700&display=swap');

/* ----------  Tokens  ---------- */
:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #f4f9f6;
  --bg-mint: #eafaf2;
  --bg-ink: #052b20;
  --glass: rgba(255, 255, 255, 0.72);

  /* ink / text */
  --ink: #06241b;
  --ink-2: #244c3f;
  --muted: #5d7a6f;
  --line: #e1ede7;
  --line-2: #d2e4db;

  /* emerald scale */
  --g-900: #033025;
  --g-800: #064e3b;
  --g-700: #047857;
  --g-600: #059669;
  --g-500: #10b981;
  --g-400: #34d399;
  --g-300: #6ee7b7;
  --g-200: #a7f3d0;
  --g-100: #d1fae5;
  --g-50:  #ecfdf5;

  /* accents */
  --amber: #f5a524;
  --sky: #0ea5e9;
  --violet: #7c6cf0;

  /* gradients */
  --grad: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
  --grad-soft: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --grad-ink: linear-gradient(160deg, #063528 0%, #052b20 60%, #04241b 100%);
  --grad-text: linear-gradient(100deg, #047857, #10b981 45%, #34d399);

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --pill: 999px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(6, 36, 27, .06), 0 2px 8px rgba(6, 36, 27, .05);
  --sh-2: 0 10px 30px -12px rgba(6, 50, 37, .18);
  --sh-3: 0 30px 60px -22px rgba(5, 80, 55, .28);
  --glow: 0 16px 50px -16px rgba(16, 185, 129, .55);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-2: cubic-bezier(.65, .05, .36, 1);

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

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--g-300); color: var(--g-900); }

/* ----------  Type  ---------- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-2); line-height: 1.62; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: 'Space Grotesk', monospace; font-variant-numeric: tabular-nums; }

/* ----------  Layout  ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-sm { max-width: 880px; }
section { position: relative; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-tight { padding: clamp(48px, 6vw, 84px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--g-700);
  padding: 7px 15px; border-radius: var(--pill);
  background: var(--g-50); border: 1px solid var(--g-100);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-500); box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{ box-shadow:0 0 0 4px rgba(16,185,129,.18);} 50%{ box-shadow:0 0 0 7px rgba(16,185,129,0);} }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: 18px 0 16px; }

/* ----------  Buttons  ---------- */
.btn {
  --pad: 14px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: var(--pill);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -14px rgba(16,185,129,.7); }
.btn-primary::after {
  content:""; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--g-300); color: var(--g-700); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn-ink { background: var(--bg-ink); color: #eafaf2; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-lg { --pad: 17px 34px; font-size: 1.05rem; }
.btn-sm { --pad: 10px 18px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.link-arrow { display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--g-700); font-family:'Space Grotesk',sans-serif; }
.link-arrow svg { transition: transform .35s var(--ease); width:17px;height:17px; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ----------  Generic cards  ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--sh-1); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--g-200); }
.badge { display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:var(--pill); font-size:.8rem; font-weight:600; font-family:'Space Grotesk',sans-serif; }
.badge-green { background:var(--g-50); color:var(--g-700); border:1px solid var(--g-100); }
.badge-amber { background:#fff7e8; color:#a9690b; border:1px solid #ffe6b8; }

/* ----------  Reveal animations  ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="left"].in, [data-reveal="right"].in, [data-reveal="scale"].in { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* ----------  Custom cursor  ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: normal; }
.cursor-dot { width: 7px; height: 7px; background: var(--g-600); transform: translate(-50%, -50%); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(16,185,129,.55); transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s; }
.cursor-ring.hot { width: 56px; height: 56px; background: rgba(16,185,129,.1); border-color: var(--g-400); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ----------  Scroll progress  ---------- */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1000; box-shadow: 0 0 14px rgba(16,185,129,.6); }

/* ====================  HEADER / NAV  ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 900;
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav.scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line), var(--sh-1); height: 64px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.brand .mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand b { color: var(--g-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: var(--pill); font-weight: 500; font-size: .96rem; color: var(--ink-2); transition: color .25s, background .25s; position: relative; }
.nav-links a:hover { color: var(--g-700); background: var(--g-50); }
.nav-links a.active { color: var(--g-700); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; flex-direction: column; gap: 5px; background:#fff; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* dropdown */
.nav-item { position: relative; }
.nav-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 14px; opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.nav-item:hover .nav-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-panel a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: transparent; }
.nav-panel a:hover { background: var(--g-50); }
.nav-panel .npi { width: 38px; height: 38px; border-radius: 11px; background: var(--g-50); display: grid; place-items: center; flex: 0 0 auto; color: var(--g-600); }
.nav-panel .npt strong { display: block; font-family: 'Space Grotesk'; font-size: .95rem; color: var(--ink); }
.nav-panel .npt span { font-size: .82rem; color: var(--muted); }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px 24px; border-top: 1px solid var(--line); overflow-y: auto;
  }
  .nav.open .nav-links a { font-size: 1.15rem; padding: 14px 16px; }
  .nav-panel { display: none; }
}

/* ====================  FOOTER  ==================== */
.footer { background: var(--grad-ink); color: #c9e8dc; padding: 88px 0 36px; position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 80% at 80% 0%, rgba(16,185,129,.16), transparent 60%); pointer-events:none; }
.footer .wrap { position: relative; }
.footer-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); }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand b { color: var(--g-400); }
.footer-blurb { color: #9fc7b8; font-size: .96rem; max-width: 300px; }
.footer h5 { font-family: 'Space Grotesk'; color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: #a9cdc0; padding: 7px 0; font-size: .95rem; transition: color .25s, transform .25s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; flex-wrap: wrap; color: #88b3a4; font-size: .88rem; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.fbadge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--pill); font-size: .78rem; font-weight: 600; color: #c9e8dc; background: rgba(255,255,255,.04); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #c9e8dc; transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--g-500); color: #fff; border-color: var(--g-500); transform: translateY(-3px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brandcol { grid-column: 1 / -1; } }

/* ====================  Shared bits  ==================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stat-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.stat-num .grad-text { display: inline; }

.tilt { transform-style: preserve-3d; transition: transform .3s var(--ease); }

/* floating noise/grain optional */
.bg-soft { background: var(--bg-soft); }
.bg-mint { background: var(--bg-mint); }
.bg-ink { background: var(--grad-ink); color: #dff3ea; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: #a9cdc0; }

/* dot grid + blobs */
.dotgrid { background-image: radial-gradient(rgba(16,185,129,.16) 1px, transparent 1px); background-size: 26px 26px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0; }
.blob-g { background: radial-gradient(circle, rgba(52,211,153,.6), transparent 70%); }

/* pill list */
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--ink-2); }
.checklist li svg { flex: 0 0 auto; margin-top: 3px; color: var(--g-600); }

/* forms (shared) */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); font-family: 'Space Grotesk'; }
.input {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: #fff; font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.input:focus { outline: none; border-color: var(--g-400); box-shadow: 0 0 0 4px rgba(16,185,129,.13); }
.input::placeholder { color: #9bb1a8; }
.input-wrap { position: relative; }
.input-wrap .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-wrap .input { padding-left: 44px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--bg-ink); color: #eafaf2; padding: 14px 22px; border-radius: var(--pill); box-shadow: var(--sh-3); z-index: 9998; display: flex; align-items: center; gap: 10px; transition: transform .5s var(--ease); font-weight: 500; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--g-400); }

.hide { display: none !important; }

.nav-cta-mobile{display:none!important}
@media(max-width:980px){.nav.open .nav-cta-mobile{display:flex!important}}
