/* Service Based CRM — shared styles
   Device mockups, decorative gradients, micro-interactions.
   Everything else is Tailwind utilities. */

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero background mesh ---- */
.hero-mesh {
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 60%),
    radial-gradient(40% 40% at 85% 0%, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 60%),
    radial-gradient(50% 50% at 90% 80%, rgba(79, 70, 229, 0.18) 0%, rgba(79, 70, 229, 0) 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-mesh {
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0) 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0) 60%);
}

.cta-mesh {
  background:
    radial-gradient(50% 80% at 0% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(50% 80% at 100% 50%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 60%),
    linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #6366f1 100%);
}

/* ---- MacBook mockup ---- */
.macbook {
  display: inline-block;
  perspective: 1200px;
}
.macbook-screen {
  background: #0f172a;
  border-radius: 14px;
  padding: 10px 10px 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 30px 60px -20px rgba(15, 23, 42, 0.45),
    0 18px 36px -18px rgba(79, 70, 229, 0.3);
  position: relative;
}
.macbook-screen::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: #020617;
  border-radius: 0 0 6px 6px;
}
.macbook-display {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.macbook-base {
  position: relative;
  height: 14px;
  margin: 0 auto;
  width: 108%;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 50%, #475569 100%);
  border-radius: 0 0 14px 14px;
}
.macbook-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 4px;
  background: #334155;
  border-radius: 0 0 8px 8px;
}

/* ---- iPhone mockup ---- */
.iphone {
  display: inline-block;
  background: #0f172a;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 2px #1e293b inset,
    0 30px 50px -20px rgba(15, 23, 42, 0.4),
    0 18px 36px -18px rgba(16, 185, 129, 0.25);
  position: relative;
}
.iphone-display {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
}
.iphone-display::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #0f172a;
  border-radius: 999px;
  z-index: 10;
}

/* ---- Status pills ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

/* ---- Kanban card hover (decorative) ---- */
.kanban-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ---- Scrollbar for in-mockup scrollable areas ---- */
.subtle-scroll::-webkit-scrollbar { width: 0; height: 0; }

/* ---- Accessibility: respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---- Feature card hover lift ---- */
.feature-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -20px rgba(79, 70, 229, 0.25);
  border-color: #c7d2fe;
}

/* ---- Underline animation for nav links ---- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #4f46e5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---- Marquee for logo strip ---- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  width: max-content;
}

/* ---- Focus rings ---- */
:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 4px;
}
