:root {
  --bg: #0b0f14;
  --bg-soft: #121820;
  --surface: #171f2a;
  --surface-hover: #1c2634;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8eef7;
  --muted: #8b9cb3;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-tag {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.area-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  box-shadow: var(--shadow);
  min-height: 180px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.area-card--active:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 140, 255, 0.45);
  background: var(--surface-hover);
}

.area-card--disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.area-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.area-card--active .area-icon {
  background: var(--accent-soft);
}

.area-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.area-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.area-top h2 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.area-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  flex: 1;
}

.area-cta {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.area-card--disabled .area-cta {
  color: var(--muted);
}

.pill {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--live {
  color: var(--green);
  background: var(--green-soft);
}

.pill--soon {
  color: var(--amber);
  background: var(--amber-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Chatbot page */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  padding: 2rem 0 3rem;
  min-height: calc(100vh - 72px);
}

.sidebar {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 1.25rem;
  height: fit-content;
}

.sidebar h1 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.sidebar p,
.sidebar li {
  color: var(--muted);
  font-size: 0.875rem;
}

.sidebar ul {
  margin: 1rem 0 0 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  min-height: 620px;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-header h2 {
  font-size: 1rem;
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chat-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.message {
  max-width: 80%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  white-space: pre-wrap;
}

.message--bot {
  align-self: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.message--user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.25);
}

.message--typing {
  color: var(--muted);
  font-style: italic;
}

.chat-input {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.chat-input textarea {
  flex: 1;
  resize: vertical;
  min-height: 52px;
  max-height: 140px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
}

.chat-input button {
  align-self: end;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
}

.chat-input button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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