:root {
  --primary-color: #005D50;
  --secondary-color: #00382E;
  --text-color: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.05);
  /* Slightly darker than hub for chat contrast */
  --card-border: rgba(255, 255, 255, 0.2);
  --card-hover-bg: rgba(255, 255, 255, 0.1);
  --font-heading: 'Sanchez', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Copilot Specifics */
  --accent-color: #39d0b8;
  --input-bg: rgba(14, 38, 35, 0.8);
  --muted: #9bc3bb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- Header & Nav (Consistent with Hub) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 56, 46, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
  border-left: 1px solid var(--muted);
  padding-left: 10px;
  margin-left: 10px;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

/* --- Main Layout --- */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px - 60px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Start from top for chat */
}

/* --- Copilot Card (Chat Interface) --- */
.wrap {
  width: 100%;
  max-width: 880px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Liquid glass effect from original */
  background-image: radial-gradient(140% 120% at -10% -10%,
      rgba(255, 255, 255, .1) 0%,
      rgba(255, 255, 255, .05) 35%,
      rgba(255, 255, 255, .01) 75%);
}

.ask {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

textarea {
  flex: 1;
  min-height: 80px;
  max-height: 200px;
  resize: vertical;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-color);
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Button with Glass Effect */
button#btn {
  background: linear-gradient(135deg, #2ac8b0, #1a9f8d);
  color: #052c27;
  border: none;
  border-radius: 12px;
  padding: 0 2rem;
  height: 54px;
  /* Align with default textarea height */
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

button#btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 200, 176, 0.3);
}

.product {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

select {
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  cursor: pointer;
}

.tip {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

/* --- Answer Section --- */
.answer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.answer h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.answer p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.citations {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  /* Lighter, more subtle */
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.citations b {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.citations ul {
  margin: 0;
  padding-left: 1.2rem;
}

.citations li {
  margin-bottom: 0.25rem;
}

.citations a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.citations a:hover {
  opacity: 1;
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

/* --- Footer (Consistent with Hub) --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 32, 26, 0.3);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .ask {
    flex-direction: column;
  }

  button#btn {
    width: 100%;
  }
}