/* OPHION Protocol — Product + Agents sections */

/* ============ PRODUCT ============ */
.product-section { padding: 120px 0 96px; }

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.product-pill { margin-bottom: 28px; }
.product-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
.product-heading { max-width: 620px; }
.product-caption {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-65);
  max-width: 260px;
  text-align: right;
  margin: 0;
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 32px;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  background: transparent;
  border: none;
  color: var(--ink-40);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  padding: 10px 0 14px;
  white-space: nowrap;
  position: relative;
  transition: color .2s ease;
}
.product-tab:hover { color: var(--ink-80); }
.product-tab.is-active {
  color: var(--ink);
  font-weight: 500;
}
.product-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-bright);
}

.product-frame {
  position: relative;
  border-radius: var(--radius-lg);
}
.product-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(60% 70% at 50% 100%, rgba(122, 63, 242, 0.3), rgba(122, 63, 242, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.product-panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 40px 100px -30px rgba(122, 63, 242, 0.28);
}
.product-screen {
  display: none;
  width: 100%;
  height: auto;
}
.product-screen.is-active { display: block; }

.product-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.product-footnote-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-80);
  text-align: center;
  max-width: 460px;
  margin: 0;
}
.product-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s ease, background .2s ease;
}
.product-arrow:hover { border-color: var(--ink-65); background: rgba(255,255,255,0.08); }

/* ============ AGENTS ============ */
.agents-section { padding: 96px 0; }

.agents-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
.agents-heading { margin: 28px 0 16px; max-width: 700px; }
.agents-sub { margin: 0 0 48px; }

.agents-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.agents-track::-webkit-scrollbar { display: none; }

.agents-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
}
.agents-card-art {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.agents-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agents-card-body {
  padding: 24px;
}
.agents-card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.agents-card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-65);
  margin: 0;
}

.agents-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.agents-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s ease, background .2s ease;
}
.agents-arrow:hover { border-color: var(--ink-65); background: rgba(255,255,255,0.08); }
.agents-track-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
}
.agents-track-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 33.33%;
  background: var(--ink-65);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .product-section { padding: 80px 0 64px; }
  .product-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  .product-caption { text-align: left; max-width: none; }
  .product-tabs { gap: 32px; }
  .product-tab { font-size: 16px; }

  .agents-section { padding: 64px 0; }
  .agents-heading { margin-top: 20px; }
  .agents-card { flex: 0 0 calc((100% - 24px) / 1.2); }
}

@media (max-width: 390px) {
  .product-footnote { flex-direction: column; gap: 16px; }
  .product-footnote-text { max-width: none; order: -1; }
  .agents-card { flex: 0 0 83.33%; }
  .agents-card-body { padding: 20px; }
}

/* mobile: product tabs need a real tap target (was 35px wide) */
@media (max-width: 768px) {
  .product-tab { min-width: 64px; min-height: 44px; padding: 10px 14px; }
  .product-tabs { gap: 6px; }
}
