/* evolution.css
   Expression layer for /co-evolution/
   - Curves, gradients, symbolic motifs, micro-interactions, and section modifiers
*/

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1.25rem;
  color: #fff;
  overflow: visible;
  background: linear-gradient(135deg, rgba(77,143,172,0.98) 0%, rgba(44,62,80,0.92) 60%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.hero .headline {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.hero .subline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Curved divider */
.curve-divider {
  position: relative;
  height: 80px;
  margin-top: -2px;
  background: transparent;
}
.curve-divider::before {
  content: "";
  display: block;
  width: 120%;
  height: 100%;
  margin-left: -10%;
  background: radial-gradient(1200px 200px at 50% 0%, rgba(255,255,255,0.06), transparent 40%);
  transform: translateY(-30%);
  border-radius: 50%;
}

/* Manifesto */
.manifesto {
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-size: 1.125rem;
  color: var(--secondary);
  padding: 2rem;
  background: linear-gradient(180deg, rgba(77,143,172,0.03), rgba(44,62,80,0.01));
  border-radius: calc(var(--radius-md) * 1.1);
}
.manifesto .quote {
  display: block;
  margin-top: 1rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  color: rgba(44,62,80,0.85);
  font-size: 1.05rem;
}

/* Framings Grid and Cards */
.framings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.framing-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform var(--ease-medium) ease, box-shadow var(--ease-medium) ease, background var(--ease-medium) ease;
  position: relative;
  overflow: hidden;
}
.framing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }
.framing-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 10% 10%, rgba(77,143,172,0.06), transparent 20%);
  pointer-events: none;
}
.framing-card.versus {
  border: 2px dashed rgba(77,143,172,0.12);
  background: linear-gradient(180deg, rgba(77,143,172,0.02), #fff);
}

/* Highlighted Co-Evolution card */
.framing-card.co-evolution {
  background: linear-gradient(135deg, rgba(77,143,172,0.06), rgba(0,206,201,0.03));
  box-shadow: 0 22px 60px rgba(0,206,201,0.06);
  border: 1px solid rgba(0,206,201,0.12);
  transform: translateY(0);
}

/* Buttons and micro-interactions */
.evo-button {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #00cec9);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--ease-fast) ease, box-shadow var(--ease-fast) ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.evo-button:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }

.responsive-hover { transition: transform var(--ease-fast) ease, filter var(--ease-fast) ease; }
.responsive-hover:hover { transform: translateY(-4px); filter: saturate(1.03); }
.icon-pulse:hover { animation: pulse 1.2s ease-in-out 1; }

/* Interactive Timeline */
.timeline {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.timeline .node {
  background: var(--glass);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  min-width: 120px;
  text-align: center;
  color: var(--secondary);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--ease-fast) ease, background var(--ease-medium) ease;
}
.timeline .node:hover { transform: translateY(-6px); background: rgba(255,255,255,0.9); }
.timeline .arrow {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(44,62,80,0.12), rgba(77,143,172,0.18));
  border-radius: 2px;
}

/* Symbolic motifs */
.spiral-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(77,143,172,0.06), transparent 6%),
    radial-gradient(circle at 80% 70%, rgba(44,62,80,0.03), transparent 8%);
  mix-blend-mode: multiply;
  opacity: 0.9;
  z-index: 0;
}
.layered-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  border-radius: var(--radius-md);
}

/* Page-level overrides */
.risk-anim .monitor {
  border-radius: 8px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(77,143,172,0.03), rgba(44,62,80,0.01));
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.risk-anim .monitor .dot { width: 10px; height: 10px; background: #00cec9; border-radius: 50%; animation: pulse 2s infinite; }

.asym-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }

/* Responsive */
@media (max-width: 820px) {
  .hero { padding: 3.5rem 1rem; }
  .hero .headline { font-size: 1.6rem; }
  .asym-grid { grid-template-columns: 1fr; }
  .framings { grid-template-columns: 1fr; }
}
