/* AI-slop SaaS timeline — intentionally generic */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --blue: #2563eb;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #06b6d4 100%);
  --fase-1: #8b5cf6;
  --fase-2: #3b82f6;
  --fase-3: #06b6d4;
  --fase-4: #ec4899;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page-timeline-slop {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Decorative blobs / grid */

.slop-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.slop-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: blob-float 14s ease-in-out infinite alternate;
}

.slop-blob--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: #2563eb;
}

.slop-blob--2 {
  width: 380px;
  height: 380px;
  top: 20%;
  right: -100px;
  background: #7c3aed;
  animation-delay: -4s;
}

.slop-blob--3 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 30%;
  background: #06b6d4;
  opacity: 0.3;
  animation-delay: -7s;
}

.slop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.slop-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.25) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.35;
}

@keyframes blob-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 40px) scale(1.08); }
}

/* Layout */

.slop-page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 5rem;
}

.slop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fade-up 0.7s var(--ease) both;
}

.slop-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.slop-nav-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.slop-nav-icon i,
.slop-nav-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.slop-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.slop-nav-chip i,
.slop-nav-chip svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--violet);
}

.slop-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, color 0.2s ease;
}

.slop-back:hover,
.slop-back:focus-visible {
  transform: translateY(-2px) scale(1.02);
  color: var(--text);
  box-shadow: var(--shadow);
  outline: none;
}

/* Hero */

.slop-hero {
  text-align: center;
  padding: 1.5rem 0 2.75rem;
  animation: fade-up 0.8s var(--ease) 0.08s both;
}

.slop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.slop-badge i,
.slop-badge svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--violet);
}

.slop-hero-title {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

.slop-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slop-hero-sub {
  margin: 1.15rem auto 0;
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
}

.slop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.slop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.25s ease;
}

.slop-btn i,
.slop-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.slop-btn:hover,
.slop-btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
  outline: none;
}

.slop-btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.3);
}

.slop-btn-primary:hover,
.slop-btn-primary:focus-visible {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.35);
}

.slop-btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.slop-btn-secondary:hover,
.slop-btn-secondary:focus-visible {
  box-shadow: var(--shadow);
}

.slop-feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.slop-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
  animation: fade-up 0.7s var(--ease) both;
}

.slop-feature:nth-child(1) { animation-delay: 0.15s; }
.slop-feature:nth-child(2) { animation-delay: 0.22s; }
.slop-feature:nth-child(3) { animation-delay: 0.29s; }
.slop-feature:nth-child(4) { animation-delay: 0.36s; }

.slop-feature:hover {
  transform: scale(1.05);
}

.slop-feature-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
  color: var(--blue);
}

.slop-feature-icon i,
.slop-feature-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Main card */

.slop-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  backdrop-filter: blur(14px);
  animation: fade-up 0.85s var(--ease) 0.18s both;
  overflow: hidden;
}

.slop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.slop-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.slop-card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slop-card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.slop-card-desc {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42ch;
  line-height: 1.5;
}

/* Filters */

.slop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.filter-pill i,
.filter-pill svg {
  width: 0.9rem;
  height: 0.9rem;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  transform: scale(1.04);
  outline: none;
}

.filter-pill[data-fase="1"] { background: #f3e8ff; border-color: #e9d5ff; color: #7c3aed; }
.filter-pill[data-fase="2"] { background: #dbeafe; border-color: #bfdbfe; color: #2563eb; }
.filter-pill[data-fase="3"] { background: #cffafe; border-color: #a5f3fc; color: #0891b2; }
.filter-pill[data-fase="4"] { background: #fce7f3; border-color: #fbcfe8; color: #db2777; }
.filter-pill[data-fase="all"] { background: #fff; color: var(--muted); }

.filter-pill.is-active {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  border-color: transparent;
  color: #fff !important;
}

.filter-pill[data-fase="all"].is-active {
  background: var(--gradient);
}

.filter-pill[data-fase="1"].is-active { background: var(--fase-1); }
.filter-pill[data-fase="2"].is-active { background: var(--fase-2); }
.filter-pill[data-fase="3"].is-active { background: var(--fase-3); }
.filter-pill[data-fase="4"].is-active { background: var(--fase-4); }

/* Timeline track */

.slop-track-label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.slop-track-wrap {
  overflow-x: auto;
  padding: 2.75rem 0.5rem 3.25rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.slop-track {
  position: relative;
  min-width: 900px;
  height: 6px;
  margin: 0 1.25rem;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
}

.slop-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--node-color);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--node-color) 28%, transparent),
    0 6px 16px color-mix(in srgb, var(--node-color) 40%, transparent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  z-index: 2;
}

.slop-node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--node-color);
  opacity: 0;
  transform: scale(0.7);
}

.slop-node:hover,
.slop-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.28);
  outline: none;
  z-index: 5;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--node-color) 35%, transparent),
    0 10px 24px color-mix(in srgb, var(--node-color) 45%, transparent);
}

.slop-node.is-selected {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 6;
}

.slop-node.is-selected::after {
  animation: ring-pulse 1.4s ease-out infinite;
}

.slop-node.is-dimmed {
  opacity: 0.22;
  filter: grayscale(0.5);
  pointer-events: none;
}

@keyframes ring-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.slop-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(6px);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  z-index: 10;
}

.slop-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}

.slop-node:hover .slop-tooltip,
.slop-node:focus-visible .slop-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.slop-node-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 1.1rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 5.8rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  pointer-events: none;
}

.slop-node:nth-child(odd) .slop-node-label {
  top: auto;
  bottom: calc(100% + 1.1rem);
}

.slop-node-year {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.62rem;
}

/* Event grid */

.slop-grid-section {
  margin-top: 2rem;
}

.slop-grid-title {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.slop-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
}

.slop-event-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.25s ease, opacity 0.3s ease;
  animation: fade-up 0.6s var(--ease) both;
}

.slop-event-card:hover,
.slop-event-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--node-color) 40%, var(--border));
  outline: none;
}

.slop-event-card.is-selected {
  border-color: var(--node-color);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--node-color) 18%, transparent);
}

.slop-event-card.is-dimmed {
  opacity: 0.3;
  pointer-events: none;
}

.slop-event-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--node-color) 14%, #fff);
  color: var(--node-color);
}

.slop-event-icon i,
.slop-event-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.slop-event-fase {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--node-color);
}

.slop-event-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.slop-event-year {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Panel */

.slop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 40;
  backdrop-filter: blur(2px);
}

.slop-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.slop-panel {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  width: min(420px, calc(100vw - 1.7rem));
  padding: 1.75rem 1.5rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateX(110%);
  transition: transform 0.45s var(--ease);
  z-index: 50;
  overflow-y: auto;
}

.slop-panel.is-open {
  transform: translateX(0);
}

.slop-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
}

.slop-panel-close:hover,
.slop-panel-close:focus-visible {
  transform: scale(1.08);
  background: #f8fafc;
  color: var(--text);
  outline: none;
}

.slop-panel-close i,
.slop-panel-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.slop-panel-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--node-color) 16%, #fff);
  color: var(--node-color);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--node-color) 22%, transparent);
}

.slop-panel-icon i,
.slop-panel-icon svg {
  width: 1.85rem;
  height: 1.85rem;
}

.slop-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--node-color);
  background: color-mix(in srgb, var(--node-color) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--node-color) 25%, #fff);
  margin-bottom: 0.75rem;
}

.slop-panel-year {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.slop-panel-title {
  margin: 0.35rem 0 0;
  padding-right: 2rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.slop-panel-body {
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
}

.slop-why {
  margin-top: 1.35rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.08));
  border: 1px solid var(--border);
}

.slop-why h3 {
  margin: 0 0 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slop-why p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.slop-source {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.slop-source-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.slop-source-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
}

.slop-source a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.slop-source a:hover,
.slop-source a:focus-visible {
  color: var(--violet);
  outline: none;
}

.slop-source a i,
.slop-source a svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Footer CTA strip — more AI fluff */

.slop-cta {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
  animation: fade-up 0.8s var(--ease) 0.28s both;
}

.slop-cta h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.slop-cta p {
  margin: 0.3rem 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.slop-cta .slop-btn-secondary {
  background: #fff;
  color: var(--violet);
  border: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .slop-filters {
    justify-content: flex-start;
  }

  .slop-card-header {
    flex-direction: column;
  }

  .slop-hero-title {
    max-width: none;
  }

  .slop-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(110%);
  }

  .slop-panel.is-open {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
