/* Flatgrin — Soft Collaboration design system
   Airy lavender wash, pill UI, Plus Jakarta display, gentle float */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6rem;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: #fafbff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

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

/* Floating pill nav */
.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
  margin: 0.75rem auto 0;
  max-width: 72rem;
  left: 1rem;
  right: 1rem;
  width: auto;
}

header.nav-blur,
header .nav-blur {
  /* when header itself has nav-blur */
}

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem 0;
  background: transparent;
  border: none;
}

header.site-header .nav-inner {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 9999px;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.1);
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* High-contrast brand accent — solid color, no transparent text fill */
.gradient-text {
  color: #4338ca;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-bg {
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(199, 210, 254, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(237, 233, 254, 0.7), transparent 50%),
    linear-gradient(180deg, #eef2ff 0%, #fafbff 45%, #ffffff 100%);
}

/* Dot grid lives on a pseudo-layer only — never mask the section text */
.grid-bg {
  position: relative;
  isolation: isolate;
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(79, 70, 229, 0.1) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  /* Fade the pattern only, not children */
  mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, black 15%, transparent 72%);
  opacity: 0.85;
}

.grid-bg > * {
  position: relative;
  z-index: 1;
}

.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  border-radius: 1.25rem !important;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.card-hover:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px -16px rgba(79, 70, 229, 0.22);
  border-color: rgba(129, 140, 248, 0.45);
}

.pricing-popular {
  position: relative;
  border-color: transparent !important;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #4f46e5, #a78bfa) border-box !important;
  border: 2px solid transparent !important;
  box-shadow: 0 28px 56px -20px rgba(79, 70, 229, 0.35);
  border-radius: 1.5rem !important;
}

.pricing-popular::before {
  content: "Most Popular";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* Content stays fully readable — no opacity hide / scroll-reveal */
.fade-up {
  opacity: 1;
  transform: none;
}

.float-anim {
  animation: floatSoft 7s ease-in-out infinite;
}

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

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  max-height: 28rem;
  opacity: 1;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #e0e7ff, #ede9fe);
  color: #4f46e5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-mock {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(199, 210, 254, 0.8);
  box-shadow:
    0 40px 80px -24px rgba(79, 70, 229, 0.28),
    0 0 0 8px rgba(238, 242, 255, 0.9);
  overflow: hidden;
}

.mock-chart-bar {
  border-radius: 9999px 9999px 0 0;
  background: linear-gradient(180deg, #c4b5fd 0%, #4f46e5 100%);
  min-width: 1.25rem;
}

/* Soft primary buttons when class applied */
.btn-pill {
  border-radius: 9999px !important;
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

.code-block {
  background: #1e1b4b;
  color: #c4b5fd;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.letter-tile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #4f46e5;
  background: linear-gradient(145deg, #e0e7ff, #ede9fe);
}

.article-body p + p {
  margin-top: 1rem;
}

/* Section rhythm */
.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}


.dashboard-mock .traffic-lights {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #eef2ff;
  border-bottom: 1px solid #c7d2fe;
}
.dashboard-mock .traffic-lights span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}



