:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #10b981;
  --secondary-hover: #059669;
  --bg: #f5f7fa;
  --text: #222;
  --card-bg: #fff;
  --border: #e5e7eb;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.hero-dashboard-card {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow:
    0 20px 50px -10px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(15, 23, 42, 0.03);
  transform: rotateX(2deg);
  transition: transform 0.3s ease;
}

.hero-dashboard-card:hover {
  transform: rotateX(0deg) translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.card-pill-mentor {
  background: #1a56b5;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.01em;
}

.card-context {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.card-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  text-align: left;
}

.card-content-wrapper {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 1;
  transform: scale(1);
}

.card-content-wrapper.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.is-hidden {
  display: none !important;
}

.anim-container {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.anim-step {
  animation: fade-in-up 0.4s ease-out;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.anim-user-row {
  display: flex;
  justify-content: flex-end;
  margin: 1rem 0;
}

.anim-user-bubble {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 18px 18px 0 18px;
  max-width: 80%;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.anim-ai-row {
  display: flex;
  justify-content: flex-start;
  margin: 1rem 0;
  align-items: flex-start;
  gap: 0.8rem;
}

.anim-ai-bubble {
  background: #60a5fa;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 0 18px 18px 18px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.anim-ai-bubble>span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.anim-ai-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.anim-ai-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.waitlist-form {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.waitlist-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
  min-height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 0.85rem 0.95rem;
  font-weight: 600;
  width: 100%;
}

.waitlist-form input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}


.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-status {
  min-height: 1.2rem;
  color: #bfdbfe;
  font-weight: 800;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {

  .hero-dashboard-card,
  .hero-dashboard-card:hover {
    transform: none;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {

  .hero-dashboard-card {
    border-radius: 20px;
  }

  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .anim-user-bubble,
  .anim-ai-bubble {
    max-width: 100%;
  }
}

/* =========================================
   QILO MODE SPECIFIC STYLES
   ========================================= */

.permisMentor-mode {
  background-color: #1a56b5;
  /* Vibrant blue matching the reference image */
  color: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: panGrid 60s linear infinite;
}

@keyframes panGrid {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 40px 40px;
  }
}

.permisMentor-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

.permisMentor-header {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.permisMentor-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-family: "Bricolage Grotesque", system-ui;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.permisMentor-logo-img {
  height: 38px;
  /* Make the logo white */
  filter: brightness(0) invert(1);
}

.permisMentor-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.permisMentor-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.permisMentor-nav a:hover {
  opacity: 0.8;
}

.permisMentor-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 2rem 0;
}

.permisMentor-hero {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.permisMentor-title {
  font-family: "Bricolage Grotesque", system-ui;
  font-size: 4rem;
  color: white;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.permisMentor-title-italic {
  font-style: italic;
  font-weight: 400;
  color: #60a5fa;
  /* Blue accent matching AI card */
  font-size: 4.5rem;
  letter-spacing: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: inline-block;
  animation: floatItalic 4s ease-in-out infinite;
}

@keyframes floatItalic {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.permisMentor-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 2rem;
  max-width: 600px;
  line-height: 1.5;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.permisMentor-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2;
}

.input-wrapper:focus-within .input-icon {
  color: #60a5fa;
}

.permisMentor-input {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem 1rem 2.75rem;
  border-radius: 8px;
  color: #0f172a;
  font-size: 1rem;
  min-width: 220px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.permisMentor-input::placeholder {
  color: #94a3b8;
}

.permisMentor-input:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.permisMentor-input:focus {
  transform: translateY(-2px);
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.permisMentor-submit {
  background: #60a5fa;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(96, 165, 250, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

.permisMentor-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
}

.permisMentor-submit:hover::after {
  animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
  0% {
    left: -150%;
  }

  100% {
    left: 200%;
  }
}

.permisMentor-submit:hover {
  transform: translateY(-2px);
  background: #3b82f6;
}

.permisMentor-status {
  min-height: 1.5rem;
  margin: -0.75rem 0 2.75rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.permisMentor-visual-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.permisMentor-card {
  background: white;
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #0f172a;
  margin-bottom: 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.permisMentor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.7);
}

.permisMentor-card .anim-user-bubble,
.permisMentor-card .anim-ai-bubble:not(.anim-ai-success):not(.anim-ai-error) {
  background-color: #60a5fa !important;
  color: white !important;
}

.permisMentor-card .anim-ai-success {
  background-color: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

.permisMentor-card .anim-ai-error {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

.permisMentor-card .card-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.permisMentor-card .card-pill-mentor {
  background: #60a5fa;
  color: white;
}

.permisMentor-card .anim-container {
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.permisMentor-footer {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.permisMentor-footer-left {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.permisMentor-footer-right {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .permisMentor-container {
    min-height: 100vh;
  }

  .permisMentor-header {
    padding: 1.5rem;
  }

  .permisMentor-title {
    font-size: 3rem;
  }

  .permisMentor-title-italic {
    font-size: 3.5rem;
  }

  .permisMentor-form {
    flex-direction: column;
    align-items: center;
  }

  .permisMentor-input,
  .permisMentor-submit {
    width: 100%;
    max-width: 300px;
  }

  .permisMentor-footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .permisMentor-card {
    border-radius: 24px;
    margin-bottom: 2rem;
  }
}

@keyframes drawSwoosh {
  to {
    stroke-dashoffset: 0;
  }
}

/* Inline Waitlist Form */

/* Prominent Phone Mockup */

/* Blog pages */
.blog-body {
  overflow-x: hidden;
}

.blog-body .permisMentor-container {
  min-height: 100vh;
}

.blog-page-shell {
  position: relative;
  overflow: clip;
}

.blog-page-shell::before,
.blog-page-shell::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.blog-page-shell::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.4) 0%, transparent 70%);
}

.blog-page-shell::after {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.35) 0%, transparent 70%);
}

.blog-body .permisMentor-footer {
  position: static;
  pointer-events: auto;
  margin-top: auto;
  z-index: 2;
}

.blog-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.blog-main-wide {
  max-width: 1200px;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .blog-layout-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* Blog Index Layout */
.blog-index-body {
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.blog-hero-background {
  background-color: #1a56b5;
  /* Matching permisMentor-mode blue */
  padding-bottom: 8rem;
  /* Padding for the card to overlap if wanted, or just space */
}

.blog-hero-centered {
  text-align: center;
  max-width: 800px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.hero-surtitle {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 2rem;
}

.blog-hero-centered h1 {
  font-family: "Bricolage Grotesque", system-ui;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.blog-hero-centered p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.blog-main-content {
  margin-top: -4rem;
  /* overlap the hero slightly if desired, or keep 0 */
  padding: 0 2rem 5rem;
  z-index: 2;
  position: relative;
}

.blog-featured-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 4rem;
}

@media (min-width: 900px) {
  .blog-featured-card {
    flex-direction: row;
    min-height: 400px;
  }
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper {
  flex: 1;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.featured-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.featured-content h2 {
  font-family: "Bricolage Grotesque", system-ui;
  font-size: 2.25rem;
  color: #111;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.featured-content p {
  color: #444;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.featured-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  color: #111;
  padding: 0.75rem 1.25rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: background 0.2s;
}

.blog-featured-card:hover .featured-read-btn {
  background: #e2e8f0;
}

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

.blog-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  color: #111;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f1f5f9;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: block;
}

.blog-card h2 {
  color: #111;
  font-family: "Bricolage Grotesque", system-ui;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0.5rem 0 0.5rem;
}

.blog-card p {
  color: #444;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Article Layout */
.blog-card-tag,
.blog-kicker,
.other-article-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  /* light blue bg */
  color: #2563eb;
  /* Primary blue text */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-sidebar-widget {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  color: #111;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-sidebar-widget h3 {
  font-family: "Bricolage Grotesque", system-ui;
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #111;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc li {
  margin-bottom: 0.75rem;
}

.blog-toc .toc-depth-3 {
  padding-left: 1rem;
  font-size: 0.9em;
}

.blog-toc a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-toc a:hover {
  color: #2563eb;
}

.blog-other-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-other-articles li {
  margin-bottom: 1rem;
}

.blog-other-articles a {
  display: block;
  text-decoration: none;
  color: #111;
  transition: transform 0.2s;
}

.blog-other-articles a:hover {
  transform: translateX(4px);
}

.blog-other-articles .other-article-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

.blog-other-articles h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  color: #334155;
}

.blog-article {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  color: #0f172a;
  margin: 0 auto;
  width: 100%;

  padding: clamp(2rem, 5vw, 4rem);
}

.blog-back-link {
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.blog-back-link::before {
  content: '←';
  font-size: 1.2em;
}

.blog-back-link:hover {
  transform: translateX(-4px);
  color: #1d4ed8;
}

.blog-article .blog-kicker {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  margin-bottom: 1.5rem;
}

.blog-article h1 {
  color: #0f172a;
  font-family: "Bricolage Grotesque", system-ui;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.blog-article-description {
  color: #475569;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  font-weight: 500;
}

.blog-content {
  font-size: 1.125rem;
  color: #334155;
}

.blog-content h2 {
  color: #0f172a;
  font-family: "Bricolage Grotesque", system-ui;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 3rem 0 1rem;
}

.blog-content h3 {
  color: #0f172a;
  font-family: "Bricolage Grotesque", system-ui;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.blog-content p,
.blog-content li {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-content a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: #bfdbfe;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: all 0.2s ease;
}

.blog-content a:hover {
  text-decoration-color: #2563eb;
  background-color: #eff6ff;
}

.blog-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #60a5fa;
  border-radius: 0 12px 12px 0;
  color: #0f172a;
  font-style: italic;
  font-weight: 500;
  margin: 2rem 0;
  padding: 1.5rem;
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content table {
  border-collapse: collapse;
  font-size: 1rem;
  margin: 2rem 0;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-content th,
.blog-content td {
  border: 1px solid #e2e8f0;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.blog-content th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.blog-figure {
  margin: 2.5rem 0;
}

.blog-figure-wide {
  margin: 3rem -2rem;
}

.blog-figure img {
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  display: block;
  width: 100%;
  height: auto;
}

.blog-figure figcaption {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
}

.blog-method,
.blog-cta {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
}

.blog-method p {
  margin: 0;
}

.blog-method p+p {
  margin-top: 1rem;
}

.blog-cta {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

.blog-cta p {
  margin: 0;
  font-weight: 500;
  color: #0f172a;
}

.blog-cta a {
  background: #2563eb;
  border-radius: 12px;
  color: white;
  flex: 0 0 auto;
  font-weight: 700;
  padding: 1rem 1.5rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.blog-cta a:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
  .blog-main {
    padding: 1rem 1rem 4rem;
  }

  .blog-article {
    border-radius: 20px;
    padding: 2rem 1.5rem;
  }

  .blog-figure-wide {
    margin: 2rem -1.5rem;
  }

  .blog-figure-wide img {
    border-radius: 0;
  }

  .blog-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .blog-cta {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .blog-cta a {
    width: 100%;
  }
}
