/* ============ WellNest Apps ============ */
:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eef2f8;
  --muted: #93a0b4;
  --mint: #34f5c5;
  --blue: #4f8cff;
  --violet: #a06bff;
  --grad: linear-gradient(120deg, var(--mint), var(--blue) 55%, var(--violet));
  --radius: 22px;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font-body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.blob-1 { width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(52,245,197,0.35), transparent 65%); top: -18vw; left: -12vw; animation: drift 22s ease-in-out infinite alternate; }
.blob-2 { width: 48vw; height: 48vw; background: radial-gradient(circle, rgba(79,140,255,0.32), transparent 65%); top: 16vh; right: -16vw; animation: drift 26s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(160,107,255,0.25), transparent 65%); bottom: -14vw; left: 28vw; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 22px;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); padding: 6px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--grad); color: #04121c;
  box-shadow: 0 8px 30px rgba(52, 245, 197, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(52, 245, 197, 0.4); }
.btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.11); }
.btn-outline { background: transparent; border: 1.5px solid var(--card-border); color: var(--text); width: 100%; justify-content: center; margin-top: auto; }
.btn-outline:hover { border-color: var(--accent, var(--mint)); color: var(--accent, var(--mint)); }
.play-tri { width: 14px; height: 14px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 150px 22px 90px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  min-height: 92vh;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: rgba(52, 245, 197, 0.09); border: 1px solid rgba(52, 245, 197, 0.25);
  color: var(--mint); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem); line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.13rem; max-width: 34rem; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.stats { display: flex; align-items: center; gap: 26px; }
.stat strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; display: block; }
.stat strong i { font-style: normal; color: #ffce4d; font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: 0.82rem; }
.stat-div { width: 1px; height: 38px; background: var(--card-border); }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 18.6;
  border-radius: 42px; padding: 12px; position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 80px rgba(79,140,255,0.13);
  animation: hover-float 7s ease-in-out infinite;
}
@keyframes hover-float { 0%,100% { transform: translateY(0) rotate(-1.2deg);} 50% { transform: translateY(-14px) rotate(-1.2deg);} }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #05080f; border-radius: 999px; z-index: 2; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #0b1322, #0a0f1c);
  padding: 58px 16px 16px; display: flex; flex-direction: column; gap: 11px;
}
.phone-header { margin-bottom: 4px; }
.phone-hello { display: block; color: var(--muted); font-size: 0.72rem; }
.phone-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.phone-card {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 10px 12px;
}
.phone-card img { width: 38px; height: 38px; border-radius: 10px; }
.phone-card b { display: block; font-size: 0.8rem; }
.phone-card i { font-style: normal; color: var(--muted); font-size: 0.68rem; }
.pc-1 { animation: pop-in 0.7s 0.3s both; }
.pc-2 { animation: pop-in 0.7s 0.5s both; }
.pc-3 { animation: pop-in 0.7s 0.7s both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none;} }
.phone-ring { margin-top: auto; position: relative; display: grid; place-items: center; padding-bottom: 6px; }
.phone-ring svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255,255,255,0.08); }
.ring-fg {
  stroke: url(#rg); stroke: var(--mint); stroke-linecap: round;
  stroke-dasharray: 264; stroke-dashoffset: 264;
  animation: ring 1.6s 0.9s ease-out forwards;
}
@keyframes ring { to { stroke-dashoffset: 21; } }
.ring-label { position: absolute; text-align: center; }
.ring-label b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1; }
.ring-label span { font-size: 0.6rem; color: var(--muted); }

.float-icon {
  position: absolute; width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
  animation: hover-float 6s ease-in-out infinite;
}
.fi-1 { top: 8%; left: 4%; animation-delay: 0.6s; }
.fi-2 { top: 46%; right: 2%; animation-delay: 1.4s; width: 56px; height: 56px; }
.fi-3 { bottom: 6%; left: 10%; animation-delay: 2.1s; width: 52px; height: 52px; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 90px 22px; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 54px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- App cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.app-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); box-shadow: 0 26px 60px rgba(0,0,0,0.45); }
.app-card:hover::before { opacity: 1; }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,0,0.4); }
.app-rating {
  font-weight: 700; font-size: 0.88rem; color: #ffce4d;
  background: rgba(255, 206, 77, 0.1); border: 1px solid rgba(255, 206, 77, 0.25);
  padding: 5px 12px; border-radius: 999px;
}
.app-card h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.app-card p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.app-privacy {
  display: block; text-align: center; margin-top: 12px;
  color: var(--muted); font-size: 0.83rem; font-weight: 600;
  transition: color 0.2s;
}
.app-privacy:hover { color: var(--accent, var(--mint)); }
.tags span {
  font-size: 0.74rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  padding: 4px 11px; border-radius: 999px;
}

/* ---------- Values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(52,245,197,0.35); }
.value-emoji { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  max-width: 1180px; margin: 0 auto 90px; padding: 70px 30px; text-align: center;
  border-radius: 30px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 130% at 50% -30%, rgba(52,245,197,0.18), transparent),
    radial-gradient(60% 130% at 80% 130%, rgba(160,107,255,0.14), transparent),
    var(--card);
  border: 1px solid var(--card-border);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--card-border); padding: 44px 22px; background: rgba(5,8,15,0.6); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-note { color: var(--muted); font-size: 0.8rem; max-width: 34rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.footer-links a { color: var(--muted); font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--mint); }
.footer-copy { color: var(--muted); font-size: 0.82rem; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: center; min-height: auto; }
  .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .stats { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .app-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .value-grid { grid-template-columns: 1fr; }
  .stats { gap: 16px; }
  .btn-lg { width: 100%; justify-content: center; }
}
