/* ─── Hero-specific ─── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-aurora {
  position: absolute; inset: -10% -10% auto -10%; height: 90%;
  z-index: -1; pointer-events: none;
  filter: blur(80px); opacity: 0.55;
}
.hero-aurora::before, .hero-aurora::after, .hero-aurora span {
  content: ''; position: absolute;
  border-radius: 50%;
}
.hero-aurora::before {
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  top: -10%; left: -8%;
  background: radial-gradient(circle, rgba(99,102,241,0.7) 0%, transparent 60%);
  animation: aurora-drift-1 30s ease-in-out infinite;
}
.hero-aurora::after {
  width: 56vw; height: 56vw; max-width: 640px; max-height: 640px;
  top: -6%; right: -10%;
  background: radial-gradient(circle, rgba(167,139,250,0.65) 0%, transparent 60%);
  animation: aurora-drift-2 34s ease-in-out infinite;
}
.hero-aurora span {
  width: 50vw; height: 50vw; max-width: 580px; max-height: 580px;
  bottom: -20%; left: 30%;
  background: radial-gradient(circle, rgba(192,132,252,0.45) 0%, transparent 60%);
  animation: aurora-drift-3 38s ease-in-out infinite;
}
@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-50px, 40px); }
}
@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(30px, -30px); }
}

.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  font-size: 0.78rem; font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.hero-eyebrow .live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: rgba(34,197,94,0.12);
  color: var(--color-success);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-eyebrow .live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 800;
  padding-bottom: 0.1em;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-title .line-2 { display: block; color: var(--color-text-muted); font-weight: 600; }

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--color-text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--color-success); }

/* ─── Hero Discord demo ─── */
.discord-demo {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20,21,31,0.9) 0%, rgba(13,14,24,0.95) 100%);
  border: 1px solid var(--color-border);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(167,139,250,0.06),
    0 40px 80px -20px rgba(99,102,241,0.25);
  overflow: hidden;
  isolation: isolate;
}
.discord-demo::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(129,140,248,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.discord-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10,11,20,0.6);
  border-bottom: 1px solid var(--color-border);
  position: relative; z-index: 1;
}
.discord-chrome-left { display: flex; align-items: center; gap: 10px; }
.discord-channel {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--color-text);
}
.discord-channel-hash { color: var(--color-text-dim); font-weight: 400; }
.discord-chrome-right { display: flex; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--color-border-strong); }
.dot.dot-r { background: #ed6a5e; }
.dot.dot-y { background: #f5bf4a; }
.dot.dot-g { background: #61c554; }

.discord-body {
  padding: 24px 22px 18px;
  position: relative; z-index: 1;
  min-height: 480px;
  display: flex; flex-direction: column; gap: 18px;
}

.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.4s cubic-bezier(0.2,0.7,0.2,1) forwards;
}
@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}
.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700;
  color: #fff;
}
.msg-avatar.user-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.msg-avatar.user-2 { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.msg-avatar.bot {
  background: url('logo.png') center/contain no-repeat;
  position: relative;
}
  box-shadow: 0 0 0 0 rgba(167,139,250,0.4);
}
.msg-avatar.bot.thinking::after {
  content: ''; position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.msg-head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
  font-size: 0.875rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.msg-content { min-width: 0; }
.msg-time { white-space: nowrap; }
.msg-name { font-weight: 600; color: var(--color-text); }
.msg-name.bot-name { color: var(--color-primary-bright); }
.msg-tag {
  font-size: 0.625rem; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
  background: var(--color-discord); color: #fff;
  letter-spacing: 0.04em;
}
.msg-time { font-size: 0.7rem; color: var(--color-text-dim); }
.msg-body { color: var(--color-text); font-size: 0.9rem; line-height: 1.55; }
.msg-body .at { color: var(--color-primary-bright); font-weight: 500; }

.bot-card {
  margin-top: 8px;
  border-left: 2px solid var(--color-primary-deep);
  padding: 12px 14px;
  background: rgba(99,102,241,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.85rem;
}
.bot-card-title {
  font-size: 0.78rem; font-weight: 600; color: var(--color-primary-bright);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.bot-card-step {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
  font-size: 0.8125rem; color: var(--color-text-muted);
  font-family: var(--font-mono);
}
.bot-card-step.done { color: var(--color-success); }
.bot-card-step.active { color: var(--color-primary-bright); }
.bot-card-step .step-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.bot-card-step.active .step-icon::after {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--color-primary-bright);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

.file-attach {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-top: 8px;
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}
.file-attach:hover { border-color: var(--color-primary); }
.file-attach-icon {
  width: 32px; height: 32px;
  background: rgba(99,102,241,0.15);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-primary-bright);
  flex-shrink: 0;
}
.file-attach-meta { flex: 1; min-width: 0; }
.file-attach-name { color: var(--color-text); font-weight: 500; font-family: var(--font-mono); font-size: 0.8125rem; }
.file-attach-size { color: var(--color-text-dim); font-size: 0.72rem; }
.file-attach-dl { color: var(--color-text-muted); }

.reactions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.reaction {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: background 0.15s;
}
.reaction:hover { background: rgba(255,255,255,0.07); }
.reaction-add {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--color-text-dim);
  padding: 2px 6px;
}

/* Day divider — Discord-style centered date pill */
.day-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 6px 0 14px;
  font-size: 0.7rem;
  color: var(--color-text-dim);
  font-weight: 600;
}
.day-divider::before, .day-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.06);
}
.day-divider span { letter-spacing: 0.02em; }

/* APP badge — Discord verified-app style */
.msg-tag-app {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.625rem; font-weight: 700;
  padding: 1px 4px 1px 3px; border-radius: 3px;
  background: var(--color-discord); color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
}
.msg-tag-app svg { color: #fff; }

/* Tool-running indicator — only visible while running, disappears once done */
.tool-running {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.tool-running-label code {
  color: var(--color-primary-bright);
  background: rgba(99,102,241,0.14);
  padding: 1px 6px; border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Pulse dot — tiny → med → tiny → med */
.tool-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary-bright);
  box-shadow: 0 0 0 0 rgba(165, 180, 252, 0.55);
  animation: tool-pulse 1.05s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tool-pulse {
  0%, 100% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(165, 180, 252, 0.55); }
  50%      { transform: scale(1.25); box-shadow: 0 0 0 5px rgba(165, 180, 252, 0); }
}

/* Rich reply body */
.weather-reply { font-size: 0.875rem; line-height: 1.6; }
.weather-reply .reply-title {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--color-text);
}
.weather-reply ul {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}
.weather-reply ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 3px;
  color: var(--color-text);
}
.weather-reply ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.65em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-text-dim);
}
.weather-reply p {
  margin: 8px 0 0;
  color: var(--color-text);
}
.weather-reply .sep { color: var(--color-text-dim); margin: 0 4px; }

/* @Ergod mention pill (Discord style) */
.mention {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(99,102,241,0.16);
  color: #c7d2fe;
  font-weight: 500;
}

/* Bottom meta line — calls summary */
.msg-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.55rem;
  color: var(--color-text-dim);
  flex-wrap: wrap;
  opacity: 0.7;
}
.calls-summary {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--color-text-dim);
  letter-spacing: 0.01em;
}
.calls-summary code {
  color: var(--color-text-dim);
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Real-style typing row at bottom of channel (matches Discord chrome) */
.typing-row-real {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 4px 4px;
  font-size: 0.78rem; color: var(--color-text-dim);
}
.typing-row-real strong { color: var(--color-text); font-weight: 600; }
.typing-dots-real { display: inline-flex; gap: 3px; }
.typing-dots-real span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-text-dim);
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dots-real span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots-real span:nth-child(3) { animation-delay: 0.3s; }

.typing-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--color-text-dim);
  padding: 6px 0;
}
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-text-dim);
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.demo-replay {
  position: absolute; bottom: 14px; right: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.demo-replay:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.demo-replay svg { width: 12px; height: 12px; }

/* ─── Trust strip ─── */
.trust-strip {
  padding: 36px 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: 64px;
}
.trust-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.trust-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-dim);
  max-width: 180px;
  line-height: 1.5;
}
.trust-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.trust-stat-num {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--color-text);
}
.trust-stat-label { font-size: 0.78rem; color: var(--color-text-muted); }
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ─── Section headers ─── */
.sec-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 680px;
  margin-left: auto; margin-right: auto;
}
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  padding-bottom: 0.12em;
}
.sec-head p {
  font-size: 1.0625rem; color: var(--color-text-muted);
  max-width: 560px; margin: 0 auto;
}
.sec-head.left { text-align: left; margin-left: 0; }

/* ─── How it works (3 step rail) ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.3);
  color: var(--color-primary-bright);
  font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.125rem; margin-bottom: 8px;
}
.step p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.6; }
.step-tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 4px 9px; border-radius: var(--radius-sm);
  background: var(--color-surface-overlay);
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--color-primary);
  border: 1px solid var(--color-border);
}

/* ─── Use cases (audience switcher) ─── */
.audience {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 8px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
}
@media (max-width: 880px) {
  .audience { grid-template-columns: 1fr; }
}
.aud-tabs {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px;
}
@media (max-width: 880px) {
  .aud-tabs { flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; }
}
.aud-tab {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 600;
  color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.aud-tab:hover { color: var(--color-text); background: var(--color-surface-overlay); }
.aud-tab.active {
  background: var(--color-surface-high);
  color: var(--color-text);
}
.aud-tab small {
  display: block; font-size: 0.75rem; font-weight: 400;
  color: var(--color-text-dim); margin-top: 3px;
}
.aud-tab.active small { color: var(--color-text-muted); }

.aud-panel {
  background: var(--color-surface-overlay);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  min-height: 380px;
}
.aud-panel-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.aud-panel h3 {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 14px;
}
.aud-panel > p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.65; margin-bottom: 24px; max-width: 520px; }
.aud-examples {
  display: grid; gap: 8px;
  margin-bottom: 24px;
}
.aud-example {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-text);
}
.aud-example::before {
  content: '"';
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 1.25rem; line-height: 1;
  flex-shrink: 0;
}

/* ─── Bento ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
}
.bento-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.bento-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
@media (max-width: 1040px) {
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4, .bento-card.span-6 { grid-column: span 1; }
  .bento-card.span-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-card.span-wide { grid-column: span 1; }
}
.bento-card h3 {
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.bento-card p { color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.6; }
.bento-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; margin-left: 8px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(167,139,250,0.32);
  color: var(--color-accent);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  vertical-align: middle;
}
.bento-tag::before {
  content: '✦';
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.9;
}
.bento-tag.amber {
  border-color: rgba(245,158,11,0.32);
  color: var(--color-amber);
}
.bento-tag.amber::before { content: '⚡'; }
.bento-tag.neutral {
  border-color: rgba(255,255,255,0.12);
  color: var(--color-text-muted);
}
.bento-tag.neutral::before { content: '◆'; opacity: 0.6; }
.bento-vis {
  margin-top: auto;
  padding-top: 20px;
}

/* mini code block for bento */
.mini-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.mini-code .cmd { color: var(--color-primary-bright); }
.mini-code .arg { color: var(--color-text); }
.mini-code .out { color: var(--color-text-dim); display: block; padding-top: 4px; }

/* tool grid (mini chips) */
.chip-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip-grid .chip {
  padding: 5px 10px;
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem; color: var(--color-text-muted);
  font-family: var(--font-mono);
}
.chip-grid .chip.indigo {
  background: rgba(129,140,248,0.08);
  border-color: rgba(129,140,248,0.25);
  color: var(--color-primary-bright);
}

/* ─── Showcase gallery ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: zoom-in;
}
.gallery-item:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}
.gallery-img-wrap {
  background: var(--color-surface-overlay);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.gallery-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.02); }
.gallery-cap { padding: 16px 18px; }
.gallery-cap strong {
  display: block; font-weight: 600; font-size: 0.9375rem;
  color: var(--color-text); margin-bottom: 4px;
}
.gallery-cap span { font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.55; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-surface-elevated);
  color: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
}

/* ─── Pricing ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.price-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--color-surface-high);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  z-index: 1;
}
.price-card.featured::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.7;
  animation: border-breathe 8s ease-in-out infinite;
  z-index: -1;
}
.price-card.featured::after {
  content: '';
  position: absolute; inset: -20px;
  background: var(--shadow-glow-accent);
  pointer-events: none;
  z-index: -2;
}
@keyframes border-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Pro+ — gold-glow tier */
.price-card.gold {
  position: relative;
  background:
    linear-gradient(180deg, rgba(251,191,36,0.06) 0%, rgba(251,191,36,0) 55%),
    var(--color-surface-high);
  border-color: transparent;
  box-shadow: var(--shadow-card), 0 0 40px rgba(251,191,36,0.18);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}
.price-card.gold::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: gold-breathe 12s ease-in-out infinite;
  opacity: 0.95;
  z-index: 1;
}
@keyframes gold-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
.price-card.gold::after {
  content: '';
  position: absolute; inset: -30px;
  background: radial-gradient(ellipse at center,
    rgba(251,191,36,0.22) 0%,
    rgba(251,191,36,0.07) 38%,
    transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.price-card.gold .price-tier {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.price-card.gold .tier-glyph {
  font-size: 0.85em;
  margin-left: 4px;
  -webkit-text-fill-color: #fbbf24;
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251,191,36,0.7);
}
/* ✦ glyph replaces ✓ on highlighted features inside the gold card */
.price-card.gold .price-features li.highlight svg { display: none; }
.price-card.gold .price-features li.highlight::before {
  content: '✦';
  flex-shrink: 0;
  width: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,0.6);
  margin-top: 1px;
}
/* Gold gradient CTA on the Pro+ card */
.price-card.gold a.btn.price-cta,
.price-card.gold .btn.price-cta {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1625;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(251,191,36,0.25);
}
.price-card.gold a.btn.price-cta:hover,
.price-card.gold .btn.price-cta:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #1a1625;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(251,191,36,0.4), 0 0 0 1px rgba(251,191,36,0.4);
}
@media (prefers-reduced-motion: reduce) {
  .price-card.gold::before { animation: none; opacity: 1; }
}
.price-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--color-accent-deep);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
}
.price-tier {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.price-amount {
  font-size: 3rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 1rem; font-weight: 500;
  color: var(--color-text-muted); margin-left: 4px;
}
.price-desc {
  font-size: 0.875rem; color: var(--color-text-muted);
  margin-bottom: 24px; line-height: 1.55; min-height: 42px;
}
.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px; flex: 1;
  font-size: 0.875rem;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--color-text-muted);
}
.price-features li.highlight { color: var(--color-text); font-weight: 500; }
.price-features li svg {
  width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 1px;
  color: var(--color-success);
}
.price-features li.highlight svg { color: var(--color-accent); }
.price-cta { width: 100%; }
.price-bonus {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin: 4px 0 14px;
  line-height: 1.45;
}
.price-bonus a {
  color: var(--color-primary-bright);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.price-bonus a:hover { color: var(--color-accent); }
.price-bonus strong { color: var(--color-text); font-weight: 600; }

/* ─── FAQ ─── */
.faq-list {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 4px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  color: var(--color-text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-primary-bright); }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem; line-height: 1;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 0.9375rem; line-height: 1.7;
  max-width: 640px;
}

/* ─── Final CTA ─── */
.cta {
  position: relative;
  text-align: center;
  padding: 96px 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-aurora {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(99,102,241,0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.cta p {
  font-size: 1.0625rem; color: var(--color-text-muted);
  max-width: 540px; margin: 0 auto 28px;
}
.cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Try it (interactive prompt) ─── */
.try-block {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.try-block::before {
  content: '';
  position: absolute; inset: -10% -10% 50% -10%;
  background: radial-gradient(ellipse, rgba(167,139,250,0.18), transparent 70%);
  filter: blur(30px); z-index: -1;
}
.try-prompt {
  display: flex; align-items: center; gap: 8px;
  max-width: 640px; margin: 0 auto 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.try-prompt:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
.try-prompt-icon { color: var(--color-primary); flex-shrink: 0; }
.try-prompt input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--color-text);
  font-family: inherit; font-size: 1rem;
  padding: 12px 0;
}
.try-prompt input::placeholder { color: var(--color-text-dim); }
.try-prompt button {
  padding: 12px 18px; flex-shrink: 0;
}
.try-suggest {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.try-chip {
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  font-size: 0.8125rem; color: var(--color-text-muted);
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.try-chip:hover { color: var(--color-text); border-color: var(--color-border-strong); }

.try-output {
  text-align: left;
  max-width: 640px; margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  font-size: 0.875rem;
  display: none;
}
.try-output.visible { display: block; animation: msg-in 0.4s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.try-output-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem; color: var(--color-text-muted);
}
.try-output-row.bot { color: var(--color-primary-bright); }
.try-output-row svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }
.try-output-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem; color: var(--color-text-dim);
}

/* ─── Comparison ─── */
.compare {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  vertical-align: middle;
}
.compare th {
  background: var(--color-surface-overlay);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
}
.compare th.col-ergod {
  background: rgba(129,140,248,0.08);
  color: var(--color-primary-bright);
}
.compare td:first-child {
  color: var(--color-text); font-weight: 500;
  width: 32%;
}
.compare td { color: var(--color-text-muted); }
.compare td.cell-ergod {
  color: var(--color-text);
  background: rgba(129,140,248,0.04);
  font-weight: 500;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare-yes svg { color: var(--color-success); width: 16px; height: 16px; display: inline; vertical-align: middle; }
.compare-no svg { color: var(--color-text-dim); width: 16px; height: 16px; display: inline; vertical-align: middle; }
@media (max-width: 768px) {
  .compare { font-size: 0.8125rem; }
  .compare th, .compare td { padding: 12px 14px; }
}

/* ─── Tweaks ─── */
.tweak-section { margin-bottom: 16px; }
