:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background: #f7f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 40px;
  padding: 64px 6vw 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
}

.hero p,
.section p,
.feature-card p,
footer p {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #2563eb;
  color: #fff;
}

.button-secondary {
  background: #e5e7eb;
  color: #111827;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.mockup {
  width: 100%;
  max-width: 440px;
  border-radius: 32px;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.16);
  overflow: hidden;
}

.mockup-header {
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-messages {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.message {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.5;
}

.message.bot {
  background: rgba(255, 255, 255, 0.12);
  justify-self: start;
}

.message.user {
  background: #2563eb;
  color: #fff;
  justify-self: end;
}

.layout {
  padding: 0 6vw 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  margin-top: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.feature-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.panel {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 28px 30px 0;
}

.status-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
}

.connection-settings {
  display: grid;
  gap: 16px;
  padding: 22px 30px 0;
}

.connection-settings label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: #374151;
}

.connection-settings input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f9fafb;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chat-window {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
  height: 520px;
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  overflow-y: auto;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 78%;
  display: inline-flex;
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: #2563eb;
  color: #ffffff;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
}

.chat-bubble.typing {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  font-style: italic;
  opacity: 0.9;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

.chat-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 24px 24px;
  background: #ffffff;
}

.chat-input-row input {
  flex: 1;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #f9fafb;
}

.setup-list {
  margin: 0;
  padding-left: 18px;
}

.setup-list li {
  margin-top: 14px;
}

.note {
  margin-top: 16px;
  color: #4b5563;
}

.footer {
  padding: 24px 6vw 24px;
  text-align: center;
  color: #6b7280;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 5vw 36px;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .settings-actions {
    flex-direction: column;
  }

  .chat-window {
    height: 520px;
  }
}
