﻿:root {
  --bg: #f3efe8;
  --ink: #19222d;
  --muted: #5d6b7a;
  --accent: #005f73;
  --accent-2: #ca6702;
  --card: #fffdf8;
  --border: #d7d0c3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, #fce8cf 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, #d4ece6 0%, transparent 50%),
    var(--bg);
  font-family: "IBM Plex Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  min-height: 100vh;
}

.page {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  margin-bottom: 26px;
  animation: fadeup 0.55s ease;
}

.eyebrow {
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 8px;
}

h1 {
  font-family: "Alegreya Sans SC", "IBM Plex Sans", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 10px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: color-mix(in oklab, var(--card) 88%, white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(25, 34, 45, 0.08);
  animation: fadeup 0.7s ease;
}

h2 {
  margin-top: 0;
}

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

input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fffcf6;
  color: var(--ink);
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0a9396);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: saturate(1.15);
}

.result,
.answer-block {
  margin-top: 14px;
  background: #f9f5ec;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
}

.result {
  min-height: 44px;
  white-space: pre-wrap;
}

#answer {
  margin-top: 0;
  line-height: 1.65;
}

#citations {
  margin: 0;
  padding-left: 18px;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.25;
  z-index: -1;
}

.orb-a {
  left: -70px;
  top: -50px;
  background: var(--accent-2);
}

.orb-b {
  right: -80px;
  bottom: -60px;
  background: #0a9396;
}

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

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
