/* Opus - The Everything Bot
   Artifact visual design: Discord-flavored dark theme, blurple accent */

:root {
  --bg: #16171b;
  --bg2: #101114;
  --panel: #1e1f24;
  --panel2: #26272e;
  --accent: #5865f2;
  --accent-hover: #6b77ff;
  --gold: #f0b232;
  --teal: #2dd4bf;
  --green: #23a55a;
  --text: #f2f3f5;
  --muted: #9aa0aa;
  --border: #2e2f36;
  --radius: 14px;
  --heading-font: 'Sora', system-ui, -apple-system, sans-serif;
  --body-font: 'Public Sans', system-ui, -apple-system, sans-serif;
  --mono-font: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 700; line-height: 1.2; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- sticky blurred header ---------- */
.topnav {
  background: rgba(22, 23, 27, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topnav .brand {
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.topnav .brand:hover { color: var(--text); }
.topnav nav { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.topnav nav a {
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.topnav nav a:hover { color: var(--text); background: var(--panel2); }
.topnav nav a.nav-cta { background: var(--accent); color: #fff; font-weight: 600; }
.topnav nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.hero-img {
  max-width: 680px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto 1.8rem;
  display: block;
  box-shadow: 0 10px 48px rgba(88, 101, 242, 0.28);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline {
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.hero .sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 1.8rem;
}
.cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary, a.btn-primary { background: var(--accent); color: #fff; }
a.btn-primary:hover { background: var(--accent-hover); color: #fff; }
a.btn-secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
a.btn-secondary:hover { background: #2e2f37; color: var(--text); }

/* ---------- chat mock hero panel ---------- */
.chat-mock {
  background: #1a1b1f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.chat-msg { display: flex; gap: 0.8rem; margin-bottom: 1rem; }
.chat-msg:last-child { margin-bottom: 0; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  color: #fff; font-family: var(--heading-font); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.chat-avatar.user { background: #3b3d45; }
.chat-head { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.15rem; }
.chat-user { font-weight: 600; font-size: 0.95rem; }
.bot-tag {
  background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 700;
  padding: 0.1rem 0.35rem; border-radius: 4px; vertical-align: middle;
}
.chat-time { color: var(--muted); font-size: 0.72rem; }
.chat-text { color: #dcdee2; font-size: 0.95rem; }
.chat-text strong { color: var(--text); }
.chat-buttons { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.chat-btn {
  background: #2b2d33; border: 1px solid var(--accent); color: var(--text);
  border-radius: 6px; padding: 0.35rem 0.9rem; font-size: 0.85rem; font-weight: 500;
}
.chat-bar {
  margin-top: 0.7rem; background: #2b2d33; border-radius: 8px;
  height: 8px; overflow: hidden; display: flex;
}
.chat-bar span:first-child { background: var(--accent); width: 68%; }
.chat-bar span:last-child { background: #3b3d45; width: 32%; }

/* ---------- sections ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3.5rem 0 0.6rem;
  text-align: center;
}
.lede { text-align: center; color: var(--muted); margin-bottom: 2rem; font-size: 1.08rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step .num {
  font-family: var(--mono-font);
  font-size: 1.7rem;
  color: var(--accent);
  font-weight: 600;
}
.step h3 { margin: 0.5rem 0 0.4rem; font-size: 1.12rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- plugin catalog ---------- */
.cat-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}
.cat-title .count {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
  font-family: var(--body-font);
  font-weight: 400;
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}
.plugin-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 0.15s, border-color 0.15s;
}
.plugin-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.plugin-card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.plugin-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.8rem; }
.badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-free { background: rgba(35, 165, 90, 0.16); color: var(--green); }
.badge-paid { background: rgba(240, 178, 50, 0.16); color: var(--gold); }

/* ---------- pricing ---------- */
.price-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 960px;
  margin: 0 auto 1.5rem;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
}
.price-card.highlight { border: 2px solid var(--accent); }
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.price-card .amount { font-family: var(--mono-font); margin-bottom: 1rem; }
.price-card .amount .zero, .price-card .amount .two { font-size: 2.6rem; font-weight: 600; }
.price-card .amount .two { color: var(--accent); }
.price-card .per { color: var(--muted); font-size: 0.95rem; }
.price-card p { color: var(--muted); font-size: 0.95rem; }
.billing-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}
.billing-box p { color: #d5d7db; }

/* ---------- faq ---------- */
details.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 0 auto 0.8rem;
  max-width: 760px;
}
details.faq summary {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
}
details.faq p { color: var(--muted); margin-top: 0.5rem; }

/* ---------- get started ---------- */
.get-started-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.get-started-box .lede { margin-bottom: 1.5rem; }
.get-started-box .dev-note { margin-top: 1.4rem; font-size: 0.92rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .fine { margin-top: 0.4rem; font-size: 0.82rem; }

@media (max-width: 640px) {
  .topnav nav a { padding: 0.45rem 0.8rem; font-size: 0.88rem; }
  .plugin-grid { grid-template-columns: 1fr; }
}
