:root {
  --bg: #08111f;
  --panel: rgba(255,255,255,0.08);
  --panel-border: rgba(255,255,255,0.14);
  --text: #e5eefc;
  --muted: #97a8c4;
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,58,237,.20), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(236,72,153,.15), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #0b1220 50%, #08111f 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.bg-orb {
  position: fixed; border-radius: 999px; filter: blur(80px); opacity: .35; pointer-events: none;
}
.orb-1 { width: 240px; height: 240px; background: #7c3aed; top: 80px; left: -20px; }
.orb-2 { width: 260px; height: 260px; background: #ec4899; top: 220px; right: -40px; }
.site-header {
  display: flex; justify-content: space-between; align-items: center; padding: 28px 0; position: relative; z-index: 2;
}
.brand { font-weight: 800; letter-spacing: .14em; font-size: 14px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); }
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
  padding: 54px 0 70px; position: relative; z-index: 2;
}
.kicker, .section-label {
  color: #b8a6ff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
h1 {
  font-size: clamp(42px, 7vw, 78px); line-height: 1.02; margin: 14px 0 18px; max-width: 760px;
}
.lead {
  max-width: 700px; color: var(--muted); font-size: 18px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  min-height: 48px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--white); box-shadow: var(--shadow);
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,.18); color: var(--text); background: rgba(255,255,255,.03);
}
.glass {
  background: var(--panel); border: 1px solid var(--panel-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.hero-card {
  border-radius: 28px; padding: 26px;
}
.hero-card h3 { margin: 14px 0 12px; font-size: 24px; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card li { margin-bottom: 10px; }
.pill {
  display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d8b4fe; font-size: 12px; font-weight: 700;
}
.section { padding: 70px 0; position: relative; z-index: 2; }
.split {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px;
}
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 10px 0 0; }
.text-block p, .section-note { color: var(--muted); line-height: 1.85; }
.section-head {
  display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px;
}
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.post-card {
  border-radius: 24px; padding: 24px;
}
.post-card h3 { margin: 10px 0 12px; font-size: 24px; }
.post-card p { color: var(--muted); }
.post-card a { color: #f5d0fe; font-weight: 700; }
.featured {
  background: linear-gradient(180deg, rgba(124,58,237,.22), rgba(255,255,255,.08));
}
.post-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: #f5d0fe; letter-spacing: .08em;
}
.post-tag.soft { color: #c4b5fd; }
.quote {
  border-radius: 28px; padding: 36px; font-size: 28px; line-height: 1.6;
}
.contact-panel {
  border-radius: 24px; overflow: hidden;
}
.contact-panel div {
  display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact-panel div:last-child { border-bottom: none; }
.contact-panel span { color: var(--muted); }
.site-footer {
  padding: 28px 0 44px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.08);
}
.chat-section {
  align-items: start;
}
.chat-shell {
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  min-height: 620px;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.chat-head strong {
  display: block;
  font-size: 16px;
}
.chat-head span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}
.chat-clear {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  min-height: 360px;
  max-height: 500px;
  overflow-y: auto;
}
.message {
  display: flex;
}
.message.user {
  justify-content: flex-end;
}
.message.assistant {
  justify-content: flex-start;
}
.bubble {
  max-width: min(85%, 520px);
  white-space: pre-wrap;
  line-height: 1.75;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.message.user .bubble {
  background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(236,72,153,.9));
  color: #fff;
}
.message.assistant .bubble {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.chat-form {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px;
}
.chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 16px;
  font: inherit;
  outline: none;
}
.chat-form textarea:focus {
  border-color: rgba(124,58,237,.7);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.chat-hint {
  color: var(--muted);
  font-size: 13px;
}
.chat-form button[disabled] {
  opacity: .7;
  cursor: not-allowed;
}
