/* Global theme */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06101c;
  color: #eef5ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(93, 118, 255, 0.16), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(25, 206, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #050c16 0%, #0b1422 100%);
  color: #eef5ff;
  overflow-x: hidden;
}

button,
textarea {
  font: inherit;
}

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

.page-shell {
  margin: 0 auto;
  padding: 32px 24px 40px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 26px;
  background: rgba(18, 25, 46, 0.96);
  border: 1px solid rgba(96, 128, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5e7dff, #1ad6ff);
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ea9ce;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.main-grid {
  display: grid;
  gap: 24px;
}

.card {
  border-radius: 32px;
  background: rgba(12, 18, 33, 0.94);
  border: 1px solid rgba(104, 127, 255, 0.16);
  box-shadow: 0 24px 90px rgba(6, 14, 33, 0.26);
  backdrop-filter: blur(24px);
}

.chat-panel {
  padding: 28px;
  background: rgba(10, 16, 34, 0.98);
  border: 1px solid rgba(104, 127, 255, 0.16);
  border-radius: 32px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.chat-input {
  width: 100%;
  min-height: 68px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(120, 150, 255, 0.18);
  background: rgba(10, 16, 34, 0.96);
  color: #eef5ff;
  outline: none;
  resize: none;
  line-height: 1.75;
}

.chat-input:focus {
  border-color: rgba(78, 112, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(63, 100, 255, 0.15);
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 18px;
  padding: 5px 20px;
  font-size: 20px;
  background: linear-gradient(135deg, #4f6cff, #18d7ff);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.send-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(29, 90, 255, 0.18);
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 18px 32px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .send-button {
    width: 100%;
  }
}
