:root {
  --bg: #f6f1ea;
  --bg-soft: #efe8de;
  --surface: #fffcf8;
  --text: #1a1625;
  --muted: #6a6475;
  --line: rgba(26, 22, 37, 0.1);
  --accent: #7c3aed;
  --accent-deep: #5b21b6;
  --max: 960px;
  --display: 'Instrument Sans', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* Never stretch brand marks */
.brand img,
.hero-icon,
.download-logo {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-deep); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 241, 234, 0.9);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 560;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 650 !important;
  font-size: 0.84rem;
}
.nav-cta:hover { background: var(--accent-deep) !important; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

/* —— Hero (tight, brand-first, no stretch) —— */
.hero {
  padding: 3.5rem 0 3.25rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(124, 58, 237, 0.1), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 36rem;
  text-align: center;
  margin-inline: auto;
  animation: rise 0.55s ease both;
}
.hero-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.22);
}
.hero-name {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 30rem;
  margin: 0 auto 1.35rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.hero-meta {
  font-size: 0.8rem;
  font-weight: 560;
  color: var(--muted);
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
.section-lead {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.feature-grid article {
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.feature-grid h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.feature-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1.2fr 0.8fr;
}
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
}
.panel-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.steps {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 560;
  font-size: 0.94rem;
}
.steps li::before {
  content: counter(step);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

/* —— Download —— */
.download {
  padding: 4rem 0;
  text-align: center;
}
.download-inner {
  padding: 2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  max-width: 28rem;
  margin-inline: auto;
}
.download-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 0.85rem;
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.2);
}
.download h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.download p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.download .fine {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.8rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 1.75rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-tag {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 560;
}
.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .hero-icon { width: 76px; height: 76px; border-radius: 19px; }
}

/* Legal pages */
.legal-main { padding: 2.75rem 0 3.5rem; max-width: 720px; }
.legal-main h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
}
.legal-main h2 { font-size: 1.1rem; margin: 1.5rem 0 0.45rem; }
.legal-main p,
.legal-main li { color: var(--muted); margin-bottom: 0.7rem; }
.legal-main ul { padding-left: 1.15rem; margin-bottom: 0.9rem; }
.legal-main .back {
  color: var(--accent);
  font-weight: 650;
  display: inline-block;
  margin-bottom: 1.1rem;
}
.legal-main .updated {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.legal-main strong { color: var(--text); }
