:root {
  --blue: #232e7e;
  --blue-deep: #151b4a;
  --green: #1fa03f;
  --yellow: #fdc300;
  --aqua: #5eead4;
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #f7faf8;
  --text-soft: rgba(247, 250, 248, 0.82);
  --shadow: 0 28px 70px rgba(8, 16, 40, 0.5);
  --radius: 28px;
  --font: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--blue-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ——— Background ——— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.bg__video.is-active {
  opacity: 1;
}

/* ——— Layout ——— */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 1.5rem;
  text-align: center;
}

/* ——— Unified panel ——— */
.panel {
  width: min(100%, 440px);
  padding: 1.5rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    165deg,
    rgba(20, 28, 70, 0.72) 0%,
    rgba(25, 36, 95, 0.78) 45%,
    rgba(12, 22, 55, 0.84) 100%
  );
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.panel__mark {
  width: min(132px, 38vw);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.panel__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1.35rem, 4.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.panel__name-sub {
  margin-top: 0.2rem;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--aqua);
}

.hero__text {
  font-size: clamp(0.92rem, 2.2vw, 1.02rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: pretty;
  max-width: 22rem;
  margin: 0 auto;
}

/* ——— Contact channels ——— */
.channels {
  display: grid;
  gap: 0.75rem;
}

.channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 55%,
    rgba(94, 234, 212, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(8, 16, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-align: left;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  animation: bob 5.5s ease-in-out infinite;
}

.channel:nth-child(2) {
  animation-delay: -1.8s;
}

.channel:nth-child(3) {
  animation-delay: -3.4s;
}

.channel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.channel:hover,
.channel:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow:
    0 18px 36px rgba(8, 16, 40, 0.35),
    0 0 0 1px rgba(94, 234, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
}

.channel:hover::before,
.channel:focus-visible::before {
  opacity: 1;
}

.channel__orb {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(0, 0, 0, 0.18);
  transform: perspective(400px) rotateX(8deg) rotateY(-8deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.channel:hover .channel__orb,
.channel:focus-visible .channel__orb {
  transform: perspective(400px) rotateX(0deg) rotateY(0deg) translateY(-2px) scale(1.06);
}

.channel__orb svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.channel--whatsapp .channel__orb {
  background: linear-gradient(145deg, #6ee7b7 0%, #22c55e 42%, #15803d 100%);
}

.channel--instagram .channel__orb {
  background: linear-gradient(145deg, #f9a8d4 0%, #e1306c 35%, #833ab4 70%, #405de6 100%);
}

.channel--email .channel__orb {
  background: linear-gradient(145deg, #7dd3fc 0%, #38bdf8 40%, #232e7e 100%);
}

.channel__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.channel__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aqua);
}

.channel__value {
  font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

/* ——— Footer ——— */
.footer {
  font-size: 0.88rem;
  color: rgba(247, 250, 248, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.footer__copy {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (hover: none) {
  .channel {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg__video {
    display: none;
  }

  .bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/bg-agro.jpg") center / cover no-repeat;
  }
}

@media (min-width: 720px) {
  .panel {
    width: min(100%, 480px);
    padding: 1.75rem 1.45rem 1.45rem;
    gap: 1.3rem;
  }

  .panel__mark {
    width: 148px;
  }
}
