/* OpenNeo AI — ERP2AI-MCP-SERVER product page (engineering-dark voice) */

/* Living hover lift on real cards on this page */
.card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 153, 153, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
}

/* ----------------------------------------------------------------
   Dark "engineering" hero band: a real MCP code sample right under
   the title, so the page opens with what the product actually is.
   ---------------------------------------------------------------- */
.erp-hero-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0;
  color: #ffffff;
  background: linear-gradient(160deg, #063a3a 0%, #074a4c 55%, #063e3e 100%);
}
.erp-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 82% 20%, rgba(0, 153, 153, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.erp-hero-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.erp-hero-band .code-card { max-width: 660px; margin: 0; }

/* code-card (shared look with the home page dark product band) */
.code-card {
  position: relative;
  width: 100%;
  background: #04262a;
  border: 1px solid rgba(138, 243, 232, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #cdeee9;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.code-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.code-card .ln { display: block; white-space: pre; }
.code-card .k { color: #62d8ca; }
.code-card .s { color: #a8e6cf; }
.code-card .c { color: #5f938b; font-style: italic; }
.code-card .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: #62d8ca;
  animation: erpCaret 1.1s steps(1, end) infinite;
}
@keyframes erpCaret { 50% { opacity: 0; } }

/* ----------------------------------------------------------------
   Solution: the flat 8-item feature-list becomes a 2x2 grid of
   title+desc pairs (CSS only, via nth-child pairing).
   ---------------------------------------------------------------- */
.solution-grid .feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: 0;
}
.solution-grid .feature-list li {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--color-text);
}
.solution-grid .feature-list li::before { content: none; }
.solution-grid .feature-list li:nth-child(odd) {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid rgba(0, 153, 153, 0.18);
}
.solution-grid .feature-list li:nth-child(even) {
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-bottom: var(--space-4);
}

/* ----------------------------------------------------------------
   Problems: numbered editorial list (no boxes, no voids). A 3-col
   index (desktop) where each pain point carries a big ghost numeral,
   an ink title and a hairline rule.
   ---------------------------------------------------------------- */
.erp-grid--problem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--space-8);
  row-gap: var(--space-7);
  margin-top: var(--space-7);
}
/* Scenarios: 2-up BEFORE/AFTER cards (column count owned here, not
   inline, so the mobile media query below can collapse it cleanly). */
.erp-grid--scenario { grid-template-columns: repeat(2, 1fr); }
.erp-grid--problem > .card {
  all: unset;
  display: block;
  counter-increment: erp-issue;
  position: relative;
  padding-left: 68px;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}
/* Ghost numeral hangs in the left gutter (absolute, so it never collapses
   the way a counter() in an auto grid track did). */
.erp-grid--problem > .card::before {
  position: absolute;
  left: 0;
  top: -6px;
  /* neutralise the global .card::before hover-accent bar (main.css:1374) which
     otherwise forces opacity:0 + height:2px + a gradient fill onto this box */
  right: auto;
  height: auto;
  opacity: 1;
  background: none;
  transform: none;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 153, 153, 0.32);
}
/* Plain string numerals (a CSS counter() resolves to empty on the all:unset
   card in Chromium, so the index is set per position instead). */
.erp-grid--problem > .card:nth-child(1)::before { content: "01"; }
.erp-grid--problem > .card:nth-child(2)::before { content: "02"; }
.erp-grid--problem > .card:nth-child(3)::before { content: "03"; }
.erp-grid--problem > .card:nth-child(4)::before { content: "04"; }
.erp-grid--problem > .card:nth-child(5)::before { content: "05"; }
.erp-grid--problem > .card:nth-child(6)::before { content: "06"; }
.erp-grid--problem > .card .card-icon { display: none; }
.erp-grid--problem > .card .card-title {
  margin: 0 0 var(--space-2);
  font-size: 19px;
  color: var(--color-ink);
}
.erp-grid--problem > .card .card-text {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   Capabilities / tools: a single dark "reference panel" that lists
   the 6 MCP tools like a developer manifest (no card grid, no voids).
   ---------------------------------------------------------------- */
.cap-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #063a3a 0%, #074a4c 55%, #063e3e 100%);
}
.cap-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 20% 15%, rgba(0, 153, 153, 0.26) 0%, transparent 60%);
  pointer-events: none;
}
.cap-dark .container { position: relative; z-index: 1; }
.cap-dark .section-title { color: #ffffff; }
.cap-dark .section-subtitle { color: rgba(255, 255, 255, 0.78); }

.cap-ref {
  margin-top: var(--space-7);
  background: #04262a;
  border: 1px solid rgba(138, 243, 232, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.cap-ref-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid rgba(138, 243, 232, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.cap-ref-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(138, 243, 232, 0.3); }
.cap-ref-dot.is-live { background: #62d8ca; box-shadow: 0 0 10px rgba(98, 216, 202, 0.7); }
.cap-ref-label {
  margin-left: var(--space-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #5f938b;
}
.cap-ref-list { display: flex; flex-direction: column; }
.cap-ref-list > .card {
  all: unset;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(138, 243, 232, 0.1);
  transition: background-color var(--transition-fast);
}
.cap-ref-list > .card:last-child { border-bottom: none; }
.cap-ref-list > .card:hover { background: rgba(98, 216, 202, 0.07); }
.cap-ref-list > .card .card-icon { display: none; }
.cap-ref-list > .card .feature-tag {
  justify-self: start;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(98, 216, 202, 0.14);
  border: 1px solid rgba(98, 216, 202, 0.3);
  color: #8af3e8;
  text-transform: none;
  letter-spacing: 0;
}
.cap-ref-list > .card .card-title { display: none; }
.cap-ref-list > .card .card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   Security: a horizontal "defense line" of 4 numbered nodes sharing
   a divider spine (no card boxes, no voids).
   ---------------------------------------------------------------- */
.sec-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #063a3a 0%, #074a4c 55%, #063e3e 100%);
}
.sec-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 80% 20%, rgba(0, 153, 153, 0.26) 0%, transparent 60%);
  pointer-events: none;
}
.sec-dark .container { position: relative; z-index: 1; }
.sec-dark .section-title { color: #ffffff; }

.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
  counter-reset: sec-step;
}
.sec-grid > .card {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  counter-increment: sec-step;
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(138, 243, 232, 0.28);
}
.sec-grid > .card::before {
  position: absolute;
  top: -15px;
  left: 0;
  right: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #063e3e;
  border: 1px solid rgba(138, 243, 232, 0.5);
  color: #8af3e8;
  opacity: 1; /* override global .card::before opacity:0 hover-bar */
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}
/* literal indices (counter() resolves empty on the all:unset card) */
.sec-grid > .card:nth-child(1)::before { content: "01"; }
.sec-grid > .card:nth-child(2)::before { content: "02"; }
.sec-grid > .card:nth-child(3)::before { content: "03"; }
.sec-grid > .card:nth-child(4)::before { content: "04"; }
.sec-grid > .card .card-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #8af3e8;
  box-shadow: none;
}
.sec-grid > .card .card-icon svg { width: 22px; height: 22px; }
.sec-grid > .card .card-title { margin: 0; color: #ffffff; font-size: 17px; }
.sec-grid > .card .card-text { margin: 0; color: rgba(255, 255, 255, 0.74); line-height: 1.65; }

/* ----------------------------------------------------------------
   Responsive collapse
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cap-ref-list > .card { grid-template-columns: 160px 1fr; }
  .erp-grid--problem { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .solution-grid .feature-list { grid-template-columns: 1fr; }
  .erp-grid--problem { grid-template-columns: 1fr; row-gap: var(--space-6); }
  .erp-grid--problem > .card { padding-left: 54px; }
  .erp-grid--problem > .card::before { font-size: 36px; top: -3px; color: rgba(0, 153, 153, 0.34); }
  .erp-grid--scenario { grid-template-columns: 1fr; }
  .cap-ref-list > .card { grid-template-columns: 1fr; gap: var(--space-2); }
  .sec-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .sec-grid > .card { padding-top: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .code-card .caret { animation: none; }
}
