/* ═══════════════════════════════════════════════════════════
   SYNE Carbon · products.css
   Page-specific styles for products.html
   Loads AFTER css/styles.css — no token redefinition.
   Section rhythm:
     Page header  → bg-pale  (blue tint)
     01 Ratings   → bg-white
     02 Intel     → bg-grey
     03 Trading   → bg-pale
     04 Gateway   → bg-white
     05 Pricing   → bg-grey
     06 Earth     → bg-slate
     CTA          → bg-blue  (shared .cta-sec)
     Footer       → bg-navy  (shared .footer)
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE HEADER ─────────────────────────────────────────── */
.pg-header {
  padding-top: 64px; /* fixed nav height */
  background: var(--bg-pale);
  border-bottom: 1px solid var(--blue-mid);
  position: relative;
  overflow: hidden;
}
.pg-header::before {
  content: '';
  position: absolute;
  top: 64px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(57,172,231,.15) 55%, transparent 100%);
}
.pg-header::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(57,172,231,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,172,231,.08) 1px, transparent 1px);
  background-size: 52px 52px;
}
.pg-header-inner {
  position: relative; z-index: 1;
  padding: 56px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--ink-4); }
.pg-h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 700; line-height: 1.07; letter-spacing: -.026em;
  color: var(--ink); margin-bottom: 18px;
}
.pg-h1 strong { color: var(--blue); }
.pg-lead {
  font-size: 16px; line-height: 1.74; color: var(--ink-2);
  max-width: 520px; font-weight: 400;
}

/* Right column — header stat cards */
.pg-header-stats { display: flex; flex-direction: column; gap: 10px; }
.phs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 22px;
  display: flex; align-items: center; gap: 18px;
  transition: border-color .18s, box-shadow .18s;
}
.phs-card:hover { border-color: var(--blue-mid); box-shadow: var(--sh-sm); }
.phs-val {
  font-size: 30px; font-weight: 700; color: var(--ink);
  letter-spacing: -.04em; line-height: 1; white-space: nowrap;
  flex-shrink: 0;
}
.phs-val em { color: var(--blue); font-style: normal; }
.phs-label { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

/* ── STICKY PRODUCT NAV ──────────────────────────────────── */
.prod-nav {
  position: sticky; top: 64px; z-index: 200;
  background: var(--bg-white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(13,31,45,.04);
}
.prod-nav-inner {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.prod-nav-inner::-webkit-scrollbar { display: none; }
.pnav-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px; height: 52px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-3);
  border-bottom: 2.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}
.pnav-tab:hover { color: var(--ink); background: var(--bg-grey); }
.pnav-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.pnav-num {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 3px;
  background: var(--bg-grey); color: var(--ink-4);
  transition: background .15s, color .15s;
}
.pnav-tab.active .pnav-num { background: var(--blue-lt); color: var(--blue-dark); }

/* ── SHARED PRODUCT SECTION WRAPPER ─────────────────────── */
.prod-sec { padding: 88px 0; }
.prod-sec-white  { background: var(--bg-white); }
.prod-sec-grey   { background: var(--bg-grey);  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prod-sec-pale   { background: var(--bg-pale);  border-top: 1px solid var(--blue-mid); border-bottom: 1px solid var(--blue-mid); }
.prod-sec-slate  { background: var(--bg-slate); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── PRODUCT DETAIL LAYOUT (2-col) ──────────────────────── */
.prod-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
/* flipped: visual LEFT, text RIGHT */
.prod-layout-flip {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.prod-layout-flip .prod-visual { order: -1; }

/* ── PRODUCT IDENTITY BLOCK ──────────────────────────────── */
.prod-id {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.prod-id-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--blue-lt); border: 1px solid var(--blue-mid);
  display: grid; place-items: center;
}
.prod-id-icon svg {
  width: 24px; height: 24px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.prod-id-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 3px;
}
.prod-id-name {
  font-size: 20px; font-weight: 700; color: var(--ink);
  letter-spacing: -.018em; line-height: 1.1;
}

.prod-h2 {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.022em;
  color: var(--ink); margin-bottom: 14px;
}
.prod-h2 strong { color: var(--blue); }
.prod-body {
  font-size: 15px; line-height: 1.74;
  color: var(--ink-2); margin-bottom: 28px;
}
.prod-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── FEATURE LIST ────────────────────────────────────────── */
.feat-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.feat-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: border-color .18s, box-shadow .18s;
}
/* Background adapts to section */
.prod-sec-white  .feat-item { background: var(--bg-grey); }
.prod-sec-grey   .feat-item { background: var(--bg-white); }
.prod-sec-pale   .feat-item { background: var(--bg-white); }
.prod-sec-slate  .feat-item { background: var(--bg-white); }
.feat-item:hover { border-color: var(--blue-mid); box-shadow: var(--sh-sm); }
.feat-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--r);
  background: var(--blue-lt); border: 1px solid var(--blue-mid);
  display: grid; place-items: center;
}
.feat-icon svg {
  width: 15px; height: 15px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feat-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.feat-desc  { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

/* ── DATA PANEL (right-side visual) ─────────────────────── */
.prod-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.prod-sec-grey .prod-panel { box-shadow: var(--sh-md); }

.pp-chrome {
  background: var(--bg-navy);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.pp-dots { display: flex; gap: 5px; }
.pp-dot  { width: 10px; height: 10px; border-radius: 50%; }
.pp-dot-r { background: #FF5F57; }
.pp-dot-y { background: #FFBD2E; }
.pp-dot-g { background: #28C840; }
.pp-title {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.pp-live {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: 4px;
}
.pp-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); animation: pp-blink 1.8s ease infinite;
}
@keyframes pp-blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.pp-body { padding: 20px 22px; }
.pp-lbl {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px;
}
.pp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.pp-row:last-of-type { border-bottom: none; }
.pp-row-name  { color: var(--ink-2); font-weight: 500; flex: 1; padding-right: 10px; }
.pp-row-price { color: var(--ink);  font-weight: 700; font-family: 'Courier New', monospace; white-space: nowrap; }
.pp-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 3px; white-space: nowrap; margin-left: 8px;
}
.pp-tag-aaa   { background: var(--indigo-lt); color: var(--indigo); }
.pp-tag-aa    { background: var(--blue-lt);   color: var(--blue-dark); }
.pp-tag-a     { background: var(--green-lt);  color: #15803D; }
.pp-tag-b     { background: var(--amber-lt);  color: #92400E; }
.pp-tag-up    { background: var(--green-lt);  color: #15803D; }
.pp-tag-dn    { background: #FEE2E2;          color: #B91C1C; }
.pp-tag-live  { background: var(--green-lt);  color: #15803D; }
.pp-tag-blue  { background: var(--blue-lt);   color: var(--blue-dark); }
.pp-tag-amber { background: var(--amber-lt);  color: #92400E; }
.pp-tag-grey  { background: var(--bg-slate);  color: var(--ink-3); }

.pp-divider { height: 1px; background: var(--line); margin: 14px 0; }
.pp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pp-stat-val {
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -.035em; line-height: 1; margin-bottom: 3px;
}
.pp-stat-val.blue { color: var(--blue); }
.pp-stat-lbl { font-size: 9.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; }

/* ── METRIC STRIP ────────────────────────────────────────── */
.metric-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden; margin-top: 18px;
}
.metric-strip-item {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  background: var(--bg-white);
  transition: background .18s;
}
.prod-sec-grey .metric-strip-item { background: var(--bg-grey); }
.metric-strip-item:last-child { border-right: none; }
.metric-strip-item:hover { background: var(--blue-lt); }
.ms-val {
  font-size: 26px; font-weight: 700; color: var(--ink);
  letter-spacing: -.04em; line-height: 1; margin-bottom: 4px;
}
.ms-val em { color: var(--blue); font-style: normal; font-size: .72em; }
.ms-lbl { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

/* ── ORDER BOOK WIDGET (Trading) ─────────────────────────── */
.ob-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.ob-side {
  border-radius: var(--r); padding: 12px 14px;
}
.ob-side-bid   { background: #F0FFF4; border: 1px solid #BBF7D0; }
.ob-side-offer { background: #FFF5F5; border: 1px solid #FECACA; }
.ob-side-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 8px;
}
.ob-side-bid   .ob-side-label { color: #15803D; }
.ob-side-offer .ob-side-label { color: #B91C1C; }
.ob-side-rows {
  font-size: 11px; font-family: 'Courier New', monospace;
  color: var(--ink-2); line-height: 1.9;
}

/* ── EARTH INTEL GRID ────────────────────────────────────── */
.intel-8-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 48px;
}
.i8card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: default;
}
.i8card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.i8card-bar { width: 30px; height: 3px; border-radius: 2px; margin-bottom: 16px; }
.i8-blue   { background: var(--blue); }
.i8-amber  { background: var(--amber); }
.i8-indigo { background: var(--indigo); }
.i8-green  { background: var(--green); }
.i8-teal   { background: var(--teal); }
.i8-sage   { background: #5F8A6F; }
.i8-red    { background: #EF4444; }
.i8-sky    { background: #0284C7; }
.i8card-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; letter-spacing: -.01em; }
.i8card-desc  { font-size: 12.5px; color: var(--ink-3); line-height: 1.62; }

/* ── API CALLOUT (dark banner) ───────────────────────────── */
.api-callout {
  background: var(--bg-navy);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  margin-top: 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  position: relative; overflow: hidden;
}
.api-callout::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent 70%);
}
.api-callout-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700; color: #fff;
  letter-spacing: -.022em; line-height: 1.15; margin-bottom: 12px;
}
.api-callout-title strong { color: var(--blue); }
.api-callout-desc { font-size: 14.5px; color: rgba(255,255,255,.55); line-height: 1.68; margin-bottom: 24px; }
.api-callout-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.api-features { display: flex; flex-direction: column; gap: 12px; }
.api-feat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  transition: background .18s, border-color .18s;
}
.api-feat:hover { background: rgba(57,172,231,.08); border-color: rgba(57,172,231,.26); }
.api-feat-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--r);
  background: rgba(57,172,231,.14); border: 1px solid rgba(57,172,231,.22);
  display: grid; place-items: center;
}
.api-feat-icon svg {
  width: 14px; height: 14px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.api-feat-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.api-feat-desc { font-size: 12px; color: rgba(255,255,255,.44); line-height: 1.5; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pg-header-inner { grid-template-columns: 1fr; gap: 36px; }
  .prod-layout     { grid-template-columns: 1fr; gap: 40px; }
  .prod-layout-flip { grid-template-columns: 1fr; gap: 40px; }
  .prod-layout-flip .prod-visual { order: 0; }
  .intel-8-grid    { grid-template-columns: repeat(2, 1fr); }
  .api-callout     { grid-template-columns: 1fr; gap: 36px; padding: 36px 32px; }
  .metric-strip    { grid-template-columns: repeat(2, 1fr); }
  .metric-strip-item:nth-child(2) { border-right: none; }
  .metric-strip-item { border-bottom: 1px solid var(--line); }
  .metric-strip-item:nth-child(3),
  .metric-strip-item:nth-child(4) { border-bottom: none; }
}
@media (max-width: 768px) {
  .prod-sec { padding: 64px 0; }
  .intel-8-grid { grid-template-columns: 1fr; }
  .pnav-tab { padding: 0 16px; font-size: 12.5px; }
  .ob-split { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip-item { border-right: none; border-bottom: 1px solid var(--line); }
  .metric-strip-item:last-child { border-bottom: none; }
}
