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

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --bg-3: #1a1a28;
  --surface: #1e1e2e;
  --border: #2a2a3d;
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --green: #00d68f;
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

a { color: var(--accent-light); text-decoration: none; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #5a4bd6; transform: translateY(-1px); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.logo-icon { color: var(--accent); margin-right: 4px; }
.logo-ai { color: var(--accent-light); }

/* === Hero === */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* === Slack Mock === */
.slack-mock {
  max-width: 820px;
  margin: 60px auto 0;
  background: #1a1d21;
  border: 1px solid #333640;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.slack-sidebar {
  display: flex;
  min-height: 480px;
}

/* Icon rail */
.slack-icon-rail {
  width: 44px;
  background: #19171d;
  border-right: 1px solid #28262d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  flex-shrink: 0;
}
.slack-rail-workspace {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.slack-rail-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #9a9b9e;
  cursor: default;
}
.slack-rail-icon.active {
  background: rgba(255,255,255,0.08);
  color: #e4e4ed;
}
.slack-rail-icon svg {
  width: 18px;
  height: 18px;
}
.slack-rail-spacer { flex: 1; }
.slack-rail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #3d5a80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #b8d4e8;
  position: relative;
}
.slack-rail-avatar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: #2bac76;
  border-radius: 50%;
  border: 2px solid #19171d;
}

/* Sidebar panel */
.slack-sidebar-panel {
  width: 190px;
  background: #19171d;
  border-right: 1px solid #333640;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.slack-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #28262d;
}
.slack-workspace-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #e4e4ed;
}
.slack-section-header {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a9b9e;
  padding: 16px 14px 6px;
}
.slack-section-header::before {
  content: '▸ ';
  font-size: 0.65rem;
}
.slack-channel-list {
  list-style: none;
  padding: 0;
}
.slack-channel-list li {
  padding: 3px 14px 3px 14px;
  font-size: 0.82rem;
  color: #9a9b9e;
  cursor: default;
  border-radius: 0 6px 6px 0;
  margin-right: 8px;
  line-height: 1.7;
}
.slack-channel-list li.active {
  background: #1164a3;
  color: #fff;
  font-weight: 600;
}
.slack-channel-list li.unread {
  color: #e4e4ed;
  font-weight: 700;
}
.slack-channel-list li::before {
  content: '# ';
  opacity: 0.5;
  font-size: 0.75rem;
}
.slack-dm-list {
  list-style: none;
  padding: 0;
}
.slack-dm-list li {
  padding: 3px 14px;
  font-size: 0.82rem;
  color: #9a9b9e;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.7;
}
.slack-dm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.slack-dm-dot.online { background: #2bac76; }
.slack-dm-dot.away {
  border: 1.5px solid #9a9b9e;
  background: transparent;
}

/* Main area */
.slack-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slack-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1d21;
  border-bottom: 1px solid #333640;
}
.slack-dot { display: none; }
.slack-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e4e4ed;
}
.slack-title::before {
  content: '# ';
  color: #9a9b9e;
  font-weight: 400;
}
.slack-header-icons {
  margin-left: auto;
  display: flex;
  gap: 12px;
  color: #9a9b9e;
}
.slack-header-icons svg {
  width: 16px;
  height: 16px;
}
.slack-header-meta {
  font-size: 0.78rem;
  color: #9a9b9e;
  margin-left: auto;
}

/* Date divider */
.slack-date-divider {
  display: flex;
  align-items: center;
  margin: 12px 0 16px;
}
.slack-date-divider::before,
.slack-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333640;
}
.slack-date-divider span {
  padding: 2px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a9b9e;
  background: #1a1d21;
  border: 1px solid #333640;
  border-radius: 12px;
}

.slack-body {
  padding: 0 20px 8px;
  flex: 1;
  overflow-y: auto;
}
.slack-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  padding: 6px 4px;
  border-radius: 6px;
}
.slack-msg:last-child { margin-bottom: 0; }
.slack-msg:hover { background: rgba(255,255,255,0.02); }
.slack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-avatar { background: #3d5a80; color: #b8d4e8; }
.bot-avatar { background: var(--accent); color: #fff; }
.slack-app-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: #9a9b9e;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.slack-name { font-weight: 700; font-size: 0.9rem; margin-right: 8px; color: #e4e4ed; }
.slack-time { font-size: 0.72rem; color: #717274; }
.slack-msg p { margin-top: 4px; font-size: 0.9rem; color: #d1d2d3; line-height: 1.5; }
.slack-code {
  background: #0d0d0f;
  border: 1px solid #3a3d42;
  border-radius: 4px;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 8px 0;
  white-space: pre;
  overflow-x: auto;
  color: #b5b7ba;
}
.slack-action {
  color: var(--green) !important;
  font-weight: 500;
}

/* Reactions */
.slack-reactions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-left: 48px;
}
.slack-reaction {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid #3a3d42;
  border-radius: 12px;
  color: #9a9b9e;
  cursor: default;
}
.slack-reaction.reacted {
  border-color: #1d9bd1;
  background: rgba(29,155,209,0.08);
  color: #1d9bd1;
}

/* Input bar */
.slack-input-bar {
  margin: 0 16px 16px;
  padding: 10px 14px;
  background: #222529;
  border: 1px solid #3a3d42;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #717274;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slack-input-icons {
  display: flex;
  gap: 10px;
  color: #717274;
}
.slack-input-icons svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .slack-sidebar-panel, .slack-icon-rail { display: none; }
  .slack-sidebar { min-height: 400px; }
}

/* Typing indicator */
.slack-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a9b9e;
  animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Slack mini (pillar visuals) */
.slack-mini {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* === Problem === */
.problem {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.problem h2 {
  text-align: center;
  margin-bottom: 56px;
  color: var(--accent-light);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problem-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.problem-icon {
  margin-bottom: 16px;
  color: var(--accent-light);
}
.problem-card h3 { margin-bottom: 12px; }
.problem-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === Main Point === */
.main-point {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.main-point h2 { margin-bottom: 24px; }
.main-point p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* === Pillars === */
.pillars {
  padding: 60px 0 120px;
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.pillar:last-child { margin-bottom: 0; }
.pillar-reverse { direction: rtl; }
.pillar-reverse > * { direction: ltr; }
.pillar-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.pillar-content h3 { font-size: 1.6rem; margin-bottom: 16px; }
.pillar-content > p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.02rem; }
.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-features li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.pillar-features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-family: monospace;
}

/* === Features === */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.features h2 {
  text-align: center;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.feature-icon {
  margin-bottom: 16px;
  color: var(--accent-light);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === CTA === */
.cta {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; }

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .pillar, .pillar-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .slack-code { font-size: 0.72rem; }
}
