/* ============================================================
   PRODUCT PAGE SHARED STYLES — NNR Global Technologies
   ============================================================ */

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 320px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(14, 165, 233, 0.08);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 500;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.97);
  border-left: 1px solid rgba(14, 165, 233, 0.2);
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.18s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(14, 165, 233, 0.07);
}

.dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-primary);
  transition: background 0.18s ease;
}

.dropdown-item:hover .dropdown-icon,
.dropdown-item.active .dropdown-icon {
  background: rgba(14, 165, 233, 0.15);
}

.dropdown-icon i, .dropdown-icon svg { width: 17px; height: 17px; }

.dropdown-item-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.dropdown-item-desc {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== PRODUCT HERO ===== */
.product-hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.product-hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.trading-glow {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4), rgba(2, 132, 199, 0.15));
  top: -200px;
  right: -100px;
}

.operations-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.12));
  top: -200px;
  right: -100px;
}

.accelerator-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), rgba(109, 40, 217, 0.12));
  top: -200px;
  right: -100px;
}

.product-hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: var(--cyan-soft-bg);
  border: 1px solid var(--cyan-border);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.product-hero-badge i { width: 14px; height: 14px; }

.ops-badge { color: #059669; background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); }
.acc-badge { color: #7C3AED; background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.25); }

.product-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.product-hero-desc {
  font-size: 17px;
  color: var(--text-slate);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.product-hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.product-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ph-stat { text-align: center; }
.ph-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.ph-stat-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.ph-stat-divider { width: 1px; height: 36px; background: var(--cyan-border); }

/* Hero Visuals */
.product-hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Trading Visual */
.visual-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

.visual-metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visual-metric-card:hover { transform: translateY(-4px); }

.vc-1 { transform: translateX(-12px); }
.vc-3 { transform: translateX(12px); }

.vc-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.vc-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vc-trend { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.vc-trend i { width: 14px; height: 14px; }
.vc-trend.up { color: #059669; }
.vc-trend.down { color: #059669; }
.vc-trend.neutral { color: var(--blue-primary); }

/* Operations Visual */
.visual-workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 300px;
}

.workflow-step {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(14, 165, 233, 0.18);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.ws-icon { display: flex; align-items: center; }
.ws-icon i { width: 20px; height: 20px; color: var(--blue-primary); }
.ws-label { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.ws-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: 50px; padding: 3px 10px; width: fit-content; }
.ws-status i { width: 12px; height: 12px; }
.ws-status.done { background: rgba(5, 150, 105, 0.1); color: #059669; }
.ws-status.active { background: rgba(14, 165, 233, 0.1); color: var(--blue-primary); }
.ws-status.pending { background: rgba(245, 158, 11, 0.1); color: #D97706; }

.workflow-arrow { color: var(--text-muted); padding: 4px 0; }
.workflow-arrow i { width: 18px; height: 18px; }

/* Accelerator Visual */
.visual-code-block {
  width: 100%;
  max-width: 400px;
  background: #0F1729;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-dot.red { background: #FF5F56; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #27C93F; }
.code-title { font-size: 12px; color: rgba(255,255,255,0.4); margin-left: 8px; font-family: monospace; }

.code-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #E2E8F0;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  white-space: pre-wrap;
}
.code-keyword { color: #7DD3FC; }
.code-string { color: #86EFAC; }
.code-fn { color: #FCD34D; }
.code-comment { color: #64748B; }

/* ===== CAPABILITIES SECTION ===== */
.product-capabilities { padding: var(--section-pad); position: relative; z-index: 2; }

.capabilities-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cap-card {
  padding: 30px 24px;
  transition: var(--transition);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cyan-soft-bg);
  border: 1px solid var(--cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--transition-fast);
  color: var(--blue-primary);
}

.ops-icon { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); color: #059669; }
.acc-icon { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.25); color: #7C3AED; }

.cap-icon i { width: 22px; height: 22px; }

.cap-card:hover .cap-icon {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--blue-primary);
  transform: scale(1.06);
}

.cap-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.cap-card p {
  font-size: 14px;
  color: var(--text-slate);
  line-height: 1.65;
}

/* ===== VALUE SECTION ===== */
.product-value-section {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

.product-value-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.pv-left .section-tag { margin-bottom: 16px; }
.pv-left .section-title { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 18px; }

.pv-desc {
  font-size: 16px;
  color: var(--text-slate);
  line-height: 1.75;
  margin-bottom: 28px;
}

.pv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.pv-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-slate);
  line-height: 1.5;
}

.pv-list li i { width: 18px; height: 18px; color: #059669; flex-shrink: 0; margin-top: 2px; }

/* Metrics Panel */
.pv-metrics-panel {
  padding: 32px;
}

.pvm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
}

.pvm-stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.pvm-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  white-space: nowrap;
  min-width: 104px;
  flex-shrink: 0;
}

.pvm-stat-label {
  font-size: 13px;
  color: var(--text-slate);
  line-height: 1.5;
}

.pvm-divider {
  height: 1px;
  background: rgba(14, 165, 233, 0.1);
  margin: 18px 0;
}

.pvm-pilot-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-slate);
  line-height: 1.55;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pvm-pilot-note i { width: 16px; height: 16px; color: var(--blue-primary); flex-shrink: 0; margin-top: 1px; }

/* ===== HOW IT WORKS ===== */
.product-how-section {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-step-num {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.4;
}

.how-step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.how-step-content p {
  font-size: 14px;
  color: var(--text-slate);
  line-height: 1.65;
}

.how-step-arrow {
  padding: 0 16px;
  padding-top: 12px;
  color: var(--cyan-border);
  flex-shrink: 0;
}

.how-step-arrow i { width: 24px; height: 24px; }

/* ===== PRODUCT CTA SECTION ===== */
.product-cta-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.product-cta-card {
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(2, 132, 199, 0.04) 100%) !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

.product-cta-card:hover {
  transform: none !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(2, 132, 199, 0.07) 100%) !important;
}

.product-cta-content h2 {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-cta-content p {
  font-size: 15px;
  color: var(--text-slate);
}

.product-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .capabilities-4-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .product-hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .product-hero-right { display: flex; justify-content: center; }
  .product-hero-ctas { justify-content: center; }
  .product-hero-stats { justify-content: center; }
  .vc-1, .vc-3 { transform: none; }
  .product-value-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-steps { flex-direction: column; gap: 24px; }
  .how-step-arrow { display: none; }
  .product-cta-card { flex-direction: column; text-align: center; }
  .product-cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .product-hero { padding: 110px 0 60px; }
  .capabilities-4-grid { grid-template-columns: 1fr; }
  /* Inside the full-screen mobile menu the dropdown expands inline */
  .nav-dropdown { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .nav-dropdown-trigger { justify-content: center; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: 340px;
    margin: 4px auto 8px;
    transform: none;
    opacity: 1;
    pointer-events: all;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; transform: none; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu .dropdown-item:hover,
  .nav-dropdown-menu .dropdown-item.active { background: rgba(255, 255, 255, 0.14); }
  .nav-dropdown-menu .dropdown-icon { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
  .nav-dropdown-menu .dropdown-item-title { color: var(--white); }
  .nav-dropdown-menu .dropdown-item-desc { color: #E0F2FE; }
  .product-cta-card { padding: 32px 24px; }
  .visual-card-stack, .visual-workflow, .visual-code-block { max-width: 100%; }
  .product-hero-stats { gap: 16px 20px; }
  .ph-stat-divider { display: none; }
}

@media (max-width: 480px) {
  .product-hero-title { font-size: clamp(28px, 9vw, 38px); }
  .pv-metrics-panel { padding: 24px; }
  .pvm-stat-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pvm-stat-num { font-size: 22px; }
}
