* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
  
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 100;
  border-bottom: 1px solid rgb(187, 187, 187);
}


.logo {
  height: 42px;
  filter: brightness(0.8);
  transition: transform 0.2s, filter 0.2s;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #2563eb;
}

button {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.sign-in-btn {
  background: transparent;
  color: #2563eb;
}

.get-started-btn {
  background: #2563eb;
  color: #fff;
}

.get-started-btn:hover {
  background: #1d4ed8;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5%;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  max-width: 550px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.hero-content span {
  color: #2563eb;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.google-btn {
  background: #f3f4f6;
  color: #111827;
}

.google-btn:hover {
  background: #e5e7eb;
}

.hero-image img {
  max-width: 450px;
  border-radius: 16px;
}

.features {
  text-align: center;
  padding: 5rem 10%;
  background: #ffffff;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-card i {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.editor {
  padding: 4rem 10%;
  background: #f3f4f6;
  text-align: center;
}

.editor textarea {
  width: 100%;
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 1rem;
}

.testimonials {
  padding: 5rem 10%;
  background: #fff;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

footer {
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 3rem 10%;
}

.footer-logo {
  height: 36px;
  filter: brightness(0.9);
  margin-bottom: 1rem;
}

.footer-right ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-right a {
  color: #e2e8f0;
  text-decoration: none;
}

.socials a {
  color: #e2e8f0;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.socials a:hover {
  color: #60a5fa;
}

footer p {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.name-a {
  text-decoration: none;
  color: inherit;
}

.about-hero {
  background: linear-gradient(to right, #2563eb, #1e40af);
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

.about-hero h1 {
  font-size: 3rem;
}

.about-hero span {
  color: #facc15;
}

.about-hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.about-story, .mission, .team {
  padding: 5rem 10%;
  background: #fff;
  text-align: center;
}

.about-story p {
  max-width: 800px;
  margin: 1rem auto;
  color: #475569;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.mission-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mission-card i {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: #f9fafb;
  border-radius: 12px;
  padding: 2rem;
  max-width: 250px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.team-member img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.cta {
  background: #2563eb;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.cta button {
  margin-top: 1rem;
  background: #facc15;
  color: #111827;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cta button:hover {
  background: #fde047;
}

.legal-page {
  padding: 5rem 10%;
  background: #fff;
  color: #1e293b;
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

.legal-page h1 {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  color: #2563eb;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-page p {
  max-width: 850px;
  margin: 0.5rem auto;
  color: #475569;
}

.legal-page a {
  color: #2563eb;
  text-decoration: underline;
}

.legal-page a:hover {
  color: #1d4ed8;
}

.trusted {
  background: #f8fafc;
  padding: 4rem 1rem;
  text-align: center;
}

.trusted h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.logo-slider img {
  height: 45px;
  width: auto;
  margin: 0 50px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: grayscale(100%);
}

.logo-slider img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc 80%, transparent);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc 80%, transparent);
}


.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 650px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  max-width: 60%;
}

.cookie-banner a {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cookie-buttons button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#reject-cookies { background: #ef4444; color: #fff; }
#essential-cookies { background: #fbbf24; color: #000; }
#accept-all-cookies { background: #2563eb; color: #fff; }

.cookie-buttons button:hover { opacity: 0.9; }

.cookie-banner.hidden { display: none; }

.auth-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 300px;
  text-align: center;
}

.auth-container input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.auth-container button {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.auth-container button:hover {
  background: #1d4ed8;
}

.auth-container p {
  font-size: 14px;
  margin-top: 0.5rem;
}

.auth-container a {
  color: #2563eb;
  text-decoration: none;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  min-width: 250px;
  background: #2563eb;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  animation: slideIn 0.3s ease forwards;
}

.toast-progress {
  height: 4px;
  background: rgba(255,255,255,0.7);
  width: 100%;
  transform-origin: left;
}

@keyframes slideIn {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.dashboard-container {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.sidebar {
  width: 220px;
  color: black;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  gap: 1rem;
  border-right: 1px solid rgb(187, 187, 187);
}


.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  color: black;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.sidebar ul li a:hover {
  background: #2563eb;
  color: #fff;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1rem 2rem;
  background: #f8fafc;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #0f172a;
}

.dropdown-content a:hover {
  background: #2563eb;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.chat-container {
  flex: 1;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 0.5rem;
  border: solid;
  border-width: 1px;
  border-color: rgb(187, 187, 187);
}

.user-message, .ai-message {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  max-width: 70%;
  word-wrap: break-word;
}

.user-message {
  background: #2563eb;
  color: #fff;
  align-self: flex-end;
}

.ai-message {
  background: #e2e8f0;
  color: #0f172a;
  align-self: flex-start;
}

#chat-form {
  display: flex;
  gap: 0.5rem;
}

#chat-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

#chat-form button {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
}

.user-docs {
  margin-top: 2rem;
}

.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.docs-header h3 {
  font-size: 1.2rem;
}

.docs-header button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

.docs-header button:hover {
  background: #1d4ed8;
}

#docs-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#docs-list li {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.2s;
}

#docs-list li:hover {
  background: #2563eb;
  color: #fff;
}


@media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-right ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-content {
    text-align: center;
    padding: 0 20px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header {
    flex-direction: column;
    gap: 10px;
  }

  .header-right ul {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .get-started-btn,
  .google-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  form {
    width: 100%;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  button,
  .google-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .footer-left p {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .dashboard-container {
    flex-direction: column;
  }

  aside.sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  aside.sidebar ul {
    display: flex;
    flex-wrap: nowrap;
  }

  aside.sidebar li {
    margin-right: 15px;
    margin-bottom: 0;
  }

  main.main-content {
    padding: 15px;
  }

  .docs-grid li {
    width: 45%;
    height: auto;
  }

  #search-docs {
    width: 100px;
  }

  .docs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  aside.sidebar {
    flex-direction: column;
    overflow-x: visible;
  }

  aside.sidebar li a {
    font-size: 0.9rem;
  }

  .docs-grid li {
    width: 100%;
  }

  #search-docs {
    width: 100%;
  }

  .docs-header {
    align-items: stretch;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }
}
