/* ─── HappyLLama Theme CSS ─── */

/* ─── Reset & Variables ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-bg: #ffffff;
  --color-bg-subtle: #f9fafb;
  --color-text: #0a0a0a;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-accent: #0a0a0a;
  --color-accent-hover: #1a1a1a;
  --color-white: #ffffff;
  --color-pill-bg: #f3f4f6;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.nav-links a:hover { color: var(--color-text); }
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a {
  color: var(--color-text);
  font-weight: 600;
  background: var(--color-bg-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover { background: var(--color-bg-subtle); border-color: #d1d5db; }

.btn-primary {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
  background-color: #ffffff;
}

/* Grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Composite mask */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 60%,
      rgba(255,255,255,0.6) 75%,
      rgba(255,255,255,1) 100%
    ),
    radial-gradient(ellipse 75% 55% at 50% 20%,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.6)  45%,
      rgba(255,255,255,0)   100%
    );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* Announcement Pill */
.announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeInDown 0.6s ease-out both;
}

.announcement:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.announcement-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-pill-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-badge svg { width: 12px; height: 12px; }

/* Headline */
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero-ctas .btn-primary { padding: 12px 28px; font-size: 0.9375rem; }
.hero-ctas .btn-ghost { padding: 12px 28px; font-size: 0.9375rem; }

/* ─── Hero Stats ─── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease-out 0.4s both;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
}

.hero-stat {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  transition: background 0.2s;
}

.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--color-bg-subtle); }

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

/* ─── Dashboard Preview ─── */
.dashboard-preview {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.dashboard-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.dashboard-card:hover { box-shadow: var(--shadow-card-hover); }

.dashboard-layout {
  display: flex;
  min-height: 420px;
}

/* Sidebar */
.dash-sidebar {
  width: 200px;
  border-right: 1px solid var(--color-border);
  padding: 20px 0;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 0 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.sidebar-section { margin-bottom: 20px; }

.sidebar-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 20px;
  margin-bottom: 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-item:hover { background: var(--color-bg-subtle); color: var(--color-text); }
.sidebar-item.active { color: var(--color-text); font-weight: 600; background: rgba(59,130,246,0.06); }
.sidebar-item svg { width: 15px; height: 15px; opacity: 0.55; }
.sidebar-item.active svg { opacity: 1; color: #3b82f6; }

/* Main */
.dash-main { flex: 1; padding: 24px 28px; min-width: 0; }

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

.dash-filters { display: flex; gap: 8px; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  cursor: pointer;
}

.filter-btn svg { width: 13px; height: 13px; }

.stat-row {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-card {
  flex: 1;
  padding: 14px 18px;
  border-right: 1px solid var(--color-border);
}

.stat-card:last-child { border-right: none; }

.stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.stat-dot { width: 7px; height: 7px; border-radius: 50%; }
.stat-dot.blue { background: #3b82f6; }
.stat-dot.pink { background: #ec4899; }
.stat-dot.green { background: #22c55e; }

.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

.chart-area { width: 100%; height: 200px; position: relative; }
.chart-area svg { width: 100%; height: 100%; }

/* Bottom Banner */
.bottom-banner {
  max-width: 960px;
  margin: 16px auto 0;
  background: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.banner-left { display: flex; align-items: center; gap: 14px; }

.banner-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon svg { width: 18px; height: 18px; color: #a5b4fc; }
.banner-title { font-size: 0.875rem; font-weight: 600; color: var(--color-white); text-align: left; }
.banner-desc { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 1px; text-align: left; }

.btn-banner {
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-banner:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Offset anchor targets */
[id] { scroll-margin-top: 72px; }

/* ─── Section Wrapper ─── */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Building/Steps Section ─── */
.building-section {
  padding: 96px 24px;
  border-top: 1px solid var(--color-border);
}

.building-header {
  margin-bottom: 52px;
}

.building-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1.2;
}

/* ─── Steps Timeline ─── */
.building-cols {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.step-item:not(:last-child) .step-left::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -16px;
  width: 1px;
  background: var(--color-border);
}

.step-left {
  position: relative;
  flex-shrink: 0;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: border-color 0.2s, background 0.2s;
}

.step-circle svg { width: 17px; height: 17px; }

.step-item:hover .step-circle {
  border-color: var(--color-text);
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

.step-right {
  padding-bottom: 48px;
}

.step-item:last-child .step-right { padding-bottom: 0; }

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.015em;
  margin-bottom: 5px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── Nudge Card ─── */
.nudge-card {
  position: sticky;
  top: 88px;
  background: var(--color-text);
  border-radius: var(--radius-xl);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.nudge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.nudge-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.nudge-emoji {
  font-size: 2.25rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.nudge-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.nudge-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.nudge-btn {
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  background: #ffffff;
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
  width: 100%;
}

.nudge-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nudge-btn svg { width: 16px; height: 16px; }

.nudge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.nudge-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 4px 12px;
  border-radius: 99px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: gap 0.2s;
}

.text-link:hover { gap: 10px; }
.text-link svg { width: 14px; height: 14px; }

/* ─── Featured Products Section ─── */
.products-section {
  background: #0d0d0d;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.products-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.products-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.products-header {
  margin-bottom: 56px;
}

/* ─── Gradient Border Eyebrow Pill ─── */
.gradient-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  cursor: default;
  isolation: isolate;
}

.gradient-eyebrow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(90deg,
    #22c55e 0%,
    #3b82f6 30%,
    #a855f7 65%,
    #ec4899 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gradient-eyebrow .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.gradient-eyebrow .eyebrow-arrow {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-left: 2px;
}

.products-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.products-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.products-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 480px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.product-visual {
  width: 100%;
  height: 240px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-visual svg { width: 100%; height: 100%; }

.product-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.product-icon svg { width: 22px; height: 22px; }

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  flex: 1;
}

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-try {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d0d0d;
  background: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-try:hover { background: #e5e7eb; transform: translateY(-1px); }
.btn-try svg { width: 13px; height: 13px; }

.btn-details {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-details:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-visual {
  width: 100%;
  height: 200px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.modal-visual svg { width: 100%; height: 100%; display: block; }

.modal-body { padding: 32px 36px 36px; }

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-icon svg { width: 24px; height: 24px; }

.modal-title {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.modal-features li .feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-features li .feat-check svg {
  width: 11px;
  height: 11px;
  color: #22c55e;
}

.modal-actions { display: flex; gap: 10px; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.modal-close svg { width: 14px; height: 14px; }

/* ─── Free Products Section ─── */
.free-section {
  background: #0d0d0d;
  padding: 0 24px 96px;
  position: relative;
  overflow: hidden;
}

.free-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.free-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.free-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-top: 4px;
}

.free-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

.free-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.2;
}

.free-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.free-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.free-card:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.free-visual {
  width: 100%;
  height: 160px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  overflow: hidden;
}

.free-visual svg { width: 100%; height: 100%; display: block; }

.free-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
  width: fit-content;
}

.free-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}

.free-card-icon svg { width: 19px; height: 19px; }

.free-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.free-card-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.4);
  margin-bottom: 22px;
  flex: 1;
}

.free-card-actions { display: flex; gap: 8px; }

.btn-download {
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0d0d0d;
  background: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
}

.btn-download:hover { background: #e5e7eb; transform: translateY(-1px); }
.btn-download svg { width: 13px; height: 13px; }

/* ─── Quote / Story Section ─── */
.quote-section {
  padding: 96px 24px;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quote-inner {
  max-width: 700px;
  margin: 0 auto;
}

.quote-text {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  line-height: 1.75;
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-border);
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-style: normal;
  overflow: hidden;
}

.quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.quote-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  font-style: normal;
  letter-spacing: -0.01em;
}

.quote-author-role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-style: normal;
  margin-bottom: 10px;
}

.quote-socials { display: flex; gap: 10px; }

.quote-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.quote-social-link:hover {
  color: var(--color-text);
  border-color: #d1d5db;
  background: var(--color-bg-subtle);
}

.quote-social-link svg { width: 15px; height: 15px; }

/* ─── Testimonials ─── */
.testimonials-section {
  padding: 96px 24px;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 48px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.testimonial-card:hover { box-shadow: var(--shadow-card-hover); }

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.star { color: #facc15; font-size: 14px; }

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.author-role {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ─── Latest Writing ─── */
.writing-section {
  padding: 96px 24px;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  margin: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-featured-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
  flex-shrink: 0;
}

.post-featured-image-placeholder {
  width: 100%;
  height: 180px;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
  flex-shrink: 0;
  line-height: 0;
}

.post-body {
  padding: 24px 28px 28px;
  font-size: 1rem;
  flex: 1;
}

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

.post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.post-read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-read-more svg { width: 13px; height: 13px; }

/* ─── Newsletter ─── */
.newsletter-section {
  padding: 96px 24px;
  border-bottom: 1px solid var(--color-border);
}

.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 11px 20px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input::placeholder { color: #9ca3af; }

.newsletter-input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.btn-subscribe {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-subscribe:hover { background: #1a1a1a; transform: translateY(-1px); }

/* ─── Footer ─── */
.footer {
  background: #111111;
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
  gap: 40px;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 260px;
}

.footer-nav {
  display: flex;
  gap: 56px;
}

.footer-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}

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

.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-list a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── WordPress Inner Page Styles ─── */
.hl-page-main {
  min-height: 60vh;
  padding: 60px 24px 80px;
}

.hl-page-container {
  max-width: 860px;
  margin: 0 auto;
}

.hl-post-container {
  max-width: 740px;
}

.hl-page-article {}

.hl-page-hero-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hl-page-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.hl-page-header {
  margin-bottom: 32px;
}

.hl-page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.hl-page-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.hl-page-content h1,
.hl-page-content h2,
.hl-page-content h3,
.hl-page-content h4,
.hl-page-content h5,
.hl-page-content h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-text);
}

.hl-page-content h2 { font-size: 1.625rem; }
.hl-page-content h3 { font-size: 1.375rem; }
.hl-page-content h4 { font-size: 1.125rem; }

.hl-page-content p { margin-bottom: 1.4em; }

.hl-page-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hl-page-content a:hover { color: var(--color-accent-hover); }

.hl-page-content ul,
.hl-page-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.hl-page-content li { margin-bottom: 0.4em; }

.hl-page-content blockquote {
  border-left: 3px solid var(--color-border);
  padding: 12px 20px;
  margin: 2em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.hl-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.hl-page-content pre {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.4em;
  font-size: 0.9em;
}

.hl-page-content code {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.875em;
  font-family: 'Fira Code', 'Courier New', monospace;
}

.hl-page-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.hl-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: 0.9375rem;
}

.hl-page-content table th,
.hl-page-content table td {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.hl-page-content table th {
  background: var(--color-bg-subtle);
  font-weight: 600;
}

/* ─── Blog Post Specific ─── */
.hl-post-header {
  margin-bottom: 36px;
}

.hl-post-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hl-post-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s;
}

.hl-post-category:hover { background: var(--color-border); }

.hl-post-date,
.hl-post-read-time {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.hl-post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hl-post-excerpt {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.hl-post-thumbnail {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hl-post-thumb-img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.hl-post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 48px;
}

.hl-post-content h1,
.hl-post-content h2,
.hl-post-content h3,
.hl-post-content h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-text);
}

.hl-post-content h2 { font-size: 1.625rem; }
.hl-post-content h3 { font-size: 1.375rem; }
.hl-post-content h4 { font-size: 1.125rem; }

.hl-post-content p { margin-bottom: 1.4em; }

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

.hl-post-content blockquote {
  border-left: 3px solid var(--color-border);
  padding: 12px 20px;
  margin: 2em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.hl-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.hl-post-content pre {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.4em;
}

.hl-post-content code {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.875em;
  font-family: 'Fira Code', 'Courier New', monospace;
}

.hl-post-content pre code { background: none; border: none; padding: 0; }

.hl-post-footer {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hl-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hl-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.hl-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hl-post-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.hl-post-nav a:hover { color: var(--color-accent-hover); }

.hl-post-nav-prev { text-align: left; }
.hl-post-nav-next { text-align: right; }

/* ─── Archive / Blog Index ─── */
.hl-archive-main {
  padding: 60px 24px 80px;
  min-height: 60vh;
}

.hl-archive-container {
  max-width: 960px;
  margin: 0 auto;
}

.hl-archive-header {
  margin-bottom: 48px;
}

.hl-archive-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.hl-archive-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hl-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.hl-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hl-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.hl-archive-pagination .page-numbers:hover,
.hl-archive-pagination .page-numbers.current {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

/* ─── 404 Page ─── */
.hl-404-main {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.hl-404-inner { max-width: 520px; }

.hl-404-code {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
}

.hl-404-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hl-404-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hl-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Shortcode: CTA Block ─── */
.hl-cta-block {
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 40px 0;
}

.hl-cta-block .hl-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
}

.hl-cta-block .hl-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .building-cols { grid-template-columns: 1fr; }
  .nudge-card { position: static; }
  .free-grid { grid-template-columns: 1fr; }
  .free-header { flex-direction: column; align-items: flex-start; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 32px; }
  .hl-archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero { padding: 56px 20px 40px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }

  .dashboard-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); padding: 14px 0; }

  .stat-row { flex-direction: column; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat-card:last-child { border-bottom: none; }

  .bottom-banner { flex-direction: column; text-align: left; gap: 14px; }
  .banner-left { flex-direction: column; align-items: flex-start; }

  .products-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 24px; }

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

  .newsletter-form { flex-direction: column; }

  .footer-nav { flex-wrap: wrap; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .hl-post-nav { grid-template-columns: 1fr; }
  .hl-post-nav-next { text-align: left; }
}

/* ─── WordPress Block Editor Compatibility ─── */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote {
  border-left: 3px solid var(--color-border);
  padding: 12px 20px;
  color: var(--color-text-secondary);
  font-style: italic;
}
.wp-block-separator { border-color: var(--color-border); }
.wp-block-button__link {
  font-family: var(--font-main);
  border-radius: var(--radius-full) !important;
}
