:root {
  --bg: #08090c;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --accent: #5865F2;
  --accent-deep: #4752C4;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --mono: 'IBM Plex Mono', monospace;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Glowing radial background effect */
.ambient {
  position: fixed;
  top: -20vh;
  left: 30%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  background: radial-gradient(ellipse at top left, rgba(88, 101, 242, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.ambient::after {
  content: "";
  position: absolute;
  top: 60%;
  right: -20%;
  width: 70vw;
  height: 70vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(88, 101, 242, 0.08), transparent 60%);
  filter: blur(60px);
}

/* Glassmorphic Container */
.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.header-links {
  display: flex;
  gap: 2rem;
}
.header-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.header-links a:hover {
  color: #fff;
}
.logo {
  text-decoration: none;
}

/* Split Hero section */
.hero-split {
  padding: 4rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #8ca6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.btn-primary:hover {
  background-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}
.btn-ghost {
  background-color: transparent;
  color: var(--text);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Features Grid */
.mc-features {
  padding: 5rem 2rem 10rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section-head {
  text-align: left;
  margin-bottom: 4rem;
}
.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.2rem;
  max-width: 600px;
}

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

.card {
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
  /* Note: transform Y override handled by inline style in HTML, let's keep hover effect subtle like a scale */
  transform: scale(1.02) !important;
}
.card h3 {
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.card-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* Chat Mockup */
.chat-showcase {
  width: 100%;
}
.chat {
  background: rgba(43, 45, 49, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  text-align: left;
  transform: rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.chat:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(30, 31, 34, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 600;
  color: #fff;
}
.chat-hash { color: var(--text-faint); font-size: 1.2rem; }
.chat-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.msg { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.av-a { background: #b06ab3; }
.av-b { background: #4a8fe7; }
.msg-head { display: flex; align-items: baseline; gap: 0.5rem; }
.msg-name { font-weight: 500; font-size: 1rem; color: #fff;}
.msg-time { font-size: 0.75rem; color: var(--text-faint); }
.msg-text { color: #dbdee1; margin-top: 0.2rem; line-height: 1.4; }
.msg-text code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: rgba(30, 31, 34, 0.9);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}
.bot-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.reactions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #dbdee1;
  background: rgba(43, 45, 49, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}
.reaction.active {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
}
.saved-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.chat-divider {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  margin: 0.5rem 0;
}
.chat-divider::before,
.chat-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.embed {
  border-left: 4px solid var(--accent);
  background: rgba(43, 45, 49, 0.5);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 0.4rem;
}
.embed-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: #fff;}
.embed-text { color: #dbdee1; font-size: 0.85rem; line-height: 1.4; }
.embed-foot {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}
.embed-foot a { color: var(--accent); text-decoration: none; }
.embed-foot a:hover { text-decoration: underline; }

.mc-cmd {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #fff;
  background: rgba(88, 101, 242, 0.3);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
}
.mc-emoji { font-size: 1.2rem; }

@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: 1fr; }
  .card { transform: none !important; }
}
