@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:          #ffffff;
  --bg-2:        #f9fafb;
  --bg-card:     #ffffff;
  --text:        #111827;
  --text-muted:  #4b5563;
  --text-dim:    #9ca3af;
  --border:      rgba(0,0,0,0.08);
  --border-card: #e5e7eb;
  --violet:      #7c3aed;
  --blue:        #2563eb;
  --nav-h:       72px;
  --r-sm:   0.5rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-xl:   1.5rem;
  --r-2xl:  2rem;
  --r-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
p { color: var(--text-muted); }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.2; }

.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 100;
  padding-inline: clamp(1rem, 5vw, 2rem);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.page-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.page-nav__logo img {
  height: 36px;
  width: auto;
}

.page-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.page-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.page-nav__links a:hover {
  color: var(--text);
}

.page-nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: #fff;
  border-radius: var(--r-full);
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(17,24,39,.2);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.page-nav__cta:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17,24,39,.28);
}

.page-body {
  padding-top: var(--nav-h);
}

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-wrap--wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color var(--t-fast);
}

.breadcrumb a:hover {
  color: var(--violet);
}

.page-hero {
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--text);
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 680px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--violet), var(--blue));
  opacity: 0;
  transition: opacity var(--t-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card h2 {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}

.blog-card h2 a {
  color: var(--text);
  transition: color var(--t-fast);
}

.blog-card h2 a:hover {
  color: var(--violet);
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.blog-card__link {
  color: var(--violet);
  font-size: 0.875rem;
  font-weight: 600;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--t-fast), gap var(--t-fast);
}

.blog-card__link:hover {
  color: #6d28d9;
  gap: 0.5rem;
}

article.post-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

article.post-body h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.25;
  color: var(--text);
}

article.post-body h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

article.post-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

article.post-body ul,
article.post-body ol {
  margin: 0 0 1.25rem 1.5rem;
  list-style: revert;
}

article.post-body li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

article.post-body strong {
  color: var(--text);
  font-weight: 600;
}

article.post-body a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

article.post-body a:hover {
  color: #6d28d9;
}

article.post-body blockquote {
  border-left: 3px solid var(--violet);
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.75rem 0;
  background: #faf5ff;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background var(--t-fast);
}

.faq-item summary:hover {
  background: var(--bg-2);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--violet);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-2);
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  line-height: 1.75;
}

.faq-answer p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.cta-block {
  margin-top: 4rem;
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(192,38,211,.12) 0%, rgba(192,38,211,0) 55%),
    radial-gradient(100% 100% at 100% 0%, rgba(124,58,237,.14) 0%, rgba(124,58,237,0) 58%),
    linear-gradient(180deg, #2e3138 0%, #1f232b 38%, #151922 100%);
  border-radius: var(--r-2xl);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-block p {
  color: rgba(255,255,255,.6);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #111827;
  border-radius: var(--r-full);
  padding: 0.875rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-cta:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
}

.page-wrap > p,
.page-wrap--wide > p {
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.page-wrap > p a,
.page-wrap--wide > p a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.page-wrap > p a:hover,
.page-wrap--wide > p a:hover {
  color: #6d28d9;
}

.site-footer {
  background: linear-gradient(180deg, #171c27 0%, #10151f 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255,255,255,.55);
  transition: color var(--t-fast);
}

.site-footer a:hover {
  color: rgba(255,255,255,.9);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .page-wrap,
  .page-wrap--wide {
    padding: 2rem 1rem 4rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .page-nav__links {
    display: none;
  }

  .cta-block {
    padding: 2rem 1.25rem;
  }
}
