/* Design tokens from Figma (TalkToFigma / Frame 1) */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-icon: #d0021b;
  --color-gradient-top-start: #e8cf7e;
  --color-gradient-top-start-alpha: rgba(232, 207, 126, 0.29);
  --color-fade-bottom: #f9f6f2;
  --font-family: "Space Grotesk", system-ui, sans-serif;
  --font-size-message: 1.375rem; /* 22px */
  --line-height-message: 1.275;
  --font-size-contact: 1rem; /* 16px */
  --line-height-contact: 1.275;
  --icon-size: 1.5rem; /* 24px */
  --frame-max: 100rem; /* 1600px */
  --content-max: 36rem;
  --logo-width: clamp(10rem, 28vw, 15.0625rem); /* ~241px */
  --wheat-height: clamp(14rem, 36vw, 26rem);
  --space-logo-to-message: clamp(2rem, 5vw, 3.25rem);
  --space-message-to-contact: clamp(2.5rem, 6vw, 4.25rem);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Top atmosphere — subtil, doar 100px sus */
.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: linear-gradient(
    180deg,
    rgba(232, 207, 126, 0.18) 0%,
    rgba(232, 207, 126, 0.06) 40%,
    var(--color-bg) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100px;
  background-position: top center;
}

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--frame-max));
  margin-inline: auto;
  padding: clamp(4rem, 12vh, 8rem) 1.5rem calc(var(--wheat-height) + 2rem);
}

.content {
  width: min(100%, 46rem);
  text-align: center;
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-logo-to-message);
}

.brand__title {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.brand__logo {
  width: var(--logo-width);
  height: auto;
  margin-inline: auto;
}

.message {
  margin: 0 auto;
  max-width: var(--content-max);
  font-size: clamp(1.125rem, 2.2vw, var(--font-size-message));
  font-weight: 700;
  line-height: var(--line-height-message);
  letter-spacing: 0;
}

.contact {
  list-style: none;
  margin: var(--space-message-to-contact) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.contact__item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 17.5rem;
  text-align: left;
  font-size: var(--font-size-contact);
  font-weight: 400;
  line-height: var(--line-height-contact);
}

.contact__icon {
  flex-shrink: 0;
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--color-icon);
  margin-top: 0.1rem;
}

.contact__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* Wheat strip — full-bleed, responsive */
.wheat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: var(--wheat-height);
  pointer-events: none;
  overflow: hidden;
  transform: translateY(18%);
  animation: wheat-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

.wheat__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Soft fade over wheat base — Figma Rectangle 8 */
.wheat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(1.5rem, 4vw, 2.7rem);
  background: linear-gradient(
    180deg,
    rgba(249, 246, 242, 0) 0%,
    var(--color-fade-bottom) 100%
  );
  mix-blend-mode: normal;
  opacity: 0.85;
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wheat-in {
  from {
    opacity: 0;
    transform: translateY(calc(18% + 1.25rem));
  }
  to {
    opacity: 1;
    transform: translateY(18%);
  }
}

@media (max-width: 720px) {
  .contact {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .contact__item {
    max-width: 20rem;
  }

  .main {
    padding-bottom: calc(var(--wheat-height) + 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .contact,
  .wheat {
    animation: none;
  }
}
