:root {
  --brand: #c28c84;
  --brand-deep: #3a1d19;
  --brand-soft: #fbefec;
}

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

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

html {
  background: var(--brand);
}

body {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--brand);
  color: var(--brand-deep);
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Soft light pools + film grain give the flat brand colour some depth. */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow--a {
  width: 60vmax;
  height: 60vmax;
  top: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, rgb(255 255 255 / 0.35), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow--b {
  width: 70vmax;
  height: 70vmax;
  bottom: -35vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgb(58 29 25 / 0.55), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
.hero,
.bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(20px, 3vw, 32px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-deep);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo__mark {
  width: 30px;
  height: 30px;
}

.logo__tld {
  color: var(--brand-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgb(58 29 25 / 0.2);
  border-radius: 999px;
  background: rgb(251 239 236 / 0.35);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-deep);
  box-shadow: 0 0 0 0 rgb(58 29 25 / 0.7);
  animation: pulse 2s ease-out infinite;
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  align-content: center;
  gap: clamp(40px, 6vw, 72px);
  padding-block: 24px 48px;
}

.copy {
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    padding-block: 24px;
  }
}

.kicker {
  margin: 0 0 clamp(8px, 1.5vw, 20px);
  display: inline-block;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: var(--brand-soft);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  transform: rotate(-3deg);
  box-shadow: 0 10px 30px -10px rgb(58 29 25 / 0.6);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.title {
  margin: 0;
  font-size: clamp(64px, 20vw, 172px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff 25%, var(--brand-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lead {
  margin: clamp(16px, 2.5vw, 32px) 0 0;
  max-width: 22ch;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lead em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 960px) {
  .title {
    font-size: clamp(80px, min(11.5vw, 19svh), 172px);
  }
}

/* Visual: the storefront in a desktop browser plus a phone. Sizes use cqw so it scales as one piece. */
.visual {
  position: relative;
  container-type: inline-size;
  width: min(100%, 640px, 68svh);
  aspect-ratio: 1 / 0.92;
  justify-self: center;
  animation: rise 1s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.browser {
  position: absolute;
  top: 0;
  left: 0;
  width: 90cqw;
  overflow: hidden;
  border-radius: 2.4cqw;
  background: var(--brand-soft);
  box-shadow: 0 4cqw 8cqw -3cqw rgb(58 29 25 / 0.6);
  animation: float 8s ease-in-out infinite;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 1.5cqw 2cqw;
  background: #ead6d1;
}

.dots {
  display: flex;
  gap: 0.8cqw;
}

.dots i {
  width: 1.4cqw;
  height: 1.4cqw;
  border-radius: 50%;
  background: #c9a9a2;
}

.dots i:nth-child(1) { background: #e5484d; }
.dots i:nth-child(2) { background: #f5b83d; }
.dots i:nth-child(3) { background: #4cb86b; }

.url {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  flex: 1;
  max-width: 44cqw;
  margin-inline: auto;
  padding: 0.7cqw 1.6cqw;
  border-radius: 99px;
  background: var(--brand-soft);
  font-size: 1.7cqw;
  font-weight: 500;
}

.url svg {
  width: 1.7cqw;
  height: 1.7cqw;
}

.browser__shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31cqw;
  aspect-ratio: 9 / 19.5;
  padding: 1cqw;
  border-radius: 5cqw;
  background: var(--brand-deep);
  box-shadow: 0 4cqw 8cqw -2cqw rgb(58 29 25 / 0.7);
  animation: float 6s 0.6s ease-in-out infinite;
}

.phone__notch {
  position: absolute;
  top: 2cqw;
  left: 50%;
  z-index: 2;
  width: 8cqw;
  height: 1.9cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: var(--brand-deep);
}

.phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 4.2cqw;
}

/* Footer */
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(20px, 3vw, 32px);
  font-size: 13px;
  color: rgb(58 29 25 / 0.75);
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

@keyframes drift {
  to {
    transform: translate(-6vmax, 6vmax) scale(1.1);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(58 29 25 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(58 29 25 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* Phones: keep the copy and the visual on one screen. */
@media (max-width: 959px) {
  .hero {
    gap: 28px;
    padding-block: 8px 20px;
  }

  .visual {
    width: min(100%, 46svh);
  }
}
