:root {
  --ivory: #fffdf2;
  --cream: #fff5c7;
  --yellow: #ffe446;
  --gold: #cf9b2a;
  --leaf: #0f6b36;
  --leaf-deep: #094525;
  --brown: #7d4a16;
  --ink: #37220d;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.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;
}

.landing {
  --product-bottom-space: max(30px, calc(env(safe-area-inset-bottom) + 30px));
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(92px, calc(env(safe-area-inset-bottom) + 70px)) max(14px, env(safe-area-inset-left));
  background:
    linear-gradient(154deg, rgba(255, 255, 250, 0.98) 0%, rgba(255, 249, 219, 0.96) 43%, rgba(255, 239, 134, 0.54) 100%),
    linear-gradient(18deg, rgba(15, 107, 54, 0.1), rgba(125, 74, 22, 0.04) 42%, rgba(255, 255, 255, 0));
}

.landing::before,
.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing::before {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 244, 169, 0.18) 58%, rgba(12, 75, 39, 0.12));
}

.landing::after {
  z-index: -3;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}

.floral-field,
.flower,
.petal {
  position: absolute;
  pointer-events: none;
}

.floral-field {
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.flower {
  width: var(--size);
  height: var(--size);
  opacity: var(--alpha);
  filter: drop-shadow(0 18px 24px rgba(151, 96, 21, 0.1));
  transform: translate3d(0, 0, 0) rotate(var(--rotate));
  animation: flowerFloat var(--duration) ease-in-out infinite alternate;
}

.flower::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 9%, rgba(255, 229, 41, 0.94) 0 20%, transparent 21%),
    radial-gradient(ellipse at 82% 36%, rgba(255, 223, 28, 0.86) 0 21%, transparent 22%),
    radial-gradient(ellipse at 71% 78%, rgba(255, 232, 80, 0.78) 0 21%, transparent 22%),
    radial-gradient(ellipse at 29% 78%, rgba(255, 235, 96, 0.74) 0 21%, transparent 22%),
    radial-gradient(ellipse at 18% 36%, rgba(255, 218, 27, 0.82) 0 21%, transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(125, 74, 22, 0.22) 0 10%, transparent 11%);
}

.flower::after {
  content: "";
  position: absolute;
  left: 45%;
  bottom: 7%;
  width: 38%;
  height: 14%;
  border-radius: 999px;
  background: rgba(15, 107, 54, 0.58);
  transform: rotate(-18deg);
}

.flower-a {
  --size: 106px;
  --alpha: 0.2;
  --rotate: -18deg;
  --duration: 12s;
  left: -30px;
  top: 8%;
}

.flower-b {
  --size: 88px;
  --alpha: 0.16;
  --rotate: 22deg;
  --duration: 14s;
  right: -22px;
  top: 17%;
}

.flower-c {
  --size: 118px;
  --alpha: 0.14;
  --rotate: 8deg;
  --duration: 16s;
  left: 2%;
  bottom: 11%;
}

.flower-d {
  --size: 96px;
  --alpha: 0.13;
  --rotate: -30deg;
  --duration: 13s;
  right: -24px;
  bottom: 18%;
}

.petal {
  width: var(--w);
  height: var(--h);
  left: var(--x);
  top: var(--y);
  border-radius: 82% 18% 78% 20%;
  opacity: var(--alpha);
  background: linear-gradient(155deg, rgba(255, 248, 126, 0.9), rgba(255, 219, 37, 0.64) 48%, rgba(255, 244, 176, 0.22));
  box-shadow: inset -6px -4px 12px rgba(125, 74, 22, 0.07);
  transform: rotate(var(--rotate));
  animation: petalDrift var(--duration) ease-in-out infinite alternate;
}

.petal-a {
  --w: 20px;
  --h: 42px;
  --x: 18%;
  --y: 15%;
  --alpha: 0.38;
  --rotate: 19deg;
  --duration: 10s;
}

.petal-b {
  --w: 16px;
  --h: 34px;
  --x: 78%;
  --y: 11%;
  --alpha: 0.3;
  --rotate: -34deg;
  --duration: 12s;
}

.petal-c {
  --w: 18px;
  --h: 38px;
  --x: 86%;
  --y: 46%;
  --alpha: 0.24;
  --rotate: 38deg;
  --duration: 11s;
}

.petal-d {
  --w: 22px;
  --h: 44px;
  --x: 9%;
  --y: 57%;
  --alpha: 0.28;
  --rotate: -22deg;
  --duration: 13s;
}

.petal-e {
  --w: 15px;
  --h: 32px;
  --x: 61%;
  --y: 82%;
  --alpha: 0.24;
  --rotate: 17deg;
  --duration: 12s;
}

.petal-f {
  --w: 17px;
  --h: 36px;
  --x: 35%;
  --y: 7%;
  --alpha: 0.22;
  --rotate: -11deg;
  --duration: 14s;
}

.contact-card {
  position: relative;
  z-index: 5;
  width: min(382px, calc(100vw - 28px));
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 251, 224, 0.54)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 28px 70px rgba(125, 74, 22, 0.14),
    0 10px 26px rgba(11, 72, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  animation: cardIn 760ms cubic-bezier(0.2, 0.8, 0.22, 1) both;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 36%, rgba(255, 228, 70, 0.2) 100%);
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(77, 41, 9, 0.14);
}

.codrose-logo {
  display: block;
  width: min(154px, 58vw);
  height: auto;
  margin: 0 auto 11px;
  filter: drop-shadow(0 8px 9px rgba(55, 34, 13, 0.1));
}

.button-stack {
  display: grid;
  gap: 9px;
}

.social-button {
  --accent: rgba(15, 107, 54, 0.18);
  --glow: rgba(207, 155, 42, 0.2);
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 53px;
  padding: 7px 14px 7px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 219, 0.58)),
    linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0));
  box-shadow:
    0 14px 28px rgba(66, 45, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  outline: 0;
  transform: translateY(12px);
  opacity: 0;
  animation: buttonIn 650ms cubic-bezier(0.2, 0.8, 0.22, 1) both;
  animation-delay: calc(150ms + var(--index, 0) * 82ms);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-button:nth-child(1) {
  --index: 0;
}

.social-button:nth-child(2) {
  --index: 1;
}

.social-button:nth-child(3) {
  --index: 2;
}

.social-button:nth-child(4) {
  --index: 3;
}

.social-button:nth-child(5) {
  --index: 4;
}

.social-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  background: linear-gradient(105deg, transparent 6%, rgba(255, 255, 255, 0.8) 28%, transparent 52%);
  transform: translateX(-68%);
  transition: transform 360ms ease, opacity 180ms ease;
}

.social-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 228, 70, 0.5),
    0 15px 30px rgba(66, 45, 18, 0.12);
}

.social-button:hover,
.social-button:active,
.social-button.is-pressed {
  border-color: rgba(255, 228, 70, 0.72);
  box-shadow:
    0 18px 34px rgba(66, 45, 18, 0.14),
    0 0 24px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: translateY(-1px) scale(1.015);
}

.social-button:hover::after,
.social-button:active::after,
.social-button.is-pressed::after {
  opacity: 0.58;
  transform: translateX(60%);
}

.social-button-primary {
  --accent: rgba(15, 107, 54, 0.28);
  --glow: rgba(15, 107, 54, 0.28);
  min-height: 63px;
  border-color: rgba(255, 233, 101, 0.84);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 195, 0.7)),
    linear-gradient(90deg, rgba(15, 107, 54, 0.26), rgba(255, 228, 70, 0.14));
  box-shadow:
    0 18px 36px rgba(15, 107, 54, 0.15),
    0 8px 20px rgba(207, 155, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #188d4c, #0e6335);
  box-shadow: 0 10px 18px rgba(15, 107, 54, 0.18);
}

.button-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.button-icon.facebook {
  background: linear-gradient(145deg, #3768b8, #234e94);
}

.button-icon.instagram {
  background: linear-gradient(145deg, #9b3db7, #df6a35 55%, #e5b834);
}

.button-icon.tiktok {
  background: linear-gradient(145deg, #151515, #3b342c);
}

.button-icon.youtube {
  background: linear-gradient(145deg, #d92d26, #a91f1a);
}

.button-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 1px;
  line-height: 1.1;
}

.button-copy strong {
  display: block;
  color: var(--leaf-deep);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.button-copy small {
  display: block;
  color: rgba(55, 34, 13, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.product-pack {
  position: absolute;
  z-index: -1;
  right: 50%;
  bottom: var(--product-bottom-space);
  width: clamp(190px, 54vw, 248px);
  max-width: calc(100vw - 48px);
  opacity: 0.34;
  transform: translateX(50%) rotate(-2deg);
  filter: drop-shadow(0 28px 34px rgba(90, 58, 21, 0.2));
  animation: productFloat 7.4s ease-in-out infinite alternate;
  overflow: visible;
}

.product-pack img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.footer-mark {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(9, 69, 37, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes flowerFloat {
  from {
    transform: translate3d(-4px, 4px, 0) rotate(var(--rotate)) scale(0.98);
  }
  to {
    transform: translate3d(9px, -12px, 0) rotate(calc(var(--rotate) + 8deg)) scale(1.03);
  }
}

@keyframes petalDrift {
  from {
    transform: translate3d(-4px, 6px, 0) rotate(var(--rotate));
  }
  to {
    transform: translate3d(10px, -14px, 0) rotate(calc(var(--rotate) + 26deg));
  }
}

@keyframes productFloat {
  from {
    transform: translateX(50%) translateY(2px) rotate(-1.6deg);
  }
  to {
    transform: translateX(50%) translateY(-4px) rotate(0.8deg);
  }
}

@media (min-width: 700px) {
  .contact-card {
    width: min(398px, calc(100vw - 36px));
    padding: 20px 18px 18px;
  }

  .product-pack {
    width: min(34vw, 340px);
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 34px));
    right: calc(50% - 16px);
  }
}

@media (max-width: 360px) {
  .landing {
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .contact-card {
    width: calc(100vw - 20px);
    padding: 15px 12px 13px;
  }

  .social-button {
    grid-template-columns: 40px 1fr;
    min-height: 51px;
    padding-right: 12px;
  }

  .social-button-primary {
    min-height: 60px;
  }

  .button-copy strong {
    font-size: 0.96rem;
  }

  .button-copy small {
    font-size: 0.71rem;
  }
}

@media (max-height: 700px) {
  .contact-card {
    padding-top: 14px;
    padding-bottom: 13px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .codrose-logo {
    width: min(136px, 54vw);
    margin-bottom: 9px;
  }

  .button-stack {
    gap: 8px;
  }

  .social-button {
    min-height: 49px;
  }

  .social-button-primary {
    min-height: 57px;
  }

  .product-pack {
    width: clamp(160px, 46vw, 205px);
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 24px));
    opacity: 0.26;
  }
}

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