/* Shared product-page layout, with per-product identity via [data-product] */

.product-header {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.product-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-soft);
  transition: color var(--dur-s) var(--ease);
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }

.product-hero { padding-block: clamp(48px, 8vw, 104px); }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 6vw, 68px);
  align-items: center;
}
@media (max-width: 940px) { .product-hero-grid { grid-template-columns: 1fr; } }
.product-tagline { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 6px; letter-spacing: -0.03em; }
.product-hero .section-sub { font-size: 1.12rem; }

.product-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.product-badge {
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--p-accent, var(--am-300));
  background: var(--surface);
}
.product-hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Device mockup: browser-style frame, product-tinted */
.device-mock {
  border-radius: var(--radius-l);
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-mock-bar {
  position: absolute;
  top: 0; inset-inline: 0;
  height: 36px;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 16px;
  z-index: 2;
}
.device-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.device-mock-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3);
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 7px 15px;
}

.what-is-block { max-width: 68ch; }
.what-is-block p { font-size: 1.14rem; color: var(--text-soft); margin-top: 8px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 940px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--surface);
  transition: border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--p-dim, rgba(168,85,247,0.16));
  color: var(--p-accent, var(--am-300));
  border: 1px solid var(--line);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-size: 1.06rem; margin-bottom: 8px; }
.feature-desc { font-size: 0.94rem; color: var(--text-soft); }

/* Gallery: deliberately uneven layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery-item { border-radius: var(--radius-m); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 3; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(n+2) { grid-column: span 1; }
}

.platform-row { display: flex; gap: 12px; flex-wrap: wrap; }
.platform-row .product-badge { font-size: 0.85rem; padding: 11px 20px; }

.final-cta {
  border-radius: var(--radius-l);
  margin-inline: var(--gutter);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 60px);
  text-align: center;
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.final-cta h2 { font-size: clamp(1.95rem, 4.2vw, 2.7rem); position: relative; z-index: 1; }
.final-cta p { margin-top: 14px; color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
.final-cta .btn { margin-top: 30px; position: relative; z-index: 1; }

/* =========================================================
   Product identities
   Each product keeps its own hue inside the studio system.
   ========================================================= */

/* Money Wings: Tyrian glass, winged coin, aqua-teal on deep green */
[data-product="money-wings"] { --p-accent: var(--mw); --p-dim: rgba(63,216,182,0.14); }
[data-product="money-wings"] .device-mock {
  background: linear-gradient(160deg, #04302A, #0C7C6B 62%, #3FD8B6);
}
[data-product="money-wings"] .device-mock::after {
  content: "";
  position: absolute;
  inset: 26% 18% auto;
  height: 46%;
  border-radius: 22px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
[data-product="money-wings"] .final-cta {
  background: linear-gradient(150deg, #04302A, #0C7C6B 60%, #1E9E86);
}

/* Cubetide: futuristic planning, amethyst core with orbit rings */
[data-product="cubetide"] { --p-accent: var(--am-300); --p-dim: rgba(168,85,247,0.18); }
[data-product="cubetide"] .device-mock {
  background: linear-gradient(160deg, #1B0833, #6B21A8 58%, #A855F7);
}
[data-product="cubetide"] .device-mock::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: radial-gradient(circle at 34% 32%, rgba(255,255,255,0.42), transparent 62%);
}
[data-product="cubetide"] .device-mock::before {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.22);
}
[data-product="cubetide"] .final-cta {
  background: linear-gradient(150deg, #1B0833, #8B33E0);
}

/* Navor: urban mobility, map grid and route line on warm amber */
[data-product="navor"] { --p-accent: var(--nv); --p-dim: rgba(255,138,76,0.16); }
[data-product="navor"] .device-mock {
  background: linear-gradient(160deg, #33170A, #A8481A 58%, #FF8A4C);
}
[data-product="navor"] .device-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 30px 30px;
}
[data-product="navor"] .device-mock::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 26px rgba(255,255,255,0.7);
  transform: rotate(-28deg);
}
[data-product="navor"] .final-cta {
  background: linear-gradient(150deg, #33170A, #D8641F);
}

/* Layout variation so the three product pages do not read as copies */
.product-hero-grid.media-first .device-mock { order: -1; }
@media (max-width: 940px) { .product-hero-grid.media-first .device-mock { order: 0; } }
.gallery-grid.gallery-alt .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
.gallery-grid.gallery-alt .gallery-item:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.gallery-grid.gallery-alt .gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-grid.gallery-alt .gallery-item:nth-child(4) { grid-column: span 3; }
.gallery-grid.gallery-alt .gallery-item:nth-child(5) { grid-column: span 3; }
.gallery-grid.gallery-alt .gallery-item:nth-child(6) { grid-column: span 6; }
@media (max-width: 820px) {
  .gallery-grid.gallery-alt .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-grid.gallery-alt .gallery-item:nth-child(2) { grid-column: span 2 !important; }
}
