/* ===== F.lli FOGLIARINO — Agricultural Machinery — Design Tokens ===== */
:root {
  /* Surface — clean whites & metallic grays */
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-2: #EFECE4;
  --surface-dark: #14181B;     /* deep professional dark */
  --surface-dark-2: #1B2024;
  --surface-green-dark: #0F3527; /* deep agricultural green for accent panels */

  /* Ink — charcoal range pulled from logo */
  --ink: #1A1C20;
  --ink-2: #2F3338;
  --ink-muted: #6B7077;
  --ink-faint: #9AA0A8;
  --ink-inverse: #F7F6F2;

  /* Hairlines */
  --line: #E1DDD3;
  --line-2: #CFC9BB;
  --line-dark: #2A2F35;

  /* Brand — Fogliarino red (extracted from logo) + agricultural green secondary */
  --brand: #E5302A;            /* logo red, toned down from pure */
  --brand-2: #B82520;          /* hover/active */
  --brand-tint: #FBE6E4;
  --accent-green: #1F5538;     /* agricultural deep green */
  --accent-green-2: #163E29;

  /* Semantic */
  --success: #1F8A5B;
  --info: #2A6FDB;

  /* Radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* Shadows — soft, premium */
  --shadow-sm: 0 1px 2px rgba(14,15,17,.04), 0 1px 1px rgba(14,15,17,.03);
  --shadow-md: 0 6px 18px -8px rgba(14,15,17,.10), 0 2px 6px -2px rgba(14,15,17,.04);
  --shadow-lg: 0 20px 40px -20px rgba(14,15,17,.18), 0 8px 18px -10px rgba(14,15,17,.08);

  /* Type — corporate Italian-industrial: Manrope ExtraBold display, Inter body */
  --font-display: "Manrope", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

#root { min-height: 100vh; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: #fff; }

/* ===== Type scale ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(44px, 6vw, 88px);
  text-wrap: balance;
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-size: clamp(30px, 3.6vw, 52px);
  margin: 0;
  text-wrap: balance;
}
.h-2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.1;
  font-size: clamp(24px, 2.4vw, 34px);
  margin: 0;
  text-wrap: balance;
}
.h-3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
  font-size: 20px;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
.body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.caps {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section-y) 0; position: relative; }
section.tight { padding: calc(var(--section-y) * 0.7) 0; }
section.no-bottom { padding-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-2); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-ghost-inverse {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-ghost-inverse:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
}
.btn-link:hover { color: var(--brand); border-color: var(--brand); }

/* ===== Wordmark (logo placeholder) ===== */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark .flli {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.wordmark .name { letter-spacing: 0.02em; }
.wordmark .dot { color: var(--brand); }
.wordmark.inverse .flli { color: rgba(255,255,255,.7); }
.wordmark.inverse { color: #fff; }

/* ===== Marker (industrial accent) ===== */
.marker-bar {
  display: inline-block;
  width: 36px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Responsive helpers ===== */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.grid { display: grid; }

@media (max-width: 900px) {
  :root { --gutter: 20px; }
}

/* hide scrollbars on horiz scrollers */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* Print-style spec captions (industrial detail) */
.spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
