/* ============================================================
   prodct · Technology template
   Shared stylesheet for CX-unit technology-partner landing pages
   (Pimcore, Talon.One, …) and their article detail pages.
   Built on prodct-tokens.css · CX emerald accent throughout.
   ============================================================ */

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); }
*::selection { background: var(--cx-500); color: #fff; }
html { scroll-behavior: smooth; }

body.dark {
  --bg: #0A0907; --bg-elevated: #141210; --bg-muted: #1A1814;
  --fg: #E7E2D5; --fg-strong: #FAF8F4; --fg-muted: #9C9585; --fg-subtle: #6E6858;
  --border: #2A2620; --border-strong: #3A352D;
}

a { color: var(--cx-500); text-decoration: none; }
a:hover { color: var(--cx-700); }
body.dark a { color: var(--cx-300); }

.page { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 500; padding: 14px 22px; border-radius: 6px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background 200ms var(--ease-out), border-color 200ms, color 200ms; }
.btn--primary { background: var(--cx-500); color: #fff; }
.btn--primary:hover { background: var(--cx-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg-strong); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--fg-muted); color: var(--fg-strong); }
.btn--ghostDark { background: transparent; color: #F3F0E9; border-color: rgba(255,255,255,0.28); }
.btn--ghostDark:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--secondary { background: var(--labs-500); color: #fff; }
.btn--secondary:hover { background: var(--labs-700); color: #fff; }

/* ============================================================
   HERO — dark band with partner profile panel
   ============================================================ */
.techHero { background: var(--prodct-900); color: #EDEAE0; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.08); }
.techHero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%); pointer-events: none; }
.techHero::after { content: ''; position: absolute; top: -30%; right: -10%; width: 640px; height: 640px; background: radial-gradient(circle, color-mix(in srgb, var(--cx-500) 42%, transparent) 0%, transparent 68%); filter: blur(20px); pointer-events: none; }
.techHero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; padding: 96px 40px 104px; }
.techHero__lead { display: flex; flex-direction: column; gap: 26px; }
.techHero__eyebrow { display: flex; align-items: center; gap: 12px; }
.techHero__crumb { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }
.techHero__h1 { font-family: var(--font-sans); font-size: clamp(44px, 5.6vw, 82px); font-weight: 500; line-height: 1.0; letter-spacing: -0.04em; color: #fff; margin: 0; max-width: 15ch; }
.techHero__h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cx-300); }
.techHero__lede { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 620px; margin: 0; }
.techHero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* partner profile panel (terminal) */
.techHero__panel { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; background: rgba(5,4,10,0.5); backdrop-filter: blur(4px); box-shadow: var(--shadow-lg); }
.panel__chrome { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.panel__chrome .d { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.panel__chrome .d.g { background: var(--cx-500); }
.panel__chrome .f { margin-left: 8px; color: rgba(255,255,255,0.45); font-family: var(--font-mono); font-size: 12px; }
.panel__code { padding: 20px 22px; display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; row-gap: 4px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }
.panel__code .ln { color: rgba(255,255,255,0.24); text-align: right; user-select: none; }
.panel__code .line { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.panel__code .cm { color: rgba(255,255,255,0.4); }
.panel__code .kw { color: var(--cx-300); }
.panel__code .k { color: #82C2AD; }
.panel__code .eq { color: rgba(255,255,255,0.45); }
.panel__code .v { color: #fff; }
.panel__code .v.hot { color: var(--lime-300); }
.panel__code .s { color: #BADDD0; }
.panel__badge { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.panel__badgeMark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--cx-500) 30%, transparent); color: var(--cx-300); font-size: 16px; }
.panel__badgeK { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.panel__badgeV { font-size: 14px; font-weight: 500; color: #fff; }

/* ============================================================
   DOSSIER bar
   ============================================================ */
.dossier { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding: 22px 40px; border-bottom: 1px solid var(--border); }
.dosK { font-family: var(--font-mono); font-size: 10px; color: var(--fg-subtle); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 5px; }
.dosV { font-size: 14px; color: var(--fg-strong); letter-spacing: -0.005em; line-height: 1.35; }
.dosV.acc { color: var(--cx-500); }

/* ============================================================
   Section scaffolding
   ============================================================ */
.block { padding: 82px 0; border-top: 1px solid var(--border); }
.block:first-child { border-top: none; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--cx-500); margin-bottom: 16px; letter-spacing: 0.02em; }
.h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; color: var(--fg-strong); margin: 0 0 18px; max-width: 22ch; }
.h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cx-500); }
.h2 strong { font-weight: 500; color: var(--cx-500); }
.blockLede { font-size: 17px; line-height: 1.55; color: var(--fg-muted); max-width: 640px; margin: 0 0 44px; }

/* ---------- Analyst strip ---------- */
.analysts { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.analysts--3 { grid-template-columns: repeat(3, 1fr); }
.analyst { padding: 26px 22px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; background: var(--bg-elevated); }
.analyst:last-child { border-right: none; }
.analyst__src { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-strong); }
.analyst__note { font-size: 13px; line-height: 1.5; color: var(--fg-muted); }

/* ---------- Feature / card grid ---------- */
.cardGrid { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cardGrid--4 { grid-template-columns: repeat(4, 1fr); }
.feat { padding: 28px 24px 32px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; background: var(--bg-elevated); }
.cardGrid--4 .feat:last-child { border-right: none; }
.feat__n { font-family: var(--font-mono); font-size: 11px; color: var(--cx-500); }
.feat__t { font-size: 18px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.015em; margin: 0; }
.feat__d { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ---------- Steps (numbered editorial) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border: 1px solid var(--border); border-radius: 12px; padding: 28px 26px 32px; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 12px; }
.step__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--cx-500); background: var(--cx-100); padding: 4px 9px; border-radius: 5px; width: fit-content; }
body.dark .step__k { background: rgba(19,122,78,0.16); color: var(--cx-300); }
.step__t { font-size: 19px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.step__d { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* ---------- Insight cards ---------- */
.insightGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.insightGrid--3 { grid-template-columns: repeat(3, 1fr); }
.rowCta { margin-top: 36px; }
.insight { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-elevated); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 180ms var(--ease-out), transform 180ms; }
.insight:hover { border-color: var(--cx-500); transform: translateY(-3px); }
.insight__thumb { position: relative; aspect-ratio: 16 / 8; background: var(--bg-muted); }
.insight__badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: #fff; background: var(--cx-500); padding: 5px 10px; border-radius: 5px; }
.insight__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.insight__t { font-size: 21px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.insight__x { font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.insight__link { font-family: var(--font-mono); font-size: 13px; color: var(--cx-500); margin-top: 4px; }
.insight:hover .insight__link { color: var(--cx-700); }
body.dark .insight:hover .insight__link { color: var(--cx-300); }

/* ---------- Industry cards ---------- */
.industryGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-elevated); display: flex; flex-direction: column; }
.industry__img { aspect-ratio: 4 / 3; background: var(--bg-muted); }
.industry__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.industry__k { font-family: var(--font-mono); font-size: 12px; color: var(--cx-500); letter-spacing: 0.02em; }
.industry__d { font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* ---------- Challenge cards ---------- */
.challengeGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.challenge { border: 1px solid var(--border); border-radius: 12px; padding: 30px 28px; background: var(--cx-100); display: flex; flex-direction: column; gap: 12px; position: relative; }
body.dark .challenge { background: rgba(19,122,78,0.09); border-color: rgba(19,122,78,0.28); }
.challenge__n { font-family: var(--font-mono); font-size: 12px; color: var(--cx-700); }
body.dark .challenge__n { color: var(--cx-300); }
.challenge__t { font-size: 20px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.02em; line-height: 1.22; margin: 0; }
.challenge__d { font-size: 15px; line-height: 1.6; color: var(--bone-600); margin: 0; }
body.dark .challenge__d { color: var(--fg-muted); }
.challenge__d strong { color: var(--cx-700); font-weight: 600; }
body.dark .challenge__d strong { color: var(--cx-300); }

/* ---------- Split section (Talon.One) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.splitPanel { background: var(--cx-100); border: 1px solid var(--cx-300); border-radius: 14px; padding: 12px 30px; }
body.dark .splitPanel { background: rgba(19,122,78,0.1); border-color: rgba(19,122,78,0.3); }
.splitItem { padding: 26px 0; border-top: 1px solid color-mix(in srgb, var(--cx-500) 22%, transparent); }
.splitItem:first-child { border-top: none; }
.splitItem h3 { font-size: 18px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.015em; margin: 0 0 10px; line-height: 1.25; }
.splitItem h3 strong { color: var(--cx-700); }
body.dark .splitItem h3 strong { color: var(--cx-300); }
.splitItem p { font-size: 14.5px; line-height: 1.6; color: var(--bone-600); margin: 0; }
body.dark .splitItem p { color: var(--fg-muted); }

/* ============================================================
   FINAL CTA — emerald band
   ============================================================ */
.finalCta { background: var(--cx-500); color: #fff; padding: 100px 40px; }
.finalCta .page { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; padding-left: 0; padding-right: 0; }
.finalCta__mono { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.72); letter-spacing: 0.02em; }
.finalCta__h { font-size: clamp(38px, 5.4vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin: 0; max-width: 20ch; }
.finalCta__h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--lime-300); }
.finalCta__row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.finalCta__btn { background: #fff; color: var(--cx-700); border: none; padding: 16px 24px; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; gap: 8px; }
.finalCta__btn:hover { background: var(--bone-100); color: var(--cx-700); }
.finalCta__mail { color: #fff; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.finalCta__mail:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.siteFoot { border-top: 1px solid var(--border); padding: 44px 40px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); }
.siteFoot a { color: var(--fg-muted); }
.siteFoot a:hover { color: var(--fg-strong); }
.siteFoot__right { display: flex; gap: 22px; }

/* ============================================================
   ARTICLE detail template
   ============================================================ */
.artHero { background: var(--prodct-900); color: #EDEAE0; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.08); }
.artHero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%); pointer-events: none; }
.artHero__inner { position: relative; padding: 72px 40px 76px; }
.artHero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.artHero__crumb { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.55); }
.artHero__crumb a { color: rgba(255,255,255,0.55); }
.artHero__crumb a:hover { color: #fff; }
.artHero__h1 { font-family: var(--font-sans); font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; color: #fff; margin: 0; max-width: 22ch; }
.artHero__h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cx-300); }
.artHero__meta { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.6); }

.artLayout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 64px; padding: 72px 40px 90px; align-items: start; }
.prose { min-width: 0; max-width: 720px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg-strong); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg-strong); margin: 40px 0 14px; }
.prose h4 { font-size: 17px; font-weight: 600; color: var(--cx-500); margin: 32px 0 10px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--fg); margin: 0 0 18px; }
.prose p.lede { font-size: 20px; line-height: 1.6; color: var(--fg-muted); }
.prose strong { color: var(--fg-strong); font-weight: 600; }
.prose ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--fg); }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--cx-500); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.prose .pullquote { border-left: 3px solid var(--cx-500); padding: 4px 0 4px 24px; margin: 32px 0; font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--fg-strong); }

/* contact form sidebar */
.artForm { position: sticky; top: 92px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-elevated); box-shadow: var(--shadow-md); }
.artForm__head { padding: 24px 26px 20px; background: var(--cx-500); color: #fff; }
.artForm__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.artForm__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.artForm__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field textarea { font-family: var(--font-sans); font-size: 15px; color: var(--fg-strong); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 12px 14px; width: 100%; box-sizing: border-box; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cx-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-500) 12%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.consent input { margin-top: 3px; accent-color: var(--cx-500); width: 15px; height: 15px; flex: none; }
.consent a { color: var(--cx-500); text-decoration: underline; text-underline-offset: 2px; }
.artForm .btn--primary { width: 100%; justify-content: center; }
.artForm__note { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); text-align: center; margin: 0; }

/* related tech */
.artRelated { border-top: 1px solid var(--border); padding: 56px 40px 40px; }
.artRelated__ey { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.artRelated__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.artRelated__card { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color 160ms, transform 160ms; }
.artRelated__card:hover { border-color: var(--cx-500); transform: translateY(-2px); }
.artRelated__k { font-family: var(--font-mono); font-size: 10px; color: var(--cx-500); letter-spacing: 0.04em; text-transform: uppercase; }
.artRelated__t { font-size: 15px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.01em; line-height: 1.3; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .techHero__grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 40px 80px; }
  .dossier { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cardGrid--4 { grid-template-columns: 1fr 1fr; }
  .cardGrid--4 .feat:nth-child(2n) { border-right: none; }
  .steps { grid-template-columns: 1fr; }
  .insightGrid, .challengeGrid { grid-template-columns: 1fr; }
  .industryGrid { grid-template-columns: 1fr; }
  .analysts { grid-template-columns: 1fr 1fr; }
  .analyst:nth-child(2n) { border-right: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .artLayout { grid-template-columns: 1fr; gap: 40px; }
  .artForm { position: static; }
  .artRelated__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page, .dossier, .techHero__grid, .artHero__inner, .artLayout, .finalCta, .siteFoot, .artRelated { padding-left: 22px; padding-right: 22px; }
  .cardGrid--4 { grid-template-columns: 1fr; }
  .cardGrid--4 .feat { border-right: none; }
  .analysts { grid-template-columns: 1fr; }
  .analyst { border-right: none; border-bottom: 1px solid var(--border); }
  .analyst:last-child { border-bottom: none; }
}
