/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #FDFCFA;
  --bg-alt: #F6F4F0;
  --surface: #FFFFFF;
  --surface-warm: #FAF8F5;

  --border: #E8E4DC;
  --border-dark: #D4CFC6;

  --ink: #1A1915;
  --ink-soft: #6B6761;
  --ink-muted: #AAA49C;

  --violet: #6B46FA;
  --violet-light: #8B6FFB;
  --violet-dim: rgba(107, 70, 250, 0.09);
  --violet-glow: rgba(107, 70, 250, 0.18);
  --hero-accent: #FF8FB1;
  --hero-accent-light: #A78BFA;

  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.15);

  --green: #16A34A;
  --green-dim: rgba(22, 163, 74, 0.12);

  --grad-main: linear-gradient(130deg, #6B46FA 0%, #A78BFA 100%);
  --grad-warm: linear-gradient(135deg, #FDFCFA 0%, #F0EDE7 100%);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 24px 64px rgba(0,0,0,0.06);
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== CONTAINER ===== */
.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ===== TOP BAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 60px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.topnav a { transition: color 160ms; }
.topnav a:hover { color: var(--ink); }

/* ===== LOGO ===== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--amber);
  font-size: 0.82rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 0.875rem/1 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  min-height: 40px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  background: #2C2A26;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border-dark);
  background: var(--surface);
}

.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 2px 12px var(--violet-glow);
}

.btn-violet:hover {
  background: #5A39D9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--violet-glow);
}

.btn-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ===== EYEBROW ===== */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

/* ===== PULSE DOT ===== */
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  60%  { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 600ms ease forwards;
}

.reveal-delay { animation-delay: 140ms; }
.reveal-delay-2 { animation-delay: 260ms; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================
   LANDING PAGE
   ========================================== */

/* ===== HERO ===== */
.hero-section {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: 4rem;
}


.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--violet-dim);
  border: 1px solid rgba(107,70,250,0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.hero-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.6;
}

.hero-headline {
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  color: var(--ink);
  max-width: 20ch;
  line-height: 1.05;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(130deg, var(--hero-accent) 0%, var(--hero-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .eyebrow {
  color: var(--hero-accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.hero-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 5px 5px 5px 1.25rem;
  box-shadow: var(--shadow-md);
  width: min(400px, 100%);
}

.hero-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: 400 0.9rem/1 'DM Sans', sans-serif;
  color: var(--ink);
  padding: 0;
  min-height: 34px;
}

.hero-form input::placeholder { color: var(--ink-muted); }
.hero-form input:focus { outline: none; }

.hero-form .btn-primary {
  flex-shrink: 0;
  padding: 0.6rem 1.35rem;
  min-height: 38px;
  font-size: 0.875rem;
}

.hero-feedback {
  color: var(--violet);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.4em;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.83rem;
}

.proof-star {
  color: var(--amber);
  flex-shrink: 0;
}

/* ===== DEMO SECTION ===== */
.demo-section {
  padding-block: 1rem 5rem;
}

.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 780px;
  margin-inline: auto;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-warm);
}

.demo-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.demo-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.demo-status {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.demo-messages {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-msg {
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 72%;
}

.demo-msg-ai {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  color: var(--ink);
  align-self: flex-start;
}

.demo-msg-user {
  align-self: flex-end;
  background: var(--violet-dim);
  border: 1px solid rgba(107,70,250,0.15);
  color: var(--violet);
  font-weight: 500;
}

.demo-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--surface-warm);
  font-size: 0.8rem;
  color: #92400E;
}

.demo-footer-star { color: var(--amber); }


/* ===== FEATURES ===== */
.features-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-top: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  transition: background 220ms ease;
  position: relative;
}

.feature-card:hover {
  background: var(--surface-warm);
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--violet-dim);
  border: 1px solid rgba(107,70,250,0.15);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 1.1rem;
  font-family: 'Syne', sans-serif;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===== POWERED SECTION ===== */
.powered-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.powered-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-top: 0.5rem;
}

.powered-body {
  margin-top: 1rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.75;
}

.steps-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
}

.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.step-divider {
  height: 1px;
  background: var(--border);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border);
}

.blog-header {
  margin-bottom: 2.5rem;
}

.blog-intro {
  margin-top: 0.8rem;
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.blog-list {
  border-top: 1px solid var(--border);
}

.blog-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 2.5rem;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-inline: -1rem;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
}

.blog-row:hover {
  background: var(--surface-warm);
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-dim);
  border: 1px solid rgba(107, 70, 250, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  justify-self: start;
  align-self: flex-start;
  margin-top: 0.15rem;
}

.blog-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.blog-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.blog-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.blog-time {
  font-size: 0.73rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.blog-arrow {
  font-size: 1rem;
  color: var(--violet);
  display: block;
  transition: transform 150ms ease;
}

.blog-row:hover .blog-arrow {
  transform: translateX(4px);
}

/* ===== CTA ===== */
.cta-section {
  padding-block: 5rem 6rem;
  border-top: 1px solid var(--border);
}

.cta-inner {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,70,250,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner > * { position: relative; }

.cta-inner .eyebrow {
  color: rgba(107,70,250,0.7);
}

.cta-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-top: 0.5rem;
  color: #fff;
}

.cta-sub {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
}

.join-form {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  width: min(400px, 100%);
  margin-inline: auto;
  gap: 0;
  flex-wrap: nowrap;
  padding: 5px 5px 5px 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 14px 36px rgba(0,0,0,0.28);
}

.join-form input {
  flex: 1;
  min-width: 0;
  max-width: 340px;
  min-height: 34px;
  border-radius: 0;
  border: none;
  background: transparent;
  font: 400 0.9rem/1 'DM Sans', sans-serif;
  color: #fff;
  padding: 0;
  transition: all 200ms ease;
}

.join-form input::placeholder { color: rgba(255,255,255,0.3); }

.join-form input:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
}

.join-form .btn-violet {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0.6rem 1.35rem;
  font-size: 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(107,70,250,0.35);
}

.feedback {
  margin-top: 0.75rem;
  min-height: 1.4em;
  color: rgba(167,139,250,0.9);
  font-size: 0.87rem;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 2rem;
}

.footer-top {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 3rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 32ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 160ms;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================
   ARTICLE PAGE
   ========================================== */

.article-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 1.5rem;
  transition: color 150ms;
}
.article-nav-back:hover { color: var(--ink); }

.article-header {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 4.5rem 4rem;
  text-align: center;
}

.article-header-inner {
  width: min(740px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 22ch;
  line-height: 1.08;
}

.article-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.article-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
}

.article-body {
  width: min(680px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: 4rem 2rem;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.88;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

.article-callout {
  background: var(--violet-dim);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 2.5rem;
}

.article-callout-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

.article-callout p {
  font-size: 0.97rem !important;
  color: var(--ink) !important;
  font-style: italic;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}

.article-cta {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-block: 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,70,250,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.article-cta > * { position: relative; }

.article-cta .eyebrow { color: rgba(107,70,250,0.7); }

.article-cta h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}

.article-cta p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin-bottom: 1.75rem !important;
}

/* ==========================================
   CHAT PAGE
   ========================================== */
.chat-page { background: var(--bg-alt); }

.chat-layout {
  width: min(1280px, calc(100% - 1rem));
  margin: 0.5rem auto;
  height: calc(100vh - 1rem);
  display: grid;
  grid-template-columns: 232px 1fr 268px;
  gap: 0.5rem;
}

/* ===== PANEL SHARED ===== */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* ===== LEFT PANEL ===== */
.left-panel {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}

.sidebar-card {
  border-radius: var(--radius-lg);
  background: var(--surface-warm);
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seila-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.seila-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.sidebar-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.prompt-btn {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  text-align: left;
  padding: 0.55rem 0.75rem;
  font: 400 0.82rem/1.45 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 160ms ease;
  margin-top: 0.2rem;
}

.prompt-btn:hover {
  background: var(--violet-dim);
  border-color: rgba(107,70,250,0.2);
  color: var(--violet);
}

.back-btn {
  margin-top: auto;
  font-size: 0.85rem;
}

/* ===== CHAT CENTER ===== */
.chat-center {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-title h1 {
  font-size: 1.6rem;
  color: var(--ink);
}

.chat-state {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.meta-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet);
  background: var(--violet-dim);
  border: 1px solid rgba(107,70,250,0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.message {
  max-width: 80%;
  border-radius: var(--radius-lg);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.message p { margin: 0; }

.message.ai {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  color: var(--ink);
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  background: var(--violet-dim);
  border: 1px solid rgba(107,70,250,0.15);
  color: var(--violet);
  font-weight: 500;
}

.composer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface-warm);
}

.composer input {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: var(--surface);
  padding-inline: 1.1rem;
  font: 400 0.9rem/1 'DM Sans', sans-serif;
  color: var(--ink);
  transition: all 200ms ease;
}

.composer input::placeholder { color: var(--ink-muted); }

.composer input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

.send-btn {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== RIGHT PANEL ===== */
.right-panel {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
}

.cosmic-list {
  margin-top: 0.35rem;
}

.cosmic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.cosmic-list li:last-child { border-bottom: none; }

.list-label { color: var(--ink-muted); }
.list-val { color: var(--ink); font-weight: 500; font-size: 0.82rem; }

.streak-card { text-align: center; padding: 1.5rem 1rem; }

.streak-num {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-top: 0.5rem;
  letter-spacing: -0.04em;
}

.streak-unit {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.15rem;
  margin-bottom: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
  .topnav { display: none; }
  .hero-section { padding-block: 3.5rem 3rem; }
  .powered-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 200px 1fr; }
  .right-panel { display: none; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 1.5rem); }
  .features-grid { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr auto; gap: 1rem; }
  .blog-tag { display: none; }
  .hero-section { padding-block: 2.5rem; }
  .demo-window { border-radius: var(--radius-lg); }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .join-form {
    width: 100%;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    width: calc(100% - 0.5rem);
  }
  .left-panel { display: none; }
  .chat-center { height: 100vh; }
}
