/* ============================================================
   NEXIGEN INDUSTRIAL — product.css
   Light-mode premium industrial product detail page
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --white:       #ffffff;
  --bg:          #f7f8fc;
  --bg-2:        #eef0f8;
  --surface:     #ffffff;
  --surface-2:   #f0f2f9;

  --ink:         #0a0f1e;
  --ink-2:       #1e2a4a;
  --ink-3:       #374151;
  --muted:       #6b7280;
  --muted-2:     #9ca3af;
  --border:      #e2e6f0;
  --border-2:    #cdd3e8;

  --blue:        #1a3cff;
  --blue-mid:    #2952ff;
  --blue-light:  #e8edff;
  --blue-dim:    rgba(26,60,255,0.08);
  --navy:        #0f2057;
  --navy-deep:   #070e2e;

  --green:       #22c55e;
  --green-light: #f0fdf4;
  --green-dim:   rgba(34,197,94,0.15);

  --font-head:   'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std:    cubic-bezier(0.4, 0, 0.2, 1);

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(10,15,30,0.06), 0 1px 2px rgba(10,15,30,0.04);
  --shadow-md:   0 4px 16px rgba(10,15,30,0.08), 0 2px 6px rgba(10,15,30,0.04);
  --shadow-lg:   0 16px 48px rgba(10,15,30,0.12), 0 4px 12px rgba(10,15,30,0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- Container ---------- */
.p-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media(max-width:768px){ .p-container{ padding: 0 20px; } }

/* ---------- Typography helpers ---------- */
.p-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.p-section-eyebrow--light { color: rgba(255,255,255,0.6); }
.p-section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.p-lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 20px;
}
.p-body-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.p-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.p-dot--white { background: rgba(255,255,255,0.6); }

/* ---------- Tags ---------- */
.p-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--ink-3);
}
.p-tag--blue {
  background: var(--blue-light);
  border-color: rgba(26,60,255,0.2);
  color: var(--blue);
}

/* ---------- Badges ---------- */
.p-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--ink-3);
  transition: all 0.25s;
}
.p-badge--green {
  background: var(--green-light);
  border-color: rgba(34,197,94,0.25);
  color: #15803d;
}

/* ---------- Reveal animations ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.p-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.25s;
}
.p-btn:hover::after { opacity: 1; }

.p-btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,60,255,0.3), 0 1px 3px rgba(26,60,255,0.2);
}
.p-btn--primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,60,255,0.35), 0 2px 6px rgba(26,60,255,0.2);
}
.p-btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-2);
}
.p-btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}
.p-btn--sm { padding: 9px 18px; font-size: 0.82rem; }
.p-btn--lg { padding: 16px 32px; font-size: 0.95rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.p-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.p-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
@media(max-width:768px){ .p-nav__inner{ padding: 0 20px; } }
.p-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.p-nav__crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.p-nav__crumb a { color: var(--muted); transition: color 0.2s; }
.p-nav__crumb a:hover { color: var(--blue); }
.p-nav__crumb svg { opacity: 0.5; }
.p-nav__crumb span { color: var(--ink-3); font-weight: 500; }
.p-nav__actions { margin-left: auto; }
/* Sub nav */
.p-nav__sub {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.p-nav__sub-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-nav__sub-inner::-webkit-scrollbar { display: none; }
.p-subnav-link {
  display: block;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  transition: color 0.25s;
  border-bottom: 2px solid transparent;
}
.p-subnav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.p-subnav-link:hover, .p-subnav-link.active { color: var(--blue); }
.p-subnav-link.active::after { transform: scaleX(1); }
@media(max-width:768px){
  .p-nav__crumb { display: none; }
  .p-nav__sub-inner { padding: 0 20px; }
}

/* ============================================================
   01 · HERO
   ============================================================ */
.p-hero {
  padding-top: 120px; /* nav height */
  min-height: 100svh;
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.p-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.p-hero__blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,60,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,60,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, rgba(0,0,0,0.5) 0%, transparent 70%);
}
.p-hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 30%, rgba(26,60,255,0.05), transparent);
}
.p-hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  width: 100%;
}
@media(max-width:900px){
  .p-hero__inner { grid-template-columns: 1fr; padding: 40px 20px 60px; }
  .p-hero__visual { order: -1; }
}
/* Copy */
.p-hero__eyebrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.p-hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--navy);
  margin-bottom: 8px;
}
.p-hero__subtitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.p-hero__desc {
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}
/* Metrics */
.p-hero__metrics {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.p-metric {
  flex: 1;
  min-width: 110px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.p-metric:last-child { border-right: none; }
.p-metric:hover { background: var(--blue-dim); }
.p-metric strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.p-metric span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
.p-metric__div { display: none; }
.p-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.p-hero__certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.p-cert {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
/* Visual frame */
.p-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.p-hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: visible;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  animation: hero-float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.p-hero__visual-frame--placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  border: 2px dashed var(--border-2);
}
.p-hero__product-img {
  display: block;
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.p-hero__product-img[src=""] {
  width: 250px;
  height: 300px;
  background: var(--border);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}
@keyframes hero-float {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}
.p-hero__svg { width: 100%; height: auto; }
/* Annotation cards */
.p-hero__ann {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  min-width: 140px;
}
.p-hero__ann::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(26,60,255,0.15);
}
.p-hero__ann strong {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.p-hero__ann span { font-size: 0.7rem; color: var(--muted); }
.p-hero__ann--1 { top: 18%; right: -10px; }
.p-hero__ann--1::before { top: 50%; left: -18px; transform: translateY(-50%); }
.p-hero__ann--2 { top: 46%; right: -20px; }
.p-hero__ann--2::before { top: 50%; left: -18px; transform: translateY(-50%); }
.p-hero__ann--3 { bottom: 18%; right: -10px; }
.p-hero__ann--3::before { top: 50%; left: -18px; transform: translateY(-50%); }
@media(max-width:900px){ .p-hero__ann { display: none; } }
/* 360 badge */
.p-hero__360 {
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
}
.p-hero__360:hover { background: var(--blue); color: white; }
/* Scroll cue */
.p-hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  animation: fade-in 1s 2s both;
  z-index: 2;
}
.p-hero__scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: bounce-dot 2s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes bounce-dot {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}
@keyframes fade-in { from{ opacity: 0; } to{ opacity: 1; } }

/* ============================================================
   02 · SPECS & TABS
   ============================================================ */
.p-specs {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0 0 80px;
}
.p-specs .p-container { max-width: 1200px; }

/* Tabs */
.p-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 60px;
  background: var(--white);
  position: sticky;
  top: 113px; /* nav height */
  z-index: 10;
}
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab {
  flex-shrink: 0;
  padding: 18px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.01em;
}
.p-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 28px; right: 28px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.p-tab:hover { color: var(--ink); }
.p-tab.active { color: var(--blue); }
.p-tab.active::after { transform: scaleX(1); }
@media(max-width:768px){
  .p-tabs { top: 112px; }
  .p-tab { padding: 14px 16px; font-size: 0.82rem; }
  .p-tab::after { left: 16px; right: 16px; }
}

/* Tab panels */
.p-tabpanel { animation: tab-in 0.35s var(--ease) both; }
.p-tabpanel[hidden] { display: none; }
@keyframes tab-in {
  from{ opacity: 0; transform: translateY(12px); }
  to  { opacity: 1; transform: translateY(0); }
}

/* Overview layout */
.p-overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
@media(max-width:900px){ .p-overview-grid{ grid-template-columns: 1fr; } }
.p-overview__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media(max-width:640px){ .p-overview__highlights{ grid-template-columns: 1fr; } }
.p-hl {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.p-hl:hover {
  background: var(--blue-dim);
  border-color: rgba(26,60,255,0.2);
}
.p-hl__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--blue);
}
.p-hl strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.p-hl span { font-size: 0.8rem; color: var(--muted); }
/* Aside card */
.p-aside-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 160px;
}
.p-aside-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.p-qr-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.p-qr-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.p-qr-list > div:last-child { border-bottom: none; }
.p-qr-list dt { color: var(--muted); flex-shrink: 0; }
.p-qr-list dd { color: var(--ink-3); font-weight: 500; text-align: right; }

/* Specs table */
.p-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media(max-width:700px){ .p-specs-grid{ grid-template-columns: 1fr; } }
.p-spec-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.p-spec-group-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 16px 24px;
  background: var(--blue-light);
  border-bottom: 1px solid rgba(26,60,255,0.1);
}
.p-spec-table { width: 100%; border-collapse: collapse; }
.p-spec-table tr { border-bottom: 1px solid var(--border); }
.p-spec-table tr:last-child { border-bottom: none; }
.p-spec-table tbody tr:hover { background: var(--bg); }
.p-spec-table thead {
  background: linear-gradient(135deg, var(--ink-3) 0%, var(--ink-2) 100%);
}
.p-spec-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: auto;
  border-bottom: none;
}
.p-spec-table thead tr { border-bottom: none; }
.p-spec-table tbody th {
  text-align: left;
  padding: 13px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  width: 45%;
}
.p-spec-table td {
  padding: 13px 16px;
  font-size: 0.85rem;
  color: var(--ink-3);
  font-weight: 500;
  text-align: left;
}

/* FAQ section */
.p-faq-layout {
  max-width: 800px;
  margin: 0 auto;
}
.p-faq-intro {
  text-align: center;
  margin-bottom: 40px;
}
.p-faq-intro .p-body-text {
  color: var(--muted);
  margin-top: 12px;
}
.p-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.p-faq-item:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.p-faq-item[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.p-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
  list-style: none;
  transition: background 0.2s ease;
}
.p-faq-question::-webkit-details-marker { display: none; }
.p-faq-question:hover {
  background: var(--bg);
}
.p-faq-question span {
  flex: 1;
}
.p-faq-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.p-faq-item[open] .p-faq-icon {
  transform: rotate(180deg);
  color: var(--blue);
}
.p-faq-answer {
  padding: 0 24px 20px 24px;
}
.p-faq-answer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Applications grid */
.p-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width:900px){ .p-apps-grid{ grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .p-apps-grid{ grid-template-columns: 1fr; } }
.p-app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s var(--ease);
}
.p-app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.p-app-card__icon {
  width: 44px; height: 44px;
  color: var(--blue);
  margin-bottom: 20px;
}
.p-app-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.p-app-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.p-app-list {
  list-style: none;
  padding: 0;
}
.p-app-list li {
  font-size: 0.8rem;
  color: var(--ink-3);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  border-top: 1px solid var(--border);
}
.p-app-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.2;
}

/* Compatibility */
.p-compat-layout { max-width: 900px; }
.p-compat-intro { margin-bottom: 40px; }
.p-compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
@media(max-width:600px){ .p-compat-grid{ grid-template-columns: 1fr; } }
.p-compat-group h3 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.p-compat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p-compat-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.p-compat-note span {
  color: var(--green);
  margin-right: 6px;
}

/* ============================================================
   03 · FEATURES
   ============================================================ */
.p-features {
  background: var(--bg);
}
.p-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 500px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.p-feature--reverse { direction: rtl; }
.p-feature--reverse > * { direction: ltr; }
@media(max-width:860px){
  .p-feature, .p-feature--reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* Feature media */
.p-feature__media {
  height: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
}
.p-feature--reverse .p-feature__media {
  border-right: none;
  border-left: 1px solid var(--border);
}
.p-feature__media--left { /* already border-right */ }
@media(max-width:860px){
  .p-feature__media, .p-feature--reverse .p-feature__media { border: none; border-bottom: 1px solid var(--border); min-height: 300px; }
}
.p-feature__img-wrap {
  position: relative;
  width: 100%; height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg-2);
}
.p-feature__img-wrap--dark {
  background: var(--navy-deep);
}
.p-feature__img-wrap--placeholder {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  border: 2px dashed var(--border-2);
}
.p-feature__img-wrap--placeholder.p-feature__img-wrap--dark {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0a1228 100%);
  border-color: rgba(26,60,255,0.3);
}
.p-feature__img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(10,15,30,0.1));
  transition: transform 0.6s var(--ease);
}
.p-feature__img[src=""] {
  width: 200px;
  height: 200px;
  background: var(--border);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}
.p-feature__media:hover .p-feature__img { transform: scale(1.02); }
.p-feature__svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(10,15,30,0.1));
  transition: transform 0.6s var(--ease);
}
.p-feature__media:hover .p-feature__svg { transform: scale(1.02); }
.p-feature__label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.p-feature__label--light {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.1);
}
/* Feature copy */
.p-feature__copy {
  padding: 60px 60px;
}
@media(max-width:1100px){ .p-feature__copy{ padding: 48px 40px; } }
@media(max-width:860px){ .p-feature__copy{ padding: 40px 20px; } }
.p-feature__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.p-feature__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.p-feature__copy p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.p-feature__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.p-feature__stats div { display: flex; flex-direction: column; gap: 2px; }
.p-feature__stats dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.p-feature__stats dd {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

/* Scroll reveal for feature sections */
[data-reveal] .p-feature__copy { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal] .p-feature__media { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].p-feature--reverse .p-feature__copy { transform: translateX(-40px); }
[data-reveal].p-feature--reverse .p-feature__media { transform: translateX(40px); }
[data-reveal].in-view .p-feature__copy,
[data-reveal].in-view .p-feature__media {
  opacity: 1;
  transform: translateX(0);
}
[data-reveal].in-view .p-feature__media { transition-delay: 0.1s; }

/* ============================================================
   04 · PERFORMANCE
   ============================================================ */
.p-performance {
  background: var(--white);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.p-perf-header { margin-bottom: 60px; }
.p-perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
@media(max-width:900px){ .p-perf-grid{ grid-template-columns: 1fr 1fr; } }
@media(max-width:500px){ .p-perf-grid{ grid-template-columns: 1fr; } }
.p-perf-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.p-perf-stat.visible { opacity: 1; transform: translateY(0); transition-delay: var(--delay); }
.p-perf-stat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.p-perf-stat__bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), rgba(26,60,255,0.4));
  transition: width 1.4s var(--ease);
  border-radius: 0 3px 0 0;
}
.p-perf-stat.visible .p-perf-stat__bar { width: var(--pct); }
.p-perf-stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}
.p-perf-stat__label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.p-perf-stat__label em {
  display: block;
  font-style: normal;
  color: var(--muted-2);
  font-size: 0.75rem;
  margin-top: 4px;
}
/* Chart */
.p-perf-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.p-perf-chart__header {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.p-chart-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.p-chart-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  border-radius: 2px;
}
.p-chart-label--blue::before { background: var(--blue); }
.p-chart-label--gray::before { background: #9ca3af; }
.p-chart-label--red::before { background: #ef4444; }
.p-chart-svg { width: 100%; height: auto; border-radius: 6px; display: block; }
.p-chart-caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ============================================================
   05 · DOWNLOADS
   ============================================================ */
.p-downloads {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 100px 0;
}
.p-dl-header { margin-bottom: 48px; }
.p-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media(max-width:800px){ .p-dl-grid{ grid-template-columns: 1fr 1fr; } }
@media(max-width:520px){ .p-dl-grid{ grid-template-columns: 1fr; } }
.p-dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.p-dl-card.visible { opacity: 1; transform: translateY(0); transition-delay: var(--delay,0s); }
.p-dl-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.p-dl-card:hover::before { transform: scaleY(1); }
.p-dl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
  transform: translateY(-2px) !important;
}
.p-dl-card__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.p-dl-card__icon--green { color: var(--green); background: var(--green-light); }
.p-dl-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.p-dl-card__body strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-dl-card__body span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-dl-card__body em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.p-dl-card__arrow {
  flex-shrink: 0;
  color: var(--blue);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s var(--ease);
}
.p-dl-card:hover .p-dl-card__arrow { opacity: 1; transform: translateY(0); }

/* ============================================================
   06 · CTA / FORM
   ============================================================ */
.p-cta {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.p-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.p-cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.p-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media(max-width:860px){ .p-cta__inner{ grid-template-columns: 1fr; gap: 48px; } }
/* CTA Copy */
.p-cta__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
}
.p-cta__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 32px;
}
.p-cta__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-cta__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.p-cta__feature svg { color: var(--green); flex-shrink: 0; }
/* Form */
.p-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
@media(max-width:500px){ .p-form{ padding: 24px; } }
.p-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width:600px){ .p-form__row{ grid-template-columns: 1fr; } }
.p-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.p-form__group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.p-form__group label span { color: var(--blue); margin-left: 2px; }
.p-form__group input,
.p-form__group select,
.p-form__group textarea {
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.p-form__group input::placeholder,
.p-form__group textarea::placeholder { color: var(--muted-2); }
.p-form__group input:focus,
.p-form__group select:focus,
.p-form__group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,60,255,0.1);
  background: var(--white);
}
.p-form__group select { appearance: none; cursor: pointer; }
.p-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.p-form__check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.p-form__check label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.p-form__check label a { color: var(--blue); text-decoration: underline; }
.p-form__submit { width: 100%; justify-content: center; }
.p-form__note {
  font-size: 0.82rem;
  color: #15803d;
  background: var(--green-light);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
  text-align: center;
}
.p-form__note[hidden] { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.p-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.p-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.p-footer__copy { font-size: 0.8rem; color: var(--muted); }
.p-footer__links {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
}
.p-footer__links a { color: var(--muted); transition: color 0.2s; }
.p-footer__links a:hover { color: var(--blue); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,32,87,0.85);
  backdrop-filter: blur(6px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

dialog.info-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(680px, 94vw);
  max-height: 82vh;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 0 60px rgba(26,60,255,0.05);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 501;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin: 0 !important;
  /* inset: unset !important; */
}
dialog.info-modal[open] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
dialog.info-modal::backdrop { 
  display: none !important;
  background: transparent !important;
}

.info-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.info-modal__header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.info-modal__header h2 svg { color: var(--blue); flex-shrink: 0; }
.info-modal__close {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.info-modal__close:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-2);
}

.info-modal__body {
  overflow-y: auto;
  padding: 28px 28px 32px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,60,255,0.2) transparent;
}
.info-modal__body::-webkit-scrollbar { width: 4px; }
.info-modal__body::-webkit-scrollbar-track { background: transparent; }
.info-modal__body::-webkit-scrollbar-thumb { background: rgba(26,60,255,0.2); border-radius: 4px; }

.info-modal__date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.info-modal__body h3 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 24px 0 10px;
}
.info-modal__body h3:first-of-type { margin-top: 0; }
.info-modal__body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.info-modal__body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 8px;
}
.info-modal__body ul li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.info-modal__body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.5;
}

/* Cookie table */
.cookie-table { margin: 12px 0 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cookie-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 2fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.cookie-row:last-child { border-bottom: none; }
.cookie-row--head {
  background: var(--bg);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cookie-row span { padding: 10px 14px; color: var(--muted); }
.cookie-row--head span { color: var(--ink-3); }
.cookie-row code { font-family: monospace; font-size: 0.76rem; color: var(--blue); }

.c-badge-green { color: #22c55e !important; font-weight: 600; }
.c-badge-blue  { color: var(--blue) !important; font-weight: 600; }
.c-badge-amber { color: #f59e0b !important; font-weight: 600; }

.cookie-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}

/* Buttons for modal */
.btn { 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: #1432cc; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--ink-3);
}
.btn--ghost:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
