:root {
  --ink: #0b0a10;
  --ink-2: #15131c;
  --cream: #f4efe6;
  --cream-dim: rgba(244, 239, 230, 0.72);
  --accent: #b794ff;
  --accent-2: #8b3dff;
  --line: rgba(244, 239, 230, 0.14);
  --ok: #7dcea0;
  --font: 'Manrope', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 80% -10%, rgba(139, 61, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(183, 148, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #110e18 0%, var(--ink) 40%, #08070c 100%);
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--cream-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, #a78bfa, var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 61, 255, 0.35);
}
.btn.ghost {
  background: rgba(244, 239, 230, 0.04);
  color: var(--cream);
}
.btn.lg { padding: 14px 22px; font-size: 15px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav-brand img { border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--cream-dim);
}
.nav-links a:hover { color: var(--cream); }
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 28px 64px;
  max-width: 1180px;
  margin: 0 auto;
  animation: rise 0.8s ease both;
}
.brand-mark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 20%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-in 1s ease 0.1s both;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 14px;
  max-width: 16ch;
  color: var(--cream);
}
.lede {
  margin: 0 0 28px;
  max-width: 36ch;
  color: var(--cream-dim);
  font-size: 1.05rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-visual {
  display: flex;
  justify-content: center;
  animation: float-in 1s ease 0.2s both;
}
.widget-stage {
  width: min(100%, 380px);
  position: relative;
}
.widget-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  backdrop-filter: blur(10px);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: drift 6s ease-in-out infinite;
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--cream-dim);
}
.widget-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(125, 206, 160, 0.15);
}
.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.bubble.bot {
  background: rgba(183, 148, 255, 0.16);
  border: 1px solid rgba(183, 148, 255, 0.25);
}
.bubble.user {
  margin-left: auto;
  background: rgba(244, 239, 230, 0.1);
  border: 1px solid var(--line);
}
.bubble.typing {
  display: inline-flex;
  gap: 5px;
  width: auto;
  padding: 12px 14px;
}
.bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

.channel-rail {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}
.channel-rail span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  background: rgba(255, 255, 255, 0.03);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 28px;
}
.section-head {
  max-width: 36rem;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature-list article {
  padding: 28px 22px 8px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.feature-list p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  max-width: 28ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.steps li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps strong {
  font-size: 1.15rem;
}
.steps span { color: var(--cream-dim); }

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.03);
}
.billing-opt {
  border: 0;
  background: transparent;
  color: var(--cream-dim);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.billing-opt.active {
  background: rgba(183, 148, 255, 0.2);
  color: #fff;
}
.billing-opt em {
  font-style: normal;
  font-size: 11px;
  margin-left: 4px;
  color: var(--ok);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.price-card.featured {
  border-color: rgba(183, 148, 255, 0.45);
  background: linear-gradient(160deg, rgba(139, 61, 255, 0.18), rgba(255, 255, 255, 0.03));
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.price-card .desc {
  color: var(--cream-dim);
  font-size: 13px;
  margin: 0 0 16px;
  min-height: 2.8em;
}
.price-card .amount {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-card .amount span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-dim);
}
.price-card .save {
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 12px;
  min-height: 1.2em;
}
.price-card ul {
  margin: 0 0 18px;
  padding-left: 1.1em;
  color: var(--cream-dim);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.price-card .btn { width: 100%; }

.close {
  text-align: center;
  padding-bottom: 96px;
}
.close-copy {
  max-width: 28rem;
  margin: 0 auto;
}
.close-logo {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 30px rgba(139, 61, 255, 0.35));
}
.close h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px;
}
.close p {
  color: var(--cream-dim);
  margin: 0 0 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 13px;
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer strong {
  display: block;
  color: var(--cream);
  margin-bottom: 2px;
}
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-links a:hover { color: var(--cream); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }
  .hero h1 { max-width: none; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .site-nav { padding: 12px 16px; }
  .section { padding: 56px 16px; }
  .hero { padding: 28px 16px 48px; }
  .feature-list,
  .price-grid { grid-template-columns: 1fr; }
  .nav-actions .btn.ghost { display: none; }
}
