/* Homepage (layouts/home.html). Everything is scoped under .oh. */

/* Colors and fonts come from theme.css. */

/* The homepage has no article: hide the empty content column, sidebars and the pager. */
.md-content,
.md-footer__inner { display: none; }
.md-main__inner { max-width: none; margin: 0; padding: 0; }
/* Keep the primary sidebar on small screens: it is the navigation drawer. */
@media screen and (min-width: 76.25em) {
  .md-sidebar { display: none; }
}
@media screen and (min-width: 60em) {
  .md-sidebar--secondary { display: none; }
}

.oh {
  font-family: var(--oh-sans);
  color: var(--oh-ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.oh a { color: inherit; text-decoration: none; }
.oh ul { list-style: none; margin: 0; padding: 0; }
.oh h1, .oh h2, .oh h3, .oh p { margin: 0; }

.oh-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.oh-kicker {
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oh-brand);
  margin-bottom: 8px;
}
.oh-kicker::before { content: "// "; opacity: .55; }
.oh-kicker--light { color: var(--oh-signal); }

.oh-h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 32px !important;
}
.oh-h2--small { font-size: 20px; margin-bottom: 20px !important; }

.oh-lead { color: var(--oh-ink-2); max-width: 52ch; margin-bottom: 24px !important; }

.oh-more {
  display: inline-flex;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--oh-brand) !important;
}
.oh-more span { transition: transform .2s; }
.oh-more:hover span { transform: translateX(3px); }

/* ---------------------------------------------------------------- Hero */

.oh-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(95, 208, 232, .18), transparent 60%),
    radial-gradient(700px 420px at -10% 120%, rgba(0, 65, 93, .9), transparent 70%),
    linear-gradient(180deg, var(--oh-night-2), var(--oh-night));
}

.oh-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}

.oh-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.oh-hero__title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px !important;
}
.oh-hero__title span { display: block; }
.oh-hero__title-em { color: #a7e6f4; }

.oh-hero__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: #b4cad4;
  max-width: 54ch;
  margin-bottom: 32px !important;
}

.oh-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  height: 52px;
  padding: 0 12px 0 16px;
  box-sizing: border-box;
  border-radius: var(--oh-radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #c9dbe3;
  cursor: text;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.oh-search:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(167, 230, 244, .5);
  box-shadow: 0 0 0 4px rgba(95, 208, 232, .12);
}
.oh-search svg { width: 20px; height: 20px; fill: currentColor; flex: none; opacity: .8; }
.oh-search__text { flex: 1; font-size: 15px; }
.oh-search kbd {
  font-family: var(--oh-mono);
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #c9dbe3;
  background: rgba(0, 0, 0, .2);
}

.oh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.oh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--oh-radius);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
}
.oh-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.oh-btn:hover svg { transform: translateX(3px); }
.oh-btn--solid {
  background: #fff;
  color: var(--oh-brand) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px -8px rgba(95, 208, 232, .45);
}
.oh-btn--solid:hover { transform: translateY(-1px); }
.oh-btn--ghost {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .28);
}
.oh-btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }

/* Terminal */
.oh-term {
  margin: 0;
  border-radius: 8px;
  background: rgba(1, 16, 23, .82);
  border: 1px solid rgba(167, 230, 244, .16);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.oh-term__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.oh-term__dots { display: flex; gap: 6px; }
.oh-term__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.oh-term__dots i:first-child { background: #d9534f; }
.oh-term__name {
  font-family: var(--oh-mono);
  font-size: 12px;
  color: #7f9aa6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oh-term__body {
  margin: 0;
  padding: 20px;
  font-family: var(--oh-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #d9e6ec;
  background: none;
  overflow-x: auto;
}
.oh-term__body code { font: inherit; color: inherit; background: none; padding: 0; }
.oh-p { color: var(--oh-signal); }
.oh-ok { color: var(--oh-ok); }
.oh-dim { color: #7f9aa6; }
.oh-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--oh-signal);
  animation: oh-blink 1.1s steps(1) infinite;
}

/* ---------------------------------------------------------------- Sections */

.oh-section { padding: 72px 0; background: var(--oh-surface); }
.oh-section--tint { background: var(--oh-tint); border-top: 1px solid var(--oh-line); border-bottom: 1px solid var(--oh-line); }
.oh-section--help { padding: 48px 0 72px; }

/* What do you want to test */
.oh-assets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.oh-asset {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--oh-line);
  border-radius: var(--oh-radius);
  background: var(--oh-surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.oh-asset::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 16px;
  color: var(--oh-ink-3);
  transition: transform .2s, color .2s;
}
.oh-asset:hover {
  border-color: #b9ccd6;
  box-shadow: 0 12px 28px -18px rgba(0, 65, 93, .45);
  transform: translateY(-2px);
}
.oh-asset:hover::after { transform: translateX(3px); color: var(--oh-brand); }
.oh-asset svg {
  width: 22px;
  height: 22px;
  fill: var(--oh-brand);
  margin-bottom: 20px;
}
.oh-asset__title { font-size: 15.5px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.oh-asset__desc { font-size: 13.5px; line-height: 1.5; color: var(--oh-ink-2); }

/* Browse by topic */
.oh-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.oh-topic { padding-top: 16px; border-top: 2px solid var(--oh-ink); }
.oh-topic__title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 12px !important; }
.oh-topic__title a:hover { color: var(--oh-brand); }
.oh-topic__links li + li { margin-top: 6px; }
.oh-topic__links a {
  font-size: 14px;
  color: var(--oh-ink-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .15s, background-size .25s;
}
.oh-topic__links a:hover { color: var(--oh-brand); background-size: 100% 1px; }

/* Integrations + video */
.oh-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.oh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-chips a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--oh-line);
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--oh-ink);
  background: var(--oh-surface);
  transition: border-color .2s, color .2s;
}
.oh-chips a:hover { border-color: var(--oh-brand); color: var(--oh-brand); }

.oh-video iframe,
.oh-video__poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: var(--oh-night);
}
.oh-video__poster {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 48px -24px rgba(0, 65, 93, .55);
}
.oh-video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s, opacity .3s;
}
.oh-video__poster:hover img { transform: scale(1.03); opacity: .9; }
.oh-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.oh-video__poster:hover .oh-video__play { transform: scale(1.06); }
.oh-video__play svg { width: 26px; height: 26px; fill: var(--oh-brand); margin-left: 3px; }
.oh-video__caption { margin-top: 12px !important; font-size: 13.5px; color: var(--oh-ink-2); }

/* Developers: GraphQL API + MCP, on the hero background */
.oh-dev {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(800px 420px at 10% 0%, rgba(95, 208, 232, .14), transparent 60%),
    linear-gradient(180deg, var(--oh-night-2), var(--oh-night));
}
.oh-dev .oh-wrap { position: relative; }
.oh-h2--light { color: #fff; }
.oh-lead--light { color: #b4cad4; margin-top: -16px; margin-bottom: 32px !important; }
.oh-devcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.oh-devcard {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(167, 230, 244, .16);
  transition: border-color .2s, background .2s;
}
.oh-devcard:hover { border-color: rgba(167, 230, 244, .32); background: rgba(255, 255, 255, .06); }
.oh-devcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.oh-devcard__head svg { width: 22px; height: 22px; fill: var(--oh-signal); flex: none; }
.oh-devcard__head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.oh-devcard__desc { color: #b4cad4; font-size: 14px; margin-bottom: 16px !important; }
.oh-devcard__code {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--oh-radius);
  background: rgba(1, 16, 23, .8);
  border: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--oh-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #d9e6ec;
  overflow-x: auto;
}
.oh-devcard__code code { font: inherit; color: inherit; background: none; padding: 0; box-shadow: none; }
.oh-devcard__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px !important; }
.oh-devcard__links a {
  font-size: 13.5px;
  font-weight: 500;
  color: #a7e6f4 !important;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s;
}
.oh-devcard__links a:hover { background-size: 100% 1px; }
.oh-devcard__cta { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) { .oh-devcards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .oh-dev { padding: 48px 0; }
  .oh-devcard { padding: 18px; }
  .oh-devcard__code { font-size: 11px; }
}

/* Help */
.oh-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.oh-help a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--oh-radius);
  background: var(--oh-tint);
  transition: background .2s;
}
.oh-help a:hover { background: #eaf1f5; }
.oh-help strong { font-size: 14.5px; font-weight: 700; }
.oh-help span { font-size: 13.5px; color: var(--oh-ink-2); }

/* Focus */
.oh a:focus-visible,
.oh button:focus-visible,
.oh-search:focus-visible {
  outline: 2px solid var(--oh-signal);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Motion */

@keyframes oh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes oh-line { from { opacity: 0; } to { opacity: 1; } }
@keyframes oh-blink { 50% { opacity: 0; } }

.oh-rise { animation: oh-rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
.oh-l { animation: oh-line .3s ease-out both; animation-delay: calc(500ms + var(--l) * 450ms); }

@media (prefers-reduced-motion: reduce) {
  .oh-rise, .oh-l, .oh-caret { animation: none; }
  .oh-asset, .oh-btn, .oh-video__poster img { transition: none; }
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1100px) {
  .oh-assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .oh-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .oh-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .oh-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oh-help { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .oh-wrap { padding-left: 16px; padding-right: 16px; }
  .oh-hero__inner { padding-top: 40px; padding-bottom: 48px; }
  .oh-section { padding: 48px 0; }
  .oh-h2 { font-size: 24px; margin-bottom: 24px !important; }
  .oh-hero__lead { font-size: 15.5px; }
  .oh-assets { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .oh-asset { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 16px; }
  .oh-asset svg { margin-bottom: 0; }
  .oh-asset__desc { flex-basis: 100%; padding-left: 34px; }
  .oh-topics { gap: 32px 20px; }
  .oh-topic__links a { font-size: 13.5px; }
  .oh-term__body { font-size: 11px; padding: 16px; line-height: 1.7; }
  .oh-btn { flex: 1 1 auto; justify-content: center; }
}
