/* ════════════════════════════════════════════════════════════════
   GREEN HARVEST — Cinematic Agro Export Site
   Liquid-Glass + Premium Editorial System
   ════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Custom default radius */
.rounded, .rounded-default { border-radius: 9999px; }

/* ────────── Liquid Glass — base ────────── */
.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ────────── Liquid Glass — strong (CTA, modal) ────────── */
.liquid-glass-strong {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.liquid-glass-strong::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.50) 0%,
    rgba(255,255,255,0.20) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.20) 80%,
    rgba(255,255,255,0.50) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Typography helpers */
.font-heading { font-family: 'Instrument Serif', Georgia, serif; }
.font-body { font-family: 'Barlow', system-ui, sans-serif; }
.tight-3 { letter-spacing: -3px; }
.tight-4 { letter-spacing: -4px; }
.tight-1 { letter-spacing: -1px; }
.leading-08 { line-height: 0.8; }

/* ────────── Page-fade in ────────── */
.fade-in {
  animation: fadeIn 0.8s ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; filter: blur(10px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ────────── BlurText animation ────────── */
.blur-word {
  display: inline-block;
  margin-right: 0.28em;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(50px);
  animation: blurIn 0.7s ease-out forwards;
}
@keyframes blurIn {
  0%   { opacity: 0;   filter: blur(10px); transform: translateY(50px); }
  50%  { opacity: 0.5; filter: blur(5px);  transform: translateY(-5px); }
  100% { opacity: 1;   filter: blur(0);    transform: translateY(0); }
}

/* ────────── Helpers ────────── */
.tracking-tight { letter-spacing: -0.02em; }
.shimmer {
  position: relative; overflow: hidden;
}
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 50%, 100% { transform: translateX(100%); } }

/* ────────── Scrollbar ────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ────────── Selection ────────── */
::selection { background: rgba(255,255,255,0.18); color: #fff; }

/* ────────── Star canvas (decorative parallax dots in some sections) ────────── */
.starfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.starfield::before, .starfield::after {
  content: ""; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 80% 20%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.5) 50%, transparent 51%);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 350px 350px;
  background-repeat: repeat;
  animation: drift 80s linear infinite;
}
.starfield::after {
  background-size: 400px 400px, 500px 500px, 350px 350px, 280px 280px, 450px 450px;
  animation-duration: 160s;
  opacity: 0.5;
}
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-200px, -100px); } }

/* ────────── Mobile ────────── */
@media (max-width: 768px) {
  .tight-4 { letter-spacing: -2px; }
  .tight-3 { letter-spacing: -2px; }
}
