/* ==========================================================================
   YieldVector OS — Page 2: Platform (css/platform.css)
   Inherits --shell-width, tokens, sticky .site-header, and .closing-strip
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Layered warm-copper, deep-teal, and steel-blue light washes behind glass */
.ambient-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 46% 38% at 88% 10%, rgba(196, 75, 26, 0.12) 0%, rgba(196, 75, 26, 0) 70%),
    radial-gradient(ellipse 48% 42% at 10% 24%, rgba(31, 91, 99, 0.14) 0%, rgba(31, 91, 99, 0) 72%),
    radial-gradient(ellipse 42% 36% at 84% 52%, rgba(60, 85, 112, 0.10) 0%, rgba(60, 85, 112, 0) 70%),
    radial-gradient(ellipse 44% 38% at 16% 68%, rgba(196, 75, 26, 0.12) 0%, rgba(196, 75, 26, 0) 72%),
    radial-gradient(ellipse 50% 42% at 80% 88%, rgba(31, 91, 99, 0.14) 0%, rgba(31, 91, 99, 0) 72%),
    radial-gradient(ellipse 38% 30% at 48% 42%, rgba(60, 85, 112, 0.10) 0%, rgba(60, 85, 112, 0) 68%);
}

/* Active navigation state without touching .site-header sticky positioning */
.nav-menu a.is-current {
  color: var(--brand-molten);
  font-weight: 700;
  position: relative;
}

.nav-menu a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--brand-molten);
  border-radius: 2px;
}

/* Page canvas spacing */
.platform-main {
  padding-top: clamp(28px, 3.6vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.platform-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.2vw, 44px);
}

/* Authentic Liquid Glass module surface */
.platform-glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42));
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    var(--glass-shadow);
  border: 1px solid rgba(31, 42, 60, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 48px);
  scroll-margin-top: 96px;
}

/* ==========================================================================
   OPENING HERO (52% Copy Left | 48% Borderless Visual Right)
   ========================================================================== */
.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(44px, 5.5vw, 84px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44));
  border: 1px solid var(--glass-stroke);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-steel);
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-molten);
  box-shadow: 0 0 0 4px rgba(196, 75, 26, 0.16);
}

.platform-title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 2.95vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.accent-molten {
  color: var(--brand-molten);
}

.accent-teal {
  color: var(--brand-teal);
}

.platform-lead {
  margin: 0 0 28px;
  max-width: 60ch;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.66;
  color: var(--ink-body);
}

.platform-jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 42, 60, 0.12);
}

.platform-jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-steel);
  transition: color 0.18s ease;
}

.platform-jump-nav a:hover,
.platform-jump-nav a:focus-visible {
  color: var(--brand-molten);
}

.jump-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal);
}

.jump-sep {
  color: var(--ink-muted);
  opacity: 0.55;
  user-select: none;
}

.platform-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.platform-svg {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  overflow: visible;
}

/* ==========================================================================
   MODULE HEADINGS & SPLIT LAYOUTS (PRIORITIES 01 - 07)
   ========================================================================== */
.module-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(22px, 2.5vw, 32px);
  font-family: var(--font-sans);
  font-size: clamp(1.38rem, 1.95vw, 1.92rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.module-num--molten {
  background: rgba(196, 75, 26, 0.12);
  color: var(--brand-molten);
  border: 1px solid rgba(196, 75, 26, 0.24);
}

.module-num--teal {
  background: rgba(31, 91, 99, 0.12);
  color: var(--brand-teal);
  border: 1px solid rgba(31, 91, 99, 0.24);
}

.split-56-44 {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 56px);
}

.split-44-56 {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 56px);
}

.split-50-50 {
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 52px);
}

.module-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.copy-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
}

.copy-block {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.66;
  color: var(--ink-body);
}

.copy-block strong {
  color: var(--ink-primary);
  font-weight: 700;
}

/* ==========================================================================
   PRIORITY 03: PANORAMIC VISUAL + 3 ALIGNED COLUMNS
   ========================================================================== */
.panoramic-visual {
  width: 100%;
  margin-bottom: clamp(22px, 2.8vw, 34px);
  background: transparent;
}

.copy-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  padding-top: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid rgba(31, 42, 60, 0.10);
}

.col-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-primary);
}

.col-item p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-body);
}

/* ==========================================================================
   PRIORITY 05: LIVE STATUS KEY + CLOSED-LOOP STOCK
   ========================================================================== */
.status-key {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 20px;
}

.status-row {
  padding: 9px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.42);
  border-left: 4px solid var(--ink-steel);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-body);
}

.status-row strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.status-row--ok {
  border-left-color: var(--status-ok);
}

.status-row--danger {
  border-left-color: var(--status-danger);
}

.status-row--warn {
  border-left-color: var(--status-warn);
}

.status-row--dispatched {
  border-left-color: #1E3A8A;
}

/* ==========================================================================
   PRIORITY 06: NATIVE LIQUID GLASS 3-CHART PREVIEW STRIP
   ========================================================================== */
.analytics-intro {
  margin: 0 0 clamp(22px, 2.6vw, 30px);
  max-width: 78ch;
  font-family: var(--font-sans);
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.66;
  color: var(--ink-body);
}

.analytics-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.analytics-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(31, 42, 60, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.analytics-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink-primary);
}

.analytics-card-caption {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 42, 60, 0.08);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-muted);
}

.analytics-footnote {
  margin: 14px 0 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ==========================================================================
   PRIORITY 07: COMPACT 2-COLUMN STRIP
   ========================================================================== */
.fit-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.2vw, 48px);
}

.fit-col h3 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-primary);
}

.fit-col p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.64;
  color: var(--ink-body);
}

/* ==========================================================================
   NEXT-PAGE HANDOFF BAR
   ========================================================================== */
.next-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 36px);
}

.next-page-copy {
  max-width: 68ch;
}

.next-page-title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.22rem, 1.65vw, 1.54rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-primary);
}

.next-page-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--ink-body);
}

.next-page-bar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE, TABLET, LAPTOP, 4K TV)
   ========================================================================== */
@media (max-width: 1024px) {
  .platform-hero,
  .split-56-44,
  .split-44-56,
  .split-50-50,
  .copy-three-col,
  .analytics-glass-grid,
  .fit-strip-grid {
    grid-template-columns: 1fr;
  }

  .platform-hero-visual,
  .module-visual {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .next-page-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .platform-glass {
    padding: 22px 18px;
  }

  .module-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .analytics-footnote {
    text-align: left;
  }
}

/* === YVOS_PLATFORM_BALANCE === */
.split-56-44 .module-visual .platform-svg,
.split-44-56 .module-visual .platform-svg {
  max-height: 360px;
  width: 100%;
  height: auto;
}

.platform-hero-visual .platform-svg {
  max-height: 350px;
  width: 100%;
  height: auto;
}

/* === YVOS_LIQUID_GLASS_PAGE_V2 === */
.ambient-mesh {
  background-color: #EEF3F8;
  background-image:
    radial-gradient(ellipse 50% 40% at 88% 8%, rgba(31, 91, 99, 0.21) 0%, transparent 66%),
    radial-gradient(ellipse 50% 40% at 10% 24%, rgba(196, 75, 26, 0.145) 0%, transparent 68%),
    radial-gradient(ellipse 48% 38% at 84% 56%, rgba(60, 85, 112, 0.18) 0%, transparent 66%),
    radial-gradient(ellipse 50% 40% at 14% 84%, rgba(31, 91, 99, 0.18) 0%, transparent 68%);
}
