:root {
  --bg: #ffffff;
  --bg-2: #faf7fc;
  --panel: #ffffff;
  --line: rgba(20, 10, 30, 0.09);
  --line-strong: rgba(20, 10, 30, 0.15);
  --ink: #1a1420;
  --muted: #6b6076;
  --faint: #928a9c;
  --violet: #6a5bff;
  --pink: #ee4d9b;
  --orange: #ff8a57;
  --grad: linear-gradient(120deg, #6a5bff 0%, #ee4d9b 55%, #ff8a57 100%);
  --header-h: 64px;
  --content: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(238, 77, 155, 0.22);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.reading-width {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.brand img {
  width: 29px;
  height: 29px;
  flex: none;
}

.brand-name,
.gradient-text {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 620;
}

.header-nav a,
.footer-links a,
.text-link {
  transition: color 0.2s ease;
}

.header-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.55em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8em 1.55em;
  font-size: 0.94rem;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(238, 77, 155, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 32px rgba(238, 77, 155, 0.36);
}

a:focus-visible,
button:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(106, 91, 255, 0.055), rgba(238, 77, 155, 0.045) 55%, rgba(255, 138, 87, 0.045));
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  content: "";
  filter: blur(86px);
  opacity: 0.28;
  pointer-events: none;
}

.page-hero::before {
  top: -190px;
  left: -100px;
  background: var(--violet);
}

.page-hero::after {
  right: -110px;
  bottom: -210px;
  background: var(--pink);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 8vw, 92px);
  padding-bottom: clamp(60px, 8vw, 84px);
}

.page-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 20px rgba(238, 77, 155, 0.22));
}

.page-kicker {
  margin-bottom: 9px;
  color: var(--pink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 820;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.lede {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.text-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.page-body {
  padding-top: clamp(52px, 7vw, 78px);
  padding-bottom: clamp(72px, 9vw, 110px);
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 44px;
  color: var(--ink);
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
  color: var(--ink);
  font-size: 1rem;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.98rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: #7356d9;
  text-decoration: underline;
  text-decoration-color: rgba(115, 86, 217, 0.28);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.feature-panel {
  margin: 0 0 42px;
  border: 1px solid rgba(238, 77, 155, 0.22);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 38px);
  background: linear-gradient(145deg, rgba(106, 91, 255, 0.055), rgba(238, 77, 155, 0.04) 58%, rgba(255, 138, 87, 0.04));
}

.feature-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.feature-panel p {
  color: var(--muted);
}

.feature-panel .btn {
  margin-top: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.85rem;
}

.step-list {
  display: grid;
  gap: 0;
  margin: 18px 0 38px;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  counter-increment: steps;
}

.step-list li::before {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(238, 77, 155, 0.2);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--pink);
  content: counter(steps);
  font-size: 0.83rem;
  font-weight: 800;
}

.step-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.answer {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--panel);
}

.answer h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.callout {
  margin: 36px 0;
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.94rem;
}

.updated {
  margin-bottom: 30px;
  color: var(--faint);
  font-size: 0.84rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 38px;
  color: var(--faint);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer-brand,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

@media (max-width: 680px) {
  .header-nav a:not(.btn) {
    display: none;
  }

  .header-nav {
    gap: 0;
  }

  .brand {
    font-size: 0.98rem;
  }

  .page-hero-inner {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .page-mark {
    width: 48px;
    height: 48px;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
