/* =========================================================================
   OnlyMore — plain HTML/CSS/JS replica of the React/Tailwind app.
   Dark lilac theme, liquid glass, animated gradient. No framework required.
   ========================================================================= */

:root {
  --bg: #2e2140;
  --lilac: #bfa2ff;
  --lilac-soft: #d8b4f8;
  --pink: #ffb6c1;
  --white: #fffdfe;
  --muted: rgba(255, 253, 254, 0.6);
  --border: rgba(191, 162, 255, 0.2);
}

* { box-sizing: border-box; }
html, body, #root {
  margin: 0;
  background-color: var(--bg) !important;
  min-height: 100vh;
  width: 100%;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--white);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #2e2140, #3b2a55, #523b75, #3b2a55, #2e2140, #1e1b2e);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
  opacity: 0;
  animation: gradientShift 25s ease infinite, fadeIn .3s ease-out forwards;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeIn { to { opacity: 1; } }

.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }

.gradient-text {
  background: linear-gradient(135deg, #bfa2ff 0%, #d4b5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Liquid glass core effects (ported 1:1) ------------------------------- */
.liquid-glass-elevated {
  background: rgba(58, 45, 76, 0.4);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-bottom: 1px solid rgba(191, 162, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(191, 162, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2);
}
.liquid-glass-base {
  background: rgba(42, 35, 59, 0.25);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 253, 254, 0.15);
  box-shadow: inset 0 0 30px rgba(255, 253, 254, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.liquid-glass-card {
  background: linear-gradient(135deg, rgba(46, 33, 64, 0.2), rgba(59, 42, 85, 0.15));
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid rgba(191, 162, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 0 40px rgba(191, 162, 255, 0.1);
  transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* ---- Nav ------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 1rem 0;
}
.nav__shell {
  max-width: 1152px; margin: 0 auto;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  height: 3.5rem;
  position: relative;
}
.nav__links { display: none; align-items: center; gap: 2.5rem; }
.nav__links--left { justify-content: flex-end; }
.nav__links a {
  font-size: 0.875rem; font-weight: 500; color: rgba(255, 253, 254, 0.7);
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__logo img { height: 3.2rem; width: auto; }
.nav__toggle {
  display: flex; align-items: center; justify-content: center;
  position: absolute; right: 1rem;
  width: 40px; height: 40px; border-radius: 0.75rem;
  background: rgba(42, 35, 59, 0.25);
  border: 1px solid rgba(255, 253, 254, 0.15);
  color: #fff;
}
.nav__toggle svg { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .nav { padding-top: 1rem; }
  .nav__shell { padding: 0 2rem; gap: 2.5rem; justify-content: center; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 40; display: none;
  align-items: center; justify-content: center;
  background: rgba(46, 33, 64, 0.5);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}
.nav-overlay.is-open { display: flex; animation: fadeIn .3s ease-out; }
.nav-overlay__links { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.nav-overlay__links a { font-size: 1.5rem; font-weight: 500; color: rgba(255, 253, 254, 0.9); }
.nav-overlay__links a[aria-current="page"] { color: #fff; }
@media (min-width: 768px) { .nav-overlay { display: none !important; } }

/* ---- Hero -------------------------------------------------------------------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 5rem 1rem 2rem; position: relative; z-index: 10;
}
.hero .container { display: flex; flex-direction: column-reverse; align-items: center; gap: 2rem; }
.hero__copy { width: 100%; text-align: center; }
.hero__logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.hero__logo img { width: 16rem; height: auto; }
.hero__tagline { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; letter-spacing: -0.01em; }
.hero__lede {
  font-size: 1.125rem; font-weight: 300; line-height: 1.7; color: #fff;
  max-width: 32rem; margin: 0 auto 1.5rem;
}
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center;
  color: rgba(255, 253, 254, 0.8); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero__badges span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero__badges svg { width: 15px; height: 15px; color: var(--lilac-soft); }
.hero__mockups { position: relative; width: 240px; height: 280px; margin: 0 auto; }
.hero__mockups .mockup { position: absolute; width: 130px; border-radius: 1.4rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.55); }
.hero__mockups .mockup--back { left: 0; top: 24px; transform: rotate(-12deg); z-index: 1; }
.hero__mockups .mockup--front { right: 0; top: 0; transform: rotate(6deg); z-index: 2; }

@media (min-width: 768px) {
  .hero .container { flex-direction: row; justify-content: center; gap: 4rem; }
  .hero__copy { width: 50%; text-align: left; }
  .hero__logo { justify-content: flex-start; }
  .hero__logo img { width: 22rem; }
  .hero__tagline { font-size: 1.875rem; }
  .hero__lede { font-size: 1.25rem; margin-left: 0; }
  .hero__badges { justify-content: flex-start; font-size: 0.8rem; }
  .hero__mockups { width: 400px; height: 500px; }
  .hero__mockups .mockup { width: 240px; }
  .hero__mockups .mockup--back { top: 40px; }
}

/* ---- Download buttons ---------------------------------------------------- */
.download-row { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 640px) { .download-row { flex-direction: row; justify-content: center; } }
.hero__copy .download-row { align-items: center; }
@media (min-width: 768px) { .hero__copy .download-row { align-items: flex-start; justify-content: flex-start; } }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  background: rgba(255, 253, 254, 0.14);
  border: 1px solid rgba(255, 253, 254, 0.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; padding: 0.9rem 1.6rem; border-radius: 0.9rem;
  font-weight: 600; transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
  width: 100%; max-width: 280px;
}
@media (min-width: 640px) { .store-btn { width: auto; } }
.store-btn:hover { background: rgba(255, 253, 254, 0.24); transform: scale(1.04); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn__text { text-align: left; line-height: 1.2; }
.store-btn__text small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.8; }
.store-btn__text strong { display: block; font-size: 0.95rem; font-weight: 700; }

/* ---- Feature sections ------------------------------------------------------ */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,253,254,.2), transparent); }
.feature {
  padding: 5rem 1rem; position: relative; z-index: 10;
}
.feature.on-white { background: #fff; color: #29202e; }
.feature .container {
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.feature__media { width: 100%; max-width: 250px; }
.feature__media img { width: 100%; height: auto; border-radius: 2.2rem; }
.feature__media--wide { max-width: 340px; }
.feature__media--wide img { border-radius: 0; }
.feature__text { width: 100%; text-align: center; }
.feature__text h2 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 0 0 1rem;
  color: #fff;
}
.feature.on-white .feature__text h2 { color: #1a1420; }
.feature__text p {
  font-size: 1.1rem; font-weight: 300; line-height: 1.6; max-width: 32rem; margin: 0 auto;
  color: rgba(255,253,254,.92);
}
.feature.on-white .feature__text p { color: #55495f; }

@media (min-width: 768px) {
  .feature .container { flex-direction: row; justify-content: center; gap: 3.5rem; }
  .feature.reverse .container { flex-direction: row-reverse; }
  .feature__text { text-align: left; width: 50%; }
  .feature__text p { margin: 0; }
  .feature__media { width: 50%; display: flex; }
  .feature.reverse .feature__media { justify-content: flex-end; }
  .feature__text h2 { font-size: 3.5rem; }
  .feature__text p { font-size: 1.35rem; }
}

/* ---- Community section ------------------------------------------------------ */
.community { padding: 6rem 1rem; text-align: center; position: relative; z-index: 10; }
.community h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin: 0 0 1rem; }
.community p { font-size: 1.1rem; font-weight: 300; color: #fff; max-width: 42rem; margin: 0 auto; }
.community p.lead { font-size: 1.3rem; margin-bottom: .5rem; }
.community .cta { margin-top: 2.5rem; transition: transform .3s ease; }
.community .cta:hover { transform: scale(1.04); }
@media (min-width: 768px) { .community h2 { font-size: 3.5rem; } .community p.lead { font-size: 1.8rem; } }

/* ---- Footer ------------------------------------------------------------------ */
.footer { margin-top: 4rem; border-radius: 2.5rem 2.5rem 0 0; border-top: 1px solid rgba(255,253,254,.1); }
.footer__inner { max-width: 1152px; margin: 0 auto; padding: 4rem 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.footer__brand span { font-size: 1.7rem; font-weight: 800; }
.footer__brand p { color: rgba(255,253,254,.6); font-size: 1rem; line-height: 1.6; margin-top: 1rem; }
.footer h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin: 0 0 1.2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer a { color: rgba(255,253,254,.6); font-size: 0.95rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__base { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(191,162,255,.2); text-align: center; color: rgba(255,253,254,.6); font-size: 0.95rem; }

/* ---- Legal pages (markdown) --------------------------------------------------- */
.legal { padding: 6rem 1rem 4rem; position: relative; z-index: 10; }
.legal .container { max-width: 800px; }
.legal-doc h1 { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 1.5rem; }
.legal-doc h2 { font-size: 1.4rem; font-weight: 700; color: var(--lilac-soft); margin: 2rem 0 .8rem; }
.legal-doc h3 { font-size: 1.15rem; font-weight: 600; color: #fff; margin: 1.4rem 0 .6rem; }
.legal-doc p { color: rgba(255,253,254,.85); line-height: 1.75; margin: 0 0 1rem; }
.legal-doc ul { color: rgba(255,253,254,.85); line-height: 1.75; margin: 0 0 1rem; padding-left: 1.4rem; }
.legal-doc li { margin-bottom: .4rem; }
.legal-doc strong { color: #fff; }
.legal-doc a { color: var(--lilac-soft); text-decoration: underline; }
.legal-doc hr { border: none; border-top: 1px solid rgba(191,162,255,.2); margin: 2rem 0; }

/* ---- About page ---------------------------------------------------------------- */
.about-hero { padding: 7rem 1rem 3rem; text-align: center; position: relative; z-index: 10; }
.about-hero h1 { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 1rem; }
.about-hero p { font-size: 1.05rem; color: rgba(255,253,254,.85); max-width: 44rem; margin: 0 auto; line-height: 1.6; }
@media (min-width: 640px) { .about-hero h1 { font-size: 2.4rem; } .about-hero p { font-size: 1.15rem; } }
.about-block { padding: 3.5rem 1rem; }
.about-block.on-white { background: #fff; color: #29202e; }
.about-block .container { max-width: 800px; }
.about-block h2 { font-size: 1.7rem; font-weight: 800; margin: 0 0 1rem; }
.about-block.on-white h2 { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-block:not(.on-white) h2 { color: #fff; }
.about-block p { font-size: 1rem; line-height: 1.7; margin: 0 0 1rem; }
.about-block.on-white p { color: #40353f; }
.about-block:not(.on-white) p { color: rgba(255,253,254,.85); }
.about-block strong { font-weight: 700; }
.about-block.on-white strong { color: #1a1420; }
.about-block:not(.on-white) strong { color: #fff; }

/* ---- 404 -------------------------------------------------------------------------- */
.notfound {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden; text-align: center; padding: 1.5rem;
  background: linear-gradient(-45deg, #2e2140, #3b2a55, #523b75, #3b2a55, #2e2140, #1e1b2e);
  background-size: 400% 400%; animation: gradientShift 25s ease infinite;
}
.notfound__code { font-size: 6rem; font-weight: 800; margin: 0 0 2rem; letter-spacing: -0.04em; }
.notfound__card { border-radius: 1.8rem; padding: 2.2rem 1.6rem; max-width: 42rem; margin: 0 auto; }
.notfound__card h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin: 0 0 .8rem; }
.notfound__card p { color: rgba(255,253,254,.9); font-weight: 300; line-height: 1.6; margin: 0 0 1.6rem; }
.notfound__actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .notfound__actions { flex-direction: row; } .notfound__code { font-size: 9rem; } }
.nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 0.9rem 2rem; border-radius: 999px; font-weight: 600; font-size: 1.05rem;
  border: 2px solid transparent; transition: transform .3s ease;
}
.nf-btn--primary { background: var(--lilac); color: #241a33; }
.nf-btn--outline { background: transparent; border-color: rgba(191,162,255,.5); color: #fff; }
.nf-btn:hover { transform: scale(1.05); }
.nf-links { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,253,254,.1); }
.nf-links p { font-size: .78rem; color: rgba(255,253,254,.6); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; }
.nf-links .links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.nf-links a { font-size: .85rem; color: rgba(255,253,254,.75); padding: .4rem .9rem; border-radius: 999px; background: rgba(255,253,254,.06); }
.nf-links a:hover { color: #fff; background: rgba(255,253,254,.12); }

/* ---- Scrollbar --------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(191,162,255,.3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(191,162,255,.5); }
