/* ── Design tokens (from the TapFam app design system) ── */
:root {
  --bg: #f5f5f5;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-faint: #8a8a8a;
  --card: #ffffff;

  --brand-grad-top: #ffb380;
  --brand-grad-bottom: #f97316;
  --green: #22c55e;

  --font-brand: "Righteous", cursive;
  --font-display: "Nunito", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(249, 115, 22, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(255, 179, 128, 0.16), transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */
.landing {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

/* ── Left column ── */
.intro {
  max-width: 540px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 36px;
}

.brand-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* ── Right column: phone mockup ── */
.showcase {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 660;
  background: #0b0b0c;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 80px rgba(0, 0, 0, 0.28),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 30px;
  background: #0b0b0c;
  border-radius: var(--radius-pill);
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
}

.phone-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Minimal in-app overlay ── */
.screen-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* soft top + bottom scrims so UI stays legible over the photo */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 18%),
    linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 28%);
}

.ui-top {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.channel-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.2px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-bottom {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

/* Record / film button */
.record-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.record-btn::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-grad-top), var(--brand-grad-bottom));
}

/* Floating reactions */
.reactions {
  position: absolute;
  right: 26px;
  bottom: 96px;
  width: 48px;
  height: 220px;
}

.reaction {
  position: absolute;
  bottom: 0;
  font-size: 1.6rem;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: floatUp 4.5s ease-in infinite;
}

.reaction-1 { left: 6px;  animation-delay: 0s; }
.reaction-2 { left: 18px; animation-delay: 1.2s; font-size: 1.4rem; }
.reaction-3 { left: 0px;  animation-delay: 2.4s; }
.reaction-4 { left: 22px; animation-delay: 3.4s; font-size: 1.3rem; }

@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(-200px) translateX(-14px) scale(1.05); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reaction {
    animation: none;
    opacity: 1;
  }
  .reaction-1 { bottom: 150px; }
  .reaction-2 { bottom: 95px; }
  .reaction-3 { bottom: 45px; }
  .reaction-4 { bottom: 5px; }
}

/* ── Footer ── */
.footer {
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.footer a {
  color: var(--brand-grad-bottom);
  text-decoration: none;
  margin: 0 6px;
}

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

.footer .copyright {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .landing {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px;
    text-align: center;
  }

  .intro {
    max-width: 600px;
    margin: 0 auto;
  }

  .brand {
    margin-bottom: 28px;
  }

  .showcase {
    order: -1;
  }

  .headline br {
    display: none;
  }
}

@media (max-width: 420px) {
  .phone {
    width: 280px;
  }
}
