:root {
  --green-900: #073b24;
  --green-700: #0b6b3a;
  --green-500: #16874a;
  --orange-600: #f27a10;
  --orange-400: #ffad4d;
  --paper: #f7faf3;
  --paper-warm: #fff7ea;
  --text: #123225;
  --muted: #60756a;
  --line: rgba(12, 83, 46, 0.13);
  --ease-out: cubic-bezier(.2, .9, .2, 1);
  --logo-x: 0px;
  --logo-y: 0px;
  --line-x: 0px;
  --line-y: 0px;
  --halo-x: 0px;
  --halo-y: 0px;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  background:
    linear-gradient(145deg, rgba(255, 247, 234, 0.92) 0%, rgba(247, 250, 243, 0.98) 38%, rgba(232, 246, 235, 0.94) 100%),
    linear-gradient(38deg, rgba(242, 122, 16, 0.10), transparent 34%, rgba(22, 135, 74, 0.12));
  background-size: 180% 180%;
  overflow-x: hidden;
  animation: backgroundBreath 18s ease-in-out infinite;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 59, 36, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(7, 59, 36, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
  animation: gridDrift 26s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(255, 255, 255, 0.46) 32%, transparent 46% 100%),
    linear-gradient(102deg, transparent 0 58%, rgba(242, 122, 16, 0.052) 66%, transparent 78% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 42%, rgba(11, 107, 58, 0.05));
  animation: lightPass 16s ease-in-out infinite;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.page::before {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 77, 0.16), rgba(22, 135, 74, 0.07) 44%, transparent 70%);
  filter: blur(10px);
  opacity: 0.62;
  pointer-events: none;
  transform: translate3d(calc(-50% + var(--halo-x)), calc(-50% + var(--halo-y)), 0);
  transition: transform 240ms ease-out;
}

.hero {
  position: relative;
  display: grid;
  width: min(100%, 920px);
  align-content: center;
  justify-items: center;
  gap: clamp(22px, 4vh, 38px);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: min(76vw, 780px);
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(242, 122, 16, 0.25), rgba(11, 107, 58, 0.15), transparent);
  transform: translate3d(var(--line-x), var(--line-y), 0) rotate(var(--line-rotate));
  animation: lineFloat 10s ease-in-out infinite;
}

.hero::before {
  --line-rotate: -6deg;
  top: 18%;
}

.hero::after {
  --line-rotate: 5deg;
  bottom: 16%;
  background: linear-gradient(90deg, transparent, rgba(11, 107, 58, 0.14), rgba(242, 122, 16, 0.18), transparent);
  animation-duration: 12s;
  animation-direction: reverse;
}

.status {
  margin: 0;
  color: var(--green-700);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
  animation: fadeUp 700ms var(--ease-out) 80ms both;
}

.logo-frame {
  display: grid;
  place-items: center;
  transform: translate3d(var(--logo-x), var(--logo-y), 0);
  transition: transform 260ms ease-out;
  will-change: transform;
}

.logo {
  width: clamp(260px, min(56vw, 46vh), 520px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 38px rgba(7, 59, 36, 0.14))
    drop-shadow(0 8px 18px rgba(242, 122, 16, 0.10));
  animation:
    settle 900ms var(--ease-out) 140ms both,
    logoLight 7s ease-in-out 1.1s infinite;
}

.content {
  display: grid;
  gap: 18px;
  justify-items: center;
  animation: fadeUp 760ms var(--ease-out) 260ms both;
}

.metric {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.38rem);
  font-weight: 600;
  line-height: 1.35;
}

.metric strong {
  color: var(--green-900);
  font-weight: 800;
}

.markets {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.flag {
  position: relative;
  display: inline-grid;
  width: 38px;
  aspect-ratio: 1.48;
  overflow: hidden;
  border: 1px solid rgba(18, 50, 37, 0.14);
  border-radius: 7px;
  box-shadow: 0 5px 13px rgba(18, 50, 37, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.flag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(18, 50, 37, 0.11);
}

.flag::before,
.flag::after {
  position: absolute;
  content: "";
}

.flag-br {
  background: #159447;
}

.flag-br::before {
  inset: 17% 13%;
  background: #f3d343;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.flag-br::after {
  inset: 31%;
  border-radius: 50%;
  background: #244aa5;
}

.flag-py {
  background: linear-gradient(#d52b1e 0 33.33%, #fff 33.33% 66.66%, #0038a8 66.66%);
}

.flag-il {
  background:
    linear-gradient(#1f5fbf 0 14%, transparent 14% 28%, #fff 28% 72%, transparent 72% 86%, #1f5fbf 86%),
    #fff;
}

.flag-il::before,
.flag-il::after {
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

.flag-il::before {
  border-bottom: 11px solid #1f5fbf;
  transform: translate(-50%, -62%);
}

.flag-il::after {
  border-top: 11px solid #1f5fbf;
  transform: translate(-50%, -38%);
}

.flag-us {
  background:
    linear-gradient(#21468b 0 0) 0 0 / 45% 54% no-repeat,
    repeating-linear-gradient(#bf0a30 0 7.69%, #fff 7.69% 15.38%);
}

.email {
  position: relative;
  color: var(--green-700);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
  animation: fadeUp 760ms var(--ease-out) 420ms both;
}

.email::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(242, 122, 16, 0.48), rgba(11, 107, 58, 0.36), transparent);
  opacity: 0.56;
  transform: scaleX(0.58);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.email:hover {
  color: var(--orange-600);
  transform: translateY(-1px);
}

.email:hover::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  50% {
    background-position: 100% 50%;
  }
}

@keyframes gridDrift {
  to {
    background-position: 72px 72px;
  }
}

@keyframes lightPass {
  0%, 100% {
    opacity: 0.78;
    transform: translateX(-1.5%);
  }

  50% {
    opacity: 1;
    transform: translateX(1.5%);
  }
}

@keyframes logoLight {
  0%, 100% {
    filter:
      drop-shadow(0 24px 38px rgba(7, 59, 36, 0.14))
      drop-shadow(0 8px 18px rgba(242, 122, 16, 0.10));
  }

  50% {
    filter:
      drop-shadow(0 26px 42px rgba(7, 59, 36, 0.18))
      drop-shadow(0 10px 22px rgba(242, 122, 16, 0.16));
  }
}

@keyframes lineFloat {
  0%, 100% {
    opacity: 0.28;
    transform: translate3d(var(--line-x), var(--line-y), 0) rotate(var(--line-rotate));
  }

  50% {
    opacity: 0.56;
    transform: translate3d(var(--line-x), calc(var(--line-y) + 8px), 0) rotate(var(--line-rotate));
  }
}

@media (max-width: 680px) {
  .page {
    padding: 22px;
  }

  .hero {
    gap: 24px;
  }

  .hero::before,
  .hero::after {
    width: 92vw;
  }

  .status {
    letter-spacing: 0.22em;
  }

  .logo {
    width: min(82vw, 380px);
  }

  .content {
    gap: 16px;
  }

  .metric {
    max-width: 310px;
  }
}

@media (max-height: 690px) and (min-width: 681px) {
  .hero {
    gap: 18px;
  }

  .logo {
    width: clamp(250px, 40vh, 410px);
  }
}

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

  .page::before,
  .logo-frame {
    transition: none !important;
  }
}
