/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1d23;
  --scroll-bg: #1f2329;
  --surface: #21262f;
  --surface-2: #282e38;
  --border: #2e3440;
  --border-2: #3b4252;
  --text: #eceff4;
  --text-muted: #8b97b0;
  --accent: #5e81f4;
  --accent-glow: rgba(94, 129, 244, 0.25);
  --cyan: #88c0d0;
  --cyan-glow: rgba(136, 192, 208, 0.2);
  --green: #a3be8c;
  --yellow: #ebcb8b;
  --red: #bf616a;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: 0.2s ease;
}

* {
  scrollbar-color: var(--surface) var(--bg);
  scrollbar-width: thin;
  box-sizing: border-box;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Shared Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #7291f6;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  height: 80px;
  z-index: 100;
  background: rgba(26, 29, 35, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text);
}

.logo-n {
  width: 64px;
  height: 64px;
  margin-right: -3px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  line-height: 1;
  padding-top: 3px;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.nav-dropdown>a:hover {
  color: var(--text);
}

.nav-company-tab-width {
  display: flex;
  width: 100% !important;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 102;
  gap: 28px;
}

.nav-dropdown.nav-dropdown-open .nav-dropdown-menu {
  display: inline-block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-dropdown-menu a:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-dropdown-menu a:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav-wrap {
  display: block;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav-wrap {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(26, 29, 35, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 99;
  }

  .header-nav-wrap.nav-open {
    display: block;
  }

  .header-nav {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .header-nav a {
    width: 100%;
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .header-nav a:last-child {
    border-bottom: none;
    width: 100%;
  }

  .nav-dropdown>a {
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 100%;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-dropdown.nav-dropdown-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    width: 100%;
    padding: 8px 0 8px 16px;
    font-size: 1rem;
  }

  .nav-dropdown-menu a:first-child,
  .nav-dropdown-menu a:last-child {
    border-radius: 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 90px 24px 32px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(94, 129, 244, 0.12);
  border: 1px solid rgba(94, 129, 244, 0.35);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  font-size: 0.95rem;
  padding: 13px 32px;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  scroll-margin-top: 120px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 99px;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.results-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.product-grid {
  margin: auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(94, 129, 244, 0.2);
}

/* Full-card anchor — the entire card is the click target */
.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Play badge bottom-left of thumbnail */
.card-play-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* 3D View badge bottom-left of thumbnail */
.card-badge-3d {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Gallery badge bottom-right of thumbnail */
.card-badge-gallery {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.product-card:hover .card-image-placeholder {
  transform: scale(1.04);
}

/* Placeholder if no image */
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2) 0%, #1e2430 100%);
  transition: transform 0.4s ease;
}

.card-image-placeholder svg {
  opacity: 0.18;
}

/* Type badge top-left */
.card-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  z-index: 2;
}

.badge--model {
  background: rgba(94, 129, 244, 0.85);
  color: #fff;
}

.badge--addon {
  background: rgba(136, 192, 208, 0.85);
  color: #1a1d23;
}

/* Price badge top-right */
.card-price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.price--free {
  background: rgba(163, 190, 140, 0.9);
  color: #1a1d23;
}

.price--paid {
  background: rgba(235, 203, 139, 0.9);
  color: #1a1d23;
}

/* Card body */
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.card-footer .btn {
  pointer-events: none;
  /* card-link handles the click */
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 24px;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* ---- Card entrance animation ---- */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: cardFadeIn 0.28s ease both;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  max-width: 1200px;
  height: 80px;
  border-top: 1px solid var(--border);
  text-align: left;
  padding: 28px 24px;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--yellow);
  font-weight: 600;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .header-nav {
    gap: 0;
  }

  .hero {
    padding: 60px 20px 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .filter-section, .grid-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================================
   PRODUCT PAGE  (product.html)
   ============================================================ */
.product-root {
  max-width: 1100px;
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
}

/* Back link */
.pp-back {
  margin-bottom: 28px;
  flex-shrink: 0;
}


.pp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.pp-back-link:hover {
  color: var(--text);
}

/* Two-column layout: video left, info panel right */
.pp-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* ---- Left: video / image ---- */
.pp-left {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e1016;
  border: 1px solid var(--border);
}

.pp-embed-wrap {
  position: relative;
  width: 100%;
  background: #000;
}

/* When only the iframe is showing, keep the 16/9 aspect */
.pp-embed-wrap:not(:has(.pp-gallery-panel:not([hidden]))) {
  aspect-ratio: 16 / 9;
}

.pp-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* iframe hidden state — still needs to occupy space so wrap keeps ratio */
.pp-embed-wrap iframe[hidden] {
  display: none;
}

.pp-hero-img {
  width: 100%;
  display: block;
}

.pp-hero-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2) 0%, #1e2430 100%);
}

.pp-hero-placeholder .card-image-placeholder {
  width: 100%;
  height: 100%;
}

.pp-video-label {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

/* Video tab strip */
.pp-video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.pp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pp-tab:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

.pp-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- Right: sticky info panel ---- */
.pp-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
}

.pp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* card-type-badge is normally position:absolute inside a card —
   override it to be static when used on the product page */
.pp-badges .card-type-badge,
.pp-category-badge {
  position: static;
  display: inline-block;
}

.pp-category-badge {
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(139, 151, 176, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border-2);
}

.pp-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.pp-price-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pp-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pp-price--free {
  color: var(--green);
}

.pp-price--paid {
  color: var(--yellow);
}

.pp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* Not-found state */
.pp-not-found {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .pp-layout {
    grid-template-columns: 1fr;
  }

  .pp-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .product-root {
    padding: 20px 16px 60px;
  }
}

/* ============================================================
   ADDON PAGE TOOL SECTIONS
   ============================================================ */

.pp-tools {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pp-tool {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
}

.pp-tool-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: block;
}

.pp-tool-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-tool-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pp-tool-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pp-tool {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
    ADDON PAGE — COMING SOON OVERLAY
    ============================================================ */

.pp-coming-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 29, 35, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

.pp-coming-soon-overlay h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pp-coming-soon-overlay p {
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.6;
}

.pp-coming-soon-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(235, 203, 139, 0.15);
  border: 1px solid rgba(235, 203, 139, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.pp-disabled .pp-tab {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pp-disabled .pp-embed-wrap {
  opacity: 0.3;
  pointer-events: none;
}

.pp-disabled .pp-tools {
  opacity: 0.4;
  pointer-events: none;
}

.pp-disabled .pp-actions .btn {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* ================================================================
    PRODUCT SPEC PANEL  (formats + texture maps — under gallery)
    ================================================================ */

.pp-specs {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-auto-rows: min-content;
  column-gap: 32px;
  row-gap: 24px;
  padding: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  align-items: start;
}

/* Texture Maps — second group — spans both rows on the right column */
.pp-spec-group:nth-child(2) {
  grid-row: span 2;
  grid-column: 2;
  align-self: center;
}

/* Left column stacks Formats (1st) and Map Sizes (3rd) */
.pp-spec-group:nth-child(3) {
  grid-column: 1;
}

.pp-spec-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-spec-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pp-spec-heading svg {
  color: var(--accent);
  flex: none;
}

.pp-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pp-spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .pp-specs {
    grid-template-columns: 1fr;
    column-gap: 20px;
    row-gap: 20px;
  }

  .pp-spec-group:nth-child(2),
  .pp-spec-group:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
}

/* ================================================================
   IMAGE GALLERY  (pp-gallery — inside .pp-left)
   ================================================================ */

.pp-gallery-panel {
  background: var(--bg);
}

/* Stage: main image + arrow buttons */
.pp-gallery-stage {
  position: relative;
  width: 100%;
}

.pp-gallery-track-wrap {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.pp-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pp-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pp-gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.pp-gallery-slide.leaving {
  opacity: 0;
}

.pp-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / Next arrow buttons */
.pp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: rgba(14, 16, 22, 0.72);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}

.pp-gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pp-gallery-arrow--prev {
  left: 12px;
}

.pp-gallery-arrow--next {
  right: 12px;
}

/* Fullscreen toggle button — top-right of gallery stage */
.pp-gallery-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid var(--border-2);
  background: rgba(14, 16, 22, 0.72);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}

.pp-gallery-fullscreen:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pp-gallery-fullscreen.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Fullscreen overlay — applied to .pp-embed-wrap or .pp-gallery-panel */
.pp-gallery-fs {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: #000;
  display: block;
}

.pp-gallery-fs .pp-gallery-panel {
  width: 100%;
  height: 100%;
}

.pp-gallery-fs .pp-gallery-stage {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

.pp-gallery-fs .pp-gallery-track-wrap {
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
}

.pp-gallery-fs .pp-gallery-track {
  width: 100%;
  height: 100%;
}

.pp-gallery-fs .pp-gallery-slide img {
  object-fit: contain;
}

.pp-gallery-fs .pp-gallery-arrow {
  width: 44px;
  height: 44px;
}

.pp-gallery-fs .pp-gallery-arrow--prev {
  left: 20px;
}

.pp-gallery-fs .pp-gallery-arrow--next {
  right: 20px;
}

@media (max-width: 640px) {
  .pp-gallery-arrow {
    width: 30px;
    height: 30px;
  }

  .pp-gallery-fs .pp-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .pp-gallery-fs .pp-gallery-arrow--prev {
    left: 10px;
  }

  .pp-gallery-fs .pp-gallery-arrow--next {
    right: 10px;
  }
}

.about-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 80px;
}

.about-hero {
  text-align: center;
  margin-bottom: 60px;
}

.about-hero .hero-badge {
  margin-bottom: 20px;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.about-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.about-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .about-main {
    padding: 60px 16px 60px;
  }

  .about-hero {
    margin-bottom: 40px;
  }
}


/* Contact Form */
.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.contact-hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 80px;
  background:
    linear-gradient(135deg, rgba(94, 129, 244, 0.08) 0%, rgba(136, 192, 208, 0.06) 50%, rgba(94, 129, 244, 0.03) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(94, 129, 244, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(136, 192, 208, 0.08) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(94, 129, 244, 0.04) 39px, rgba(94, 129, 244, 0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(94, 129, 244, 0.04) 39px, rgba(94, 129, 244, 0.04) 40px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.contact-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94, 129, 244, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero>* {
  position: relative;
  z-index: 1;
}

.contact-hero .hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(94, 129, 244, 0.12);
  border: 1px solid rgba(94, 129, 244, 0.35);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.contact-form-wrap {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5a6578;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b97b0' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  border: none;
  background: var(--accent);
  color: #fff;
  align-self: flex-start;
  white-space: nowrap;
}

.btn-submit:hover {
  background: #7291f6;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(163, 190, 140, 0.1);
  border: 1px solid rgba(163, 190, 140, 0.35);
  border-radius: var(--radius-md);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 8px;
}

.form-success svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 60px 20px 50px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 0 16px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}