/* =============================================
   INDEX PAGE - Modern Redesign
   ============================================= */

/* --- Hero Section --- */
.home-hero {
  position: relative;
  padding: 40px 0 80px;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 109, 100, 0.08), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.home-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-copy h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.home-copy .lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 90%;
  line-height: 1.6;
}

.stats-inline {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(24, 22, 27, 0.08);
}

.stats-inline div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-inline strong {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
}

.stats-inline span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =============================================
   KEEP: Dashboard Preview Card (home-stage)
   ============================================= */
.home-stage {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1200px;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 10% 10% 18%;
  border-radius: 42px;
  background:
    radial-gradient(circle at top, rgba(15, 109, 100, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 249, 242, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.home-stage::after {
  content: "";
  position: absolute;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 125, 72, 0.16), transparent 62%);
  filter: blur(10px);
  z-index: -1;
}

.dashboard-card {
  width: min(100%, 552px);
  transform: rotate(-5deg) translateY(-8px);
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.dashboard-card:hover {
  transform: rotate(-2deg) translateY(-16px) scale(1.02);
}

.dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-topline span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 109, 100, 0.12);
  color: var(--accent);
  font-weight: 700;
  position: relative;
}

.dashboard-topline span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease infinite;
}

.dashboard-topline span {
  padding-left: 22px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.dashboard-metrics article,
.task-stack div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(24, 22, 27, 0.06);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.dashboard-metrics article:hover,
.task-stack div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.dashboard-metrics article:first-child {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(15, 109, 100, 0.08), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.56);
}

.dashboard-metrics span,
.task-stack span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: 2.1rem;
}

.dashboard-metrics em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
  font-size: 0.9rem;
}

.trend-panel {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 109, 100, 0.16), rgba(223, 125, 72, 0.16));
}

.trend-visual {
  position: relative;
  height: 110px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: auto, 40px 100%, 100% 26px;
}

.trend-visual::after {
  content: "";
  position: absolute;
  inset: 22px 10px 26px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.46) 15%, rgba(15, 109, 100, 0.26) 30%, rgba(223, 125, 72, 0.26) 56%, rgba(255, 255, 255, 0.52) 82%, transparent 100%);
  filter: blur(16px);
  animation: wave-flow 4s ease-in-out infinite alternate;
}

@keyframes wave-flow {
  from { transform: translateX(-10px); }
  to { transform: translateX(10px); }
}

.trend-copy {
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.trend-copy span {
  display: block;
  color: rgba(24, 22, 27, 0.72);
  font-size: 0.88rem;
}

.trend-copy strong {
  font-size: 2.4rem;
}

.task-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.task-stack div:nth-child(2) {
  transform: translateX(18px);
}

.task-stack strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.floating-panel {
  position: absolute;
  max-width: 248px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-panel:hover {
  transform: scale(1.05);
}

.floating-panel h2 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.panel-left {
  top: 11%;
  left: -4%;
}

.panel-right {
  right: -2%;
  bottom: 10%;
}
/* =============================================
   END KEEP
   ============================================= */

/* --- Value Strip --- */
.summary-strip {
  padding: 40px 0;
}

.summary-strip .strip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.summary-strip .strip-grid p {
  padding: 16px 32px;
  background: var(--surface-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.summary-strip .strip-grid p:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 109, 100, 0.1);
  background: #fff;
}

.summary-strip .strip-grid p:first-child {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Pain Points --- */
.home-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.home-problem-grid > article {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 300ms ease, box-shadow 300ms ease;
  position: relative;
  overflow: hidden;
}

.home-problem-grid > article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.home-problem-grid > article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.home-problem-grid > article:hover::before {
  opacity: 1;
}

.home-problem-grid h3 {
  font-size: 1.5rem;
  margin: 16px 0 12px;
  color: var(--ink);
}

.home-problem-grid .card-copy {
  font-size: 1.05rem;
  color: var(--muted);
}

/* --- Capability Map --- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.capability-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 300ms ease;
}

.capability-card:hover {
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 109, 100, 0.08);
  transform: translateY(-4px);
}

.capability-card-wide {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 242, 0.8));
}

.capability-card h3 {
  font-size: 1.6rem;
  margin: 16px 0 12px;
}

/* --- Timeline --- */
.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(223, 125, 72, 0.5));
}

.timeline-grid > article {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 24px 80px;
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 300ms ease;
}

.timeline-grid > article:hover {
  transform: translateX(8px);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.timeline-grid > article::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 109, 100, 0.1);
}

.timeline-grid h3 {
  font-size: 1.4rem;
  margin: 8px 0;
}

/* --- Outcome --- */
.home-outcome {
  margin-top: 80px;
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, rgba(15, 109, 100, 0.03), transparent);
}

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.outcome-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.outcome-cards > article {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(24, 22, 27, 0.04);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.outcome-cards > article:hover {
  transform: translateX(-8px);
  box-shadow: 12px 12px 32px rgba(15, 109, 100, 0.08);
  border-color: rgba(15, 109, 100, 0.2);
}

/* --- Responsive --- */
@media (max-width: 1180px) {
  .home-hero-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .home-problem-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card-wide {
    grid-column: span 1;
  }

  .home-stage {
    min-height: auto;
    padding-bottom: 32px;
    perspective: none;
  }

  .dashboard-card {
    transform: none;
  }

  .dashboard-card:hover {
    transform: none;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .task-stack div:nth-child(2),
  .floating-panel {
    transform: none;
  }

  .floating-panel {
    position: static;
    max-width: none;
    margin-top: 14px;
  }
}
