:root {
  --ink: #0b0b0b;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --radius: 22px;
  --font: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, #ffffff 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #ebebeb 0%, transparent 50%),
    linear-gradient(180deg, #f7f7f7 0%, #efefef 45%, #f5f5f5 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 48px) 0;
}

.mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  animation: rise 0.7s ease 0.05s forwards;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 4vw, 48px) clamp(40px, 6vh, 72px);
}

.hero-copy {
  max-width: 560px;
}

.brand {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.lede {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #222;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.cta-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.hero-stage {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.phone {
  width: min(100%, 320px);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.12));
}

.phone-bezel {
  position: relative;
  aspect-ratio: 9 / 17.5;
  border-radius: 36px;
  border: 1px solid #d8d8d8;
  background: var(--soft);
  overflow: hidden;
  padding: 14px 12px 12px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 88px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
}

.feed {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--soft);
}

.card {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  animation: cardCycle 12s ease-in-out infinite;
}

.card-b {
  animation-delay: -4s;
}

.card-c {
  animation-delay: -8s;
}

.cat {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hook {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.body {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.take {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
}

.take .cat {
  margin-bottom: 6px;
  color: var(--ink);
}

.take p:last-child {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.strip {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 88px;
  text-align: center;
}

.strip h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.strip p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 48px) 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 48px) 72px;
}

.legal-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.legal-meta {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.legal li {
  margin: 0 0 8px;
  color: var(--muted);
}

.legal li strong {
  color: var(--ink);
  font-weight: 700;
}

.legal a {
  color: var(--ink);
  font-weight: 700;
}

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

@keyframes cardCycle {
  0%,
  6% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  12%,
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  36%,
  100% {
    opacity: 0;
    transform: translateY(-36px) scale(0.98);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta {
    justify-content: center;
  }

  .brand {
    font-size: clamp(40px, 12vw, 64px);
  }

  .phone {
    width: min(100%, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark,
  .brand,
  .hero h1,
  .lede,
  .cta,
  .hero-stage,
  .card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .card-b,
  .card-c {
    display: none;
  }
}
