/* =========================================================
   Platform hero — from design_handoff_platform_hero
   Scoped under .platform-hero. Nav stays site-nav (unchanged).
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

.platform-hero {
  --ph-navy: #070c15;
  --ph-navy2: #0c1424;
  --ph-gold: #d4a15a;
  --ph-gold2: #e8c07a;
  --ph-gold-text: #0d1423;
  --ph-serif: "Playfair Display", Georgia, serif;
  --ph-body: "Hanken Grotesk", system-ui, sans-serif;
  --ph-sans: "Hanken Grotesk", system-ui, sans-serif;
  --ph-mono: "JetBrains Mono", ui-monospace, monospace;
  position: relative;
  overflow: hidden;
  background: var(--ph-navy);
  height: min(60.7vw, 920px);
  display: block;
  color: #fff;
  font-family: var(--ph-sans);
  -webkit-font-smoothing: antialiased;
}
.platform-hero a:not(.mkt-hero-btn) { color: var(--ph-gold2); text-decoration: none; }
.platform-hero a:not(.mkt-hero-btn):hover { color: #fff; }

.platform-hero .ph-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.platform-hero .ph-fit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1688px;
  height: 1024px;
}
.platform-hero .ph-fit > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.platform-hero .ph-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.platform-hero .ph-eyebrow i {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ph-gold);
  flex-shrink: 0;
}
.platform-hero .ph-eyebrow span {
  font-family: var(--ph-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ph-gold);
  white-space: nowrap;
}

.platform-hero .ph-copy h1,
.platform-hero .ph-copy .ph-headline {
  font-family: var(--ph-serif) !important;
  font-weight: 800;
  font-size: clamp(44px, 4.9vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff !important;
  margin: var(--mkt-hero-headline-mt, 16px) 0 0;
  text-wrap: balance;
}
.platform-hero .ph-hl-white {
  color: #fff;
}
.platform-hero .ph-hl-gold {
  color: var(--ph-gold);
}
.platform-hero .ph-rule {
  display: none;
}
.platform-hero .ph-lede {
  font-family: var(--ph-body);
  font-size: 17px;
  line-height: 1.62;
  color: #e6eef8;
  max-width: var(--mkt-hero-sub-max, 560px);
  margin: var(--mkt-hero-body-mt, 20px) 0 0;
}
.platform-hero .ph-support {
  margin-top: 14px;
  font-family: var(--ph-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ph-gold);
  letter-spacing: 0.005em;
}
.platform-hero .ph-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mkt-hero-cta-gap, 10px 18px);
  margin-top: var(--mkt-hero-cta-mt, 28px);
}

.platform-hero .mkt-hero-btn-primary {
  color: var(--mkt-hero-gold-text);
  background: var(--mkt-hero-gold);
  border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(212, 161, 90, 0.45);
}

.platform-hero .mkt-hero-btn-primary:hover {
  background: var(--mkt-hero-gold-hover);
  color: var(--mkt-hero-gold-text);
}

@media (min-width: 1080px) {
  .platform-hero {
    --mkt-hero-inset-x: 20px;
  }

  .platform-hero .ph-col.mkt-hero-copy-col {
    max-width: 560px;
  }
}

/* ---------- laptop screen overlay ---------- */
.platform-hero .ph-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 660px;
  height: 412px;
  transform-origin: 0 0;
  z-index: 3;
  background: #f6f5f1;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #0a0b0f;
  font-family: var(--ph-sans);
  color: #141825;
  line-height: 1.35;
  filter: brightness(0.97) saturate(0.94) contrast(1.03);
  backface-visibility: hidden;
  pointer-events: none;
}
.platform-hero .ph-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 26%, transparent 46%),
    linear-gradient(200deg, rgba(120, 150, 190, 0.09), transparent 40%);
}
.platform-hero .sc-bar {
  height: 25px;
  background: #0c1424;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
}
.platform-hero .sc-bar b {
  font-family: var(--ph-mono);
  font-size: 7.5px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.platform-hero .sc-dots { display: flex; gap: 5px; }
.platform-hero .sc-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}
.platform-hero .sc-body { padding: 11px 14px 0; }
.platform-hero .sc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.platform-hero .crumb {
  font-size: 7px;
  color: #8b8b84;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.platform-hero .crumb b { color: #3c4658; font-weight: 500; }
.platform-hero .sc-head h2 {
  font-family: var(--ph-serif) !important;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: #141825 !important;
  margin: 0;
}
.platform-hero .sc-head .addr {
  font-size: 8px;
  color: #7c7c74;
  margin-top: 3px;
}
.platform-hero .sc-act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.platform-hero .tag {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f6b45;
  background: #e3f3e9;
  border: 1px solid #bfe2ce;
  border-radius: 100px;
  padding: 3px 8px;
}
.platform-hero .mini-btn {
  font-size: 7px;
  letter-spacing: 0.09em;
  color: #3c4658;
  border: 1px solid #dddcd3;
  background: #fff;
  border-radius: 3px;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.platform-hero .tabs {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  border-bottom: 1px solid #e2e0d6;
}
.platform-hero .tabs span {
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #96968e;
  padding-bottom: 6px;
}
.platform-hero .tabs span.on {
  color: #141825;
  box-shadow: inset 0 -1.5px 0 var(--ph-gold);
}
.platform-hero .grid {
  display: grid;
  grid-template-columns: 1.42fr 1.05fr;
  gap: 8px;
  margin-top: 9px;
}
.platform-hero .card {
  background: #fff;
  border: 1px solid #e4e2d8;
  border-radius: 4px;
  padding: 9px 10px;
}
.platform-hero .card h3 {
  font-family: var(--ph-sans) !important;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 7px;
  color: #141825 !important;
}
.platform-hero .dual {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
}
.platform-hero .shot {
  border-radius: 3px;
  overflow: hidden;
  background: #dde3e8;
  height: 104px;
}
.platform-hero .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.platform-hero .kv { width: 100%; border-collapse: collapse; }
.platform-hero .kv td {
  padding: 3.2px 0;
  border-bottom: 1px solid #f0eee5;
  font-size: 7.5px;
  color: #7c7c74;
}
.platform-hero .kv tr:last-child td { border-bottom: none; }
.platform-hero .kv td:last-child {
  text-align: right;
  color: #141825;
  font-weight: 500;
}
.platform-hero .chart { margin-top: 2px; }
.platform-hero .chart svg { width: 100%; height: 74px; display: block; }
.platform-hero .legend {
  display: flex;
  gap: 10px;
  font-size: 6.5px;
  color: #8b8b84;
  margin-bottom: 4px;
}
.platform-hero .legend i {
  display: inline-block;
  width: 9px;
  height: 1.5px;
  vertical-align: middle;
  margin-right: 3px;
}
.platform-hero .xax {
  display: flex;
  justify-content: space-between;
  font-size: 6px;
  color: #a5a59d;
  margin-top: 2px;
}
.platform-hero .comp { width: 100%; border-collapse: collapse; }
.platform-hero .comp td {
  padding: 4px 0;
  border-bottom: 1px solid #f0eee5;
  font-size: 7.5px;
  color: #141825;
}
.platform-hero .comp tr:last-child td { border-bottom: none; }
.platform-hero .comp td:nth-child(2),
.platform-hero .comp td:nth-child(3) {
  text-align: right;
  color: #4e4c44;
}
.platform-hero .comp td:last-child {
  text-align: right;
  width: 34px;
}
.platform-hero .comp .ok { color: #1f6b45; }
.platform-hero .comp .fair { color: #9a6b18; }
.platform-hero .docs { display: grid; gap: 5px; }
.platform-hero .docs a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  color: #3c4658;
  border: 1px solid #edebe1;
  border-radius: 3px;
  padding: 5px 7px;
  background: #fcfcf9;
}
.platform-hero .docs a svg { flex: none; }
.platform-hero .docs .more {
  font-size: 7px;
  color: #9a6b18;
  border: none;
  background: none;
  padding: 2px 0;
}

@media (prefers-reduced-motion: no-preference) {
  .platform-hero .ph-rise {
    opacity: 0;
    transform: translateY(16px);
    animation: ph-rise 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .platform-hero .ph-rise:nth-child(1) { animation-delay: 0.05s; }
  .platform-hero .ph-rise:nth-child(2) { animation-delay: 0.14s; }
  .platform-hero .ph-rise:nth-child(3) { animation-delay: 0.22s; }
  .platform-hero .ph-rise:nth-child(4) { animation-delay: 0.3s; }
  .platform-hero .ph-rise:nth-child(5) { animation-delay: 0.38s; }
  .platform-hero .ph-rise:nth-child(6) { animation-delay: 0.46s; }
  .platform-hero .ph-stage {
    opacity: 0;
    animation: ph-fade 1.2s ease forwards;
  }
  @keyframes ph-rise {
    to { opacity: 1; transform: none; }
  }
  @keyframes ph-fade {
    to { opacity: 1; }
  }
}

@media (max-width: 1079px) {
  .platform-hero {
    display: block;
    height: auto;
    min-height: 100svh;
    padding: 0 0 132px;
    overflow: hidden;
    --mkt-hero-pad-bottom: 0;
  }

  .platform-hero .ph-copy,
  .platform-hero .mkt-hero-copy-shell {
    position: relative;
    z-index: 5;
    padding-left: var(--mkt-hero-inset-x, 20px);
    padding-right: var(--mkt-hero-inset-x, 20px);
    padding-bottom: 12px;
  }

  .platform-hero .ph-grade,
  .platform-hero .mkt-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
  }

  .platform-hero .ph-col,
  .platform-hero .ph-lede,
  .platform-hero .mkt-hero-copy-col {
    max-width: none;
  }

  .platform-hero .ph-stage {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin-top: 0;
    z-index: 0;
    overflow: hidden;
  }

  .platform-hero .ph-stage::before {
    display: none;
  }

  .platform-hero .ph-fit {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: -6%;
    transform: translate(-50%, 0);
    transform-origin: center bottom;
    width: 1688px;
    height: 1024px;
  }

  .platform-hero .ph-fit > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 72%;
  }

  .platform-hero .ph-copy h1,
  .platform-hero .ph-copy .ph-headline {
    font-size: clamp(34px, 8.8vw, 44px);
    line-height: 1.02;
    margin-top: 12px;
  }

  .platform-hero .ph-lede {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 14px;
  }

  .platform-hero .ph-support {
    margin-top: 10px;
    font-size: 16px;
  }

  .platform-hero .ph-ctas {
    margin-top: 18px;
    gap: 10px 14px;
  }
}
