/* ==========================================================================
   Valucadi — marketing site
   Design tokens
   ========================================================================== */

:root {
  --ink: #12190f;
  --ink-soft: #3c473a;
  --paper: #f7f6ef;
  --paper-raised: #ffffff;
  --line: #e2e0d4;

  --forest-900: #1b5e20;
  --forest-800: #2e7d32;
  --forest-700: #388e3c;
  --forest-600: #43a047;
  --forest-500: #4caf50;
  --forest-300: #81c784;
  --forest-150: #c8e6c9;
  --forest-100: #e8f5e9;

  --gold-600: #388e3c;
  --gold-500: #4caf50;
  --gold-400: #66bb6a;
  --gold-100: #e8f5e9;

  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-card: 0 1px 2px rgba(18, 25, 15, 0.04), 0 12px 32px -16px rgba(18, 25, 15, 0.18);
  --shadow-pop: 0 24px 60px -20px rgba(20, 38, 26, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-600);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section { padding: 108px 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--forest-800);
  color: #fdfcf6;
  box-shadow: 0 10px 24px -10px rgba(20, 38, 26, 0.55);
}
.btn-primary:hover { background: var(--forest-700); }

.btn-gold {
  background: var(--gold-500);
  color: #fdfcf6;
  box-shadow: 0 10px 24px -10px rgba(76, 175, 80, 0.55);
}
.btn-gold:hover { background: var(--gold-600); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--forest-500); color: var(--forest-700); }

.btn-outline-invert {
  background: transparent;
  color: #fdfcf6;
  border-color: rgba(253, 252, 246, 0.35);
}
.btn-outline-invert:hover { border-color: #fdfcf6; background: rgba(253, 252, 246, 0.08); }

.btn-lg { padding: 16px 32px; font-size: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 239, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.brand .mark { width: 34px; height: 34px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a { color: var(--ink-soft); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--forest-700); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

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

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

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(480px 320px at 12% 20%, rgba(76, 122, 61, 0.14), transparent 70%),
    radial-gradient(420px 300px at 92% 0%, rgba(76, 175, 80, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  margin-top: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--forest-700);
  position: relative;
}

.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -8px;
  background: var(--forest-300);
  display: inline-block;
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* Hero visual: app screenshot in a browser frame */

.hero-visual { position: relative; }

.browser-frame {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: var(--forest-100);
  border-bottom: 1px solid var(--line);
}

.browser-frame-dots { display: flex; gap: 6px; flex: none; }
.browser-frame-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest-300);
}

.browser-frame-url {
  flex: 1;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-soft);
  text-align: center;
}

.browser-frame-img { width: 100%; height: auto; display: block; }

.hero-visual-note {
  position: absolute;
  bottom: -22px;
  left: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-visual-note .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--forest-500);
}

/* ---------- Statement / pull-quote ---------- */

.statement {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement h2 {
  font-size: clamp(28px, 4vw, 46px);
  max-width: 880px;
}

.statement h2 .accent { color: var(--forest-700); }

.statement-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.statement-body p {
  font-size: 18px;
  color: var(--ink-soft);
}

blockquote.quote {
  margin: 0;
  padding: 22px 0 0 22px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}
blockquote.quote footer {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Who it's for ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.audience-card:hover {
  border-color: var(--forest-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.audience-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-700);
  margin-bottom: 18px;
}
.audience-card .icon svg { width: 22px; height: 22px; }

.audience-card h3 { font-size: 17px; font-weight: 700; }
.audience-card p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

/* ---------- How it works ---------- */

.how { background: var(--forest-900); color: #fdfcf6; }
.how .eyebrow { color: var(--gold-400); }
.how .section-head h2 { color: #fdfcf6; }
.how .section-head p { color: rgba(253, 252, 246, 0.66); }

.how-visual { margin-bottom: 64px; }

.how-visual .browser-frame {
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}

.how-visual-caption {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(253, 252, 246, 0.66);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  background: rgba(253, 252, 246, 0.04);
  border: 1px solid rgba(253, 252, 246, 0.12);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
}

.step .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #fdfcf6;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 19px; color: #fdfcf6; }
.step p { margin-top: 10px; font-size: 15px; color: rgba(253, 252, 246, 0.68); }

/* ---------- Results ---------- */

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.result-card .figure {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--forest-700);
}

.result-card h3 { margin-top: 6px; font-size: 18px; }
.result-card p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Beta CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-900));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #fdfcf6;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 260px at 85% 0%, rgba(76, 175, 80, 0.28), transparent 70%);
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 252, 246, 0.12);
  border: 1px solid rgba(253, 252, 246, 0.28);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cta-banner .badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400);
}

.cta-banner h2 {
  color: #fdfcf6;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(253, 252, 246, 0.72);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .hero-actions { justify-content: center; margin-top: 32px; }

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

.site-footer {
  background: var(--forest-900);
  color: rgba(253, 252, 246, 0.7);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(253, 252, 246, 0.12);
}

.footer-brand .brand { color: #fdfcf6; }
.footer-brand p { margin-top: 14px; font-size: 15px; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 252, 246, 0.5);
  margin-bottom: 16px;
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  color: rgba(253, 252, 246, 0.78);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fdfcf6; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal { display: flex; gap: 20px; }

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .statement-body { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 76px 0; }
  .nav-links { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .audience-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Legal pages ---------- */

.legal { padding: 72px 0 108px; }

.legal-container { max-width: 760px; }

.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.legal-updated {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.legal h2 {
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 4px;
}

.legal p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-soft);
}

.legal ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal li {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
}

.legal li strong { color: var(--ink); }

.legal a { color: var(--forest-700); text-decoration: underline; }
