/* ================================================================
   PRODUCT PAGE  –  Product.css
   Sections: .ph (hero) · .pf (flow) · .pt (types) · .pa (analysis) · .pc (cta)
   ================================================================ */

/* ── Reset helpers ── */
.ph, .pf, .pt, .pa, .pc { box-sizing: border-box; }
.ph *, .pf *, .pt *, .pa *, .pc * { box-sizing: inherit; }


/* ════════════════════════════════════════════════
   HERO  (.ph)
   ════════════════════════════════════════════════ */
.ph {
  position: relative;
  overflow: hidden;
  background: #0d1625;
  padding: 6rem 2rem 5rem;
  color: #fff;
}

/* hex-grid background */
.ph-hex-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  pointer-events: none;
  opacity: .04;
}
.ph-hex {
  aspect-ratio: 1;
  background:
    conic-gradient(from 30deg, transparent 60deg, rgba(250,170,24,.6) 60deg 120deg, transparent 120deg) top/100% 50% no-repeat,
    conic-gradient(from 210deg, transparent 60deg, rgba(250,170,24,.6) 60deg 120deg, transparent 120deg) bottom/100% 50% no-repeat;
}

/* warm glow */
.ph::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(250,170,24,.12) 0%, transparent 65%);
  pointer-events: none;
}

.ph-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* eyebrow */
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(250,170,24,.12);
  color: #faaa18;
  border: 1px solid rgba(250,170,24,.25);
  border-radius: 99px;
  padding: .3rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.ph-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -.01em;
}

.ph-text p {
  font-size: .97rem;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 0 2rem;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.35rem;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.ph-btn:hover { transform: translateY(-2px); }

.ph-btn-primary {
  background: #faaa18;
  color: #0d1625;
}
.ph-btn-primary:hover { background: #ffc93c; }

.ph-btn-ghost {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.15);
}
.ph-btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* Stats column */
.ph-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ph-stat {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  transition: border-color .2s, background .2s;
}
.ph-stat:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(250,170,24,.35);
}

.ph-stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(250,170,24,.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #faaa18;
  margin-bottom: .2rem;
}

.ph-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #faaa18;
  line-height: 1;
  letter-spacing: -.02em;
}

.ph-stat-lbl {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}


/* ════════════════════════════════════════════════
   PROCESS FLOW  (.pf)
   ════════════════════════════════════════════════ */
.pf {
  background: #fff;
  padding: 3.5rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.pf-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.pf-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: .5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: inherit;
}
.pf-step:hover .pf-icon { background: linear-gradient(135deg, #faaa18 0%, #e08800 100%); }
.pf-step:hover .pf-icon svg { color: #0d1625; }

.pf-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto .75rem;
  background: linear-gradient(135deg, #0d1625 0%, #1a2e4a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #faaa18;
  box-shadow: 0 4px 16px rgba(13,22,37,.25);
}

.pf-num {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  color: #faaa18;
  letter-spacing: .1em;
  margin-bottom: .35rem;
}

.pf-step h3 {
  font-size: .9rem;
  font-weight: 700;
  color: #1a2340;
  margin: 0 0 .35rem;
}

.pf-step p {
  font-size: .75rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.pf-arrow {
  flex-shrink: 0;
  padding: 0 .25rem;
  padding-top: 70px;
  opacity: .7;
}


/* ════════════════════════════════════════════════
   PRODUCT TYPES  (.pt)
   ════════════════════════════════════════════════ */
.pt {
  background: #f8f9fb;
  padding: 4.5rem 2rem;
}

.pt-container {
  max-width: 1140px;
  margin: 0 auto;
}

.pt-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pt-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #0d1625;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.pt-header p {
  font-size: .88rem;
  color: #6b7280;
  margin: 0;
}

/* Tabs */
.pt-tab-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.pt-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 99px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: .84rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer !important;
  transition: all .2s;
}
.pt-tab:hover {
  border-color: #faaa18;
  color: #0d1625;
}
.pt-tab.active {
  background: #0d1625;
  border-color: #0d1625;
  color: #faaa18;
}
.pt-tab.active svg { stroke: #faaa18; }

.pt-pane { display: none; }
.pt-pane.active { display: block; }

.pt-pane-desc {
  font-size: .8rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Table */
.pt-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e9eaec;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  background: #fff;
}

.pt-table thead tr {
  background: #0d1625;
}
.pt-table th {
  padding: .9rem 1.1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  border: none;
}
.pt-table th:first-child { border-radius: 12px 0 0 0; }
.pt-table th:last-child  { border-radius: 0 12px 0 0; }

.pt-table tbody tr:nth-child(even) { background: #f8f9fb; }
.pt-table tbody tr:hover { background: #fff8e7; }

.pt-table td {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid #f0f1f3;
  color: #374151;
  vertical-align: top;
  line-height: 1.7;
}
.pt-table tbody tr:last-child td { border-bottom: none; }

.pt-table td code {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  color: #1a2340;
  background: #eef0f4;
  border-radius: 5px;
  padding: .1rem .4rem;
  margin: .1rem .1rem 0 0;
}

/* Badges */
.pt-badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pt-badge.coking  { background: #dbeafe; color: #1e40af; }
.pt-badge.semi    { background: #fef3c7; color: #92400e; }
.pt-badge.thermal { background: #d1fae5; color: #065f46; }


/* ════════════════════════════════════════════════
   ANALYSIS ACCORDION  (.pa)
   ════════════════════════════════════════════════ */
.pa {
  background: linear-gradient(160deg, #0d1625 0%, #0a1e0a 100%);
  padding: 5rem 2rem;
}

.pa-container {
  max-width: 900px;
  margin: 0 auto;
}

.pa-header {
  text-align: center;
  margin-bottom: 3rem;
}
.pa-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.pa-header p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}

/* List */
.pa-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pa-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s;
}
.pa-item:hover { border-color: rgba(250,170,24,.3); }
.pa-item.open  { border-color: rgba(250,170,24,.45); background: rgba(255,255,255,.06); }

/* Head */
.pa-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer !important;
  text-align: left;
}

.pa-code {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,170,24,.12);
  color: #faaa18;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .03em;
  transition: background .2s;
}
.pa-item.open .pa-code { background: rgba(250,170,24,.22); }

.pa-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.pa-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.pa-subtitle {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

.pa-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,.3);
  transition: transform .3s cubic-bezier(.4,0,.2,1), color .2s;
}
.pa-item.open .pa-chevron {
  transform: rotate(180deg);
  color: #faaa18;
}

/* Body — smooth max-height */
.pa-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  padding: 0 1.25rem 0 calc(1.25rem + 44px + 1rem);
}

/* extra padding when open (via JS sets max-height, we add padding-bottom) */
.pa-item.open .pa-body {
  padding-bottom: 1.25rem;
}

.pa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-bottom: .85rem;
}
.pa-tags span {
  font-size: .75rem;
  color: #faaa18;
  background: rgba(250,170,24,.1);
  border: 1px solid rgba(250,170,24,.2);
  border-radius: 99px;
  padding: .18rem .65rem;
}

.pa-body p {
  font-size: .84rem;
  line-height: 1.8;
  color: rgba(255,255,255,.65);
  margin: 0;
}


/* ════════════════════════════════════════════════
   CTA  (.pc)
   ════════════════════════════════════════════════ */
.pc {
  background: #faaa18;
  padding: 4rem 2rem;
  text-align: center;
}

.pc-inner {
  max-width: 640px;
  margin: 0 auto;
}

.pc-inner h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0d1625;
  margin: 0 0 .65rem;
  letter-spacing: -.01em;
}

.pc-inner p {
  font-size: .9rem;
  color: rgba(13,22,37,.65);
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #0d1625;
  color: #faaa18;
  font-weight: 700;
  font-size: .85rem;
  padding: .75rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.pc-btn:hover {
  background: #1a2e4a;
  transform: translateY(-2px);
}


/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .ph-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ph-stats  { grid-template-columns: repeat(4, 1fr); }
  .ph-stat   { padding: 1rem; }
}

/* Tablet portrait ≤ 768px */
@media (max-width: 768px) {
  .ph { padding: 4rem 1.25rem 3.5rem; }
  .ph-text h1 { font-size: 2rem; }
  .ph-text p  { max-width: 100%; }
  .ph-stats   { grid-template-columns: repeat(2, 1fr); }

  .pf { padding: 2.5rem 1.25rem; }
  .pf-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem;
  }
  .pf-step  { max-width: none !important; width: 100%; }
  .pf-arrow { display: none; }

  .pt { padding: 3rem 1.25rem; }
  .pt-tab { padding: .55rem 1rem; font-size: .8rem; }
  .pt-table th, .pt-table td { padding: .7rem .85rem; font-size: .78rem; }

  .pa { padding: 3rem 1.25rem; }
  .pa-body { padding-left: 1.25rem; }

  .pc { padding: 3rem 1.25rem; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .ph-stats { grid-template-columns: 1fr 1fr; }
  .ph-stat-num { font-size: 1.4rem; }

  .pf-step { max-width: 140px; }
  .pf-icon { width: 46px; height: 46px; border-radius: 12px; }

  .pt-tab-row { gap: .4rem; }
  .pt-tab { font-size: .75rem; padding: .5rem .9rem; }

  .pa-head { padding: .85rem 1rem; }
  .pa-code { width: 38px; height: 38px; font-size: .75rem; }
  .pa-title { font-size: .83rem; }
  .pa-subtitle { display: none; }
}
