@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 230 50% 15%;
  --card: 0 0% 100%;
  --card-foreground: 230 50% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 230 50% 15%;
  --primary: 230 80% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 14% 96%;
  --secondary-foreground: 230 50% 15%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --accent: 24 95% 53%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 230 80% 45%;
  --radius: 0.75rem;

  /* Brand Colors */
  --orange: 24 95% 53%;
  --orange-light: 24 95% 60%;
  --orange-dark: 24 95% 45%;
  --blue-dark: 238 70% 35%;
  --blue-mid: 230 80% 45%;
  --blue-light: 210 80% 55%;
  --purple: 262 83% 58%;
  --purple-light: 262 70% 65%;
  --teal: 175 80% 40%;
  --teal-light: 175 70% 50%;
  --green: 142 70% 45%;
  --blue: 217 91% 60%;
  --pink: 330 80% 60%;

  /* Section backgrounds */
  --section-light: 220 20% 98%;
  --section-purple: 262 60% 97%;
  --section-orange: 24 80% 97%;
  --section-teal: 175 60% 97%;
  --section-blue: 230 60% 97%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, hsl(238 70% 30%) 0%, hsl(230 80% 45%) 50%, hsl(210 80% 50%) 100%);
}

/* Section backgrounds */
.section-light {
  background-color: hsl(var(--section-light));
}

.section-purple {
  background-color: hsl(var(--section-purple));
}

.section-orange {
  background-color: hsl(var(--section-orange));
}

.section-teal {
  background-color: hsl(var(--section-teal));
}

.section-blue {
  background-color: hsl(var(--section-blue));
}

/* Card shadows */
.card-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Card hover */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.btn-orange {
  background-color: hsl(var(--orange));
  color: white;
}

.btn-orange:hover {
  background-color: hsl(var(--orange-dark));
}

.btn-white {
  background-color: white;
  color: hsl(var(--foreground));
}

.btn-white:hover {
  background-color: hsl(220 20% 96%);
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-default {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
}

.btn-xl {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}

/* Lucide icon SVG base */
.lucide {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* FAQ Accordion */
.faq-item {
  background-color: white;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0 1.5rem;
  transition: all 0.2s ease;
}

.faq-item.open {
  border-color: hsl(24 95% 53% / 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: hsl(var(--foreground));
  padding: 1.25rem 0;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: hsl(var(--orange));
}

.faq-trigger svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  line-height: 1.7;
}

.faq-item.open .faq-content {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer {
  color: hsl(var(--muted-foreground));
  padding-bottom: 1.25rem;
  line-height: 1.7;
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 1rem;
}

/* Review slider dots */
.review-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--muted-foreground) / 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.review-dot.active {
  background: hsl(var(--blue));
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  width: 90%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem;
}

/* About nav */
.about-nav-link {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.about-nav-link:hover {
  color: hsl(var(--primary));
}

.about-nav-link.active {
  color: hsl(var(--primary));
  border-bottom: 2px solid hsl(var(--primary));
}

/* Admin sidebar */
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.admin-sidebar-link:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.admin-sidebar-link.active {
  background: hsl(var(--primary));
  color: white;
}

/* Feature tabs */
.feature-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
}

.feature-tab.active {
  background: hsl(var(--primary));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-tab:not(.active) {
  background: white;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}

.feature-tab:not(.active):hover {
  background: hsl(220 20% 98%);
}

/* Comparison table */
.comparison-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.comparison-table td {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

/* Knowledge Base search */
.kb-search {
  position: relative;
}

.kb-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: white;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.kb-search input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.kb-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}

/* Tab content visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Contact form */
.input-field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
  border-color: transparent;
}

.input-field::placeholder {
  color: hsl(var(--muted-foreground));
}

textarea.input-field {
  min-height: 120px;
  resize: vertical;
}

/* ─── Blog Content Typography ─── */
.blog-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
}

.blog-content>*:first-child {
  margin-top: 0;
}

.blog-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.blog-content h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 1.75rem 0 0.5rem;
  line-height: 1.4;
}

.blog-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 1.5rem 0 0.5rem;
  line-height: 1.45;
}

.blog-content p {
  margin: 0 0 0.75rem;
}

/* Collapse empty spacer paragraphs generated by Quill */
.blog-content p:empty,
.blog-content p:has(> br:only-child) {
  margin: 0;
  line-height: 0;
  font-size: 0;
}

.blog-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  text-decoration-thickness: 2px;
}

.blog-content strong,
.blog-content b {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.blog-content em,
.blog-content i {
  font-style: italic;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content li>ul,
.blog-content li>ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.blog-content blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  background: hsl(var(--muted) / 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-content code {
  color: hsl(var(--primary));
  background: hsl(var(--muted));
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.blog-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  margin: 1.5rem 0;
}

.blog-content hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 2rem 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.blog-content th {
  text-align: left;
  font-weight: 600;
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  border-bottom: 2px solid hsl(var(--border));
}

.blog-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}