/* =========================================================
   SaaS AI - landing page styles
   Tailwind handles layout/utility; this file covers the
   brand components, gradients, motion and responsive art.
   ========================================================= */

:root {
  --brand-50: #f1f7ff;
  --brand-100: #e1eeff;
  --brand-200: #c5deff;
  --brand-300: #9ac6ff;
  --brand-400: #66a6ff;
  --brand-500: #3786f5;
  --brand-600: #1667db;
  --brand-700: #1252b4;
  --brand-800: #14468f;
  --brand-900: #153c72;
  --ink-500: #5a6785;
  --ink-700: #28324b;
  --ink-900: #0c1424;
  --radius-xl2: 1.25rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ---------------------------- Buttons ---------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  padding: 0.8rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 16px 32px -16px rgba(22, 103, 219, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 22px 40px -16px rgba(22, 103, 219, 0.9);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 2px;
}

.btn-primary[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.8rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-700);
  box-shadow: 0 14px 30px -18px rgba(4, 20, 45, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(4, 20, 45, 0.95);
}

/* ---------------------------- Header ---------------------------- */

#siteHeader.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: #eef2f8;
  box-shadow: 0 10px 30px -24px rgba(12, 20, 36, 0.5);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  color: var(--ink-500);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-700);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* ---------------------------- Cards ---------------------------- */

.feature-card {
  position: relative;
  border: 1px solid #f0f3f9;
  border-radius: var(--radius-xl2);
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 18px 40px -30px rgba(12, 20, 36, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(55, 134, 245, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-100);
  box-shadow: 0 26px 50px -30px rgba(22, 103, 219, 0.6);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  display: grid;
  height: 3rem;
  width: 3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--brand-100);
  color: var(--brand-700);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.step-card {
  position: relative;
  border-radius: var(--radius-xl2);
  border: 1px solid #eaf1fb;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 16px 36px -30px rgba(12, 20, 36, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -30px rgba(22, 103, 219, 0.6);
}

.step-number {
  display: inline-grid;
  height: 2.6rem;
  width: 2.6rem;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.point-card {
  border-radius: var(--radius-xl2);
  border: 1px solid #f0f3f9;
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 16px 36px -30px rgba(12, 20, 36, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -30px rgba(22, 103, 219, 0.55);
}

.point-icon {
  display: grid;
  height: 3rem;
  width: 3rem;
  margin-inline: auto;
  place-items: center;
  border-radius: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-700);
}

.social-btn {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border-radius: 0.7rem;
  border: 1px solid #e9edf5;
  background: #fff;
  color: var(--ink-500);
  transition: all 0.25s ease;
}

.social-btn:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------------------- FAQ ---------------------------- */

.faq-item {
  border-radius: 1rem;
  border: 1px solid #eef2f8;
  background: #fff;
  padding: 0.25rem 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: var(--brand-100);
  box-shadow: 0 18px 40px -32px rgba(22, 103, 219, 0.6);
}

.faq-summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
}

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

.faq-marker {
  position: relative;
  flex: none;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 999px;
  background: var(--brand-50);
  transition: background 0.25s ease, transform 0.25s ease;
}

.faq-marker::before,
.faq-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  width: 0.6rem;
  border-radius: 999px;
  background: var(--brand-600);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-marker {
  background: var(--brand-100);
}

.faq-item[open] .faq-marker::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-500);
}

/* ---------------------------- Form states ---------------------------- */

.form-message-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.form-message-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.form-message-info {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}

/* ---------------------------- Hero art ---------------------------- */

.hero-art {
  isolation: isolate;
}

.art-phone,
.art-chat,
.art-badge,
.art-mini,
.art-chart,
.art-fab {
  animation: floaty 6s ease-in-out infinite;
}

.art-chat { animation-delay: -1.2s; }
.art-badge { animation-delay: -2.4s; }
.art-mini { animation-delay: -3.6s; }
.art-chart { animation-delay: -4.8s; }
.art-fab { animation-delay: -1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.art-phone { animation-name: floatyPhone; }

@keyframes floatyPhone {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

.art-chat { animation-name: floatyChat; }

@keyframes floatyChat {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.art-badge { animation-name: floatyBadge; }

@keyframes floatyBadge {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-9px) rotate(-3deg); }
}

@media (max-width: 640px) {
  .hero-art {
    transform: scale(0.86);
    transform-origin: center top;
    margin-bottom: -3rem;
  }

  .art-mini,
  .art-chart {
    display: none;
  }
}

/* ---------------------------- Reveal on scroll ---------------------------- */

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------- Misc ---------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  border-radius: 0 0 0.75rem 0;
  background: var(--brand-700);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: left 0.2s ease;
}

.skip-link:focus {
  left: 0;
}

.mobile-nav-link.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
