/* ============================================================
   Site refactor — shared layout + buttons + section rhythm.
   Component-specific styles live in each .jsx (named uniquely).
   Tokens come from colors_and_type.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.container {
  max-width: var(--zx-container-max);
  margin: 0 auto;
  padding: 0 var(--zx-container-pad);
}

.section { padding: var(--zx-space-16) 0; }
.section-soft { background: var(--zx-bg-soft); }
.section-dark { background: var(--zx-primary); color: #fff; }
.section-dark p, .section-dark li { color: rgba(255,255,255,0.92); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--zx-space-12);
}
.section-header p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  font-size: var(--zx-text-sm);
  font-weight: 600;
  color: var(--zx-primary);
  text-transform: uppercase;
  letter-spacing: var(--zx-tracking-eyebrow);
  margin-bottom: var(--zx-space-3);
}
.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--zx-primary);
  padding: 6px 14px;
  border-radius: var(--zx-radius-full);
  font-size: var(--zx-text-sm);
  font-weight: 600;
  margin-bottom: var(--zx-space-5);
}

/* Buttons — pill, lift on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--zx-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--zx-radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--zx-transition), background var(--zx-transition), box-shadow var(--zx-transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--zx-primary);
  color: #fff;
  box-shadow: var(--zx-shadow-primary);
}
.btn-primary:hover { background: var(--zx-primary-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--zx-fg-1);
  border: 1.5px solid var(--zx-border-strong);
}
.btn-secondary:hover { background: var(--zx-bg-card); }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Card baseline — used by feature/module grids */
.card {
  background: #fff;
  border: 1px solid var(--zx-border);
  border-radius: var(--zx-radius-md);
  padding: 28px;
  box-shadow: var(--zx-shadow-xs);
  transition: transform var(--zx-transition-slow),
              box-shadow var(--zx-transition-slow),
              border-color var(--zx-transition-slow);
}
.card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: var(--zx-shadow-xl);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Two-column split (text + visual) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zx-space-16);
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-list { list-style: none; padding: 0; margin: var(--zx-space-6) 0 0; }
.split-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--zx-fg-2);
}
.split-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px;
  background: var(--zx-primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.section-dark .split-list li::before { background: #fff; color: var(--zx-primary); }

/* Grid helpers */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--zx-space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--zx-space-6); }

@media (max-width: 960px) {
  .section { padding: var(--zx-space-16) 0; }
  .split, .grid-3 { grid-template-columns: 1fr; gap: var(--zx-space-10); }
  .split-reverse .split-text { order: 0; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Animations used across components */
@keyframes zxFloat {
  0%, 100% { transform: translateY(0) rotateX(8deg) rotateY(-10deg); }
  50%      { transform: translateY(-10px) rotateX(8deg) rotateY(-10deg); }
}
@keyframes zxFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes zxPulseDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
