/* Techne Labs Info Site Styles */

:root {
  /* Brand Colors - Techne Labs */
  --primary: #667eea;
  --primary-dark: #764ba2;
  --accent: #ff6b6b;
  --accent-light: #ff8e53;

  /* Neutral Colors */
  --header: #212d4c;
  --dark: #233050;
  --dark-blue: #233044;
  --light: #f9fafb;
  --border: #e5e7eb;
  --text: #ffffff;
  --text-light: #d9dde3;
}

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

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--dark);
  background-image: url("/logo-watermark.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 800px;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

/* Landing Page Styles */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--header);
  width: 100%;
}

header .logo {
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  width: 80px;
  height: 80px;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(102, 126, 234, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.6));
  }
}

.logo h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin: 0;
}

.tagline {
  font-size: 1.25rem;
  color: rgba(238, 231, 231, 0.8);
  font-weight: 400;
}

.hero {
  text-align: center;
  margin: 0rem 0;
  color: var(--text);
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--accent-light);
  max-width: 700px;
  margin: 0 auto;
}

/* AI Chat Window Styling */
.chat-window {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chat-header-bar {
  background: var(--accent-light);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.claude-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.claude-icon svg {
  opacity: 0.9;
}

.chat-title {
  font-size: 0.9rem;
  color: white;
  margin-left: 0.5rem;
  font-weight: 500;
}

.chat-body {
  padding: 2rem 1.5rem;
  text-align: left;
  background: white;
  max-height: 600px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.user-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.chat-content {
  flex: 1;
}

.chat-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1f2937;
  position: relative;
  display: inline;
}

.user-message .chat-text {
  opacity: 0.9;
}

/* Blinking cursor only on index page typing animation */
.hero .user-message .chat-text::after,
.hero .ai-message .chat-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.75s step-end infinite;
}

.hero .user-message .chat-text.typing-complete::after,
.hero .ai-message .chat-text.typing-complete::after {
  display: none;
}

@keyframes blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* AI Platform Logos */
.ai-platforms {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
  animation-delay: 10.5s;
}

.ai-platforms h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.platform-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.platform-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.platform-logo:hover {
  opacity: 1;
}

.platform-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  padding: 12px;
}

.platform-logo-circle svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.platform-logo-circle.anthropic {
  background: linear-gradient(135deg, #cc785c, #b86748);
}

.platform-logo-circle.openai {
  background: linear-gradient(135deg, #10a37f, #0d8f6f);
}

.platform-logo-circle.google {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.platform-name {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.access-portals {
  margin: 4rem 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
  animation-delay: 10.7s;
}

.access-portals h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.access-portals > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portal-card {
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.portal-card.labs {
  background: var(--header);
  color: white;
  opacity: 0.8;
}

.portal-card.invest {
  background: var(--header);
  color: white;
  opacity: 0.8;
}

.portal-card.grant {
  background: var(--header);
  color: white;
  opacity: 0.8;
}

.portal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
}

.portal-card h4 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.portal-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.access-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.info {
  margin: 4rem 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
  animation-delay: 10.9s;
}

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

.info h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--header);
  border-radius: 0px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-icon {
  font-size: 3rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
}

.info-card h4 {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(229, 231, 235, 0.2);
  margin-top: 4rem;
  color: var(--text-light);
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
  animation-delay: 11.1s;
}

.contact {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.legal-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(229, 231, 235, 0.2);
  font-size: 0.75rem;
  color: rgba(217, 221, 227, 0.6);
  line-height: 1.4;
}

.legal-info p {
  margin: 0.25rem 0;
}

.legal-info strong {
  color: var(--text-light);
}

/* Chat Interface Styles */

.clear-chat-button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.clear-chat-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.clear-chat-button .material-symbols-outlined {
  font-size: 1.25rem;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  background: white;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  resize: none;
  max-height: 120px;
  min-height: 42px;
}

#chat-input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(255, 142, 83, 0.1);
}

#chat-input::placeholder {
  color: #9ca3af;
}

.send-button {
  background: var(--accent-light);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.send-button:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.send-button:disabled {
  background: #e5e7eb;
  cursor: not-allowed;
  transform: none;
}

.send-button .material-symbols-outlined {
  font-size: 1.25rem;
}

/* Chat Messages */
.message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.message:last-child {
  margin-bottom: 0;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.message-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  white-space: pre-wrap; /* Preserve paragraph breaks */
}

/* Suggested Prompts Section */
.suggested-prompts {
  margin: 4rem 0;
  opacity: 1;
}

.suggested-prompts h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Chat page footer - no animation */
footer.chat-footer {
  opacity: 1;
  animation: none;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: start;
}

.prompt-category-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--header);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  margin-bottom: 0.5rem;
}

.category-header .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--accent-light);
}

.category-header h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

.prompt-question-card {
  background: var(--header);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prompt-question-card .question-icon {
  font-size: 1.1rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.prompt-question-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, 0.03);
}

.prompt-question-card:hover .question-icon {
  color: var(--accent-light);
}

.prompt-card {
  background: var(--header);
  padding: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.prompt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.prompt-card h4 {
  font-size: 1.1rem;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-card h4 .material-symbols-outlined {
  font-size: 1.25rem;
}

.prompt-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.prompt-category {
  margin-bottom: 2rem;
}

.prompt-category:last-child {
  margin-bottom: 0;
}

.prompt-category-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 768px) {
  .chat-layout {
    flex-direction: column;
  }

  .prompts-sidebar {
    width: 100%;
    max-height: 40vh;
    border-right: none;
    border-bottom: 2px solid var(--border);
  }

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

  .logo h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }
}
