/* ==========================================================================
   Ledgernova Accounting — global styles
   Tailwind is loaded via the Play CDN; this file holds brand tokens,
   reusable component classes and small animations.
   ========================================================================== */

:root {
  --navy-950: #061325;
  --navy-900: #0a2540;
  --navy-800: #0d2440;
  --navy-700: #13314f;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --gold-500: #f59e0b;
  --ink: #0b1b2b;
  --slate: #475569;
}

html {
  scroll-behavior: smooth;
}

[x-cloak] { display: none !important; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

/* ---- Layout helpers ----------------------------------------------------- */
.container-x {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--teal-500);
  border-radius: 9999px;
}

.gradient-text {
  background: linear-gradient(90deg, #2dd4bf, #14b8a6 45%, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal-500);
  color: #042f2e;
  box-shadow: 0 10px 25px -10px rgba(20, 184, 166, 0.7);
}
.btn-primary:hover { background: #2dd4bf; box-shadow: 0 14px 30px -10px rgba(20, 184, 166, 0.8); }

.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-700); }

.btn-outline {
  border: 1px solid rgba(13, 37, 64, 0.18);
  color: var(--navy-900);
  background: #fff;
}
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-600); }

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid rgba(13, 37, 64, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(13, 37, 64, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(13, 37, 64, 0.25);
  border-color: rgba(20, 184, 166, 0.4);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
  color: var(--teal-600);
}

/* ---- Navbar ------------------------------------------------------------- */
.nav-link {
  position: relative;
  font-size: 0.925rem;
  font-weight: 500;
  color: #334155;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--navy-900); }
.nav-link--active { color: var(--navy-900); font-weight: 600; }
.nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--teal-500);
  border-radius: 9999px;
}

/* ---- Reveal on scroll --------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: none;
}

/* ---- Marquee (logos / testimonials) ------------------------------------ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- Swiper sliders ----------------------------------------------------- */
.js-swiper { width: 100%; }

/* Keep pagination below the slide content rather than overlapping it */
.testimonials-swiper .swiper-pagination,
.cases-swiper .swiper-pagination {
  position: static;
  margin-top: 1.75rem;
}

.swiper-pagination-bullet {
  width: 0.625rem;
  height: 0.625rem;
  background: #cbd5e1;
  opacity: 1;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.swiper-pagination-bullet-active {
  width: 2rem;
  border-radius: 9999px;
  background: var(--teal-500);
}

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 10px 30px -12px rgba(13, 37, 64, 0.45);
  border: 1px solid rgba(13, 37, 64, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--teal-500);
  color: #042f2e;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 700;
}

/* ---- Prose (blog post) -------------------------------------------------- */
.prose-custom { color: #334155; line-height: 1.8; }
.prose-custom h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; color: var(--navy-900); }
.prose-custom h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--navy-900); }
.prose-custom p { margin-bottom: 1.25rem; }
.prose-custom ul { margin: 1rem 0 1.5rem 1.25rem; list-style: disc; }
.prose-custom li { margin-bottom: 0.5rem; }
.prose-custom blockquote {
  border-left: 4px solid var(--teal-500);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  background: #f0fdfa;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--navy-800);
}

/* ---- Accessibility ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
