:root {
  --brand: #fef102;
  --brand-soft: #fff6a8;
  --accent: #ff5a00;
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --muted: #6a6a6a;
  --paper: #fffef6;
  --line: rgba(17, 17, 17, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-logo: "Fredoka", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(90% 60% at 85% 8%, rgba(255, 90, 0, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--brand) 0%, #ffe94f 42%, var(--paper) 78%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* —— Brand wordmark —— */
.logo {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-sm {
  font-size: 1.55rem;
}

.logo-hero {
  font-size: clamp(3.6rem, 11vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  animation: rise 0.85s var(--ease) both;
}

.logo-foot {
  font-size: 1.15rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.top-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  min-height: calc(100svh - 76px);
  padding: 40px 24px 56px;
}

.headline {
  margin: 18px 0 0;
  max-width: 14ch;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
  animation: rise 0.85s var(--ease) 0.08s both;
}

.lede {
  margin: 14px 0 0;
  max-width: 32ch;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
  animation: rise 0.85s var(--ease) 0.14s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 0.85s var(--ease) 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--brand);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border: 1.5px solid rgba(17, 17, 17, 0.14);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  min-height: 56px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  animation: float-in 1s var(--ease) 0.15s both;
}

.glow {
  position: absolute;
  width: min(380px, 85%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.28) 0%, transparent 70%);
  animation: pulse 5s ease-in-out infinite;
}

.phone {
  position: relative;
  width: min(240px, 58vw);
  aspect-ratio: 9 / 18.2;
  animation: float 5.5s ease-in-out infinite;
}

.phone-bezel {
  height: 100%;
  padding: 9px;
  border-radius: 34px;
  background: #141414;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--brand);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 38%;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #141414;
}

.phone-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.how h2,
.download h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.steps h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
  font-weight: 500;
}

.download {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.download-inner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
}

.download-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
}

.download-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}

.download-copy .btn {
  margin-top: 8px;
}

.download-note {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  max-width: 36ch;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
}

.foot-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

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

  .hero-visual {
    order: -1;
    min-height: 300px;
  }

  .phone {
    width: min(200px, 48vw);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .download-inner {
    flex-direction: column;
    gap: 16px;
  }
}

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