:root {
  --bg: #f6f6fd;
  --bg-2: #eeeefb;
  --ink: #12143a;
  --ink-2: #51557a;
  --ink-3: #74789c;
  --blue: #2f4bff;
  --violet: #8a5cff;
  --pink: #ff5c87;
  --grad: linear-gradient(120deg, #2f4bff 0%, #8a5cff 100%);
  --card: rgba(255, 255, 255, 0.84);
  --card-solid: #ffffff;
  --line: rgba(47, 75, 255, 0.13);
  --shadow: 0 30px 80px -20px rgba(47, 75, 255, 0.22);
  --shadow-sm: 0 14px 36px -14px rgba(47, 75, 255, 0.16);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--ink-2);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

/* Reading progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 100;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Aurora background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.45;
}

.blob.b1 {
  width: 520px;
  height: 520px;
  background: #9db0ff;
  top: -140px;
  left: -120px;
}

.blob.b2 {
  width: 460px;
  height: 460px;
  background: #cdb6ff;
  top: 22vh;
  right: -140px;
}

.blob.b3 {
  width: 380px;
  height: 380px;
  background: #ffc0d3;
  bottom: -140px;
  left: 28vw;
  opacity: 0.32;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 14px 0 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(47, 75, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.nav-links a.btn-dark,
.nav-links a.btn-dark:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 34px -8px rgba(47, 75, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -8px rgba(47, 75, 255, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(18, 20, 58, 0.55);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Blog Hub Hero */
.blog-hero {
  padding: 80px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(47, 75, 255, 0.09);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  max-width: 18ch;
  margin: 0 auto 18px;
}

.blog-hero p.lead {
  font-size: 1.15rem;
  max-width: 58ch;
  margin: 0 auto;
}

/* Topic pills */
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.topic-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.topic-pill:hover {
  background: #fff;
  color: var(--blue);
  border-color: rgba(47, 75, 255, 0.35);
  transform: translateY(-1px);
}

/* Featured Article Card */
.featured-post {
  margin: 24px 0 48px;
  border-radius: 32px;
  padding: 40px;
  background: linear-gradient(145deg, #181b57 0%, #0d0f33 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.featured-post::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -100px;
  top: -140px;
  background: radial-gradient(circle, rgba(138, 92, 255, 0.45), transparent 68%);
  pointer-events: none;
}

.featured-post h2,
.featured-post h2 a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.featured-post h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-post p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin: 16px 0 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.featured-post .post-meta {
  color: #b5c2ff;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(47, 75, 255, 0.1);
  color: var(--blue);
}

.featured-post .badge {
  background: rgba(157, 176, 255, 0.18);
  color: #d6dfff;
}

.featured-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  position: relative;
}

.featured-preview .mini-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #ff94b2;
  margin-bottom: 6px;
  display: block;
}

.featured-preview .mini-label.after {
  color: #9db0ff;
  margin-top: 16px;
}

.featured-preview p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.post-card {
  border-radius: 28px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 8px 0 12px;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--blue);
}

.post-card p {
  font-size: 0.96rem;
  line-height: 1.62;
  margin-bottom: 22px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: auto;
}

.read-more:hover {
  gap: 10px;
}

/* Article Layout */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 42px 0 20px;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--ink-2);
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.article-header {
  max-width: 820px;
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.1;
  margin: 14px 0 18px;
}

.article-header .subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.article-body {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 42px 0 16px;
  scroll-margin-top: 96px;
}

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

.article-body h3 {
  font-size: 1.28rem;
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #2c3057;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: #2c3057;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body li {
  margin-bottom: 10px;
}

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

/* Before / After Comparison Box inside Articles */
.voice-transform {
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--bg);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.vt-box {
  border-radius: 18px;
  padding: 20px;
  background: #fff;
}

.vt-box.raw {
  border: 1px dashed rgba(255, 92, 135, 0.55);
}

.vt-box.clear {
  border: 1px solid rgba(47, 75, 255, 0.28);
  background: linear-gradient(160deg, rgba(47, 75, 255, 0.05), rgba(138, 92, 255, 0.08));
}

.vt-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.vt-box.raw .vt-label {
  background: rgba(255, 92, 135, 0.14);
  color: #d83a64;
}

.vt-box.clear .vt-label {
  background: rgba(47, 75, 255, 0.12);
  color: var(--blue);
}

.vt-box.raw p {
  font-family: 'Caveat', cursive;
  font-size: 1.38rem;
  line-height: 1.45;
  color: #5b4a6a;
  margin: 0;
}

.vt-box.clear p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

/* Callout / Key Takeaway box */
.callout {
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(47, 75, 255, 0.06);
  border-left: 4px solid var(--blue);
}

.callout h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--blue);
}

.callout p {
  margin: 0;
  font-size: 0.98rem;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 22px;
}

.toc-card,
.sidebar-cta {
  border-radius: 26px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.toc-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.toc-list a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--blue);
}

.sidebar-cta {
  background: linear-gradient(150deg, #181b57, #0d0f33);
  color: #fff;
  border-color: transparent;
}

.sidebar-cta img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.sidebar-cta h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.sidebar-cta .btn {
  width: 100%;
}

/* Bottom CTA banner */
.final-banner {
  text-align: center;
  padding: 72px 36px;
  border-radius: 40px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}

.final-banner h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 18ch;
  margin: 0 auto 14px;
}

.final-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  margin: 0 auto 28px;
  font-size: 1.08rem;
}

.final-banner .btn-primary {
  background: #fff;
  color: var(--blue);
}

/* Related posts */
.related-section {
  padding: 20px 0 60px;
}

.related-section h2 {
  font-size: 1.85rem;
  margin-bottom: 24px;
}

/* Footer */
footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.foot nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.foot a {
  text-decoration: none;
  font-weight: 600;
}

.foot a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .featured-post,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-sidebar {
    position: static;
  }
  .nav-links .hide-m {
    display: none;
  }
}

@media (max-width: 640px) {
  .blog-grid,
  .voice-transform {
    grid-template-columns: 1fr;
  }
  .article-body {
    padding: 28px 22px;
  }
  .featured-post {
    padding: 28px 22px;
  }
}
