:root {
  --background: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef2fb;
  --surface-highlight: #1f2937;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #d1d5db;
  --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.4);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.wrapper {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.08));
  padding: 20px 0 80px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 70px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.04rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button,
.secondary-button {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.secondary-button {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.secondary-button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 90px 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.section p {
  color: var(--text-secondary);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  align-items: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.stat-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.section-alt {
  background: var(--surface-alt);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.profile-card {
  text-align: center;
}

.profile-card img {
  margin: 0 auto 16px;
}

.profile-card h3 {
  margin-bottom: 4px;
}

.profile-card p {
  margin: 0;
  color: var(--text-secondary);
}

.section-highlight {
  background: var(--surface-highlight);
  color: #fff;
}

.section-highlight p {
  color: rgba(255, 255, 255, 0.8);
}

.section-highlight .wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.section-highlight .primary-button {
  background: #fff;
  color: var(--surface-highlight);
  box-shadow: none;
}

.section-highlight .primary-button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.news-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.news-card a {
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.86);
  padding: 60px 0 30px;
}

.footer a {
  color: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: start;
}

.newsletter-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.newsletter-input {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-input input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}

.newsletter-input button {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 50px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero-content {
    margin-top: 50px;
  }

  .section {
    padding: 70px 0;
  }
}

/* Chatbot Styles */
.chatbot-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
  pointer-events: auto;
  border: none;
  outline: none;
}

.chatbot-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.chatbot-button svg {
  width: 28px;
  height: 28px;
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 600px;
  max-height: calc(100vh - 130px);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: var(--accent);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--background);
}

.chat-message {
  display: flex;
  max-width: 75%;
  animation: messageSlideIn 0.3s ease;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.bot {
  align-self: flex-start;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.chat-message.user .message-content {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.bot .message-content {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chatbot-input-container {
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-send {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

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

.chat-send:active {
  transform: scale(0.95);
}

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

@media (max-width: 480px) {
  .chatbot-window {
    bottom: 90px;
    right: 12px;
    left: 12px;
    width: auto;
    height: 500px;
    max-height: calc(100vh - 110px);
  }

  .chatbot-button {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .chat-message {
    max-width: 85%;
  }
}



