:root {
  --color-cream: #f1e8d6;
  --color-cream-soft: #f7f0e2;
  --color-wine-deep: #5a382f;
  --color-gold: #a98d62;
  --color-wood: #745845;
  --color-text: #4d3f34;
  --color-shadow: rgba(69, 34, 24, 0.26);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 20% 20%, rgba(169, 141, 98, 0.16), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(111, 66, 56, 0.08), transparent 36%),
    linear-gradient(140deg, var(--color-cream), var(--color-cream-soft));
  background-size: 130% 130%, 130% 130%, 100% 100%;
  animation: emberFlow 14s ease-in-out infinite alternate;
  overflow: hidden;
}

.landing {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.55rem, 2.1vh, 1.25rem) clamp(0.65rem, 2.6vw, 1.45rem);
}

.hero-card {
  width: min(92vw, 900px);
  max-height: calc(100dvh - clamp(1.1rem, 4.2vh, 2.5rem));
  padding: clamp(0.35rem, 1.2vh, 0.65rem);
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.66),
      rgba(255, 255, 255, 0.43)
    ),
    repeating-linear-gradient(
      45deg,
      rgba(114, 83, 58, 0.018) 0 2px,
      rgba(255, 255, 255, 0.02) 2px 4px
    );
  border: 1px solid rgba(181, 142, 76, 0.42);
  box-shadow:
    0 16px 34px var(--color-shadow),
    inset 0 0 0 2px rgba(169, 141, 98, 0.16);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation:
    revealUp 700ms ease-out 70ms both,
    goldenGlow 8s ease-in-out 900ms infinite;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(181, 142, 76, 0.65),
    transparent
  );
  pointer-events: none;
}

.hero-card::before {
  top: 12px;
}

.hero-card::after {
  bottom: 12px;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.logo-wrapper {
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  animation: revealUp 720ms ease-out 190ms both;
  overflow: hidden;
}

.logo-wrapper img {
  display: block;
  width: 100%;
  max-height: min(66dvh, 560px);
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

h1 {
  margin: clamp(0.5rem, 1.8vh, 0.95rem) 0 0.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.28rem, 2.65vw, 2.15rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-wine-deep);
  letter-spacing: 0.01em;
  animation: revealUp 760ms ease-out 290ms both;
}

.brand-signature {
  margin: clamp(0.5rem, 1.6vh, 0.8rem) 0 0.1rem;
  color: var(--color-wood);
  font-size: clamp(0.56rem, 0.8vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  animation: revealUp 800ms ease-out 360ms both;
}

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

@keyframes emberFlow {
  from {
    background-position:
      0% 0%,
      100% 100%,
      50% 50%;
  }
  to {
    background-position:
      12% 8%,
      88% 92%,
      50% 50%;
  }
}

@keyframes goldenGlow {
  0%,
  100% {
    box-shadow:
      0 16px 34px var(--color-shadow),
      inset 0 0 0 2px rgba(169, 141, 98, 0.16);
  }
  50% {
    box-shadow:
      0 18px 38px rgba(69, 34, 24, 0.3),
      inset 0 0 0 2px rgba(181, 142, 76, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .hero-card,
  .logo-wrapper,
  h1,
  .brand-signature {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .hero-card {
    border-radius: 18px;
    width: min(94vw, 560px);
    max-height: calc(100dvh - 1.2rem);
    padding: 0.3rem;
  }

  .logo-wrapper {
    border-radius: 10px;
  }

  .logo-wrapper img {
    max-height: min(62dvh, 470px);
    border-radius: 10px;
  }

  .brand-signature {
    letter-spacing: 0.08em;
  }
}

@media (max-height: 740px) {
  .landing {
    padding: 0.45rem 0.6rem;
  }

  .hero-card {
    max-height: calc(100dvh - 0.9rem);
    padding: 0.28rem;
  }

  .logo-wrapper img {
    max-height: min(60dvh, 420px);
  }

  h1 {
    font-size: clamp(1.08rem, 2.2vw, 1.7rem);
    margin-top: 0.45rem;
  }

  .brand-signature {
    font-size: clamp(0.52rem, 0.72vw, 0.64rem);
    margin-top: 0.4rem;
  }
}
