:root {
  --ink: #1a1714;
  --ink-soft: #4a433c;
  --paper: #fff7f0;
  --coral: #d62828;
  --coral-deep: #b01e1e;
  --teal: #0f8f7b;
  --teal-soft: #d7f3ed;
  --sand: #ffe8d6;
  --sky: #d9ecff;
  --white: #ffffff;
  --line: rgba(26, 23, 20, 0.1);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.blob-a {
  width: 42vw;
  height: 42vw;
  min-width: 280px;
  min-height: 280px;
  background: var(--sand);
  top: -10%;
  left: -8%;
}

.blob-b {
  width: 36vw;
  height: 36vw;
  min-width: 240px;
  min-height: 240px;
  background: var(--sky);
  top: 20%;
  right: -12%;
  animation-delay: -4s;
}

.blob-c {
  width: 30vw;
  height: 30vw;
  min-width: 200px;
  min-height: 200px;
  background: var(--teal-soft);
  bottom: 5%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 240, 0.78);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: var(--coral);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 28% 22% 32% 22%;
  border: 2px solid var(--paper);
  border-radius: 0.25rem 0.25rem 0.15rem 0.25rem;
  border-bottom-width: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 62% 70%, 40% 100%, 40% 70%, 0 70%);
}

.nav {
  display: none;
  gap: 1.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.header-cta:hover {
  background: var(--coral);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  min-height: calc(100svh - 4.2rem);
  padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 34rem;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--coral);
  animation: rise 0.9s var(--ease) both;
}

.headline {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  letter-spacing: -0.03em;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.support {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 28rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

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

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

.download-row.center {
  justify-content: center;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 10.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.dl-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.dl-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dl-btn small {
  font-size: 0.62rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dl-btn strong {
  font-size: 0.95rem;
  font-weight: 700;
}

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

.dl-google:hover { background: #1a73e8; }
.dl-ios:hover { background: #222; }
.dl-apk {
  background: var(--teal);
}
.dl-apk:hover { background: #0b7363; }

.dl-btn.pulse {
  animation: pulse 0.9s var(--ease);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 61, 61, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(226, 61, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 61, 61, 0); }
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  animation: rise 1s var(--ease) 0.2s both;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 280px);
  aspect-ratio: 9 / 17.5;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2420, #151210);
  box-shadow: 0 28px 60px rgba(26, 23, 20, 0.28);
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff9f4 0%, #ffe8dc 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), #ff8a65);
}

.chat-header strong {
  display: block;
  font-size: 0.85rem;
}

.chat-header small {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.chat-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem;
  overflow: hidden;
}

.bubble {
  max-width: 82%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 500;
}

.bubble.in {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
}

.bubble.out {
  align-self: flex-end;
  background: var(--coral);
  color: var(--paper);
}

.chat-input {
  margin: 0.5rem 0.75rem 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.float-1 { animation: bob 3.2s ease-in-out infinite; }
.float-2 { animation: bob 3.2s ease-in-out 0.4s infinite; }
.float-3 { animation: bob 3.2s ease-in-out 0.8s infinite; }
.float-4 { animation: bob 3.2s ease-in-out 1.2s infinite; }

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

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(26, 23, 20, 0.18);
  z-index: 1;
  animation: spin 28s linear infinite;
}

.orbit-1 {
  width: min(92%, 360px);
  aspect-ratio: 1;
}

.orbit-2 {
  width: min(70%, 270px);
  aspect-ratio: 1;
  animation-direction: reverse;
  animation-duration: 22s;
  border-style: solid;
  border-color: rgba(15, 143, 123, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.section-head.light h2,
.section-head.light p {
  color: var(--paper);
}

.section-head.light p {
  opacity: 0.85;
}

.features {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.feature {
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

/* Moments */
.moments {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3rem);
  overflow: hidden;
}

.moments-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 23, 20, 0.88), rgba(226, 61, 61, 0.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23ffffff' opacity='0.12'/%3E%3Ccircle cx='100' cy='60' r='1.5' fill='%23ffffff' opacity='0.1'/%3E%3Ccircle cx='60' cy='120' r='2' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E");
  background-size: cover, 160px 160px;
  z-index: 0;
}

.moments .section-head,
.moment-strip {
  position: relative;
  z-index: 1;
}

.moment-strip {
  display: grid;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.moment {
  margin: 0;
}

.moment-art {
  height: 180px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

.art-a {
  background-image:
    linear-gradient(160deg, rgba(255, 232, 214, 0.35), rgba(226, 61, 61, 0.25)),
    radial-gradient(circle at 30% 40%, #ffb4a2 0%, transparent 45%),
    linear-gradient(120deg, #ffd6c2, #f28b82);
}

.art-b {
  background-image:
    linear-gradient(160deg, rgba(217, 236, 255, 0.4), rgba(15, 143, 123, 0.25)),
    radial-gradient(circle at 70% 30%, #9ad4c8 0%, transparent 40%),
    linear-gradient(140deg, #b8e0d8, #7eb6e8);
}

.art-c {
  background-image:
    linear-gradient(160deg, rgba(26, 23, 20, 0.2), rgba(226, 61, 61, 0.35)),
    radial-gradient(circle at 50% 70%, #ff8a65 0%, transparent 50%),
    linear-gradient(160deg, #3d2c2c, #e23d3d);
}

.moment figcaption {
  margin-top: 0.65rem;
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
}

/* Download */
.download {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3rem);
}

.download-panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--sand), var(--sky) 55%, var(--teal-soft));
}

.download-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.download-panel > p {
  margin: 0.75rem auto 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.download-panel .download-row {
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.2rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--coral);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet+ */
@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .feature {
    border-bottom: 0;
    padding: 0;
  }

  .moment-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .moment-art {
    height: 220px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding-inline: clamp(1.2rem, 4vw, 3rem);
  }
}

/* Desktop */
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }

  .phone {
    width: 300px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
