*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #ffffff; --bg-gray: #f5f5f7; --bg-dark: #1d1d1f;
  --text: #1d1d1f; --text-secondary: #6e6e73;
  --lilac: #7c5cbf; --lilac-hover: #6a4daa; --lilac-soft: #ede8f8;
  --lilac-mid: #b8a0e0; --border: #d2d2d7;
}
[data-theme="dark"] {
  --white: #1c1c1e; --bg-gray: #2c2c2e; --bg-dark: #000000;
  --text: #f5f5f7; --text-secondary: #a1a1a6;
  --lilac: #9b7fdf; --lilac-hover: #b09ae8; --lilac-soft: #2d2440;
  --lilac-mid: #7c5cbf; --border: #3a3a3c;
}
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { background: var(--white); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 17px; line-height: 1.47059; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--lilac); text-decoration: none; transition: color .15s; }
a:hover { color: var(--lilac-hover); }

/* ── Navigation ── */
nav { position: sticky; top: 0; z-index: 9999; height: 48px; background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] nav { background: rgba(28,28,30,0.88); border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select { background: #3a3a3c; color: var(--text); border-color: var(--border); color-scheme: dark; }
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder { color: var(--text-secondary); }
[data-theme="dark"] .nav-links { background: transparent; }
[data-theme="dark"] .nav-links.open { background: rgba(28,28,30,0.97); }
[data-theme="dark"] .nav-dropdown { background: rgba(44,44,46,0.97); border-color: rgba(255,255,255,0.08); }
.nav-inner { width: 100%; max-width: 980px; padding: 0 22px; display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 8px; }
.nav-logo { font-size: 21px; font-weight: 600; color: var(--text); letter-spacing: -.5px; white-space: nowrap; }
.nav-logo span { color: var(--lilac); }
.nav-links { display: flex; gap: 0; list-style: none; flex-wrap: nowrap; align-items: center; justify-content: center; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-mob-cta { display: none; }
.nav-links a { font-size: 11.5px; font-weight: 400; color: var(--text); padding: 0 7px; opacity: .8; white-space: nowrap; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; color: var(--text); }
.nav-links a.active { color: var(--lilac); opacity: 1; }
.nav-cta-btn { background: var(--lilac); color: #fff; padding: 6px 14px; border-radius: 980px; font-size: 11.5px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background .2s; }
.nav-cta-btn:hover { background: var(--lilac-hover); color: #fff; }
.nav-theme-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: none; border: 1px solid var(--border); cursor: pointer; color: var(--text); transition: background .2s, border-color .2s; flex-shrink: 0; }
.nav-theme-toggle:hover { background: var(--bg-gray); }
.nav-theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; } .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; } [data-theme="dark"] .icon-moon { display: none; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 3px; cursor: pointer; font-size: 11.5px; font-weight: 400; color: var(--text); padding: 0 7px; opacity: .8; white-space: nowrap; transition: opacity .15s; }
.nav-dropdown-toggle svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.5; fill: none; transition: transform .2s; }
.nav-links > li:hover .nav-dropdown-toggle { opacity: 1; }
.nav-links > li:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown { list-style: none; display: none; position: absolute; top: 100%; left: 0; background: rgba(255,255,255,0.97); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 10px 6px 6px; min-width: 170px; box-shadow: 0 8px 30px rgba(0,0,0,.1); z-index: 9998; }
.nav-links > li:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; font-size: 13px; padding: 8px 12px; border-radius: 8px; opacity: 1; color: var(--text); }
.nav-dropdown a:hover { background: var(--bg-gray); opacity: 1; }
.nav-dropdown a.active { background: var(--lilac-soft); color: var(--lilac); }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 8px; transition: background .15s; }
.nav-hamburger:hover { background: rgba(0,0,0,.05); }
.nav-hamburger span { display: block; height: 2px; width: 22px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(max-width: 900px) {
  .nav-cta-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: fixed; top: 48px; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); flex-direction: column; padding: 12px 0 20px; z-index: 9998; box-shadow: 0 8px 30px rgba(0,0,0,.08); align-items: stretch; justify-content: flex-start; }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; display: block; }
  .nav-mob-cta { display: block; }
  .nav-links > li > a, .nav-links > li > .nav-dropdown-toggle { display: flex; padding: 10px 22px; font-size: 15px; opacity: 1; border-radius: 0; line-height: 1.5; }
  .nav-links > li > a:hover, .nav-links > li > .nav-dropdown-toggle:hover { background: var(--bg-gray); }
  .nav-links > li > a.active { background: var(--lilac-soft); color: var(--lilac); }
  .nav-dropdown { display: none; position: static; background: var(--bg-gray); border: none; border-radius: 0; box-shadow: none; padding: 4px 0 4px 16px; min-width: unset; backdrop-filter: none; }
  .nav-links > li.mob-open .nav-dropdown { display: block; }
  .nav-links > li:hover .nav-dropdown { display: none; }
  .nav-links > li.mob-open .nav-dropdown { display: block; }
  .nav-dropdown a { font-size: 14px; padding: 9px 22px; border-radius: 0; }
  .nav-dropdown a:hover { background: rgba(0,0,0,.04); }
  .nav-mob-cta { display: block; margin: 8px 22px 0; background: var(--lilac); color: #fff; text-align: center; padding: 10px 22px; border-radius: 980px; font-size: 15px; font-weight: 500; text-decoration: none; }
}

/* ── Layout ── */
main { flex: 1; }
.section-white { background: var(--white); }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: #f5f5f7; }
.section-lilac { background: var(--lilac); color: #fff; }
.section-wrap { max-width: 980px; margin: 0 auto; padding: 100px 22px; }
.section-wrap.narrow { max-width: 692px; }
.section-wrap.wide { max-width: 1200px; }
@media(max-width: 740px) {
  .section-wrap { padding: 56px 18px; }
  .page-hero { padding: 52px 18px 44px; }
  h1 { font-size: clamp(28px, 8vw, 44px); }
  .intro-copy { font-size: 17px; }
  .tile { padding: 28px 22px; }
}

/* ── Typography ── */
h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; letter-spacing: -.5px; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 56px); font-weight: 700; letter-spacing: -.3px; line-height: 1.07143; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: .011em; line-height: 1.38105; }
.headline-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lilac); margin-bottom: 8px; }
.section-dark .headline-label { color: var(--lilac-mid); }
.intro-copy { font-size: 21px; font-weight: 300; letter-spacing: .011em; color: var(--text-secondary); line-height: 1.6; }
.section-dark .intro-copy { color: #a1a1a6; }
.body-copy { font-size: 17px; font-weight: 400; color: var(--text-secondary); line-height: 1.6; }

/* ── Buttons ── */
.btn-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 400; padding: 10px 22px; border-radius: 980px; border: none; cursor: pointer; transition: background .2s, transform .1s; text-decoration: none; }
.btn-pill:active { transform: scale(.98); }
.btn-primary { background: var(--lilac); color: #fff; }
.btn-primary:hover { background: var(--lilac-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--lilac); border: 1.5px solid var(--lilac); }
.btn-secondary:hover { background: var(--lilac-soft); }
.btn-ghost-light { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Components ── */
.rule { border: none; border-top: 1px solid var(--border); margin: 0; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media(max-width: 740px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }
.tile { background: var(--white); border-radius: 20px; padding: 48px 40px; overflow: hidden; }
.section-gray .tile { background: var(--white); }
.section-white .tile { background: var(--bg-gray); }
.section-dark .tile { background: #2d2d2f; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--lilac-soft); color: var(--lilac); padding: 4px 12px; border-radius: 980px; margin-bottom: 12px; }
.tile-link { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tile-link:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

/* ── Flash Messages ── */
.flash-wrap { max-width: 980px; margin: 20px auto; padding: 0 22px; }
.flash { padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.flash-success { background: var(--lilac-soft); color: var(--lilac); }
.flash-error { background: #fff0f0; color: #c0392b; }

/* ── Footer ── */
footer { background: var(--bg-gray); border-top: 1px solid var(--border); }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 20px 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-size: 15px; font-weight: 600; color: var(--text); }
.footer-brand span { color: var(--lilac); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 12px; font-size: 12px; color: var(--text-secondary); }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Page Hero ── */
.page-hero { background: var(--bg-gray); border-bottom: 1px solid var(--border); padding: 80px 22px 70px; text-align: center; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .intro-copy { max-width: 600px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-secondary); text-decoration: none; margin-bottom: 32px; }
.back-link:hover { color: var(--text); }
