:root {
  --ink: #282421;
  --muted: #6f665f;
  --paper: #f7f3ee;
  --paper-deep: #eee4da;
  --white: #fffdfb;
  --terracotta: #bd6f50;
  --terracotta-dark: #8f4d35;
  --line: rgba(40, 36, 33, 0.14);
  --shadow: 0 28px 70px rgba(62, 42, 31, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 1.18rem;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 15px;
  height: 19px;
  border-radius: 60% 40% 58% 42%;
  background: var(--terracotta);
  transform: rotate(34deg);
  box-shadow: inset -4px -3px 0 rgba(143, 77, 53, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a {
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  opacity: 0.65;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 11px 18px;
  border-radius: 100px;
}

.hero {
  width: min(1240px, calc(100% - 48px));
  margin: 12px auto 0;
  min-height: 710px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  padding: 64px 0 110px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--terracotta-dark);
  font-size: 0.77rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: balance;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 7.8vw, 8.8rem);
  font-weight: 400;
  line-height: 0.81;
  letter-spacing: -0.07em;
}

h1 em {
  color: var(--terracotta);
  font-weight: 400;
}

.hero-intro {
  max-width: 520px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

.hero-art {
  position: relative;
  min-height: 570px;
}

.sun-disc {
  position: absolute;
  inset: 8% 1% auto auto;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8b9a3, #c97958 62%, #b25d42);
}

.card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 9px solid rgba(255, 253, 251, 0.88);
  border-radius: 27px;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-large {
  z-index: 2;
  left: 2%;
  top: 12%;
  width: 56%;
  transform: rotate(-4deg);
}

.card-small {
  z-index: 3;
  width: 43%;
}

.card-feed {
  top: 4%;
  right: 0;
  transform: rotate(4deg);
}

.card-story {
  right: 8%;
  bottom: 2%;
  width: 39%;
  transform: rotate(7deg);
}

.product {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
  padding: clamp(90px, 12vw, 170px) max(24px, calc((100vw - 1240px) / 2));
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product::before {
  content: "";
  position: absolute;
  left: -8vw;
  bottom: -18vw;
  width: 38vw;
  height: 38vw;
  min-width: 380px;
  min-height: 380px;
  border-radius: 50%;
  background: rgba(189, 111, 80, 0.08);
}

.product-heading {
  position: relative;
  z-index: 2;
}

.keeplii-logo {
  width: min(370px, 85%);
  margin-bottom: 42px;
}

.product h2 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.product-heading > p:not(.eyebrow) {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 720;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 13px 30px rgba(40, 36, 33, 0.16);
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
}

.product-showcase {
  position: relative;
  min-height: 600px;
}

.product-showcase::before {
  content: "";
  position: absolute;
  inset: 6% 0 5% 9%;
  border-radius: 44% 56% 50% 50%;
  background: var(--paper-deep);
  transform: rotate(-7deg);
}

.showcase-main {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 10%;
  width: min(420px, 70%);
  margin: 0;
  border: 13px solid var(--white);
  border-radius: 35px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.showcase-main img {
  width: 100%;
}

.showcase-quote {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 5%;
  width: min(360px, 60%);
  padding: 34px;
  border-radius: 25px;
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}

.showcase-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 44px;
  padding: 78px 0 86px;
  color: var(--muted);
}

.brand-footer {
  color: var(--ink);
}

.footer p {
  margin: 22px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-column h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer a:hover {
  color: var(--terracotta-dark);
}

@media (max-width: 920px) {
  .hero,
  .product {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-art {
    min-height: 620px;
    margin-top: 18px;
  }

  .product-showcase {
    min-height: 560px;
  }

  .footer {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .footer {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    padding-top: 20px;
  }

  .nav > a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 72px;
  }

  h1 {
    font-size: clamp(4rem, 19vw, 6rem);
  }

  .hero-intro {
    margin-top: 30px;
  }

  .hero-art {
    min-height: 450px;
  }

  .card {
    border-width: 7px;
    border-radius: 20px;
  }

  .card-large {
    width: 61%;
  }

  .card-small {
    width: 46%;
  }

  .product {
    padding: 84px 24px;
  }

  .keeplii-logo {
    margin-bottom: 28px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-showcase {
    min-height: 440px;
  }

  .showcase-main {
    left: 3%;
    width: 72%;
    border-width: 9px;
  }

  .showcase-quote {
    width: 62%;
    padding: 25px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    padding: 58px 0;
  }

  .footer > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card-large {
    animation: settle-left 800ms ease-out both;
  }

  .card-feed {
    animation: settle-right 900ms 80ms ease-out both;
  }

  .card-story {
    animation: settle-story 900ms 150ms ease-out both;
  }

  @keyframes settle-left {
    from {
      opacity: 0;
      transform: translateY(28px) rotate(-8deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(-4deg);
    }
  }

  @keyframes settle-right {
    from {
      opacity: 0;
      transform: translateY(-25px) rotate(9deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(4deg);
    }
  }

  @keyframes settle-story {
    from {
      opacity: 0;
      transform: translateY(28px) rotate(12deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(7deg);
    }
  }
}
