/* Olympus Coder — Modern animated Bento sections, marquee, VPS flow & footer */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

section.block {
  position: relative;
  padding: 76px 0;
  border-top: 1px solid var(--border);
}
.sec-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.sec-head { max-width: 700px; margin-bottom: 36px; }
.sec-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  letter-spacing: -0.032em;
  line-height: 1.14;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* Asymmetric Bento Grid with cursor spotlight */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  position: relative;
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }
.bento-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.bento-card p { margin: 0; font-size: 14.2px; color: var(--muted); }
.bento-card p code {
  font-size: 12.5px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text);
}

/* Bento Visual 1: Animated Agent Handoff + Shared Brain */
.handoff-stage {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.handoff-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.node-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
}
.node-chip small { font-weight: 450; color: var(--muted); font-size: 11px; }
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseRing 2.2s infinite;
}
.pulse-dot.green { background: var(--green); }
.flow-line {
  flex: 1;
  min-width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  background-size: 200% 100%;
  animation: shimmerFlow 2.6s linear infinite;
}
.brain-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 11.5px;
}
.brain-files { display: flex; flex-wrap: wrap; gap: 6px; }
.brain-files span {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Bento Visual 2: Parallel Sub-Agents Stack */
.task-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.task-row {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
}
.task-status {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.task-status.done { background: var(--green-soft); color: var(--green); }
.task-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.task-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #fb923c, var(--accent));
  background-size: 200% 100%;
  animation: shimmerFlow 2s linear infinite;
}
.task-fill.done { width: 100%; background: var(--green); animation: none; }

/* Bento Visual 3: Mini Screenshot Peek */
.bento-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0d10;
}
.bento-media img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .bento-media img { transform: scale(1.035); }

/* Bento Visual 4: Checkpoints & Trust Chips */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 550;
}
.trust-chip i { font-style: normal; color: var(--green); }

/* Agents Section: Marquee + Interactive Filter Grid */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -20px 28px;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marqueeLeft 34s linear infinite;
}
.marquee-track.reverse {
  margin-top: 10px;
  animation: marqueeRight 38s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.m-pill span { color: var(--muted); font-weight: 450; font-size: 12px; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 11px;
}
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 15px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.agent-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.agent-card.hidden { display: none; }
.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.agent-id {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.logo-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-ico { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; }
:root[data-theme="dark"] .agent-ico.mono { filter: invert(1); }
.agent-top strong { font-size: 14px; }
.agent-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
}
.agent-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.fine-print { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* VPS & Phone Spotlight */
.vps-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 32px;
  align-items: center;
}
.term-card {
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #a1a1aa;
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.term-body {
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.t-dim { color: #71717a; }
.t-acc { color: #fb923c; }
.t-ok { color: #4ade80; }

.e2ee-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 11px;
  color: #d4d4d8;
}
.e2ee-pill {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

/* Phone hardware bezel */
.phone-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-bezel {
  position: relative;
  max-width: 300px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(155deg, #27272a, #111114);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-bezel:hover { transform: translateY(-6px) rotate(-0.8deg); }
.phone-bezel img { border-radius: 24px; width: 100%; }
.phone-float {
  position: absolute;
  bottom: 18px;
  right: -14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone-switch { display: flex; gap: 6px; }

/* Final CTA Banner */
.cta-banner {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 46px 28px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -60% auto auto 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 300px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.cta-banner p { margin: 0 auto 24px; max-width: 560px; color: var(--muted); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a:hover { color: var(--text); }

@keyframes shimmerFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 108, 53, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(239, 108, 53, 0); }
}
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 900px) {
  .bento-card, .bento-card.span-7, .bento-card.span-5, .bento-card.span-6 { grid-column: span 12; }
  .vps-split { grid-template-columns: 1fr; }
  .phone-float { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .flow-line, .task-fill, .pulse-dot { animation: none; }
}
