/* :::SECTION:Design Tokens::: */
:root {
  --font-sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-text);
  background: var(--wp--preset--color--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* :::SECTION:Scroll Animations::: */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.js .animate-on-scroll {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.js .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.js .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.js .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.js .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.js .animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.js .animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }

/* :::SECTION:Shared Section Styles::: */
.section-header {
  max-width: 720px;
  margin-bottom: var(--wp--preset--spacing--50);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-red-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--wp--preset--spacing--30);
}

.section-title {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--wp--preset--spacing--30);
}

.section-title span {
  display: block;
}

.accent-text {
  color: var(--wp--preset--color--c-text-dim);
}

.section-desc {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.7;
  max-width: 560px;
}

/* :::SECTION:Hero::: */
.hero {
  min-height: 75vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--wp--preset--spacing--40);
  background-color: var(--wp--preset--color--c-bg);
  font-family: var(--font-sans);
  color: var(--wp--preset--color--c-text);
  position: relative;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 17, 23, 0.92) 0%,
      rgba(15, 17, 23, 0.85) 30%,
      rgba(15, 17, 23, 0.78) 60%,
      rgba(15, 17, 23, 0.95) 100%
    );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 45, 61, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 45, 61, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  z-index: 10;
  border-bottom: 1px solid var(--wp--preset--color--c-border);
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.5);
  position: sticky;
  top: 0;
}

.hero-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  text-decoration: none;
  color: var(--wp--preset--color--c-text);
}

.hero-nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--wp--preset--color--c-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-nav-logo-icon::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: white;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3'/%3E%3Cline x1='4' y1='21' x2='20' y2='21'/%3E%3Cline x1='12' y1='16' x2='12' y2='21'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  position: absolute;
}

.hero-nav-brand span:last-child {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--xl);
  letter-spacing: -0.02em;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
}

.hero-nav-link {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.hero-nav-link:hover {
  color: var(--wp--preset--color--c-text);
}
.hero-nav-gh {
      display: inline-flex;
      align-items: center;
      background: none;
      border: none;
      padding: 0;
      border-radius: 0;
      text-decoration: none;
    }
.hero-nav-gh:hover {
      background: none;
    }

.hero-nav-gh::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: var(--wp--preset--color--c-text);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-red-bright);
  background: var(--wp--preset--color--c-red-glow);
  border: 1px solid rgba(232, 35, 26, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
  animation: heroFadeIn 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--wp--preset--color--c-red);
  border-radius: 50%;
  animation: heroPulse 2s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--wp--preset--color--c-text);
  margin: 0;
  animation: heroFadeUp 0.7s ease both 0.1s;
}

.hero-headline-accent {
  display: block;
  background: linear-gradient(135deg, var(--wp--preset--color--c-red) 0%, var(--wp--preset--color--c-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
  animation: heroFadeUp 0.7s ease both 0.2s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  flex-wrap: wrap;
  animation: heroFadeUp 0.7s ease both 0.3s;
}

.hero-cta-github {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--c-red);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--wp--preset--color--c-red-glow);
}

.hero-cta-github:hover {
  background: #CC1F17;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--wp--preset--color--c-red-glow);
}

.hero-cta-github::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: white;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.hero-cta-install {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  user-select: all;
}

.hero-cta-install:hover {
  border-color: var(--wp--preset--color--c-border-bright);
  color: var(--wp--preset--color--c-text);
}

.hero-cta-install-prefix {
  color: var(--wp--preset--color--c-green);
}

.hero-terminal {
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.2),
    0 20px 60px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.03);
  animation: heroSlideIn 0.8s ease both 0.3s;
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  padding: 0.75rem var(--wp--preset--spacing--30);
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--wp--preset--color--c-border);
}

.hero-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wp--preset--color--c-bg-subtle);
}

.hero-terminal-dot-red { background: var(--wp--preset--color--c-red); }
.hero-terminal-dot-yellow { background: var(--wp--preset--color--c-yellow); opacity: 0.7; }
.hero-terminal-dot-green { background: var(--wp--preset--color--c-green); opacity: 0.7; }

.hero-terminal-title {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-faint);
  margin-left: var(--wp--preset--spacing--20);
  letter-spacing: 0.02em;
}

.hero-terminal-body {
  padding: var(--wp--preset--spacing--30);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.85;
  overflow: hidden;
}

.hero-t-prompt { color: var(--wp--preset--color--c-green); }
.hero-t-command { color: var(--wp--preset--color--c-text); font-weight: 500; }
.hero-t-flag { color: var(--wp--preset--color--c-purple); }
.hero-t-output { color: var(--wp--preset--color--c-text-dim); }
.hero-t-success { color: var(--wp--preset--color--c-green); }
.hero-t-action { color: var(--wp--preset--color--c-blue); }
.hero-t-string { color: var(--wp--preset--color--c-yellow); }
.hero-t-muted { color: var(--wp--preset--color--c-text-faint); }

.hero-t-line {
  display: block;
  animation: heroTypeIn 0.4s ease both;
}

.hero-t-line:nth-child(1) { animation-delay: 0.6s; }
.hero-t-line:nth-child(2) { animation-delay: 0.8s; }
.hero-t-line:nth-child(3) { animation-delay: 1.0s; }
.hero-t-line:nth-child(4) { animation-delay: 1.2s; }
.hero-t-line:nth-child(5) { animation-delay: 1.5s; }
.hero-t-line:nth-child(6) { animation-delay: 1.7s; }
.hero-t-line:nth-child(7) { animation-delay: 1.9s; }
.hero-t-line:nth-child(8) { animation-delay: 2.1s; }
.hero-t-line:nth-child(9) { animation-delay: 2.4s; }
.hero-t-line:nth-child(10) { animation-delay: 2.6s; }
.hero-t-line:nth-child(11) { animation-delay: 2.8s; }
.hero-t-line:nth-child(12) { animation-delay: 3.0s; }
.hero-t-line:nth-child(13) { animation-delay: 3.2s; }
.hero-t-line:nth-child(14) { animation-delay: 3.5s; }
.hero-t-line:nth-child(15) { animation-delay: 3.7s; }

.hero-t-separator {
  display: block;
  height: 0.6em;
}

.hero-features {
  display: flex;
  gap: var(--wp--preset--spacing--30);
  flex-wrap: wrap;
  animation: heroFadeUp 0.7s ease both 0.45s;
}

.hero-feature-tag {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-faint);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s;
}

.hero-feature-tag:hover {
  border-color: var(--wp--preset--color--c-border-bright);
  color: var(--wp--preset--color--c-text-dim);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 35, 26, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow-secondary {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.04) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Animations */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroTypeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero Responsive */
@media (max-width: 1024px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
  }

  .hero-headline {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
  }

  .hero-terminal {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-nav {
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  }

  .hero-nav-links {
    gap: var(--wp--preset--spacing--30);
  }

  .hero-nav-link {
    display: none;
  }

  .hero-body {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
    align-items: start;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: var(--wp--preset--font-size--base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-github {
    justify-content: center;
  }

  .hero-cta-install {
    justify-content: center;
  }

  .hero-terminal-body {
    font-size: var(--wp--preset--font-size--small);
    padding: var(--wp--preset--spacing--20);
  }

  .hero-features {
    gap: var(--wp--preset--spacing--20);
  }

  .hero-feature-tag {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-nav-brand span:last-child {
    font-size: var(--wp--preset--font-size--base);
  }

  .hero-headline {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
}

/* :::SECTION:Features::: */
.features {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  background: var(--wp--preset--color--c-bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--30);
}

.bento-card {
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  padding: var(--wp--preset--spacing--40);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover {
  border-color: var(--wp--preset--color--c-border-bright);
  transform: translateY(-2px);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
}

.bento-card-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: var(--wp--preset--spacing--30);
}

.bento-card-icon--red { background: var(--wp--preset--color--c-red); box-shadow: 0 0 12px var(--wp--preset--color--c-red-glow); }
.bento-card-icon--green { background: var(--wp--preset--color--c-green); box-shadow: 0 0 12px rgba(52, 211, 153, 0.2); }
.bento-card-icon--blue { background: var(--wp--preset--color--c-blue); box-shadow: 0 0 12px rgba(96, 165, 250, 0.2); }
.bento-card-icon--purple { background: var(--wp--preset--color--c-purple); box-shadow: 0 0 12px rgba(167, 139, 250, 0.2); }
.bento-card-icon--yellow { background: var(--wp--preset--color--c-yellow); box-shadow: 0 0 12px rgba(251, 191, 36, 0.2); }

.bento-card-title {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--wp--preset--spacing--20);
  color: var(--wp--preset--color--c-text);
}

.bento-card-desc {
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.65;
}

/* Chat mock inside bento */
.bento-card-visual {
  margin-top: var(--wp--preset--spacing--30);
}

.bento-chat-mock {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.bento-chat-bubble {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  border-radius: 8px;
  max-width: 90%;
  line-height: 1.6;
}

.bento-chat-bubble--user {
  background: rgba(232, 35, 26, 0.08);
  border: 1px solid rgba(232, 35, 26, 0.15);
  color: var(--wp--preset--color--c-text);
  align-self: flex-end;
}

.bento-chat-bubble--agent {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.12);
  color: var(--wp--preset--color--c-text-dim);
  align-self: flex-start;
}

/* Memory visual */
.bento-memory-visual {
  margin-top: var(--wp--preset--spacing--30);
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.memory-line {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  display: flex;
  gap: var(--wp--preset--spacing--30);
  padding: var(--wp--preset--spacing--20);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border-left: 2px solid var(--wp--preset--color--c-border);
  transition: border-color 0.2s;
}

.bento-card:hover .memory-line {
  border-left-color: var(--wp--preset--color--c-green);
}

/* Abilities grid */
.bento-abilities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--20);
  margin-top: var(--wp--preset--spacing--30);
}

.ability-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.ability-chip:hover {
  border-color: var(--wp--preset--color--c-yellow);
  color: var(--wp--preset--color--c-text);
}

.ability-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp--preset--color--c-text-faint);
}

.ability-chip-dot--active {
  background: var(--wp--preset--color--c-green);
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--wide {
    grid-column: span 2;
  }

  .bento-card--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .features {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

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

  .bento-card--wide {
    grid-column: span 1;
  }
}

/* :::SECTION:How It Works::: */
.how-it-works {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  background-color: var(--wp--preset--color--c-bg-raised);
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 27, 38, 0.96) 0%,
    rgba(22, 27, 38, 0.90) 50%,
    rgba(22, 27, 38, 0.96) 100%
  );
  z-index: 1;
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--wp--preset--spacing--40);
  width: 100%;
  padding: var(--wp--preset--spacing--40) 0;
}

.step-number {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--display);
  font-weight: 700;
  color: var(--wp--preset--color--c-border);
  line-height: 1;
  letter-spacing: -0.05em;
  min-width: 120px;
  text-align: right;
  transition: color 0.4s;
}

.step-card:hover .step-number {
  color: var(--wp--preset--color--c-red);
}

.step-content {
  padding-top: var(--wp--preset--spacing--20);
}

.step-title {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--wp--preset--spacing--20);
}

.step-desc {
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--wp--preset--spacing--30);
}

.step-terminal {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.85;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 8px;
  padding: var(--wp--preset--spacing--30);
  max-width: 520px;
}

.step-connector {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--wp--preset--color--c-border) 0%, var(--wp--preset--color--c-border-bright) 50%, var(--wp--preset--color--c-border) 100%);
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--wp--preset--color--c-red);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .how-it-works {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--20);
  }

  .step-number {
    font-size: var(--wp--preset--font-size--huge);
    text-align: left;
    min-width: unset;
  }
}

/* :::SECTION:Technical::: */
.technical {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--c-bg);
  position: relative;
}

.technical-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--wp--preset--spacing--40);
  align-items: start;
}

.tech-code-block {
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.tech-code-body {
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 2;
  overflow-x: auto;
}

.code-line {
  white-space: nowrap;
}

.code-keyword { color: var(--wp--preset--color--c-purple); }
.code-class { color: var(--wp--preset--color--c-blue); }
.code-var { color: var(--wp--preset--color--c-text); }
.code-string { color: var(--wp--preset--color--c-yellow); }
.code-func { color: var(--wp--preset--color--c-green); }
.code-comment { color: var(--wp--preset--color--c-text-faint); font-style: italic; }

.tech-info {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.tech-card {
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  padding: var(--wp--preset--spacing--40);
  transition: border-color 0.3s;
}

.tech-card:hover {
  border-color: var(--wp--preset--color--c-border-bright);
}

.tech-card-title {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  color: var(--wp--preset--color--c-text);
  margin-bottom: var(--wp--preset--spacing--30);
  letter-spacing: -0.01em;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.tech-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--wp--preset--spacing--20) 0;
  border-bottom: 1px solid var(--wp--preset--color--c-border);
  font-size: var(--wp--preset--font-size--small);
}

.tech-list-item:last-child {
  border-bottom: none;
}

.tech-list-key {
  font-family: var(--font-mono);
  color: var(--wp--preset--color--c-text-faint);
}

.tech-list-val {
  font-family: var(--font-mono);
  color: var(--wp--preset--color--c-text);
  font-weight: 500;
}

/* Slash commands */
.slash-commands {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slash-cmd {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  padding: var(--wp--preset--spacing--20);
  border-radius: 6px;
  transition: background 0.2s;
}

.slash-cmd:hover {
  background: rgba(255, 255, 255, 0.03);
}

.slash-cmd-name {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-green);
  font-weight: 500;
  min-width: 80px;
}

.slash-cmd-desc {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
}

@media (max-width: 1024px) {
  .tech-layout {
    grid-template-columns: 1fr;
  }

  .tech-code-block {
    position: static;
  }
}

@media (max-width: 768px) {
  .technical {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .tech-code-body {
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
    font-size: var(--wp--preset--font-size--small);
  }
}

/* :::SECTION:Roadmap::: */
.roadmap {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--c-bg-raised);
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--c-border-bright) 50%, transparent 100%);
}

.roadmap-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--30);
}

.roadmap-card {
  background: var(--wp--preset--color--c-bg);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  padding: var(--wp--preset--spacing--40);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.roadmap-card:hover {
  border-color: var(--wp--preset--color--c-border-bright);
  transform: translateY(-3px);
}

.roadmap-status {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: var(--wp--preset--spacing--30);
}

.roadmap-status--progress {
  color: var(--wp--preset--color--c-green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.roadmap-status--planned {
  color: var(--wp--preset--color--c-blue);
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.roadmap-status--research {
  color: var(--wp--preset--color--c-purple);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.roadmap-card-title {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--wp--preset--spacing--20);
}

.roadmap-card-desc {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roadmap {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

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

/* :::SECTION:Final CTA::: */
.final-cta {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--c-bg);
  position: relative;
  overflow: clip;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 35, 26, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
  position: relative;
  z-index: 1;
}

.final-cta-headline {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--wp--preset--spacing--30);
}

.final-cta-headline span {
  display: block;
}

.final-cta-desc {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--wp--preset--spacing--40);
}

.final-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  flex-wrap: wrap;
}

.final-cta-btn {
  font-size: var(--wp--preset--font-size--lg);
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.final-cta-art {
  display: flex;
  justify-content: flex-end;
}

.cta-terminal-mini {
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.15),
    0 20px 60px rgba(0,0,0,0.25);
}

.cta-terminal-body {
  padding: var(--wp--preset--spacing--30);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 2;
}

.cta-cursor {
  color: var(--wp--preset--color--c-green);
  animation: heroPulse 1.2s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .final-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .final-cta-headline span {
    display: inline;
  }

  .final-cta-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta-actions {
    justify-content: center;
  }

  .final-cta-art {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .final-cta {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-btn {
    justify-content: center;
  }
}

/* :::SECTION:Footer::: */
.site-footer {
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--c-bg);
  border-top: 1px solid var(--wp--preset--color--c-border);
}

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

.footer-inner > * + * {
  margin-top: var(--wp--preset--spacing--40);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.footer-logo-text {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--wp--preset--color--c-text);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-faint);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--wp--preset--spacing--50);
  justify-content: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--wp--preset--spacing--20);
}

.footer-link {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--wp--preset--color--c-text);
}

.footer-bottom {
  padding-top: var(--wp--preset--spacing--40);
  border-top: 1px solid var(--wp--preset--color--c-border);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-faint);
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
  }
}

/* :::SECTION:Selection Color::: */
::selection {
  background: rgba(232, 35, 26, 0.3);
  color: var(--wp--preset--color--c-text);
}

/* :::SECTION:Focus States::: */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wp--preset--color--c-red-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* :::SECTION:Scrollbar Styling::: */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--wp--preset--color--c-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--c-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wp--preset--color--c-border-bright);
}



/* Hero section: WordPress adds has-background class with inline bg, original CSS uses ::before/::after overlays */
/* The hero uses grid layout via original CSS - block uses layout:default so no conflict */

/* Hero nav - the wp:navigation block AND the wp:group both have hero-nav class */
/* wp:navigation has its own structure; wp:group hero-nav is the fallback in page content */

/* Navigation link dual-targeting for wp:navigation block */
:root :where(.hero-nav-link),
.wp-block-navigation.hero-nav .wp-block-navigation-item__content {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

:root :where(.hero-nav-link:hover),
.wp-block-navigation.hero-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--c-text);
}

/* Navigation link styling for paragraph-based nav links */
:root :where(.hero-nav-link a) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

:root :where(.hero-nav-link a:hover) {
  color: var(--wp--preset--color--c-text);
}

/* hero-nav-gh inside wp:navigation - button wrapper reset */
.wp-block-button.hero-nav-gh {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0;
  box-shadow: none !important;
}

/* hero-nav-gh button link styling inside wp:navigation */
.wp-block-button.hero-nav-gh .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  color: var(--wp--preset--color--c-text);
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.wp-block-button.hero-nav-gh .wp-block-button__link:hover {
  background: var(--wp--preset--color--c-bg-subtle);
  border-color: var(--wp--preset--color--c-border-bright);
}

/* hero-nav-gh ::before pseudo on wrapper needs to move to link */
.wp-block-button.hero-nav-gh::before {
  content: none;
}

.wp-block-button.hero-nav-gh .wp-block-button__link::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: var(--wp--preset--color--c-text);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}

/* hero-nav-gh as paragraph link (fallback nav) */
:root :where(.hero-nav-gh a) {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  color: var(--wp--preset--color--c-text);
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

:root :where(.hero-nav-gh a:hover) {
  background: var(--wp--preset--color--c-bg-subtle);
  border-color: var(--wp--preset--color--c-border-bright);
}

/* wp:navigation hero-nav gap and flex */
:root :where(.wp-block-navigation.hero-nav .wp-block-navigation__responsive-container-content) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
}

/* wp:navigation hero-nav - styled link for hero-nav-gh inside navigation */
.wp-block-navigation.hero-nav .wp-block-navigation-item.hero-nav-gh .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  color: var(--wp--preset--color--c-text);
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.wp-block-navigation.hero-nav .wp-block-navigation-item.hero-nav-gh .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--c-bg-subtle);
  border-color: var(--wp--preset--color--c-border-bright);
}

/* Navigation list bullets reset */
.wp-block-navigation ul,
.wp-block-navigation li,
.wp-block-navigation__container,
.wp-block-navigation-item {
  list-style: none;
  list-style-type: none;
}

/* Mobile hamburger button for wp:navigation */
@media (max-width: 768px) {
  .wp-block-navigation.hero-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 110;
    background: var(--wp--preset--color--c-bg-raised);
    border: 1px solid var(--wp--preset--color--c-border);
    border-radius: 8px;
    transition: border-color 0.2s;
  }

  .wp-block-navigation.hero-nav .wp-block-navigation__responsive-container-open:hover {
    border-color: var(--wp--preset--color--c-border-bright);
  }

  .wp-block-navigation.hero-nav .wp-block-navigation__responsive-container-open svg {
    width: 24px;
    height: 24px;
    fill: var(--wp--preset--color--c-text);
  }

  /* Hide nav links in wp:navigation on mobile (handled by overlay) */
  .wp-block-navigation.hero-nav .wp-block-navigation-item.hero-nav-link {
    display: none;
  }
}

/* Mobile nav overlay theming */
.wp-block-navigation.hero-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--c-bg);
}

/* hero-cta-github button wrapper reset */
.wp-block-button.hero-cta-github {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0;
  box-shadow: none !important;
}

/* hero-cta-github button link styling */
.wp-block-button.hero-cta-github .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--c-red);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--wp--preset--color--c-red-glow);
}

.wp-block-button.hero-cta-github .wp-block-button__link:hover {
  background: #CC1F17;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--wp--preset--color--c-red-glow);
}

/* hero-cta-github ::before pseudo move to link */
.wp-block-button.hero-cta-github::before {
  content: none;
}

.wp-block-button.hero-cta-github .wp-block-button__link::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: white;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}

/* final-cta-btn variant - larger button */
.wp-block-button.final-cta-btn .wp-block-button__link {
  font-size: var(--wp--preset--font-size--lg);
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

/* hero-cta-install as wp:group needs inline-flex styling */
:root :where(.wp-block-group.hero-cta-install) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  user-select: all;
}

:root :where(.wp-block-group.hero-cta-install:hover) {
  border-color: var(--wp--preset--color--c-border-bright);
  color: var(--wp--preset--color--c-text);
}

/* hero-nav-links flex layout - uses layout:flex in markup, original CSS has display:flex */
:root :where(.hero-nav-links) {
  gap: var(--wp--preset--spacing--40);
}

/* hero-nav flex layout */
:root :where(.wp-block-group.hero-nav) {
  border-bottom: 1px solid var(--wp--preset--color--c-border);
  backdrop-filter: blur(12px);
  /* Derived from --c-bg (#0F1117) */
  background: rgba(15, 17, 23, 0.5);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* hero-body grid layout */
:root :where(.hero-body) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
}

/* hero-content flex column */
:root :where(.hero-content) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

/* hero-actions flex layout - uses layout:flex in markup */
:root :where(.hero-actions) {
  gap: var(--wp--preset--spacing--30);
  animation: heroFadeUp 0.7s ease both 0.3s;
}

/* hero-features flex layout - uses layout:flex in markup */
:root :where(.hero-features) {
  gap: var(--wp--preset--spacing--30);
  animation: heroFadeUp 0.7s ease both 0.45s;
}

/* hero-terminal-bar flex layout - uses layout:flex in markup, original has display:flex */
:root :where(.hero-terminal-bar) {
  padding: 0.75rem var(--wp--preset--spacing--30);
  /* Derived from black */
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--wp--preset--color--c-border);
}

/* Margin parity for section-header */
:root :where(.section-header) {
  margin-bottom: var(--wp--preset--spacing--50);
}

.editor-styles-wrapper .section-header {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}

/* Margin parity for section-label */
:root :where(.section-label) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .section-label {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for section-title */
:root :where(.section-title) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .section-title {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for bento-card-icon */
:root :where(.bento-card-icon) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .bento-card-icon {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for bento-card-title */
:root :where(.bento-card-title) {
  margin-bottom: var(--wp--preset--spacing--20);
}

.editor-styles-wrapper .bento-card-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

/* Margin parity for step-title */
:root :where(.step-title) {
  margin-bottom: var(--wp--preset--spacing--20);
}

.editor-styles-wrapper .step-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

/* Margin parity for step-desc */
:root :where(.step-desc) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .step-desc {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for tech-card-title */
:root :where(.tech-card-title) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .tech-card-title {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for roadmap-status */
:root :where(.roadmap-status) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .roadmap-status {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for roadmap-card-title */
:root :where(.roadmap-card-title) {
  margin-bottom: var(--wp--preset--spacing--20);
}

.editor-styles-wrapper .roadmap-card-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

/* Margin parity for final-cta-headline */
:root :where(.final-cta-headline) {
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .final-cta-headline {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Margin parity for final-cta-desc */
:root :where(.final-cta-desc) {
  margin-bottom: var(--wp--preset--spacing--40);
}

.editor-styles-wrapper .final-cta-desc {
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

/* Margin parity for footer-col-title */
:root :where(.footer-col-title) {
  margin-bottom: var(--wp--preset--spacing--20);
}

.editor-styles-wrapper .footer-col-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

/* Hero responsive */
@media (max-width: 1024px) {
  :root :where(.hero-body) {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
  }
}

@media (max-width: 768px) {
  :root :where(.wp-block-group.hero-nav) {
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  }

  :root :where(.hero-nav-links) {
    gap: var(--wp--preset--spacing--30);
  }

  :root :where(.hero-nav-link) {
    display: none;
  }

  :root :where(.hero-body) {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
    align-items: start;
  }

  :root :where(.hero-actions) {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-block-button.hero-cta-github .wp-block-button__link {
    justify-content: center;
  }

  :root :where(.wp-block-group.hero-cta-install) {
    justify-content: center;
  }

  :root :where(.hero-feature-tag) {
    font-size: var(--wp--preset--font-size--small);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
  }
}



/* bento-grid layout - uses layout:default, original CSS has display:grid */
:root :where(.bento-grid) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--30);
}

/* bento-card-visual margin */
:root :where(.bento-card-visual) {
  margin-top: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .bento-card-visual {
  margin-top: var(--wp--preset--spacing--30) !important;
}

/* bento-chat-mock flex column */
:root :where(.bento-chat-mock) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

/* bento-memory-visual flex column */
:root :where(.bento-memory-visual) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

/* bento-abilities-grid flex wrap */
:root :where(.bento-abilities-grid) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--20);
  margin-top: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .bento-abilities-grid {
  margin-top: var(--wp--preset--spacing--30) !important;
}

/* memory-line flex layout */
:root :where(.memory-line) {
  display: flex;
  gap: var(--wp--preset--spacing--30);
  padding: var(--wp--preset--spacing--20);
  /* Derived from black */
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border-left: 2px solid var(--wp--preset--color--c-border);
  transition: border-color 0.2s;
  font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 1024px) {
  :root :where(.bento-grid) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root :where(.bento-grid) {
    grid-template-columns: 1fr;
  }

  :root :where(.bento-card--wide) {
    grid-column: span 1;
  }
}



/* steps-container flex column */
:root :where(.steps-container) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* step-card grid layout */
:root :where(.step-card) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--wp--preset--spacing--40);
  width: 100%;
  padding: var(--wp--preset--spacing--40) 0;
}

/* step-terminal styling */
:root :where(.step-terminal) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.85;
  /* Derived from black */
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 8px;
  padding: var(--wp--preset--spacing--30);
  max-width: 520px;
}

/* step-connector decorative */
:root :where(.step-connector) {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--wp--preset--color--c-border) 0%, var(--wp--preset--color--c-border-bright) 50%, var(--wp--preset--color--c-border) 100%);
  position: relative;
}

:root :where(.step-connector::after) {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--wp--preset--color--c-red);
  border-radius: 50%;
}

@media (max-width: 768px) {
  :root :where(.step-card) {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--20);
  }
}



/* tech-layout grid */
:root :where(.tech-layout) {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--wp--preset--spacing--40);
  align-items: start;
}

/* tech-info flex column */
:root :where(.tech-info) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

/* tech-list flex column */
:root :where(.tech-list) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

/* tech-list-item flex layout - uses layout:flex in markup */
:root :where(.tech-list-item) {
  padding: var(--wp--preset--spacing--20) 0;
  border-bottom: 1px solid var(--wp--preset--color--c-border);
}

:root :where(.tech-list-item:last-child) {
  border-bottom: none;
}

/* slash-commands flex column */
:root :where(.slash-commands) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* slash-cmd flex layout - uses layout:flex in markup */
:root :where(.slash-cmd) {
  padding: var(--wp--preset--spacing--20);
  border-radius: 6px;
  transition: background 0.2s;
}

:root :where(.slash-cmd:hover) {
  /* Derived from white */
  background: rgba(255, 255, 255, 0.03);
}

/* tech-code-block sticky */
:root :where(.tech-code-block) {
  position: sticky;
  top: 80px;
}

@media (max-width: 1024px) {
  :root :where(.tech-layout) {
    grid-template-columns: 1fr;
  }

  :root :where(.tech-code-block) {
    position: static;
  }
}



/* roadmap-grid layout */
:root :where(.roadmap-grid) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--30);
}

@media (max-width: 1024px) {
  :root :where(.roadmap-grid) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root :where(.roadmap-grid) {
    grid-template-columns: 1fr;
  }
}



/* final-cta-inner grid layout */
:root :where(.final-cta-inner) {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* final-cta-actions flex layout */
:root :where(.final-cta-actions) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  flex-wrap: wrap;
}

/* final-cta-art flex layout */
:root :where(.final-cta-art) {
  display: flex;
  justify-content: flex-end;
}

/* cta-terminal-body styling */
:root :where(.cta-terminal-body) {
  padding: var(--wp--preset--spacing--30);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 2;
}

@media (max-width: 1024px) {
  :root :where(.final-cta-inner) {
    grid-template-columns: 1fr;
    text-align: center;
  }

  :root :where(.final-cta-headline span) {
    display: inline;
  }

  :root :where(.final-cta-desc) {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  :root :where(.final-cta-actions) {
    justify-content: center;
  }

  :root :where(.final-cta-art) {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root :where(.final-cta-actions) {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-block-button.final-cta-btn .wp-block-button__link {
    justify-content: center;
  }
}



/* footer-inner children spacing */
:root :where(.footer-inner > * + *) {
  margin-top: var(--wp--preset--spacing--40);
}

/* footer-brand flex column */
:root :where(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

/* footer-links grid layout */
:root :where(.footer-links) {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--wp--preset--spacing--50);
  justify-content: start;
}

/* footer-col flex column */
:root :where(.footer-col) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

/* footer-link styling */
:root :where(.footer-link) {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-dim);
  transition: color 0.2s;
}

:root :where(.footer-link:hover) {
  color: var(--wp--preset--color--c-text);
}

/* footer-bottom border */
:root :where(.footer-bottom) {
  padding-top: var(--wp--preset--spacing--40);
  border-top: 1px solid var(--wp--preset--color--c-border);
}

/* footer-logo-text link styling */
:root :where(.footer-logo-text a) {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  :root :where(.footer-links) {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
  }
}



/* Absolute positioned elements - editor fixes */
.editor-styles-wrapper .hero-glow {
  position: absolute !important;
}

.editor-styles-wrapper .hero-glow-secondary {
  position: absolute !important;
}

.editor-styles-wrapper .step-connector::after {
  position: absolute !important;
}

/* Grid/flex editor fixes */
.editor-styles-wrapper .hero-body {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--wp--preset--spacing--50) !important;
}

.editor-styles-wrapper .hero-body > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .hero-content {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .hero-content > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .bento-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .bento-grid > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .bento-chat-mock {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .bento-chat-mock > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .bento-memory-visual {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .bento-memory-visual > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .bento-abilities-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .bento-abilities-grid > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .steps-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.editor-styles-wrapper .step-card {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .step-card > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .tech-layout {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .tech-layout > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .tech-info {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .tech-info > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .tech-list {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .tech-list > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .tech-list-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.editor-styles-wrapper .slash-commands {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.editor-styles-wrapper .slash-commands > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .slash-cmd {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .roadmap-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .roadmap-grid > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .final-cta-inner {
  display: grid !important;
  grid-template-columns: 1.3fr 0.7fr !important;
  gap: var(--wp--preset--spacing--50) !important;
}

.editor-styles-wrapper .final-cta-inner > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .final-cta-actions {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .final-cta-actions > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .final-cta-art {
  display: flex !important;
  justify-content: flex-end !important;
}

.editor-styles-wrapper .footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, auto) !important;
  gap: var(--wp--preset--spacing--50) !important;
  justify-content: start !important;
}

.editor-styles-wrapper .footer-links > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .footer-col > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .footer-brand > .block-editor-block-list__block {
  margin: 0 !important;
}

/* Hero grid - out-of-flow children (glow elements) */
.editor-styles-wrapper .hero > .block-editor-block-list__block:has(.hero-glow) {
  display: contents !important;
}

.editor-styles-wrapper .hero > .block-editor-block-list__block:has(.hero-glow-secondary) {
  display: contents !important;
}

/* wp:navigation editor fixes */
.editor-styles-wrapper .wp-block-navigation.hero-nav .wp-block-navigation__container {
  display: flex !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .wp-block-navigation.hero-nav .wp-block-navigation__responsive-container-content {
  display: flex !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .wp-block-navigation.hero-nav .wp-block-navigation-item + .wp-block-navigation-item {
  margin-left: var(--wp--preset--spacing--40) !important;
}

/* hero-nav-links editor flex */
.editor-styles-wrapper .hero-nav-links {
  display: flex !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .hero-nav-links > .block-editor-block-list__block {
  margin: 0 !important;
}

/* hero-nav-brand editor flex */
.editor-styles-wrapper .hero-nav-brand {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .hero-nav-brand > .block-editor-block-list__block {
  margin: 0 !important;
}

/* hero-nav space-between editor fix */
.editor-styles-wrapper .wp-block-group.hero-nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* hero-actions editor flex */
.editor-styles-wrapper .hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--30) !important;
  flex-wrap: wrap !important;
}

.editor-styles-wrapper .hero-actions > .block-editor-block-list__block {
  margin: 0 !important;
}

/* hero-features editor flex */
.editor-styles-wrapper .hero-features {
  display: flex !important;
  gap: var(--wp--preset--spacing--30) !important;
  flex-wrap: wrap !important;
}

.editor-styles-wrapper .hero-features > .block-editor-block-list__block {
  margin: 0 !important;
}

/* hero-terminal-bar editor flex */
.editor-styles-wrapper .hero-terminal-bar {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .hero-terminal-bar > .block-editor-block-list__block {
  margin: 0 !important;
}

/* wp-block-buttons alignment in hero-actions */
:root :where(.hero-actions .wp-block-buttons) {
  display: flex;
}

/* Admin bar offset for sticky hero-nav group */
.admin-bar .wp-block-group.hero-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .wp-block-group.hero-nav {
    top: 46px;
  }
}



:root :where(.wp-block-post-title) {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--wp--preset--color--c-text);
}

:root :where(.wp-block-post-title a) {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

:root :where(.wp-block-post-title a:hover) {
  color: var(--wp--preset--color--c-red-bright);
}

:root :where(.wp-block-post-date),
:root :where(.wp-block-post-author) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-faint);
  letter-spacing: 0.02em;
}

:root :where(.wp-block-post-excerpt) {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.7;
}

:root :where(.wp-block-post-featured-image) {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--c-border);
}

:root :where(.wp-block-post-featured-image img) {
  width: 100%;
  height: auto;
  display: block;
}

/* Pagination */
:root :where(.wp-block-query-pagination) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--30);
  margin-top: var(--wp--preset--spacing--50);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
}

:root :where(.wp-block-query-pagination-numbers) {
  display: flex;
  gap: var(--wp--preset--spacing--20);
}

:root :where(.wp-block-query-pagination-numbers .page-numbers) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: var(--wp--preset--spacing--20);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 6px;
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

:root :where(.wp-block-query-pagination-numbers .page-numbers:hover) {
  border-color: var(--wp--preset--color--c-border-bright);
  color: var(--wp--preset--color--c-text);
}

:root :where(.wp-block-query-pagination-numbers .page-numbers.current) {
  background: var(--wp--preset--color--c-red);
  border-color: var(--wp--preset--color--c-red);
  color: #fff;
}

:root :where(.wp-block-query-pagination-next),
:root :where(.wp-block-query-pagination-previous) {
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: color 0.2s;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 6px;
}

:root :where(.wp-block-query-pagination-next:hover),
:root :where(.wp-block-query-pagination-previous:hover) {
  color: var(--wp--preset--color--c-text);
  border-color: var(--wp--preset--color--c-border-bright);
}

/* Search */
:root :where(.wp-block-search) {
  font-family: var(--font-sans);
}

:root :where(.wp-block-search__input) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-text);
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 8px;
  padding: 0.75rem var(--wp--preset--spacing--30);
  transition: border-color 0.2s;
}

:root :where(.wp-block-search__input:focus) {
  border-color: var(--wp--preset--color--c-red-bright);
  outline: none;
}

:root :where(.wp-block-search__input::placeholder) {
  color: var(--wp--preset--color--c-text-faint);
}

:root :where(.wp-block-search__button) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--c-red);
  border: none;
  border-radius: 8px;
  padding: 0.75rem var(--wp--preset--spacing--30);
  cursor: pointer;
  transition: background 0.2s;
}

:root :where(.wp-block-search__button:hover) {
  background: #CC1F17;
}

/* Comments */
:root :where(.wp-block-comment-template) {
  list-style: none;
  padding: 0;
}

:root :where(.wp-block-comment-author-name) {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--wp--preset--color--c-text);
  font-size: var(--wp--preset--font-size--base);
}

:root :where(.wp-block-comment-content) {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.7;
}

:root :where(.wp-block-comments-pagination) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--30);
  margin-top: var(--wp--preset--spacing--40);
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
}

:root :where(.wp-block-comments-pagination-numbers) {
  display: flex;
  gap: var(--wp--preset--spacing--20);
}

:root :where(.wp-block-comments-pagination-numbers .page-numbers) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: var(--wp--preset--spacing--20);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 6px;
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

:root :where(.wp-block-comments-pagination-numbers .page-numbers:hover) {
  border-color: var(--wp--preset--color--c-border-bright);
  color: var(--wp--preset--color--c-text);
}

:root :where(.wp-block-comments-pagination-previous),
:root :where(.wp-block-comments-pagination-next) {
  color: var(--wp--preset--color--c-text-dim);
  text-decoration: none;
  transition: color 0.2s;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 6px;
}

:root :where(.wp-block-comments-pagination-previous:hover),
:root :where(.wp-block-comments-pagination-next:hover) {
  color: var(--wp--preset--color--c-text);
  border-color: var(--wp--preset--color--c-border-bright);
}

/* Blockquote */
:root :where(.wp-block-quote) {
  font-family: var(--font-sans);
  font-size: var(--wp--preset--font-size--lg);
  font-style: italic;
  color: var(--wp--preset--color--c-text-dim);
  line-height: 1.7;
  border-left: 3px solid var(--wp--preset--color--c-red);
  padding-left: var(--wp--preset--spacing--40);
  margin: var(--wp--preset--spacing--40) 0;
}

:root :where(.wp-block-quote cite) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-text-faint);
  font-style: normal;
  display: block;
  margin-top: var(--wp--preset--spacing--20);
}

/* Code block */
:root :where(.wp-block-code) {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--small);
  line-height: 2;
  background: var(--wp--preset--color--c-bg-raised);
  border: 1px solid var(--wp--preset--color--c-border);
  border-radius: 12px;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  overflow-x: auto;
  color: var(--wp--preset--color--c-text);
}

:root :where(.wp-block-code code) {
  font-family: var(--font-mono);
  background: none;
  padding: 0;
}

/* WordPress Admin Bar Offset */
.admin-bar .nav,
.admin-bar [class*="nav"][style*="position: fixed"],
.admin-bar [class*="header"][style*="position: fixed"] {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .nav,
  .admin-bar [class*="nav"][style*="position: fixed"],
  .admin-bar [class*="header"][style*="position: fixed"] {
    top: 46px;
  }
}

/* Reset paragraph wrapper styles for inline content converted to wp:paragraph */
:where(.wp-block-paragraph) {
  margin: 0;
}

/* Reset WordPress button line-height to match original CSS */
.wp-block-button__link {
  line-height: normal;
}

/* CRITICAL: Reset WordPress button wrappers to prevent double styling. */
.wp-block-button {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0;
  box-shadow: none !important;
}

/* Navigation link styling - remove default underlines in nav contexts */
:where([class*="nav"] a),
:where([class*="nav"] .wp-block-paragraph a),
:where([class*="-link-wrapper"] a) {
  text-decoration: none;
}

/* Reset paragraph margins inside navigation */
:where([class*="nav"] .wp-block-paragraph) {
  margin: 0;
}

/* Editor-specific: override WordPress editor link styles */
.editor-styles-wrapper [class*="nav"] a,
.editor-styles-wrapper [class*="-link-wrapper"] a {
  text-decoration: none;
}

/* wp:navigation block resets */
:where(.wp-block-navigation),
:where(.wp-block-navigation-item__content) {
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}

:where(.wp-block-navigation__container) {
  padding: 0;
}

/* Spacer inside navigation */
:where(.wp-block-navigation .wp-block-spacer) {
  flex-grow: 1;
  height: 0 !important;
  min-height: 0 !important;
}

/* Reset responsive container */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Desktop navigation layout */
.wp-block-navigation__responsive-container-content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
}

/* Gap between nav items */
:where(.wp-block-navigation .wp-block-navigation__container) {
  gap: var(--nav-gap, 1.5rem);
}

/* Nav containers must shrink to fit */
.wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
  flex-shrink: 1;
  min-width: 0;
}

:where(.wp-block-navigation__responsive-container-content > .wp-block-navigation__container) {
  display: flex;
  align-items: center;
}

/* CRITICAL: Reset inner UL elements */
.wp-block-navigation__container {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.wp-block-navigation__responsive-container-content > * {
  flex-shrink: 0;
}

:where(.wp-block-navigation .wp-block-search) {
  flex-shrink: 0;
}

.wp-block-navigation .wp-block-site-title {
  margin: 0;
}

.wp-block-navigation .wp-block-site-title a {
  text-decoration: none;
  color: inherit;
}

.wp-block-navigation .wp-block-navigation-item__content {
  display: inline;
  white-space: nowrap;
}

/* wp:navigation mobile menu defaults */
.wp-block-navigation__responsive-container-open {
  background: transparent;
  border: none;
  color: inherit;
}

/* Mobile menu overlay: explicit viewport dimensions needed because parent transforms
   (e.g. on sticky headers) create new containing blocks, breaking position:fixed */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--mobile-nav-background, #1a1a1a);
  color: var(--mobile-nav-text, #ffffff);
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  padding: var(--mobile-nav-padding, 1.5rem); /* Ensure close button has breathing room */
  box-sizing: border-box;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: var(--mobile-nav-font-size, 1.5rem);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--mobile-nav-gap, 1.5rem);
}

/* Mobile menu: override desktop justification for centered mobile layout */
/* WordPress sets --navigation-layout-justification-setting from block attributes (e.g. justifyContent:"right") */
/* which bleeds into mobile menu. Reset the variable so WordPress's own CSS uses center alignment. */
.wp-block-navigation__responsive-container.is-menu-open {
  --navigation-layout-justification-setting: center;
  --navigation-layout-justify: center;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column;
  align-items: center;
  gap: var(--mobile-nav-gap, 1.5rem);
}

/* Mobile menu z-index fix: When header and content are siblings with same z-index,
   content paints above header due to DOM order. Elevate only the template part containing
   the open navigation menu. Use :has() for precise targeting without affecting other elements. */
.wp-block-template-part:has(.wp-block-navigation .is-menu-open),
header:has(.wp-block-navigation .is-menu-open) {
  z-index: 100001;
  position: relative;
}


/* Editor-specific fixes */
.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item {
  margin: 0;
}


/* Editor navigation structure fix - ensure flex display is applied */
/* Gap values should come from theme-specific CSS adjustments, not here */
.editor-styles-wrapper .wp-block-navigation__container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

.editor-styles-wrapper .wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* Overlay header — transparent nav overlaying the hero section.
 * Uses CSS Grid overlap so header and hero share the same grid row.
 * No height assumptions needed.
 *
 * Frontend only — in the editor the header stacks normally above the hero,
 * which is fine for editing. The overlay is a visual presentation concern. */

/* Frontend: header in page content (homepage) */
body:not(.wp-admin) .wp-block-post-content:has(> .overlay-header) {
  display: grid !important;
  grid-template-columns: 1fr;
}
body:not(.wp-admin) .wp-block-post-content > .overlay-header {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
body:not(.wp-admin) .wp-block-post-content > .overlay-header + * {
  grid-column: 1;
  grid-row: 1;
}

/* Frontend: header in template (sub-pages) */
body:not(.wp-admin):has(> .wp-site-blocks > .overlay-header) .wp-site-blocks {
  display: grid !important;
  grid-template-columns: 1fr;
}
body:not(.wp-admin) .wp-site-blocks > .overlay-header {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
body:not(.wp-admin) .wp-site-blocks > .overlay-header + * {
  grid-column: 1;
  grid-row: 1;
}

/* Overlay header shared styles */
.overlay-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent !important;
  transition: background-color 0.3s ease;
}
/* Scroll state: JS adds is-scrolled class when user scrolls past hero */
.overlay-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Admin bar offset for sticky overlay header */
.admin-bar .overlay-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .overlay-header {
    top: 46px;
  }
}

/* Sticky header support for non-overlay headers.
 * Many HTML sites use position:sticky on nav elements. In WordPress the header
 * template-part wrapper (<header>) needs the sticky positioning, not inner elements. */
header.wp-block-template-part:has([class*="nav"][style*="position: sticky"]),
header.wp-block-template-part:has([class*="nav"][style*="position:sticky"]),
header.wp-block-template-part:has([class*="header"][style*="position: sticky"]),
header.wp-block-template-part:has([class*="header"][style*="position:sticky"]) {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Admin bar offset for sticky template-part headers */
.admin-bar header.wp-block-template-part[style*="sticky"],
.admin-bar header.wp-block-template-part:has([style*="sticky"]) {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header.wp-block-template-part[style*="sticky"],
  .admin-bar header.wp-block-template-part:has([style*="sticky"]) {
    top: 46px;
  }
}

/* Header slot placeholder must remain in normal flow to preserve CSS Grid
 * row structure inside the hero section. The slot occupies the first grid row
 * (where the nav originally was) so the spacer and content rows stay correct. */
:root :where(.miles-header-slot) {
  display: block !important;
  pointer-events: none;
}


/* WordPress Admin Bar Offset (auto-generated for fixed/sticky elements) */
.admin-bar .hero-nav {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .hero-nav {
    top: 46px !important;
  }
}

/* ===========================================
   RESPONSIVE UTILITY CLASSES (Miles Utilities)
   Reusable helpers for common responsive patterns
   =========================================== */

/* Flex row that stacks vertically on mobile */
.miles-row-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--40, 1.5rem);
}

@media (max-width: 781px) {
  .miles-row-stack {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Reverse order on mobile (image above text, etc.) */
@media (max-width: 781px) {
  .miles-swap-order {
    flex-direction: column-reverse;
  }
}

/* Sticky positioning with admin bar offset */
.miles-sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .miles-sticky-top {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .miles-sticky-top {
    top: 46px;
  }
}

/* Prevent flex item from shrinking */
.miles-no-shrink {
  flex-shrink: 0;
}

/* Flex utilities for alignment */
.miles-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.miles-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hide visually but keep accessible */
.miles-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Editor button group gap fix: WordPress editor adds margins to button wrappers
   which breaks custom gap values. Reset wrapper margins so CSS gap works.
   Only target horizontal (default) layout — respect vertical if user changes it. */
.editor-styles-wrapper .wp-block-buttons:not(.is-vertical):not(.is-layout-flow) {
  display: flex !important;
  flex-wrap: wrap !important;
}

.editor-styles-wrapper .wp-block-buttons > .block-editor-block-list__block {
  margin: 0 !important;
}



/* Auto-generated editor margin resets for flex/grid containers */
.editor-styles-wrapper .memory-line > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .steps-container > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .slash-cmd > .block-editor-block-list__block {
  margin: 0 !important;
}

.editor-styles-wrapper .miles-row-stack > .block-editor-block-list__block {
  margin: 0 !important;
}
