/* idkchat website — dark, dynamic, dependency-free. */
:root {
  --bg: #0b0d16;
  --bg2: #10131f;
  --ink: #e7e9f2;
  --muted: #9aa0b8;
  --brand: #6366f1;
  --brand2: #a855f7;
  --accent: #22d3ee;
  --card: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --grad: linear-gradient(120deg, var(--brand), var(--brand2), var(--accent));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); min-height: 100vh; overflow-x: hidden;
  display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- animated background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: #4338ca;
  top: -140px; left: -120px; animation: drift1 26s ease-in-out infinite; }
.bg-blobs span:nth-child(2) { width: 420px; height: 420px; background: #7e22ce;
  top: 30%; right: -160px; animation: drift2 32s ease-in-out infinite; }
.bg-blobs span:nth-child(3) { width: 380px; height: 380px; background: #0e7490;
  bottom: -140px; left: 30%; animation: drift3 38s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(70px, 60px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-80px, -50px) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(-50px, -80px) scale(1.2); } }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw; position: sticky; top: 0; z-index: 50; }
.glass { background: rgba(11, 13, 22, .65); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 1.25rem; }
.logo span { background: var(--grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.links { display: flex; align-items: center; gap: 20px; }
.links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.links a.active, .links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 11px 24px; border-radius: 12px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), #4f46e5); color: #fff; border: none;
  cursor: pointer; font-size: 1rem;
  box-shadow: 0 8px 26px rgba(99, 102, 241, .35); transition: transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99, 102, 241, .5); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink);
  box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); }
.btn.big { padding: 14px 30px; font-size: 1.05rem; }
.btn.small { padding: 8px 16px; font-size: .9rem; color: #fff !important; }

/* ---------- hero ---------- */
.hero.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding: 72px 6vw 40px; max-width: 1280px; margin: 0 auto; width: 100%; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .4px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.15; font-weight: 800; }
.hero h1 em { font-style: normal; }
.shimmer { background: var(--grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }
.sub { margin-top: 18px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; max-width: 540px; }
.cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.stats b { font-size: 1.9rem; font-weight: 800; display: block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- hero demo window ---------- */
.hero-demo { text-align: center; }
.demo-window { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); text-align: left;
  transition: transform .25s ease; will-change: transform; }
.demo-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand), #4c1d95); }
.demo-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 20px; }
.demo-head b { display: block; }
.demo-head i { font-style: normal; font-size: .8rem; opacity: .85; display: flex; align-items: center; gap: 5px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block;
  animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, .15); } }
.demo-body { padding: 16px; height: 300px; display: flex; flex-direction: column; gap: 10px;
  overflow: hidden; justify-content: flex-end; }
.demo-msg { max-width: 82%; padding: 10px 14px; border-radius: 15px; font-size: .92rem;
  line-height: 1.45; animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.demo-msg.bot { background: rgba(255, 255, 255, .07); border-bottom-left-radius: 5px; align-self: flex-start; }
.demo-msg.user { background: linear-gradient(135deg, var(--brand), #4f46e5);
  border-bottom-right-radius: 5px; align-self: flex-end; }
.demo-msg.typing { display: flex; gap: 4px; padding: 14px; }
.demo-msg.typing s { width: 7px; height: 7px; border-radius: 50%; background: #6b7194;
  animation: blink 1.2s infinite; }
.demo-msg.typing s:nth-child(2) { animation-delay: .18s; }
.demo-msg.typing s:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; transform: translateY(-3px); } }
.demo-input { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.demo-input b { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(135deg, var(--brand), #4f46e5); color: #fff; }
.hint { margin-top: 16px; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0;
  background: rgba(255, 255, 255, .02); }
.marquee-track { display: flex; gap: 28px; width: max-content; white-space: nowrap;
  animation: scroll 28s linear infinite; color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 72px 6vw; max-width: 1280px; margin: 0 auto; width: 100%; }
section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-align: center; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, .5);
  background: rgba(99, 102, 241, .07); }
.card span { font-size: 2rem; }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--muted); line-height: 1.6; font-size: .95rem; }
.card code { color: var(--accent); font-size: .85em; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { text-align: center; padding: 20px; }
.step i { display: inline-flex; width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center; font-style: normal; font-weight: 800;
  font-size: 1.2rem; background: var(--grad); color: #fff; margin-bottom: 14px; }
.step p { color: var(--muted); line-height: 1.6; font-size: .95rem; }
.code-card { margin: 34px auto 0; max-width: 720px; display: flex; align-items: center;
  gap: 12px; background: #05060c; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; }
.code-card code { color: #9fe8a4; font-size: .9rem; flex: 1; white-space: nowrap; }
.code-card button { background: none; border: none; font-size: 1.2rem; cursor: pointer;
  filter: grayscale(.3); transition: transform .15s; }
.code-card button:hover { transform: scale(1.2); }

/* ---------- cta band ---------- */
.cta-band { text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 56px 6vw; margin: 0 auto 40px; max-width: 1100px; }
.cta-band p { color: var(--muted); margin: 12px 0 24px; }

/* ---------- pricing / contact shared ---------- */
.hero.simple { text-align: center; padding: 64px 6vw 24px; }
.hero.simple p { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.price { font-size: 2rem; font-weight: 800; margin: 6px 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.cards-center { text-align: center; }

/* ---------- footer ---------- */
footer { margin-top: auto; display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 26px 6vw; color: var(--muted); font-size: .92rem;
  border-top: 1px solid var(--line); }
footer a { color: var(--muted); } footer a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.delay { transition-delay: .15s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .bg-blobs span, .shimmer { animation: none; }
}

@media (max-width: 900px) {
  .hero.split { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-demo { max-width: 460px; margin: 0 auto; width: 100%; }
  .links { gap: 14px; font-size: .95rem; }
}
@media (max-width: 600px) {
  .nav { padding: 12px 4vw; }
  .logo { font-size: 1.05rem; }
  .links { gap: 10px; font-size: .88rem; }
  .btn.small { padding: 6px 12px; font-size: .85rem; }
}
