@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500&family=Space+Grotesk:wght@500;600&display=swap");

:root {
  --bg: #0c0f14;
  --card: rgba(20, 24, 33, 0.86);
  --card-border: rgba(148, 166, 198, 0.2);
  --accent: #ffb347;
  --accent-2: #6ef2ff;
  --text: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.65);
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(110, 242, 255, 0.15), transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(255, 179, 71, 0.18), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: 10% 0 auto 0;
  height: 60vh;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.2), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  margin-bottom: 32px;
}

.hero__badge {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 0 0 12px;
  line-height: 1.05;
}

h1 span {
  color: var(--accent-2);
}

p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-log,
.voice-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.chat-item {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  animation: fade 0.4s ease;
}

.chat-item.user {
  background: rgba(110, 242, 255, 0.1);
}

.chat-item.agent {
  border: 1px solid rgba(255, 179, 71, 0.4);
}

.chat-item .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-input {
  display: flex;
  gap: 10px;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(10, 13, 20, 0.8);
  color: var(--text);
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(110, 242, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(110, 242, 255, 0.15);
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), #ff7f50);
  color: #151515;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 179, 71, 0.35);
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

.chat-meta,
.voice-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.voice-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.hint {
  font-size: 12px;
  color: var(--muted);
}
