/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; }

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

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  border: none; border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, transform 120ms ease, box-shadow 140ms ease, opacity 120ms ease;
  white-space: nowrap;
}
.btn--lg { padding: 0.8rem 1.6rem; font-size: 1rem; border-radius: 10px; }
.btn--full { width: 100%; }

.btn--accent {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn--accent:not([disabled]):hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.btn--ghost {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #334155;
}
.btn--ghost:not([disabled]):hover {
  background: rgba(255,255,255,0.06);
  border-color: #475569;
  color: #f1f5f9;
}

.btn--outline {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid #475569;
}
.btn--outline:not([disabled]):hover {
  background: rgba(255,255,255,0.08);
  border-color: #94a3b8;
}

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,20,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
}
.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0;
}
.nav__logo { width: 28px; height: 28px; }
.nav__name { font-size: 1.05rem; font-weight: 700; color: #f1f5f9; letter-spacing: -0.01em; }

.nav__links {
  display: flex; align-items: center; gap: 0.25rem;
  flex: 1;
}
.nav__links a {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem; font-weight: 500; color: #94a3b8;
  border-radius: 6px;
  transition: color 120ms, background 120ms;
}
.nav__links a:hover { color: #f1f5f9; background: rgba(255,255,255,0.06); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  background: #0a0c14;
  padding: 80px 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 60%, rgba(139,92,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 780px; margin: 0 auto;
  text-align: center;
  padding-bottom: 56px;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: #a5b4fc;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.badge__dot {
  width: 7px; height: 7px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__headline {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5vw + 1rem, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  margin: 0 auto 2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 2vw + 0.25rem, 1.2rem);
  color: #94a3b8;
  line-height: 1.6;
}

.hero__cta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__note {
  margin: 0;
  font-size: 0.83rem; color: #475569;
}

/* ── Demo window ─────────────────────────────────── */
.demo {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  padding: 0 1.5rem;
}
.demo__window {
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  background: #111827;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 -4px 60px rgba(99,102,241,0.12),
    0 40px 80px rgba(0,0,0,0.5);
}

.demo__titlebar {
  display: flex; align-items: center; gap: 0.5rem;
  background: #1e2535;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.titlebar__dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot--red    { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green  { background: #22c55e; }
.titlebar__label {
  flex: 1; text-align: center;
  font-size: 0.78rem; font-weight: 500; color: #64748b;
}

.demo__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.demo__sidebar {
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 0.5rem;
  background: #0f172a;
}
.sidebar__section {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  color: #475569; text-transform: uppercase;
  padding: 0 0.75rem 0.5rem;
}
.sidebar__item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem; color: #64748b;
  cursor: default;
  transition: background 120ms;
}
.sidebar__item--active {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
}
.sidebar__icon { font-size: 0.85rem; }

/* ── Chat ───────────────────────────────────────── */
.demo__chat {
  display: flex; flex-direction: column;
  padding: 1.25rem;
}
.chat__messages {
  display: flex; flex-direction: column; gap: 1.25rem;
  flex: 1;
}

.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.avatar--user {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
}
.avatar--ai {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
}

.msg__meta {
  font-size: 0.72rem; font-weight: 600; color: #475569;
  margin-bottom: 0.3rem;
}

.bubble {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px 12px 12px 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.87rem; line-height: 1.55; color: #cbd5e1;
}
.msg--user .bubble {
  background: #0f172a;
  border-color: rgba(255,255,255,0.05);
}
.bubble__list {
  margin: 0.5rem 0 0 0;
  padding-left: 1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.bubble__list li { list-style: disc; }
.bubble strong { color: #e2e8f0; }
.bubble em { color: #a5b4fc; font-style: normal; }

.bubble--draft {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.07);
}
.bubble__tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: #818cf8; text-transform: uppercase;
  background: rgba(99,102,241,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.chat__input {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.5rem;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.input__pill {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem; color: #475569;
}
.input__send {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: #6366f1;
  color: white;
  font-size: 1rem;
  display: grid; place-items: center;
  cursor: pointer; opacity: 0.55;
}

/* ── Stats bar ───────────────────────────────────── */
.stats {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem;
}
.stats__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1rem;
  max-width: 1000px; margin: 0 auto;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0 1.5rem;
}
.stat__number { font-size: 1rem; font-weight: 700; color: #e2e8f0; }
.stat__label  { font-size: 0.78rem; color: #475569; }
.stat__divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.08);
}

/* ── Section common ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6366f1;
  margin-bottom: 0.75rem;
}
.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.4rem);
  font-weight: 800; letter-spacing: -0.025em; color: #0f172a;
  line-height: 1.15;
}
.section-sub {
  margin: 0 auto;
  max-width: 54ch;
  font-size: 1.05rem; color: #64748b;
}

/* ── Features ───────────────────────────────────── */
.features {
  padding: 90px 1.5rem;
  background: #f8fafc;
}
.features__inner { max-width: 1100px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  transition: box-shadow 180ms, transform 180ms;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(15,23,42,0.08);
  transform: translateY(-2px);
}
.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.9rem;
}
.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem; font-weight: 700; color: #0f172a;
}
.feature-card__body {
  margin: 0;
  font-size: 0.93rem; color: #64748b; line-height: 1.6;
}

/* ── Pricing ─────────────────────────────────────── */
.pricing {
  padding: 90px 1.5rem;
  background: #ffffff;
}
.pricing__inner { max-width: 1100px; margin: 0 auto; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  background: #f8fafc;
  position: relative;
}
.pricing-card--featured {
  background: #0f172a;
  border-color: transparent;
  box-shadow: 0 0 0 2px #6366f1, 0 20px 50px rgba(99,102,241,0.2);
}
.pricing-card--featured .pricing-card__tier,
.pricing-card--featured .pricing-card__price,
.pricing-card--featured .pricing-card__features li { color: #e2e8f0; }
.pricing-card--featured .pricing-card__desc { color: #64748b; }

.pricing-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.85rem;
  background: #6366f1; color: white;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-card__tier {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #64748b;
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-size: 1.6rem; font-weight: 800; color: #0f172a;
  margin-bottom: 0.6rem; letter-spacing: -0.02em;
}
.pricing-card__desc {
  font-size: 0.9rem; color: #64748b; margin-bottom: 1.5rem; line-height: 1.5;
}
.pricing-card__features {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.pricing-card__features li {
  font-size: 0.9rem; color: #475569;
  padding-left: 1.25rem;
  position: relative;
}
.pricing-card__features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: #6366f1; font-weight: 700; font-size: 0.85rem;
}
.pricing-card--featured .pricing-card__features li::before { color: #818cf8; }

/* ── Final CTA ───────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%);
  padding: 100px 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-section__inner { max-width: 640px; margin: 0 auto; }
.cta-section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.4rem);
  font-weight: 800; letter-spacing: -0.025em; color: #f1f5f9;
  line-height: 1.2;
}
.cta-section__sub {
  margin: 0 0 2rem;
  font-size: 1.05rem; color: #94a3b8;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 1.5rem;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer__brand {
  display: flex; align-items: center; gap: 0.5rem;
  margin-right: auto;
}
.footer__logo { width: 22px; height: 22px; opacity: 0.7; }
.footer__name { font-size: 0.9rem; font-weight: 700; color: #475569; }
.footer__nav {
  display: flex; gap: 1.5rem;
}
.footer__nav a { font-size: 0.83rem; color: #475569; transition: color 120ms; }
.footer__nav a:hover { color: #94a3b8; }
.footer__copy { font-size: 0.8rem; color: #334155; width: 100%; margin: 0; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 700px) {
  .demo__layout { grid-template-columns: 1fr; }
  .demo__sidebar { display: none; }
  .nav__links { display: none; }
  /* Hide "Sign in" on mobile — brand + two buttons overflow the nav */
  .nav__actions .btn--ghost { display: none; }
  .stats__inner { gap: 0.5rem; }
  .stat__divider { display: none; }
  .stat { padding: 0.5rem 1rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { flex-wrap: wrap; gap: 1rem; }

  /* Reduce vertical breathing room on small screens */
  .hero { padding-top: 48px; }
  .hero__headline br { display: none; }
  .features { padding: 60px 1.5rem; }
  .pricing { padding: 60px 1.5rem; }
  .cta-section { padding: 60px 1.5rem; }
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
