/* ══════════════════════════════════════════════════════════════
   CMMava — Product Pages Shared Stylesheet
   Premium dark theme matching the main site
   ══════════════════════════════════════════════════════════════ */

/* ── Design tokens (mirrored from main site) ─────────────────── */
:root {
  --c-bg:        #000000;
  --c-surface:   #0d0d0d;
  --c-surface-2: #161616;
  --c-surface-3: #1e1e1e;
  --c-border:    rgba(255,255,255,0.08);
  --c-text:      #f5f5f7;
  --c-text-2:    #a1a1a6;
  --c-text-3:    #6e6e73;
  --c-accent:    #0071e3;
  --c-accent-2:  #00d4ff;

  /* Product accent — overridden per page via data-product */
  --c-prod:      var(--c-accent);
  --c-prod-glow: rgba(0,113,227,0.3);

  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --t-fast: 150ms ease; --t-normal: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ── Per-product accent colors ─────────────────────────────── */
[data-product="regatta"]        { --c-prod:#00b4d8; --c-prod-glow:rgba(0,180,216,0.3); }
[data-product="flash"]          { --c-prod:#0071e3; --c-prod-glow:rgba(0,113,227,0.3); }
[data-product="meridian"]       { --c-prod:#f4622a; --c-prod-glow:rgba(244,98,42,0.3); }
[data-product="northstar"]      { --c-prod:#4361ee; --c-prod-glow:rgba(67,97,238,0.3); }
[data-product="daytona"]        { --c-prod:#8338ec; --c-prod-glow:rgba(131,56,236,0.3); }
[data-product="spinous"]        { --c-prod:#52b788; --c-prod-glow:rgba(82,183,136,0.3); }
[data-product="newport"]        { --c-prod:#06d6a0; --c-prod-glow:rgba(6,214,160,0.3); }
[data-product="admiral"]        { --c-prod:#3a86ff; --c-prod-glow:rgba(58,134,255,0.3); }
[data-product="mariner"]        { --c-prod:#0f8b8d; --c-prod-glow:rgba(15,139,141,0.3); }
[data-product="waveform"]       { --c-prod:#7209b7; --c-prod-glow:rgba(114,9,183,0.3); }

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:16px; scroll-behavior:smooth; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
::selection { background:var(--c-prod); color:#fff; }

/* ── Top Navbar ─────────────────────────────────────────────── */
.prod-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}

.prod-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-full);
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.04);
  transition: all var(--t-fast);
}
.prod-nav-back:hover { color:var(--c-text); background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.2); }
.prod-nav-back svg { flex-shrink:0; }

.prod-nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg,#0071e3,#00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prod-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--c-prod);
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.prod-nav-cta:hover { opacity:0.88; transform:translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────────── */
.prod-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    var(--c-prod-glow) 0%, transparent 60%),
    var(--c-bg);
}

/* Subtle grid overlay */
.prod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.prod-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.prod-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-prod);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.prod-eyebrow span { opacity:0.5; }

.prod-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Product-colored gradient on title */
.prod-title .prod-gradient {
  background: linear-gradient(135deg, var(--c-prod), var(--c-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prod-title-sub {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--c-text-2);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.prod-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--c-text-2);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── CTA buttons ────────────────────────────────────────────── */
.prod-hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-prod-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 13px 26px;
  border-radius: var(--r-full);
  background: var(--c-prod);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 20px var(--c-prod-glow);
}
.btn-prod-primary:hover { opacity:0.88; transform:translateY(-2px); }

.btn-prod-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 13px 26px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--c-text);
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  transition: all var(--t-fast);
}
.btn-prod-ghost:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.3); transform:translateY(-2px); }

/* ── Main content container ─────────────────────────────────── */
.prod-main { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }

/* ── Section headings ───────────────────────────────────────── */
.prod-section { margin-bottom: 4rem; }
.prod-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}
.prod-section-subtitle {
  font-size: 0.95rem;
  color: var(--c-text-2);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Accent underline */
.prod-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-prod);
  margin-top: 0.5rem;
}

/* ── Specs / Features grid ──────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.spec-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color var(--t-slow), transform var(--t-slow), box-shadow var(--t-slow);
}
.spec-card:hover {
  border-color: var(--c-prod);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--c-prod-glow);
}

.spec-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--c-prod);
}

.spec-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}

.spec-card p {
  font-size: 0.85rem;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* ── Highlight badges (key data points) ─────────────────────── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: center;
}

.highlight-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--c-prod), var(--c-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.highlight-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-3);
}

/* ── Feature list ───────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.feature-item:hover { border-color: rgba(255,255,255,0.16); }

.feature-item-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-prod-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-prod);
  margin-top: 2px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--c-text-2);
  line-height: 1.55;
}

.feature-item strong { color: var(--c-text); font-weight: 600; }

/* ── CTA section ────────────────────────────────────────────── */
.prod-cta-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prod-cta-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, var(--c-prod-glow), transparent 70%);
  pointer-events: none;
}

.prod-cta-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: 0.75rem;
  position: relative;
}

.prod-cta-section p {
  color: var(--c-text-2);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  position: relative;
}

/* ── Footer ─────────────────────────────────────────────────── */
.prod-footer {
  border-top: 1px solid var(--c-border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.prod-footer p {
  font-size: 0.78rem;
  color: var(--c-text-3);
}

.prod-footer a {
  font-size: 0.78rem;
  color: var(--c-text-2);
  transition: color var(--t-fast);
}
.prod-footer a:hover { color: var(--c-text); }

/* ── Divider ────────────────────────────────────────────────── */
.prod-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin: 3rem 0;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes prodFadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

.prod-hero-inner > * {
  animation: prodFadeUp 0.7s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
.prod-eyebrow       { animation-delay: 0.1s; }
.prod-title         { animation-delay: 0.2s; }
.prod-title-sub     { animation-delay: 0.28s; }
.prod-tagline       { animation-delay: 0.36s; }
.prod-hero-btns     { animation-delay: 0.44s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .prod-nav { padding: 0 1rem; }
  .prod-hero { padding: 4rem 1rem 3rem; }
  .prod-main { padding: 2.5rem 1rem; }
  .prod-cta-section { padding: 2rem 1.25rem; }
  .prod-footer { flex-direction: column; text-align: center; }
  .specs-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: repeat(2,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .prod-hero-inner > * { animation: none !important; opacity: 1 !important; }
}
