:root {
  --green: #34443d;
  --green-dark: #24322c;
  --moss: #6f8b63;
  --clay: #b77b5a;
  --sand: #f4efe6;
  --sand-light: #fbf8f2;
  --text: #2f3d37;
  --muted: #718078;
  --white: #ffffff;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

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

html {
  min-height: 100%;
  background: var(--sand-light);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Cairo', Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(111, 139, 99, 0.18), transparent 28%),
    linear-gradient(315deg, rgba(183, 123, 90, 0.12), transparent 32%),
    linear-gradient(135deg, var(--sand-light), var(--sand));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 68, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 68, 61, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  perspective: 1200px;
  isolation: isolate;
}

.leaf-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.leaf-field span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 54px;
  height: 86px;
  border-radius: 999px 0 999px 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), transparent 42%),
    linear-gradient(145deg, rgba(111, 139, 99, 0.34), rgba(52, 68, 61, 0.12));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.46), 0 18px 50px rgba(36, 50, 44, 0.08);
  opacity: 0.78;
  transform: rotate(var(--r)) scale(var(--s));
  transition: transform 280ms ease-out;
  animation: floatLeaf 7s ease-in-out infinite alternate;
}

.leaf-field span:nth-child(2n) {
  animation-duration: 9s;
  animation-delay: -2s;
}

.leaf-field span:nth-child(3n) {
  animation-duration: 11s;
  animation-delay: -4s;
}

.card {
  position: relative;
  width: min(920px, 100%);
  padding: 56px 44px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(52, 68, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(36, 50, 44, 0.14);
  backdrop-filter: blur(14px);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(183, 123, 90, 0.34);
  box-shadow: 0 34px 90px rgba(36, 50, 44, 0.18);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.card::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -80px;
  border-radius: 42% 58% 48% 52%;
  background: rgba(111, 139, 99, 0.12);
}

.card::after {
  display: none;
}

.logo {
  width: min(520px, 82%);
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 18px 28px rgba(36, 50, 44, 0.1));
  transform: translateZ(46px);
  transition: transform 220ms ease;
}

.card:hover .logo {
  transform: translateZ(64px) scale(1.015);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateZ(36px);
}

h1 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  transform: translateZ(58px);
}

h2 {
  margin-bottom: 24px;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.25;
  transform: translateZ(44px);
}

.message {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  transform: translateZ(30px);
}

.divider {
  width: 96px;
  height: 2px;
  margin: 32px auto;
  overflow: hidden;
  background: rgba(52, 68, 61, 0.18);
  transform: translateZ(28px);
}

.divider::before {
  content: "";
  display: block;
  width: 44px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--clay), transparent);
  animation: sweep 2.8s ease-in-out infinite;
}

.contact {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  transform: translateZ(34px);
}

.contact a {
  position: relative;
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.contact a:hover {
  color: var(--clay);
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 68, 61, 0.45) 18%, rgba(52, 68, 61, 0.45) 82%, transparent);
  opacity: 0.72;
  transform: scaleY(0.55);
  transform-origin: center;
  transition: background 160ms ease;
}

.contact a:hover::after {
  background: linear-gradient(90deg, transparent, currentColor 18%, currentColor 82%, transparent);
}

.tap-ripple {
  position: fixed;
  z-index: 19;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border: 1px solid rgba(183, 123, 90, 0.62);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 680ms ease-out forwards;
}

@keyframes sweep {
  0% {
    transform: translateX(-60px);
  }

  50%,
  100% {
    transform: translateX(116px);
  }
}

@keyframes ripple {
  to {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}

@keyframes floatLeaf {
  from {
    margin-top: -8px;
  }

  to {
    margin-top: 12px;
  }
}

@media (hover: none), (pointer: coarse) {
  .card {
    transform: none;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px;
  }

  .card {
    padding: 42px 24px;
  }

  .logo {
    width: 92%;
    margin-bottom: 28px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .message {
    font-size: 1rem;
  }

  .leaf-field span {
    width: 38px;
    height: 62px;
    opacity: 0.54;
  }
}

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

  .card,
  .logo {
    transform: none;
  }
}
