/* ─── Brand tokens ─── */
:root {
  --ps-violet: #7c3aed;
  --ps-blue: #2563eb;
  --ps-gradient: linear-gradient(135deg, var(--ps-violet), var(--ps-blue));
  --ps-max: 1180px;

  /* Web Awesome brand palette → violet */
  --wa-color-brand-95: #f5f3ff;
  --wa-color-brand-90: #ede9fe;
  --wa-color-brand-80: #ddd6fe;
  --wa-color-brand-70: #c4b5fd;
  --wa-color-brand-60: #a78bfa;
  --wa-color-brand-50: #7c3aed;
  --wa-color-brand-40: #6d28d9;
  --wa-color-brand-30: #5b21b6;
  --wa-color-brand-20: #4c1d95;
  --wa-color-brand-10: #2e1065;
  --wa-color-brand-05: #1c0a40;
  --wa-color-brand: var(--wa-color-brand-50);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wa-color-surface-default);
  color: var(--wa-color-text-normal);
  font-family: var(--wa-font-family-body);
  line-height: 1.65;
}

a { color: var(--wa-color-brand-on-quiet, var(--ps-violet)); }

.wrap { max-width: var(--ps-max); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--wa-color-text-quiet); }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--wa-color-surface-lowered); }
.section-hd { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-hd h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .5rem; line-height: 1.2; }
.section-hd p { margin: 0; font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ps-violet); margin-bottom: .5rem;
}
.wa-dark .eyebrow { color: #a78bfa; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--wa-color-surface-default) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wa-color-surface-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; font-size: 1.2rem; }
.brand img { display: block; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link { text-decoration: none; color: inherit; padding: .5rem .75rem; border-radius: var(--wa-border-radius-m); font-weight: 500; }
.nav-link:hover { background: var(--wa-color-neutral-fill-quiet); }
@media (max-width: 560px) { .nav-link { display: none; } }

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(ellipse at 30% 30%, rgba(124,58,237,.18), transparent 60%),
              radial-gradient(ellipse at 70% 40%, rgba(37,99,235,.16), transparent 60%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.08; margin: 0 0 1.25rem; letter-spacing: -.02em; }
.hero h1 .grad { background: var(--ps-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 680px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ─── App grid ─── */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.app-card { text-decoration: none; color: inherit; display: block; height: 100%; }
.app-card wa-card { height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.app-card:hover wa-card { transform: translateY(-3px); box-shadow: var(--wa-shadow-l); }
.app-card h3 { margin: .9rem 0 .35rem; font-size: 1.25rem; }
.app-card p { margin: 0; }
.app-card .more { margin-top: 1rem; font-weight: 600; color: var(--ps-violet); display: inline-flex; gap: .35rem; align-items: center; }
.wa-dark .app-card .more { color: #a78bfa; }

.app-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-size: 1.5rem; flex-shrink: 0;
}
.app-icon.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 2.2rem; }

.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.soon-item {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem;
  border: 1px dashed var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l);
  background: var(--wa-color-surface-default);
}
.soon-item .app-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 1.1rem; opacity: .85; }
.soon-item strong { display: block; }
.soon-item span { font-size: .9rem; }

/* ─── Value props ─── */
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.prop wa-icon { font-size: 1.6rem; color: var(--ps-violet); }
.wa-dark .prop wa-icon { color: #a78bfa; }
.prop h3 { margin: .6rem 0 .3rem; }
.prop p { margin: 0; }

/* ─── App detail page ─── */
.app-hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--wa-color-surface-border); }
.app-hero-inner { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.app-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.app-hero .tagline { margin: .35rem 0 0; font-size: 1.2rem; }
.app-hero .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding: 3rem 0 4rem; }
@media (max-width: 860px) { .app-body { grid-template-columns: 1fr; } }
.app-body h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.app-body .intro { font-size: 1.1rem; margin: 0 0 2rem; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.feature { display: flex; gap: .8rem; align-items: flex-start; }
.feature wa-icon { margin-top: .3rem; color: var(--ps-violet); flex-shrink: 0; }
.wa-dark .feature wa-icon { color: #a78bfa; }
.feature strong { display: block; }
.feature p { margin: .15rem 0 0; font-size: .95rem; }
.aside wa-card { margin-bottom: 1.25rem; }
.aside h3 { margin: 0 0 .75rem; font-size: 1rem; }
.aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.aside li { display: flex; gap: .5rem; align-items: center; }
.app-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--wa-color-surface-border); padding-top: 1.5rem; }

/* ─── CTA ─── */
.cta { background: var(--ps-gradient); color: #fff; border-radius: var(--wa-border-radius-l); padding: 3rem 2rem; text-align: center; }
.cta h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { margin: 0 auto 1.5rem; max-width: 560px; opacity: .92; }
.cta a { color: #fff; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--wa-color-surface-border); padding: 3rem 0 1.5rem; background: var(--wa-color-surface-lowered); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer ul a { color: inherit; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.copyright { margin-top: 2rem; font-size: .85rem; }
