:root {
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --text: #1e293b;
  --muted: #475569;
  --line: rgba(148, 163, 184, 0.3);
  --brand: #0ea5e9;
  --brand-dark: #0369a1;
  --accent: #6366f1;
  --warm: #f43f5e;
  --shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
  --glow: 0 0 20px rgba(14, 165, 233, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Plus Jakarta Sans", Arial, sans-serif;
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.15), transparent 42%),
    radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15), transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav,
.hero-grid,
.stats-grid,
.feature-layout,
.footer-row,
.contact-card,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.nav {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 1.5rem 0;
  column-gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.logo-image {
  display: inline-flex;
  align-items: center;
}

.logo-image img {
  width: clamp(36px, 3vw, 44px);
  height: auto;
  display: block;
}

.logo-text {
  font-size: clamp(0.95rem, 0.6vw + 0.8rem, 1.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.logo-dot {
  color: #0ea5e9;
  -webkit-text-fill-color: #0ea5e9;
}

.logo-badge {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  white-space: nowrap;
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.nav-links a {
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links a.is-active,
.nav-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.hero,
.section {
  padding: 4.5rem 0;
}

.hero-grid,
.feature-layout,
.contact-card,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.section-heading h2,
.contact-card h2,
.blog-article h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.7rem);
  max-width: 12ch;
  background: linear-gradient(145deg, #0f172a, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-intro h1,
.blog-article h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 13ch;
}

.hero h1 .highlight {
  background: linear-gradient(145deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: float-pulse 4s ease-in-out infinite;
}

@keyframes float-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.4)); }
}

.hero p,
.section-heading p,
.info-card p,
.feature-card p,
.faq-item p,
.contact-card p,
.site-footer p,
.hero-card-copy p,
.page-intro p,
.blog-card p,
.blog-lead,
.prose p,
.contact-form-note,
.stat-card span {
  color: var(--muted);
  line-height: 1.7;
}

.cta-row,
.trust-list,
.card-grid,
.feature-list,
.faq-list,
.contact-points,
.blog-grid {
  display: flex;
  gap: 1rem;
}

.cta-row,
.trust-list,
.card-grid,
.feature-list,
.contact-points,
.blog-grid {
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow), var(--glow);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3), 0 0 25px rgba(14, 165, 233, 0.4);
}

.button-secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid rgba(14, 165, 233, 0.4);
  box-shadow: none;
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

.text-link {
  color: var(--brand-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.text-link:hover {
  color: var(--brand);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.trust-list,
.contact-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.trust-list li,
.contact-points li {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-card,
.stat-card,
.info-card,
.feature-card,
.faq-item,
.contact-card,
.blog-card,
.blog-article {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover,
.info-card:hover,
.feature-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1), 0 0 20px rgba(14, 165, 233, 0.15);
}

.hero-card {
  border-radius: 2rem;
  padding: 1.5rem;
  transform: rotate(2deg) perspective(500px) rotateY(-5deg);
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-card:hover {
  transform: rotate(0deg) perspective(500px) rotateY(0deg) translateY(-5px);
  border-color: rgba(14, 165, 233, 0.4);
}

.hero-card-copy strong,
.stat-card strong {
  display: block;
  font-size: 1.4rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.info-card,
.feature-card,
.faq-item,
.blog-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.info-card-large,
.faq-item-large {
  padding: 2rem;
}

.section-alt {
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section-heading,
.page-intro {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.card-grid > *,
.feature-list > *,
.blog-grid > * {
  flex: 1 1 16rem;
}

.faq-list {
  flex-direction: column;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.contact-card {
  padding: 2rem;
  border-radius: 2rem;
}

.contact-details {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  font-weight: 700;
}

.contact-details a,
.contact-details span {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-row {
  grid-template-columns: 1fr auto;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.breadcrumb,
.meta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.blog-grid {
  align-items: stretch;
}

.blog-card h2,
.blog-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-image-wrap {
  display: block;
  margin: -1.5rem -1.5rem 1rem;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 1rem 1rem;
}

.blog-image,
.blog-hero-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.blog-image {
  aspect-ratio: 16 / 9;
}

.blog-article {
  border-radius: 2rem;
  padding: 2rem;
}

.blog-hero-image {
  border-radius: 1.25rem;
  margin-bottom: 1.25rem;
  max-height: 420px;
}

.blog-lead {
  font-size: 1.1rem;
  margin: 1.2rem 0 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

@media (max-width: 860px) {
  .nav,
  .hero-grid,
  .stats-grid,
  .feature-layout,
  .contact-card,
  .footer-row,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .logo-image img {
    width: 28px;
  }

  .logo-text {
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  .nav {
    row-gap: 0.9rem;
  }

  .logo-group {
    gap: 0.4rem;
  }

  .logo-image img {
    width: 24px;
  }

  .logo-text {
    font-size: 0.68rem;
  }

  .nav-links {
    gap: 0.78rem 1rem;
  }

  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .hero-card {
    transform: none;
  }
}

/* --- Chat Widget --- */
.chat-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  font-family: "Inter", "Plus Jakarta Sans", Arial, sans-serif;
}

.chat-widget-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-widget-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.5);
}

.chat-widget-window {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 320px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 1.2rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-widget-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-header {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header strong {
  font-size: 1rem;
}

.chat-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chat-header button:hover {
  opacity: 0.8;
}

.chat-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(248, 250, 252, 0.5);
}

.chat-message {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 85%;
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 0.2rem;
}

.chat-message.user {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 0.2rem;
}

.chat-options {
  padding: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
}

.chat-option-btn {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-option-btn:hover {
  background: rgba(14, 165, 233, 0.1);
}

@media (max-width: 480px) {
  .chat-widget-window {
    width: calc(100vw - 4rem);
  }
}
