.nav {
  overflow: visible;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--nav-muted);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.72rem;
  opacity: 0.85;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--nav-text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  box-shadow: 0 20px 36px rgba(2, 6, 23, 0.35);
  padding: 8px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.2;
}

.nav-dropdown-menu a:hover {
  background: rgba(129, 140, 248, 0.18);
  color: #f8fafc;
}

.seo-page main {
  padding: 38px 0 60px;
}

.seo-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.1);
  padding: clamp(24px, 3vw, 42px);
  min-height: 330px;
}

.seo-hero::before,
.seo-hero::after {
  content: none;
}

.seo-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 34px;
  align-items: center;
}

.seo-hero-copy {
  min-width: 0;
}

.seo-visual {
  position: relative;
  min-height: 270px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  padding: 18px;
  overflow: hidden;
}

.seo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.visual-stack,
.visual-flow,
.visual-builder-grid,
.visual-meter {
  position: relative;
  z-index: 1;
}

.visual-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 700;
}

.visual-panel {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.visual-panel strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
}

.visual-panel span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.84rem;
}

.visual-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}

.visual-node {
  min-height: 78px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.visual-arrow {
  color: #6366f1;
  font-weight: 700;
  text-align: center;
}

.visual-builder-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.builder-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.builder-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.builder-copy strong {
  display: block;
  color: #0f172a;
}

.builder-copy span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
}

.mark-elementor { background: #92003b; }
.mark-bricks { background: #111827; color: #ffd64f; }
.mark-breakdance { background: #f5b700; color: #111827; }

.elementor-visual {
  border-color: rgba(146, 0, 59, 0.22);
}

.elementor-visual .visual-pill,
.elementor-visual .dynamic-chip {
  background: rgba(146, 0, 59, 0.1);
  color: #92003b;
}

.elementor-visual .visual-builder-canvas {
  background: linear-gradient(180deg, #fff7fb, #ffffff);
}

.bricks-visual {
  border-color: rgba(17, 24, 39, 0.2);
}

.bricks-visual .visual-pill,
.bricks-visual .dynamic-chip {
  background: rgba(255, 214, 79, 0.28);
  color: #111827;
}

.bricks-visual .visual-builder-canvas {
  background: linear-gradient(180deg, #fff8d7, #ffffff);
}

.breakdance-visual {
  border-color: rgba(245, 183, 0, 0.35);
}

.breakdance-visual .visual-pill,
.breakdance-visual .dynamic-chip {
  background: rgba(245, 183, 0, 0.24);
  color: #111827;
}

.breakdance-visual .visual-builder-canvas {
  background: linear-gradient(180deg, #fff6cf, #ffffff);
}

.voice-visual {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(180deg, #f8faff, #ffffff);
}

.package-visual {
  border-color: rgba(15, 23, 42, 0.16);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.visual-meter {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.meter-row {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.meter-row strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
}

.meter-bar {
  display: block;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1 var(--fill, 60%), #e2e8f0 0);
}

.visual-builder-canvas {
  position: relative;
  z-index: 1;
  min-height: 230px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px;
}

.builder-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.builder-toolbar span {
  width: 34px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
}

.builder-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 12px;
}

.builder-sidebar,
.builder-preview {
  min-height: 150px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px;
}

.builder-preview {
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.dynamic-chip {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 700;
}

.package-visual .visual-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.article-console,
.voice-stack,
.package-ledger {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.article-console {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.article-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.article-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.article-lines {
  display: grid;
  gap: 8px;
}

.article-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
}

.article-lines span:nth-child(1) {
  width: 78%;
  height: 15px;
  background: #94a3b8;
}

.article-lines span:nth-child(2) { width: 94%; }
.article-lines span:nth-child(3) { width: 66%; }

.audio-output-card,
.voice-entitlement-card,
.ledger-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.mini-player {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #ffffff;
  font-weight: 900;
}

.mini-wave {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 36px;
}

.mini-wave span {
  flex: 1;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #818cf8, #6366f1);
}

.voice-entitlement-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f8fafc;
  border-color: rgba(129, 140, 248, 0.24);
}

.voice-entitlement-card strong,
.ledger-card strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.voice-entitlement-card span {
  color: #c7d2fe;
}

.entitlement-row,
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
  color: #cbd5e1;
  font-size: 0.86rem;
}

.voice-profile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(129, 140, 248, 0.38), transparent 34%),
    linear-gradient(145deg, #111827 0%, #172554 52%, #312e81 100%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.24);
  color: #ffffff;
}

.voice-profile-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  pointer-events: none;
}

.voice-profile-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, #818cf8, #22d3ee);
  box-shadow: 0 0 0 8px rgba(129, 140, 248, 0.16), 0 18px 32px rgba(34, 211, 238, 0.18);
}

.voice-orb span {
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-left-color: transparent;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.voice-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(199, 210, 254, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.34);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.voice-waveform {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 82px;
  padding: 14px 0;
}

.voice-waveform span {
  flex: 1;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e0f2fe, #818cf8 58%, #4f46e5);
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.26);
}

.voice-profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.voice-profile-copy strong {
  color: #ffffff;
  font-size: 1rem;
}

.voice-profile-copy span {
  color: #c7d2fe;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ledger-card {
  display: grid;
  gap: 10px;
}

.ledger-row {
  border-top-color: #e2e8f0;
  color: #475569;
}

.ledger-row b {
  color: #0f172a;
}

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

.context-card {
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.84));
  padding: 20px;
}

.context-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
}

.context-card p {
  margin: 0;
  color: #64748b;
}

.usecase-card {
  position: relative;
  min-height: 170px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.usecase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.usecase-card h3 {
  margin: 0 0 8px;
}

.usecase-card p {
  margin: 0;
  color: #64748b;
}

.package-price {
  color: #6366f1;
  font-size: 1.2rem;
  font-weight: 800;
}

.seo-hero .kicker {
  margin-bottom: 12px;
}

.seo-hero h1 {
  margin: 0;
  font-size: 4.1rem;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 12.5ch;
}

.seo-hero p {
  margin: 16px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.seo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.seo-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-card {
  border: 1px solid rgba(24, 33, 29, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 20px;
}

.seo-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.seo-card p {
  margin: 0;
  color: var(--muted);
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}

.seo-links a {
  color: var(--accent);
  font-weight: 700;
}

.seo-links a:hover {
  color: var(--accent-3);
}

.integration-tech {
  margin-top: 18px;
}

.integration-tech h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.integration-tech .lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.integration-steps {
  counter-reset: integration-step;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.integration-step {
  counter-increment: integration-step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.integration-step::before {
  content: counter(integration-step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.integration-step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.integration-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111827;
  color: #f8fafc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  white-space: nowrap;
}

.field-map {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.86);
}

.field-row strong {
  color: var(--ink);
}

.field-row span {
  color: var(--muted);
}

.tech-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(255, 255, 255, 0.85));
  color: var(--muted);
  line-height: 1.65;
}

.tech-note strong {
  color: var(--ink);
}

.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-footer-links a {
  color: var(--muted);
}

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

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

  .seo-hero-layout {
    grid-template-columns: 1fr;
  }

  .seo-hero {
    min-height: auto;
  }

  .seo-visual {
    min-height: 240px;
  }

  .seo-hero h1 {
    font-size: 2.6rem;
  }

  .seo-grid,
  .seo-grid.two,
  .context-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .seo-hero h1 {
    font-size: 2.1rem;
  }

  .visual-flow,
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .visual-arrow {
    transform: rotate(90deg);
  }

  .integration-step {
    grid-template-columns: 1fr;
  }
}
