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

:root {
  --bg: #f8f7fb;
  --bg2: #f1eef7;
  --surface: #ffffff;
  --surface-hover: #f6f3fb;
  --border: rgba(56, 42, 92, 0.10);

  --primary: #6d5ba6;
  --primary-deep: #5d4b93;
  --primary-soft: #ece8f7;

  --accent: #c6a756;
  --accent2: #b89237;
  --accent-soft: rgba(198, 167, 86, 0.12);

  --text: #1c1728;
  --text-muted: #6f6883;
  --text-dim: #a29ab8;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(58, 40, 92, 0.06);
  --shadow-hover: 0 14px 34px rgba(58, 40, 92, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 42, 92, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(56, 42, 92, 0.10);
  box-shadow: 0 8px 24px rgba(30, 20, 50, 0.05);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(109, 91, 166, 0.16);
}

.nav-cta:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(109, 91, 166, 0.22);
}

/* ── BUTTONS ── */
.btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(109, 91, 166, 0.16);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(109, 91, 166, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid rgba(56, 42, 92, 0.10);
  box-shadow: 0 6px 20px rgba(58, 40, 92, 0.05);
}

.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(58, 40, 92, 0.08);
}

/* ── SECTIONS ── */
.page-main {
  padding-top: 72px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── BLOG ── */
.blog-hero {
  text-align: center;
  padding: 120px 24px 64px;
  background:
    radial-gradient(circle at top, rgba(109, 91, 166, 0.10), transparent 42%),
    linear-gradient(180deg, #fbfafe 0%, var(--bg) 100%);
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.blog-hero .section-sub {
  margin: 0 auto;
}

.blog-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(109, 91, 166, 0.18);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.post-card-tag {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.post-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.post-card:hover h2 {
  color: var(--primary);
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.post-card-read {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.blog-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

/* ── POST ARTICLE ── */
.post-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 40px;
  text-align: center;
}

.post-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.post-meta .post-card-tag {
  font-size: 0.8rem;
}

.post-article {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.post-article p {
  margin-bottom: 1.25em;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-article h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.75em;
  color: var(--text);
}

.post-article h3 {
  font-size: 1.15rem;
  margin: 1.5em 0 0.5em;
  color: var(--text);
}

.post-article ul,
.post-article ol {
  margin: 0 0 1.25em 1.25em;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-article li {
  margin-bottom: 0.5em;
}

.post-article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-article a:hover {
  color: var(--primary-deep);
}

.post-article blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 1.05rem;
  font-style: italic;
}

.post-footer-nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary-deep);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-brand h3 span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.65;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .post-card {
    padding: 22px 24px;
  }
}
