/* ==========================================================================
   AGRI & POULTRY TEC EXPO — Coming Soon (static build for Cloudflare Pages)
   ========================================================================== */

:root {
  --brand-950: #071d12;
  --brand-900: #0d2c1d;
  --brand-700: #174b32;
  --brand-500: #4b9b51;
  --brand-400: #579c79;
  --brand-300: #85ba9e;
  --brand-200: #b3d5c2;
  --brand-100: #d8eadf;
  --accent-400: #e8b93f;
  --accent-300: #f0ce66;
  --accent-200: #f5df99;
  --gold-700: #b48322;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--brand-950);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

h1 {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- Layout -- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--brand-950);
}

.content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.inner {
  width: 100%;
  max-width: 42rem;
  text-align: center;
}

@media (min-width: 640px) {
  .content {
    padding: 5rem 1.5rem;
  }
}

/* ------------------------------------------------------------ Background -- */

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  animation: kenburns 26s ease-in-out infinite alternate;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 29, 18, 0.85),
    rgba(7, 29, 18, 0.55),
    rgba(7, 29, 18, 0.85)
  );
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 29, 18, 0.15) 0%,
    rgba(7, 29, 18, 0.78) 72%
  );
}

.bg-dots {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("/images/wavy-dots.svg");
  background-size: 160px 70px;
  background-repeat: repeat;
}

.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  animation: floatSlow 8s ease-in-out infinite;
  will-change: transform;
}

.blob-a {
  left: -6rem;
  top: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(232, 185, 63, 0.15);
}

.blob-b {
  right: -6rem;
  bottom: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(75, 155, 81, 0.25);
  animation-delay: 1.6s;
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  animation: floatParticle var(--dur, 14s) linear infinite;
  animation-delay: var(--del, 0s);
  will-change: transform, opacity;
}

.particle .dot {
  display: block;
  border-radius: 9999px;
  background: var(--accent-200);
}

.particle svg {
  display: block;
  color: var(--accent-200);
}

/* ----------------------------------------------------------------- Badge -- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(240, 206, 102, 0.4);
  background: rgba(232, 185, 63, 0.1);
  padding: 0.375rem 0.875rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-200);
}

.pulse {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.pulse-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent-400);
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--accent-400);
  animation: pulseRing 2.6s ease-out infinite;
}

/* ------------------------------------------------------------- Headline -- */

h1 {
  margin: 1.5rem 0 0;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: 2.25rem;
}

h1 .line {
  display: block;
}

h1 .line + .line {
  margin-top: 0.5rem;
}

.lead {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--brand-100);
}

.gold {
  background: linear-gradient(
    90deg,
    var(--accent-200) 0%,
    var(--accent-400) 40%,
    var(--gold-700) 70%,
    var(--accent-200) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientX 6s ease-in-out infinite;
}

.gold-text {
  color: var(--accent-300);
}

@media (min-width: 640px) {
  h1 {
    font-size: 3.75rem;
  }
  .lead {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4.5rem;
  }
}

/* -------------------------------------------------------------- Progress -- */

.progress-wrap {
  margin-top: 2.5rem;
  width: 100%;
}

.progress-ring {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 0 auto;
}

.progress-ring .glow {
  position: absolute;
  inset: 24px;
  border-radius: 9999px;
  background: rgba(232, 185, 63, 0.15);
  filter: blur(24px);
  animation: pulseSoft 5s ease-in-out infinite;
}

.progress-ring .orbit {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  animation: spinSlow 22s linear infinite;
}

.progress-ring svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.progress-ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 12;
}

.progress-ring .arc {
  fill: none;
  stroke: url(#ring);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(232, 185, 63, 0.55));
  transition: stroke-dashoffset 150ms linear;
}

.progress-ring .tip {
  fill: var(--accent-300);
  filter: drop-shadow(0 0 8px rgba(240, 206, 102, 0.9));
}

.readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.readout .leaf {
  width: 1rem;
  height: 1rem;
  color: var(--accent-300);
}

.readout .pct {
  margin-top: 0.25rem;
  font-family: "Manrope", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.readout-label {
  margin-top: 0.25rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-200);
}

.bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem auto 0;
  max-width: 28rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-200);
}

.bar {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    var(--brand-400),
    var(--brand-500),
    var(--accent-400)
  );
  overflow: hidden;
  transition: width 150ms ease-out;
}

.shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: shimmer 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------- Contact -- */

.contact {
  margin: 2.5rem auto 0;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px -12px rgba(16, 24, 20, 0.25);
}

.contact-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-300);
}

.contact-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--brand-100);
  text-decoration: none;
  transition: color 150ms ease;
}

.contact-links a:hover {
  color: #fff;
}

.contact-links svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent-400);
}

@media (min-width: 640px) {
  .contact {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
    text-align: left;
  }
}

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

.hero footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--brand-300);
  text-align: center;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: var(--brand-300);
  transition: background 150ms ease, color 150ms ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.socials svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

/* ------------------------------------------------------------ Animations -- */

[data-animate] {
  animation: fadeUp 0.45s cubic-bezier(0.22, 0.68, 0, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1.5%);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.04);
  }
}

@keyframes floatParticle {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: var(--op, 0.4);
  }
  85% {
    opacity: var(--op, 0.4);
  }
  100% {
    transform: translate3d(var(--dx, 24px), -140px, 0) rotate(24deg);
    opacity: 0;
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  70% {
    opacity: 0;
    transform: scale(1.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes gradientX {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-img,
  .blob,
  .particle,
  .orbit,
  .glow,
  .gold,
  .shimmer,
  .pulse-ring,
  [data-animate] {
    animation: none !important;
  }
}
