/*
 * D-POAF Deep Tech direction — typography, adaptive hero, aligned grid and
 * governed local-agent presentation. Loaded after the Robok adapter.
 */

body.dpoaf-robok-theme {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.dpoaf-robok-theme :is(
  h1, h2, h3, h4,
  .lp-brand__name,
  .lp-product-title strong,
  .lp-window-brand,
  .lp-form-head h3,
  .mp-hero__copy h1,
  .mp-footer__grid nav strong
) {
  font-family: "Manrope", "Inter", system-ui, sans-serif !important;
}

.dpoaf-robok-theme :is(
  .lp-eyebrow,
  .lp-card-kicker,
  .lp-product-title small,
  .lp-stage-head small,
  .agent-terminal__prompt,
  .agent-signal,
  .agent-feature__index
) {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* One shared horizontal system for header and every content section. */
.dpoaf-robok-theme .lp-container,
.dpoaf-robok-theme .lp-header .lp-nav {
  width: min(1380px, calc(100% - 72px));
  margin-inline: auto;
}

.dpoaf-robok-theme .lp-header {
  inset: 0 0 auto;
  top: 0;
  height: 86px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: linear-gradient(180deg, rgba(6, 7, 11, .94), rgba(6, 7, 11, .76));
  backdrop-filter: blur(24px) saturate(145%);
}

.dpoaf-robok-theme .lp-header .lp-nav {
  height: 86px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dpoaf-robok-theme .lp-header.scrolled {
  top: 0;
  height: 74px;
  padding: 0;
  border-bottom-color: rgba(116, 118, 255, .18);
  background: rgba(6, 7, 11, .94);
}

.dpoaf-robok-theme .lp-header.scrolled .lp-nav {
  height: 74px;
  border: 0;
  background: transparent;
}

.dpoaf-robok-theme .lp-brand img {
  width: 48px;
}

.dpoaf-robok-theme .lp-nav__links {
  margin-left: auto;
  border: 0;
  background: transparent;
}

.dpoaf-robok-theme .lp-nav__actions {
  margin-left: 12px;
}

/* Adaptive viewport hero: fills the useful screen, but never clips content. */
.dpoaf-robok-theme .lp-hero {
  min-height: max(760px, 100svh);
  padding: clamp(118px, 14svh, 164px) 0 clamp(64px, 8svh, 104px);
  display: flex;
  align-items: center;
}

.dpoaf-robok-theme .lp-hero__layout {
  min-height: calc(100svh - clamp(182px, 22svh, 268px));
  align-items: center;
}

.dpoaf-robok-theme .lp-hero__copy {
  max-width: 660px;
}

.dpoaf-robok-theme .lp-hero h1 {
  max-width: 720px;
  font-size: clamp(3.55rem, min(5.35vw, 8.25svh), 5.65rem);
  font-weight: 680;
  line-height: .96;
  letter-spacing: -.061em;
}

.dpoaf-robok-theme .lp-hero__lead {
  font-size: clamp(.95rem, 1.2vw, 1.06rem);
  line-height: 1.68;
}

.dpoaf-robok-theme .lp-product-window {
  transform: none;
}

.dpoaf-robok-theme .lp-hero__product {
  transform-origin: center;
}

/* Six platform surfaces: a balanced 3 × 2 control grid. */
.dpoaf-robok-theme .lp-platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.dpoaf-robok-theme .lp-platform-card,
.dpoaf-robok-theme .lp-platform-card--wide {
  grid-column: auto;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.dpoaf-robok-theme .lp-platform-card p {
  margin-bottom: 24px;
}

.dpoaf-robok-theme .lp-card-metrics,
.dpoaf-robok-theme .lp-proof-strip {
  margin-top: auto;
}

.dpoaf-robok-theme .lp-platform-card > .lp-card-link {
  position: static;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #aab3ff;
  font-size: .75rem;
  text-decoration: none;
}

.dpoaf-robok-theme .lp-platform-card > .lp-card-link::after {
  content: "↗";
  transition: transform .2s ease;
}

.dpoaf-robok-theme .lp-platform-card:hover > .lp-card-link::after {
  transform: translate(3px, -3px);
}

.dpoaf-robok-theme .lp-card-id {
  position: absolute;
  top: 30px;
  right: 30px;
  color: rgba(255, 255, 255, .25);
  font: 500 .58rem "JetBrains Mono", monospace;
  letter-spacing: .15em;
}

/* Governed local execution fabric. */
.agent-fabric {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 40%, rgba(68, 182, 233, .09), transparent 28%),
    radial-gradient(circle at 84% 42%, rgba(116, 118, 255, .12), transparent 32%),
    #06070b;
}

.agent-fabric::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.agent-fabric__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 48px;
}

.agent-fabric__head .lp-section-head {
  margin: 0;
}

.agent-fabric__statement {
  padding: 24px 26px;
  border-left: 2px solid var(--robok-cyan);
  background: linear-gradient(90deg, rgba(68, 182, 233, .075), transparent);
}

.agent-fabric__statement strong {
  display: block;
  font: 650 1.08rem "Manrope", sans-serif;
}

.agent-fabric__statement p {
  margin-top: 8px;
  color: var(--m);
  font-size: .85rem;
}

.agent-fabric__workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 18px;
}

.agent-terminal {
  position: relative;
  min-height: 485px;
  overflow: hidden;
  border: 1px solid rgba(116, 118, 255, .32);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(116, 118, 255, .07), transparent 42%),
    rgba(7, 9, 15, .96);
  box-shadow: 0 38px 100px rgba(0, 0, 0, .55);
}

.agent-terminal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--robok-cyan), var(--robok-violet), transparent);
}

.agent-terminal__bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--d);
  font-size: .68rem;
}

.agent-terminal__dots {
  display: flex;
  gap: 7px;
}

.agent-terminal__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.agent-terminal__dots i:nth-child(1) { background: #ff5b69; }
.agent-terminal__dots i:nth-child(2) { background: #f3ad3f; }
.agent-terminal__dots i:nth-child(3) { background: #45d0bd; }

.agent-terminal__body {
  padding: 30px;
}

.agent-terminal__prompt {
  color: #8f9cff;
  font-size: .72rem;
}

.agent-terminal__command {
  margin: 9px 0 27px;
  color: #f4f6ff;
  font: 560 clamp(1rem, 1.4vw, 1.2rem)/1.55 "JetBrains Mono", monospace;
}

.agent-contract {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.agent-contract div {
  min-height: 82px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.agent-contract small,
.agent-contract strong {
  display: block;
}

.agent-contract small {
  color: var(--d);
  font: 500 .55rem "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.agent-contract strong {
  margin-top: 8px;
  font-size: .78rem;
}

.agent-terminal__flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  color: var(--m);
  font-size: .66rem;
}

.agent-terminal__flow i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--robok-cyan), var(--robok-violet));
}

.agent-feature-grid {
  display: grid;
  gap: 12px;
}

.agent-feature {
  position: relative;
  min-height: 146px;
  padding: 25px 25px 23px 68px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.agent-feature__index {
  position: absolute;
  top: 27px;
  left: 24px;
  color: #7f8bff;
  font-size: .63rem;
}

.agent-feature h3 {
  font-size: 1rem;
  letter-spacing: -.025em;
}

.agent-feature p {
  margin-top: 7px;
  color: var(--m);
  font-size: .78rem;
  line-height: 1.56;
}

.agent-signal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}

.agent-signal span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #9ca5ba;
  font-size: .57rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.agent-signal span:last-child { border: 0; }
.agent-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--robok-mint);
  box-shadow: 0 0 12px rgba(69, 208, 189, .7);
}

@media (min-width: 1181px) and (max-height: 850px) {
  .dpoaf-robok-theme .lp-hero {
    min-height: 760px;
    padding: 105px 0 45px;
  }

  .dpoaf-robok-theme .lp-hero__layout {
    min-height: 610px;
  }

  .dpoaf-robok-theme .lp-hero h1 {
    margin-block: 16px 18px;
    font-size: clamp(3.35rem, min(4.5vw, 7.5svh), 4.5rem);
  }

  .dpoaf-robok-theme .lp-launch-pill {
    margin-bottom: 18px;
  }

  .dpoaf-robok-theme .lp-hero__actions {
    margin-top: 20px;
  }

  .dpoaf-robok-theme .lp-proof-row {
    margin-top: 16px;
  }

  .dpoaf-robok-theme .lp-hero__product {
    transform: scale(.92);
  }
}

@media (max-width: 1180px) {
  .dpoaf-robok-theme .lp-container,
  .dpoaf-robok-theme .lp-header .lp-nav {
    width: min(100% - 40px, 960px);
  }

  .dpoaf-robok-theme .lp-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-fabric__head,
  .agent-fabric__workspace {
    grid-template-columns: 1fr;
  }

  .agent-fabric__statement {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .dpoaf-robok-theme .lp-container,
  .dpoaf-robok-theme .lp-header .lp-nav {
    width: calc(100% - 28px);
  }

  .dpoaf-robok-theme .lp-header,
  .dpoaf-robok-theme .lp-header.scrolled {
    height: 70px;
  }

  .dpoaf-robok-theme .lp-header .lp-nav,
  .dpoaf-robok-theme .lp-header.scrolled .lp-nav {
    height: 70px;
  }

  .dpoaf-robok-theme .lp-brand img {
    width: 40px;
  }

  .dpoaf-robok-theme .lp-hero {
    min-height: auto;
    padding: 116px 0 76px;
  }

  .dpoaf-robok-theme .lp-hero__layout {
    min-height: 0;
  }

  .dpoaf-robok-theme .lp-hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.25rem);
  }

  .dpoaf-robok-theme .lp-platform-grid {
    grid-template-columns: 1fr;
  }

  .dpoaf-robok-theme .lp-platform-card,
  .dpoaf-robok-theme .lp-platform-card--wide {
    min-height: 280px;
  }

  .agent-fabric__head {
    gap: 28px;
  }

  .agent-fabric__workspace {
    grid-template-columns: 1fr;
  }

  .agent-terminal {
    min-height: auto;
  }

  .agent-terminal__body {
    padding: 22px 18px;
  }

  .agent-contract {
    grid-template-columns: 1fr;
  }

  .agent-terminal__flow {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-terminal__flow i {
    width: 1px;
    height: 20px;
    margin-left: 8px;
  }

  .agent-signal {
    grid-template-columns: 1fr 1fr;
  }

  .agent-signal span:nth-child(2) {
    border-right: 0;
  }

  .agent-signal span:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
}
