.copilot-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.16), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #0f172a 48%, #111827 100%);
  color: #e5edf7;
}

.copilot-hero {
  padding: 4.5rem 0 2.5rem;
}

.copilot-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.back-home,
.copilot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.copilot-kicker {
  color: #67e8f9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.copilot-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.copilot-hero p {
  max-width: 58rem;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.7;
}

.copilot-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.copilot-trust-row span,
.prompt-chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.66);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

.copilot-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.6rem;
  background: rgba(2, 6, 23, 0.74);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  color: #94a3b8;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0.35rem rgba(34, 197, 94, 0.14);
}

.chat-messages {
  height: min(52vh, 520px);
  min-height: 360px;
  overflow-y: auto;
  padding: 1.1rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.user .bubble {
  background: #2563eb;
  color: #fff;
}

.avatar {
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
}

.chat-message.user .avatar {
  display: none;
}

.bubble {
  max-width: 82%;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
  line-height: 1.62;
  white-space: pre-wrap;
}

.chat-form {
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
}

.chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.72);
  color: #e5edf7;
  padding: 0.9rem 1rem;
  outline: none;
}

.chat-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.12);
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.prompt-chip {
  cursor: pointer;
  font: inherit;
}

.prompt-chip:hover {
  border-color: #60a5fa;
  color: #fff;
}

.chat-actions .btn {
  margin-left: auto;
}

.copilot-examples {
  padding: 1rem 0 4rem;
}

.copilot-examples h2 {
  margin-bottom: 1.25rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.example-grid article {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.58);
  padding: 1.1rem;
}

.example-grid h3 {
  margin-top: 0;
}

.example-grid p {
  color: #cbd5e1;
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .copilot-hero-inner,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .copilot-hero {
    padding-top: 2.5rem;
  }

  .chat-actions .btn {
    width: 100%;
    margin-left: 0;
  }

  .bubble {
    max-width: 92%;
  }
}
