/* ============================================================
   АГАВА ОПТОМ — POLEZIUM
   Design system: warm Mexican eco-premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=Cormorant:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  /* surfaces */
  --bg:        #f4eee2;
  --bg-2:      #ece3d2;
  --surface:   #fffdf8;
  --surface-2: #f8f2e6;

  /* ink */
  --ink:       #20211c;
  --ink-soft:  #54574c;
  --ink-faint: #8a8d80;

  /* brand */
  --agave:       #2f6b4f;   /* primary deep agave green */
  --agave-deep:  #1d4a36;
  --agave-soft:  #e3ecdf;
  --agave-line:  #b7cdb9;
  --terra:       #c0573a;   /* terracotta accent */
  --terra-soft:  #f4e0d6;
  --gold:        #c8912f;   /* syrup amber — signature accent */
  --gold-deep:   #9a6a1f;
  --gold-soft:   #f3e3bf;
  --honey:       #e7b955;   /* bright syrup highlight */

  --line:      rgba(32,33,28,0.12);
  --line-soft: rgba(32,33,28,0.07);

  --shadow-sm: 0 1px 2px rgba(29,40,30,0.05), 0 2px 8px rgba(29,40,30,0.04);
  --shadow-md: 0 4px 14px rgba(29,40,30,0.08), 0 12px 40px rgba(29,40,30,0.06);
  --shadow-lg: 0 12px 30px rgba(29,40,30,0.10), 0 30px 70px rgba(29,40,30,0.10);

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

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant', Georgia, serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section { position: relative; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--agave);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--agave); display: inline-block; border-radius: 2px;
}
.eyebrow.terra { color: var(--terra); }
.eyebrow.terra::before { background: var(--terra); }
.eyebrow.gold { color: var(--gold-deep); }
.eyebrow.gold::before { background: var(--honey); }

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.h-display {
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h-section {
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.03em;
}
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--agave); color: #fdfdf8; box-shadow: 0 6px 18px rgba(31,74,55,0.22); }
.btn-primary:hover { background: var(--agave-deep); box-shadow: 0 10px 26px rgba(31,74,55,0.30); }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(192,87,58,0.22); }
.btn-terra:hover { filter: brightness(0.95); box-shadow: 0 10px 26px rgba(192,87,58,0.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(32,33,28,0.25); }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--agave); flex: none; }

/* ---------- image placeholder look ---------- */
image-slot {
  background:
    repeating-linear-gradient(135deg, rgba(47,107,79,0.05) 0 10px, rgba(47,107,79,0.10) 10px 20px),
    var(--surface-2);
  border: 1px solid var(--agave-line);
  color: var(--agave-deep);
  font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
