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

:root {
  --bg: #040714;
  --surface-1: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.06);
  --border-subtle: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.1);
  --border-strong: rgba(255,255,255,.22);
  --text-primary: #f9f9f9;
  --text-secondary: #cacaca;
  --text-muted: rgba(255,255,255,.45);
  --accent: #d946ef;
  --accent-bright: #e879f9;
  --accent-dim: rgba(217, 70, 239, 0.15);
  --font: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 15px;
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 200ms;
}

body {
  font-family: var(--font);
  background: var(--bg);
  min-height: 100vh;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 1000;
  padding: 8px 16px; background: var(--accent-bright); color: #000;
  font-weight: 600; font-size: 0.875rem; border-radius: 0 0 6px 6px;
  text-decoration: none; transition: top var(--dur);
}
.skip-link:focus { top: 0; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header-bar {
  background: linear-gradient(in oklch 135deg, #B015B0 0%, #3D0080 50%, #040714 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px; height: 68px;
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo-img {
  height: 36px; width: auto; flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: transform 0.3s var(--ease-snap);
}
.header-logo-img:hover { transform: scale(1.14) rotate(-9deg); }
.header-logo h1 { font-size: 1.2em; font-weight: 600; color: var(--text-primary); letter-spacing: .5px; }
.header-subtitle { font-size: .82em; color: rgba(255,255,255,.72); font-weight: 500; margin-top: 3px; }
.header-home {
  display: flex; align-items: center; margin-left: auto; padding: 5px;
  color: rgba(255,255,255,0.9); text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur), background var(--dur); flex-shrink: 0;
}
.header-home:hover { color: #fff; background: rgba(255,255,255,0.12); }
.header-home svg { width: 34px; height: 34px; display: block; }

/* ── Controls bar ────────────────────────────────────────────────────────── */
.controls-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.02);
  min-height: 48px;
  flex-wrap: wrap;
}
.layout-tabs { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.layout-tab {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; transition: color var(--dur), background var(--dur);
  white-space: nowrap;
}
.layout-tab:hover { color: var(--text-secondary); background: var(--surface-2); }
.layout-tab.active { color: var(--accent-bright); background: var(--accent-dim); }

.controls-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ctrl-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 500; font-family: var(--font);
  color: var(--text-muted); background: none;
  border: 1px solid var(--border-subtle); cursor: pointer;
  transition: color var(--dur), background var(--dur), border-color var(--dur);
  white-space: nowrap;
}
.ctrl-btn:hover { color: var(--text-secondary); border-color: var(--border); }
.ctrl-btn.active { color: var(--accent-bright); border-color: var(--accent); background: var(--accent-dim); }

/* ── Main body layout ────────────────────────────────────────────────────── */
#main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.anatomy-body {
  display: flex; flex: 1; min-height: 0; overflow: hidden;
}

/* ── Component browser sidebar ───────────────────────────────────────────── */
.comp-browser {
  width: 250px; flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.015);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width var(--dur), opacity var(--dur);
}
.comp-browser.hidden { width: 0; opacity: 0; pointer-events: none; }
.browser-header { padding: 12px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.browser-search {
  width: 100%; padding: 7px 10px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font); font-size: 0.8rem;
  outline: none; transition: border-color var(--dur);
}
.browser-search:focus { border-color: var(--accent); }
.browser-search::placeholder { color: var(--text-muted); }
.browser-list {
  flex: 1; overflow-y: auto; padding: 8px 0;
}
.browser-list::-webkit-scrollbar { width: 4px; }
.browser-list::-webkit-scrollbar-track { background: transparent; }
.browser-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.browser-category { padding: 12px 12px 4px; }
.browser-category-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase;
}
.browser-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; cursor: pointer;
  font-size: 0.8rem; color: var(--text-secondary);
  transition: background var(--dur), color var(--dur);
  border-radius: 4px; margin: 0 4px;
}
.browser-item:hover { background: var(--surface-2); color: var(--text-primary); }
.browser-item.active {
  background: var(--accent-dim);
  color: var(--accent-bright);
}
.browser-item .browser-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-strong); flex-shrink: 0;
  transition: background var(--dur);
}
.browser-item.active .browser-dot { background: var(--accent); }
.browser-item.missing { opacity: 0.3; pointer-events: none; }

/* ── Mockup area ─────────────────────────────────────────────────────────── */
.mockup-area {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 20px;
  background: #0c0e1a;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mockup-area::-webkit-scrollbar { width: 6px; }
.mockup-area::-webkit-scrollbar-track { background: transparent; }
.mockup-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.mockup-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted);
  padding: 6px 12px; background: var(--surface-1);
  border: 1px solid var(--border-subtle); border-radius: 99px;
}

.mockup-frame {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  width: 100%; max-width: 900px;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.anatomy-tooltip {
  position: fixed; z-index: 500;
  width: 300px;
  background: #0f1320;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  pointer-events: none;
  transition: opacity 0.15s;
}
.anatomy-tooltip.hidden { opacity: 0; }

.tt-name-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.tt-name {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
}
.tt-category {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); padding: 2px 6px; border-radius: 3px;
}
.tt-also {
  font-size: 0.72rem; color: var(--text-muted);
  margin-bottom: 8px;
}
.tt-desc {
  font-size: 0.79rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 10px;
}
.tt-section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 5px;
}
.tt-variants-wrap { margin-bottom: 10px; }
.tt-variants { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-variant-pill {
  font-size: 0.7rem; padding: 2px 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 99px; color: var(--text-secondary);
}
.tt-tip-wrap {
  background: rgba(217,70,239,0.07);
  border: 1px solid rgba(217,70,239,0.2);
  border-radius: var(--radius-sm); padding: 8px 10px;
}
.tt-tip-wrap .tt-section-label { color: var(--accent); margin-bottom: 4px; }
.tt-tip {
  font-size: 0.75rem; color: rgba(255,255,255,0.75);
  line-height: 1.5; font-style: italic;
}

/* ── Wireframe: core ─────────────────────────────────────────────────────── */
.wf-page {
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #374151;
  user-select: none;
}

/* Placeholder elements */
.wl { display: block; background: #e5e7eb; border-radius: 3px; flex-shrink: 0; }
.wl-6  { height: 6px; }
.wl-8  { height: 8px; }
.wl-10 { height: 10px; }
.wl-12 { height: 12px; }
.wl-14 { height: 14px; }
.wl-18 { height: 18px; }
.wl-22 { height: 22px; }
.wl-28 { height: 28px; }
.wl-36 { height: 36px; }

.wf-img-box {
  background: #f3f4f6;
  border: 1.5px dashed #d1d5db;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wf-img-box::after {
  content: '';
  display: block;
  width: 28px; height: 22px;
  background: #d1d5db;
  border-radius: 3px;
  clip-path: polygon(0 60%, 30% 25%, 55% 50%, 75% 30%, 100% 60%);
}
.wf-avatar {
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
}
.wf-icon-sq {
  background: #e5e7eb;
  border-radius: 8px;
  flex-shrink: 0;
}
.wf-icon-circle {
  background: #e5e7eb;
  border-radius: 50%;
  flex-shrink: 0;
}
.wf-filled-btn {
  background: #1f2937;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wf-outline-btn {
  background: transparent;
  border: 1.5px solid #9ca3af;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wf-ghost-line { background: rgba(255,255,255,0); height: 8px; }

/* Badge pill */
.wf-badge-pill {
  display: inline-flex; align-items: center;
  background: #f3e8ff; border: 1px solid #e9d5ff;
  border-radius: 99px; padding: 3px 10px;
  gap: 4px;
}
.wf-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #a855f7; }

/* Hamburger */
.wf-ham { display: flex; flex-direction: column; gap: 4px; padding: 5px; }
.wf-ham-line { width: 18px; height: 2px; background: #9ca3af; border-radius: 1px; }

/* Star rating */
.wf-stars { display: flex; gap: 2px; }
.wf-star { width: 10px; height: 10px; background: #fbbf24; clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.wf-star-empty { background: #e5e7eb; }

/* Skill tag */
.wf-skill-tag {
  display: inline-flex; align-items: center;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 99px; padding: 3px 10px; height: 26px;
}

/* Divider */
.wf-divider { height: 1px; background: #f3f4f6; }

/* ── Component hover states ───────────────────────────────────────────────── */
[data-comp] {
  cursor: crosshair;
  position: relative;
  border-radius: 3px;
  transition: outline 0.08s, background-color 0.08s;
}
[data-comp].hovered {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 20;
  background-color: rgba(217, 70, 239, 0.04);
}

/* Show all outlines mode */
.mockup-frame.show-outlines [data-comp] {
  outline: 1px dashed rgba(217, 70, 239, 0.3);
  outline-offset: 1px;
}
.mockup-frame.show-outlines [data-comp].hovered {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Wireframe layouts ───────────────────────────────────────────────────── */

/* Shared navbar */
.wf-navbar {
  display: flex; align-items: center;
  padding: 0 28px; height: 52px;
  border-bottom: 1.5px solid #e5e7eb;
  background: #fff; gap: 12px;
}
.wf-logo-group { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.wf-logomark-box { width: 26px; height: 26px; background: #e5e7eb; border-radius: 5px; flex-shrink: 0; }
.wf-nav-center { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: center; }
.wf-nav-item { display: flex; align-items: center; padding: 3px 0; }
.wf-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Shared section */
.wf-section { padding: 36px 32px; }
.wf-section-header { text-align: center; margin-bottom: 28px; }
.wf-section-badge { display: inline-flex; margin: 0 auto 10px; }

/* Shared footer */
.wf-footer {
  background: #111827; padding: 28px 32px;
  display: flex; gap: 32px; flex-wrap: wrap;
}
.wf-footer-logo { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-footer-cols { display: flex; gap: 32px; flex: 1; }
.wf-footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 80px; }
.wf-footer-col-head { width: 50px; height: 8px; background: #374151; border-radius: 3px; }
.wf-footer-link { height: 6px; background: #374151; border-radius: 3px; }
.wf-footer-bottom {
  border-top: 1px solid #1f2937; padding: 14px 32px;
  background: #111827; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.wf-social-icons { display: flex; gap: 8px; }
.wf-social-icon { width: 20px; height: 20px; background: #374151; border-radius: 4px; }

/* Hero shared */
.wf-hero {
  display: flex; align-items: center; gap: 32px;
  padding: 40px 32px; background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.wf-hero-content { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.wf-hero-btns { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.wf-hero-image { flex: 0 0 280px; }

/* Logo bar */
.wf-logo-bar {
  padding: 18px 32px; border-bottom: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.wf-logo-bar-label { height: 8px; width: 120px; background: #e5e7eb; border-radius: 3px; }
.wf-logo-bar-items { display: flex; gap: 24px; align-items: center; }
.wf-brand-logo { height: 18px; background: #e5e7eb; border-radius: 3px; }

/* Feature grid */
.wf-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.wf-feature-card-inner { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; }
.wf-feature-lines { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }

/* Testimonials */
.wf-testimonial-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.wf-testimonial-inner { padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; flex-direction: column; gap: 10px; }
.wf-quote-mark { font-size: 28px; color: #e5e7eb; line-height: 1; }
.wf-quote-lines { display: flex; flex-direction: column; gap: 5px; }
.wf-testimonial-author { display: flex; align-items: center; gap: 8px; }
.wf-byline { display: flex; flex-direction: column; gap: 4px; }

/* Pricing */
.wf-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.wf-pricing-inner {
  padding: 20px 16px; border: 1px solid #e5e7eb;
  border-radius: 10px; display: flex; flex-direction: column; gap: 10px;
}
.wf-pricing-inner.featured { border-color: #a855f7; background: #faf5ff; }
.wf-popular-badge {
  display: inline-block; background: #f3e8ff; color: #7c3aed;
  font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  width: fit-content;
}
.wf-price-val { display: flex; align-items: baseline; gap: 2px; }
.wf-price-dollar { width: 10px; height: 18px; background: #1f2937; border-radius: 2px; }
.wf-price-num { width: 40px; height: 28px; background: #1f2937; border-radius: 3px; }
.wf-price-per { width: 30px; height: 10px; background: #e5e7eb; border-radius: 2px; align-self: flex-end; }
.wf-feature-list { display: flex; flex-direction: column; gap: 6px; }
.wf-feature-list-item { display: flex; gap: 6px; align-items: center; }
.wf-check { width: 10px; height: 10px; background: #10b981; border-radius: 50%; flex-shrink: 0; }

/* Stats */
.wf-stats-bar { display: flex; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.wf-stat-inner {
  flex: 1; padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-right: 1px solid #e5e7eb;
}
.wf-stat-inner:last-child { border-right: none; }

/* CTA section */
.wf-cta-section {
  padding: 36px 32px; background: #1f2937;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.wf-cta-lines { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; }

/* Form */
.wf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wf-form-field { display: flex; flex-direction: column; gap: 5px; }
.wf-form-field.full { grid-column: 1/-1; }
.wf-label { height: 8px; width: 56px; background: #e5e7eb; border-radius: 2px; }
.wf-input-box {
  height: 36px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; width: 100%;
}
.wf-textarea-box {
  height: 80px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; width: 100%;
}

/* Team cards */
.wf-team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.wf-team-inner {
  padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.wf-team-social { display: flex; gap: 6px; }
.wf-team-social-icon { width: 16px; height: 16px; background: #e5e7eb; border-radius: 3px; }

/* Product screenshot */
.wf-product-screenshot {
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 8px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.wf-product-screenshot::after {
  content: ''; display: block;
  width: 60%; height: 4px;
  background: #d1d5db; border-radius: 2px;
  box-shadow: 0 8px 0 #d1d5db, 0 16px 0 #e5e7eb;
}

/* Feature spotlight */
.wf-spotlight { display: flex; gap: 32px; align-items: center; padding: 32px; border-bottom: 1px solid #f3f4f6; }
.wf-spotlight:last-child { border-bottom: none; }
.wf-spotlight.reversed { flex-direction: row-reverse; }
.wf-spotlight-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.wf-spotlight-image { flex: 0 0 280px; }

/* Portfolio hero */
.wf-portfolio-hero { display: flex; align-items: center; gap: 28px; padding: 36px 32px; }
.wf-portfolio-info { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.wf-portfolio-social { display: flex; gap: 8px; margin-top: 4px; }
.wf-portfolio-social-icon { width: 24px; height: 24px; background: #e5e7eb; border-radius: 5px; }

/* Skills */
.wf-skills-section { padding: 32px; }
.wf-skill-group { margin-bottom: 18px; }
.wf-skill-group-label { height: 8px; width: 80px; background: #d1d5db; border-radius: 2px; margin-bottom: 10px; }
.wf-skill-tags-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Projects */
.wf-projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; padding: 0 32px 32px; }
.wf-project-inner { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.wf-project-content { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.wf-project-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.wf-project-tag { height: 18px; width: 44px; background: #f3f4f6; border-radius: 99px; }
.wf-project-links { display: flex; gap: 8px; }
.wf-project-link { width: 22px; height: 22px; background: #e5e7eb; border-radius: 4px; }

/* Timeline */
.wf-timeline { padding: 0 32px 32px; }
.wf-timeline-item { display: flex; gap: 14px; margin-bottom: 20px; }
.wf-timeline-track { display: flex; flex-direction: column; align-items: center; gap: 0; flex-shrink: 0; }
.wf-timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 2px; }
.wf-timeline-line { width: 2px; flex: 1; background: #e5e7eb; min-height: 20px; }
.wf-timeline-content { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.wf-timeline-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wf-timeline-date { height: 8px; width: 60px; background: #d1d5db; border-radius: 2px; flex-shrink: 0; }
.wf-timeline-desc { display: flex; flex-direction: column; gap: 4px; }

/* Blog: featured post */
.wf-featured-post {
  display: flex; gap: 28px; align-items: center;
  padding: 28px 32px; border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.wf-featured-content { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.wf-featured-thumbnail { flex: 0 0 260px; }
.wf-author-block { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wf-author-meta { display: flex; flex-direction: column; gap: 4px; }

/* Article grid */
.wf-article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 0 32px 28px; }
.wf-article-inner { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.wf-article-content { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.wf-article-meta { display: flex; align-items: center; gap: 8px; }

/* Pagination */
.wf-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 16px 32px 28px; }
.wf-page-btn { width: 30px; height: 30px; border: 1px solid #e5e7eb; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.wf-page-btn.active { background: #1f2937; border-color: #1f2937; }
.wf-page-btn .wl { border-radius: 2px; }
.wf-page-dots { width: 20px; text-align: center; }

/* Accordion */
.wf-accordion { display: flex; flex-direction: column; gap: 0; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.wf-accordion-item { padding: 14px 16px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.wf-accordion-item:last-child { border-bottom: none; }
.wf-accordion-item.open { background: #f9fafb; }
.wf-accordion-chevron { width: 14px; height: 14px; background: #d1d5db; border-radius: 50%; flex-shrink: 0; }
.wf-accordion-answer { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 5px; }

/* Search bar */
.wf-search-bar { display: flex; align-items: center; gap: 0; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; background: #fff; }
.wf-search-icon { width: 36px; height: 36px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-right: 1px solid #e5e7eb; }
.wf-search-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9ca3af; }
.wf-search-inner { flex: 1; padding: 0 10px; height: 36px; }

/* Breadcrumb */
.wf-breadcrumb { display: flex; align-items: center; gap: 6px; padding: 8px 32px; border-bottom: 1px solid #e5e7eb; }
.wf-breadcrumb-sep { width: 5px; height: 8px; background: #d1d5db; border-radius: 1px; transform: skewX(-15deg); }

/* Sidebar nav (for corporate) */
.wf-layout-with-sidebar { display: flex; }
.wf-sidebar-nav { width: 160px; flex-shrink: 0; border-right: 1px solid #e5e7eb; padding: 16px 0; min-height: 300px; background: #f9fafb; }
.wf-sidebar-nav-item { padding: 8px 14px; display: flex; align-items: center; gap: 8px; }
.wf-sidebar-nav-item.active { background: #f3e8ff; }
.wf-sidebar-dot { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; }
.wf-sidebar-dot.active { background: var(--accent); }

/* Signup nav button */
.wf-signup-btn {
  background: #7c3aed; border-radius: 6px; padding: 6px 12px;
  display: inline-flex; align-items: center; justify-content: center; height: 32px;
}

/* Toggle */
.wf-toggle { display: flex; background: #f3f4f6; border-radius: 6px; padding: 3px; gap: 3px; width: fit-content; margin: 0 auto; }
.wf-toggle-opt { padding: 4px 14px; border-radius: 4px; height: 26px; }
.wf-toggle-opt.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.wf-toggle-inner { height: 8px; background: #9ca3af; border-radius: 2px; }
.wf-toggle-opt.on .wf-toggle-inner { background: #374151; }

/* ── Hero BG swatch picker ───────────────────────────────────────────────── */
.hero-bg-wrap {
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px;
  border-right: 1px solid var(--border-subtle);
  margin-right: 2px;
}
.hero-bg-label {
  font-size: 0.72rem; color: var(--text-muted); white-space: nowrap;
}
.hero-bg-picker { display: flex; align-items: center; gap: 4px; }
.hero-bg-swatch {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid transparent; cursor: pointer;
  flex-shrink: 0; transition: transform 0.12s, border-color 0.12s;
  padding: 0;
}
.hero-bg-swatch:hover { transform: scale(1.2); }
.hero-bg-swatch.active { border-color: var(--accent-bright); transform: scale(1.15); }

/* ── Hero background variants ────────────────────────────────────────────── */
[data-comp="hero-section"].bg-gradient-1 {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff;
}
[data-comp="hero-section"].bg-gradient-2 {
  background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
  color: #fff;
}
[data-comp="hero-section"].bg-gradient-3 {
  background: linear-gradient(135deg, #f97316, #ec4899) !important;
  color: #fff;
}
[data-comp="hero-section"].bg-gradient-4 {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: #fff;
}
[data-comp="hero-section"].bg-pattern-dots {
  background-color: #fff !important;
  background-image: radial-gradient(circle, #d1d5db 1.5px, transparent 1.5px) !important;
  background-size: 18px 18px !important;
}
[data-comp="hero-section"].bg-pattern-lines {
  background-color: #f9fafb !important;
  background-image: repeating-linear-gradient(
    45deg, #e5e7eb 0px, #e5e7eb 1px, transparent 1px, transparent 12px
  ) !important;
}
[data-comp="hero-section"].bg-image {
  background: url(dummy-image.png) center/cover !important;
  position: relative;
}
[data-comp="hero-section"].bg-image::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}
[data-comp="hero-section"].bg-image > * {
  position: relative; z-index: 1;
  color: #fff !important;
}

/* Alert wireframe */
.wf-alert {
  padding: 10px 14px; border-radius: 6px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-family: -apple-system, sans-serif;
}
.wf-alert.info { background: #eff6ff; border-left: 3px solid #3b82f6; color: #1d4ed8; }
.wf-alert.success { background: #f0fdf4; border-left: 3px solid #22c55e; color: #15803d; }
.wf-alert.warning { background: #fffbeb; border-left: 3px solid #f59e0b; color: #b45309; }
.wf-alert.error { background: #fef2f2; border-left: 3px solid #ef4444; color: #b91c1c; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.info-footer {
  text-align: center; padding: 16px 24px 22px;
  color: var(--text-muted); font-size: .78em; line-height: 1.8;
  border-top: 1px solid var(--border-subtle); margin-top: auto;
}
.footer-link { color: var(--text-muted); text-decoration: none; transition: color var(--dur); }
.footer-link:hover { color: var(--text-secondary); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .comp-browser { display: none; }
  .mockup-area { padding: 12px; }
  .wf-hero { flex-direction: column; }
  .wf-hero-image { display: none; }
  .wf-feature-grid, .wf-pricing-grid { grid-template-columns: 1fr; }
  .wf-team-grid { grid-template-columns: repeat(2,1fr); }
  .wf-article-grid { grid-template-columns: repeat(2,1fr); }
  .wf-projects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
