/* ---------------------------------------------------------------------------
   Hova — landing site styles
   Dark, rounded, mesh-gradient aesthetic matching the app.
--------------------------------------------------------------------------- */

:root {
  --bg: #0b0b0d;
  --bg-soft: #101014;
  --card: #17171b;
  --card-2: #1e1e23;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.09);

  --green: #4cd482;
  --orange: #ff9634;
  --blue: #4d9cff;
  --purple: #9c82ff;
  --pink: #ff8cc7;

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11, 11, 13, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #000 !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 22px;
  border-radius: 16px;
  background: var(--text);
  color: #000;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.appstore svg { width: 26px; height: 26px; }
.appstore small { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.7; letter-spacing: 0.02em; }
.appstore span { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 40px; text-align: center; overflow: hidden; }
/* Animated mesh gradient — blurred color blobs that drift + scale to flow,
   matching the app's MeshGradient (blue → indigo → purple → magenta → pink). */
.mesh {
  position: absolute;
  inset: -170px -12% auto -12%;
  height: 840px;
  z-index: 0;
  pointer-events: none;
  filter: blur(66px) saturate(135%);
  opacity: 0.62;
  overflow: hidden;
}
.mesh--sm { height: 460px; inset: -140px -12% auto -12%; opacity: 0.5; }
.mesh__blob {
  position: absolute;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.mesh .b1 { background: radial-gradient(circle at center, #4d9cff, transparent 62%); top: -6%; left: 4%;  animation: mesh1 18s ease-in-out infinite alternate; }
.mesh .b2 { background: radial-gradient(circle at center, #9c82ff, transparent 62%); top: -14%; left: 32%; animation: mesh2 23s ease-in-out infinite alternate; }
.mesh .b3 { background: radial-gradient(circle at center, #ff8cc7, transparent 62%); top: 0%;  right: 4%;  animation: mesh3 20s ease-in-out infinite alternate; }
.mesh .b4 { background: radial-gradient(circle at center, #6d6bff, transparent 60%); top: 20%; left: 18%; animation: mesh4 27s ease-in-out infinite alternate; }
.mesh .b5 { background: radial-gradient(circle at center, #c96bff, transparent 60%); top: 12%; right: 20%; animation: mesh5 25s ease-in-out infinite alternate; }

@keyframes mesh1 { 0% { transform: translate(0, 0) scale(1); }     100% { transform: translate(80px, 60px) scale(1.16); } }
@keyframes mesh2 { 0% { transform: translate(0, 0) scale(1.05); }  100% { transform: translate(-74px, 44px) scale(0.9); } }
@keyframes mesh3 { 0% { transform: translate(0, 0) scale(1); }     100% { transform: translate(-92px, 72px) scale(1.2); } }
@keyframes mesh4 { 0% { transform: translate(0, 0) scale(0.95); }  100% { transform: translate(64px, -42px) scale(1.12); } }
@keyframes mesh5 { 0% { transform: translate(0, 0) scale(1.1); }   100% { transform: translate(-52px, -30px) scale(0.94); } }

/* Load-in: elements rise + fade top-to-bottom, staggered via --d (like the app). */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: riseIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }

.hero__inner { position: relative; z-index: 1; }
.hero__icon {
  width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 0.9rem; color: var(--muted-2); }

/* Hero screenshot cluster */
.hero__shots {
  position: relative; z-index: 1;
  margin-top: 64px;
  display: flex; justify-content: center; align-items: flex-end; gap: 22px;
}
.hero__shots .phone:nth-child(1) { transform: translateY(24px) rotate(-4deg); }
.hero__shots .phone:nth-child(3) { transform: translateY(24px) rotate(4deg); }

/* ---------- Phone frame ---------- */
.phone {
  width: 234px;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2a30, #141417);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
}
.phone img { border-radius: 27px; width: 100%; }

/* ---------- Features ---------- */
.section { padding: 90px 0; }
.section--tint { background: linear-gradient(180deg, transparent, var(--bg-soft) 40%, transparent); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature + .feature { margin-top: 120px; }
.feature:nth-child(even) .feature__text { order: 2; }
.feature__text .eyebrow { margin-bottom: 14px; display: inline-block; }
.feature__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.1; }
.feature__text p { color: var(--muted); font-size: 1.1rem; max-width: 460px; }
.feature__media { display: flex; justify-content: center; }
.feature__media .phone { width: 270px; }

/* eyebrow color variants */
.eyebrow.o { color: var(--orange); }
.eyebrow.b { color: var(--blue); }
.eyebrow.p { color: var(--purple); }

/* ---------- Feature grid ---------- */
.grid-head { text-align: center; margin-bottom: 54px; }
.grid-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.grid-head p { color: var(--muted); margin-top: 12px; font-size: 1.1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta__card {
  position: relative;
  border-radius: 32px;
  padding: 70px 30px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(156, 130, 255, 0.22), transparent 60%), var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 1.15rem; margin-bottom: 32px; }
.cta .hero__actions { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 46px 0 60px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted-2); font-size: 0.88rem; width: 100%; }

/* ---------- Legal pages ---------- */
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; font-weight: 700; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 1.03rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--green); }
.legal .back { display: inline-block; margin-bottom: 30px; color: var(--muted); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Keep the Download CTA, drop the section links. */
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__links { gap: 0; }
  .feature { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .feature:nth-child(even) .feature__text { order: 0; }
  .feature__text p { margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: 1fr; }
  .hero__shots .phone:nth-child(1),
  .hero__shots .phone:nth-child(3) { display: none; }
}

@media (max-width: 520px) {
  .hero { padding-top: 60px; }
  .section { padding: 64px 0; }
  .phone { width: 220px; }
  .feature__media .phone { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .mesh__blob { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   Scroll reveal stagger (grid cards, feature media)
--------------------------------------------------------------------------- */
.grid .card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------------------------------------------------------------------------
   Blog
--------------------------------------------------------------------------- */
.blog-hero { position: relative; overflow: hidden; padding: 80px 0 20px; text-align: center; }
.blog-hero__inner { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.blog-hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 40px 0 20px; }
.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); }
.post-card .tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.post-card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin: 12px 0 10px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 1rem; }
.post-card .meta { margin-top: 16px; color: var(--muted-2); font-size: 0.88rem; }

/* ---------- Article ---------- */
.article { padding: 60px 0 90px; }
.article .wrap { max-width: 720px; }
.article .back { display: inline-block; margin-bottom: 26px; color: var(--muted); font-weight: 600; }
.article header { margin-bottom: 40px; }
.article .tag { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.article h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 12px 0 14px; }
.article .meta { color: var(--muted-2); font-size: 0.92rem; }
.article__body > * { margin-bottom: 20px; }
.article__body p, .article__body li { color: rgba(255, 255, 255, 0.78); font-size: 1.12rem; line-height: 1.7; }
.article__body h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.01em; margin: 42px 0 6px; }
.article__body h3 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 4px; }
.article__body ul, .article__body ol { padding-left: 24px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article__body strong { color: var(--text); }
.article__body blockquote {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 22px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}
.cta-box {
  margin: 44px 0 8px;
  padding: 30px;
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, rgba(156, 130, 255, 0.18), transparent 60%), var(--card);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.cta-box p { color: var(--muted); margin-bottom: 20px; }
.article__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article__nav a { color: var(--muted); font-weight: 600; }
.article__nav a:hover { color: var(--text); }

@media (max-width: 700px) {
  .posts { grid-template-columns: 1fr; }
}
