:root {
  --bg: #fffcfa;
  --bg-accent: #fffcfa;
  --ink: rgba(27, 27, 27, 0.72);
  --ink-strong: rgba(27, 27, 27, 0.82);
  --muted: rgba(27, 27, 27, 0.55);
  --accent: #c3522b;
  --card: rgba(255, 255, 255, 0.4);
  --border: rgba(27, 27, 27, 0.08);
  --shadow: rgba(27, 27, 27, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

#v3-ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 48px 20px 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.top-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.5);
}

.top-nav a {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.brand {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 14px 0 12px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.hero-subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 800px;
}

.hero-subtitle a {
  color: var(--accent);
  font-weight: 800;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span {
  background: rgba(27, 27, 27, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Category Tokens */
.category-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.category-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.category-token:hover {
  background: rgba(27, 27, 27, 0.06);
  border-color: rgba(27, 27, 27, 0.15);
  transform: translateY(-1px);
}

.category-token.active {
  background: #1b1b1b;
  color: #fff;
  border-color: #1b1b1b;
}

.category-token-count {
  font-size: 11px;
  font-weight: 800;
  background: rgba(27, 27, 27, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--muted);
}

.category-token.active .category-token-count {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.section-title {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--ink-strong);
}

.section-text {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 900px;
}

/* Search */
.search-bar {
  margin: 16px 0 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
  font-family: inherit;
}

.search-count {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
}

/* Inspiration Category Sections (index) */
.inspo-category {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.inspo-category-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink-strong);
}

/* Query Card Grid */
.query-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.query-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.query-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 27, 27, 0.12);
}

.query-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f0eb 0%, #ece4db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.query-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.query-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.3;
}

.query-meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Detail page — Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.company-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-strong);
}

.company-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.screen-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screen-real {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(27, 27, 27, 0.08);
  background: #fffcfa;
  box-shadow: 0 6px 18px var(--shadow);
}

.screen-real img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.screen-locked {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(27, 27, 27, 0.08);
  background: linear-gradient(165deg, #f5f0eb 0%, #ece4db 40%, #e0d5c9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.screen-locked:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 27, 27, 0.12);
}

.screen-locked-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(27, 27, 27, 0.55);
  text-align: center;
  line-height: 1.4;
}

.screen-locked-btn {
  background: #1b1b1b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.empty-state {
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

/* CTA */
.cta {
  margin: 50px auto 70px;
  max-width: 900px;
  padding: 28px 28px 32px;
  border-radius: 20px;
  background: #1b1b1b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta h3 {
  margin: 0;
  font-size: 24px;
}

.cta p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.cta a {
  background: #fff;
  color: #1b1b1b;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

/* Footer */
.footer {
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 720px) {
  .hero-title {
    font-size: 32px;
  }

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

  .query-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .category-tokens {
    gap: 6px;
  }

  .category-token {
    padding: 6px 10px;
    font-size: 12px;
  }

  .screen-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-strip .screen-locked:last-child {
    display: none;
  }
}
