/* ===========================================================================
   OpenAgent Eval — Design System
   Inspired by LangChain docs: clean, minimal, professional
   =========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Brand */
  --oae-brand: #3949ab;
  --oae-brand-600: #3f51b5;
  --oae-brand-300: #7986cb;

  /* Signal accent */
  --oae-signal: #ffb300;
  --oae-signal-soft: rgba(255, 179, 0, 0.14);

  /* Motion */
  --oae-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --oae-rise: 0.7s var(--oae-ease) both;
}

/* ---------------------------------------------------------------------------
   Typography — clean hierarchy like LangChain
   --------------------------------------------------------------------------- */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: "Space Grotesk", var(--md-text-font, "Inter"), sans-serif;
  letter-spacing: -0.02em;
}

.md-typeset h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.md-typeset h2 {
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.md-typeset h3 {
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* Eyebrow label */
.oae-eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oae-signal);
  margin-bottom: 0.4rem;
}

/* ---------------------------------------------------------------------------
   Landing hero — two-column with clean atmosphere
   --------------------------------------------------------------------------- */
.oae-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
  position: relative;
}

/* Subtle gradient mesh — lighter, like LangChain */
.oae-hero::before {
  content: "";
  position: absolute;
  inset: -2rem -4rem 0 -4rem;
  z-index: -1;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(57, 73, 171, 0.06), transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(255, 179, 0, 0.06), transparent 40%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}

.oae-hero__copy { min-width: 0; }

.oae-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--oae-brand);
  background: var(--oae-signal-soft);
  border: 1px solid rgba(255, 179, 0, 0.35);
}

.oae-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oae-signal);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.25);
}

.oae-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.04;
  margin: 1rem 0 0.6rem;
}

.oae-lede {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--md-default-fg-color, #4a5070);
  opacity: 0.78;
  max-width: 34rem;
  margin: 0 0 1.4rem;
}

.oae-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

/* Install chip — clean terminal style */
.oae-install {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  background: var(--md-code-background-color, #f6f8fa);
  color: var(--md-code-color, #1a1f36);
  padding: 0.6rem 0.95rem;
  border-radius: 0.6rem;
  border: 1px solid var(--md-default-fg-color--lightest, #e1e4e8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.oae-install::before {
  content: "$";
  color: var(--oae-signal);
  font-weight: 700;
}

/* Hero art panel */
.oae-hero__art { position: relative; }

.oae-hero__art img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest, #e1e4e8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: var(--md-default-fg-color--lightest, #f6f8fa);
}

/* ---------------------------------------------------------------------------
   Staggered hero reveal
   --------------------------------------------------------------------------- */
.oae-hero__copy > *,
.oae-hero__art {
  opacity: 0;
  transform: translateY(14px);
  animation: oae-rise var(--oae-rise);
}

.oae-hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.oae-hero__copy > *:nth-child(2) { animation-delay: 0.13s; }
.oae-hero__copy > *:nth-child(3) { animation-delay: 0.21s; }
.oae-hero__copy > *:nth-child(4) { animation-delay: 0.29s; }
.oae-hero__copy > *:nth-child(5) { animation-delay: 0.37s; }
.oae-hero__art { animation-delay: 0.30s; }

@keyframes oae-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .oae-hero__copy > *,
  .oae-hero__art {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------------------------------------------------------------------------
   Section rhythm — generous whitespace like LangChain
   --------------------------------------------------------------------------- */
.oae-section {
  padding: 2.5rem 0 0.5rem;
}

.oae-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 0;
}

/* ---------------------------------------------------------------------------
   Feature cards — clean, subtle, LangChain-inspired
   --------------------------------------------------------------------------- */
.md-typeset .oae-features.grid.cards > ul {
  gap: 1rem;
}

.md-typeset .oae-features.grid.cards > ul > li {
  border: 1px solid var(--md-default-fg-color--lightest, #e1e4e8);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  background: var(--md-default-bg-color, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s var(--oae-ease), box-shadow 0.2s var(--oae-ease),
    border-color 0.2s var(--oae-ease);
}

.md-typeset .oae-features.grid.cards > ul > li:hover {
  transform: translateY(-2px);
  border-color: var(--oae-brand-300);
  box-shadow: 0 4px 12px rgba(57, 73, 171, 0.12);
}

/* Card heading */
.md-typeset .oae-features.grid.cards > ul > li > p:first-child {
  font-weight: 600;
  color: var(--md-default-fg-color, #1a1f36);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* Card body text */
.md-typeset .oae-features.grid.cards > ul > li > p:last-child {
  color: var(--md-default-fg-color, #4a5070);
  opacity: 0.78;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Provider / metric chips — clean, minimal
   --------------------------------------------------------------------------- */
.oae-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.oae-chips li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--md-code-background-color, #f6f8fa);
  border: 1px solid var(--md-default-fg-color--lightest, #e1e4e8);
  color: var(--md-code-color, #1a1f36);
}

/* ---------------------------------------------------------------------------
   Misc polish
   --------------------------------------------------------------------------- */
::selection {
  background: var(--oae-signal-soft);
  color: var(--md-default-fg-color, #1a1f36);
}

.md-typeset .oae-center { text-align: center; }

.md-typeset .oae-hero .md-button { margin: 0; }

/* Responsive: stack the hero on small screens */
@media (max-width: 60em) {
  .oae-hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .oae-hero__art { order: -1; }
}
