/* =========================================================
   Vyo — pastel landing SPA
   1. tokens  2. base  3. layout  4. header  5. views
   6. cards   7. footer  8. motion + responsive
   ========================================================= */

/* 1. tokens ---------------------------------------------- */
:root {
  --mint: #b8ecd8;
  --mint-ink: #1c6b52;
  --blush: #ffd3de;
  --blush-ink: #a8385c;
  --lilac: #ddd4ff;
  --lilac-ink: #5842aa;
  --sky: #cfe6ff;
  --sky-ink: #2a5f96;
  --butter: #ffeeb8;

  --bg: #fdfaff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --ink: #241f31;
  --ink-soft: #5d5670;
  --line: rgba(88, 66, 170, 0.12);

  --brand: #7c5cff;
  --brand-deep: #5b3fd6;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;

  --shadow-sm: 0 2px 10px rgba(88, 66, 170, 0.07);
  --shadow: 0 14px 34px -18px rgba(88, 66, 170, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(88, 66, 170, 0.45);

  --shell: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. base ------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.4em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 800;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.14rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--ink); }

code {
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--lilac);
  color: var(--lilac-ink);
  font-size: 0.9em;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.muted { color: var(--ink-soft); font-size: 0.95rem; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  width: auto; height: auto;
  margin: 0; padding: 0.7rem 1.1rem;
  clip: auto;
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

/* 3. layout ---------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4.5rem); }

.section__head {
  max-width: 34rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section__head p { margin: 0; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid--apps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--values { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.showcase__feature { margin-bottom: clamp(1rem, 2.2vw, 1.5rem); }

/* decorative pastel blobs */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 46vw;
  min-width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.62;
}
.blob--mint  { background: var(--mint);  top: -12vw; right: -8vw; }
.blob--blush { background: var(--blush); top: 34vh; left: -14vw; }
.blob--lilac { background: var(--lilac); top: 4vh; left: 22vw; opacity: 0.5; }
.blob--sky   { background: var(--sky);   bottom: -18vw; right: 6vw; opacity: 0.5; }

/* 4. header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(253, 250, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, #b58cff 55%, var(--mint) 130%);
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__dot { color: var(--brand); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.4vw, 1.1rem);
}
.nav__list a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav__list a:hover { color: var(--ink); background: rgba(124, 92, 255, 0.09); }
.nav__list a.is-active { color: var(--lilac-ink); background: var(--lilac); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.15s linear;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: relative; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 5. buttons + views ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  color: var(--ink);
  background: var(--surface-solid);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint-ink);
  box-shadow: 0 0 0 4px rgba(184, 236, 216, 0.6);
}

.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 3vw, 2rem); }
.hero__title { margin-bottom: 1rem; }
.grad {
  background: linear-gradient(100deg, var(--brand-deep) 0%, #b06ccd 45%, var(--mint-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 40rem;
  font-size: clamp(1.03rem, 0.98rem + 0.4vw, 1.2rem);
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__actions--center { justify-content: center; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.stats dd {
  margin: 0.15rem 0 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-head { padding-block: clamp(2.75rem, 7vw, 4.5rem) 0; }
.page-head--center { text-align: center; }
.page-head--center .hero__lead { margin-inline: auto; }

.panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.prose { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--brand-deep); }

.cta {
  padding: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 211, 222, 0.85) 0%, transparent 55%),
    radial-gradient(120% 140% at 88% 100%, rgba(184, 236, 216, 0.85) 0%, transparent 55%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta p { max-width: 30rem; margin-inline: auto; color: var(--ink-soft); }

/* 6. cards ----------------------------------------------- */
.icon { width: 22px; height: 22px; }

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
a.app-card:hover,
a.app-card:focus-visible {
  transform: translateY(-4px);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border-color: var(--tint, var(--line));
}
a.app-card:hover .app-card__go { transform: translateX(3px); opacity: 1; }

.app-card--soon { opacity: 0.82; border-style: dashed; }

/* full-width hero card for the featured app */
.app-card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas:
    'icon list'
    'head list'
    'tag  list'
    'body list'
    'foot foot';
  align-content: start;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: 0.55rem;
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  background:
    radial-gradient(115% 150% at 100% 0%, var(--tint) 0%, transparent 58%),
    var(--surface-solid);
}
.app-card--feature .app-card__icon {
  grid-area: icon;
  width: 52px; height: 52px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.app-card--feature .app-card__icon .icon { width: 26px; height: 26px; }
.app-card--feature .app-card__head { grid-area: head; }
.app-card--feature .app-card__name { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); }
.app-card--feature .app-card__tagline {
  grid-area: tag;
  font-size: 1.05rem;
}
.app-card--feature .app-card__body {
  grid-area: body;
  max-width: 42ch;
  font-size: 1rem;
}
.app-card--feature .app-card__foot { grid-area: foot; padding-top: 1.5rem; }

/* highlights become chips in the right-hand column */
.app-card--feature .app-card__list {
  grid-area: list;
  align-self: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.app-card--feature .app-card__list li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tint-ink);
  font-weight: 600;
  padding-left: 0.9rem;
}
.app-card--feature .app-card__list li::before { display: none; }

.app-card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  background: var(--tint, var(--lilac));
  color: var(--tint-ink, var(--lilac-ink));
}
.app-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.app-card__name {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-card__tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tint-ink, var(--lilac-ink));
}
.app-card__body {
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.app-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.app-card__list li {
  position: relative;
  padding-left: 1.1rem;
}
.app-card__list li::before {
  content: '';
  position: absolute;
  top: 0.55em; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tint-ink, var(--lilac-ink));
  opacity: 0.55;
}
.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.app-card__url { font-variant-numeric: tabular-nums; }
.app-card__go {
  color: var(--brand-deep);
  opacity: 0.75;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill--live { background: var(--mint); color: var(--mint-ink); }
.pill--soon { background: var(--butter); color: #8a6415; }

.value-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.value-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 0.85rem;
  border-radius: 13px;
  background: var(--lilac);
  color: var(--lilac-ink);
}
.value-card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

.contact {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
a.contact-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: var(--shadow); }
.contact-card__label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tint-ink, var(--ink-soft));
}
.contact-card__value {
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

/* tint map */
.tint-mint  { --tint: var(--mint);  --tint-ink: var(--mint-ink); }
.tint-blush { --tint: var(--blush); --tint-ink: var(--blush-ink); }
.tint-lilac { --tint: var(--lilac); --tint-ink: var(--lilac-ink); }
.tint-sky   { --tint: var(--sky);   --tint-ink: var(--sky-ink); }

/* 7. footer ---------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}
.site-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
}
.site-footer__brand .brand__text {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.site-footer__brand p { max-width: 22rem; margin: 0; }
.site-footer__title {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}
.site-footer__links li + li { margin-top: 0.4rem; }
.site-footer__links a,
.site-footer__links span {
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.site-footer__links a:hover { color: var(--brand-deep); }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.site-footer__legal p { margin: 0; font-size: 0.85rem; }

/* 8. motion + responsive --------------------------------- */
[data-view] { outline: none; }
[data-view].is-entering { animation: rise 0.45s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .app-card--feature {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'icon' 'head' 'tag' 'body' 'list' 'foot';
  }
  .app-card--feature .app-card__list { margin-top: 0.35rem; }
  .app-card--feature .app-card__body { max-width: none; }
}

@media (max-width: 620px) {
  .grid--three { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem clamp(1.15rem, 4vw, 2rem) 1.4rem;
    background: rgba(253, 250, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .is-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__list a { padding: 0.7rem 0.9rem; font-size: 1rem; }
  .nav__cta { align-self: flex-start; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .nav__cta { width: auto; align-self: stretch; }
  .stats { gap: 1.25rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
