:root {
  --bg: #0A0F1C;
  --surface: #111827;
  --border: rgba(255,255,255,0.08);
  --text: #F1F5F9;
  --text-dim: #94A3B8;
  --accent: #F59E0B;
  --accent-soft: rgba(245,158,11,0.12);
  --accent-teal: #14B8A6;

  --color-resolve: #F97316;
  --color-lexgoai: #3B82F6;
  --color-skule: #14B8A6;
  --color-aidirect: #EC4899;
  --color-invest: #EAB308;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* Page-wide blurred-photo backdrop. */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image: url("https://cdn.esahubble.org/archives/images/publicationjpg/heic0910e.jpg");
  background-size: cover;
  background-position: center;
  filter: none;
  transform: none;
}
.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.page-bg::before { background: rgba(10, 15, 28, 0.65); }
.page-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 28, 0.55) 0%,
    rgba(10, 15, 28, 0.25) 50%,
    rgba(10, 15, 28, 0)    100%
  );
}
.nav, .product-animation, .product-hero, .product-body, .footer {
  position: relative;
  z-index: 1;
}

.nav {
  padding: 24px 32px;
  display: flex; align-items: center;
}
.logo {
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent);
}
.logo img { width: 32px; height: 32px; display: block; }
.logo .go { color: var(--accent-teal); }

/* Detail page hero */
.product-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.back-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

.product-hero .brand {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--brand-color, var(--accent));
  padding: 4px 10px;
  border: 1px solid var(--brand-color, var(--accent));
  border-radius: 999px;
  margin-bottom: 20px;
}
.product-hero h1 {
  font-size: 56px; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.product-hero .tagline {
  font-size: 20px; color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 720px;
}
.product-hero .cta {
  display: inline-block;
  background: var(--brand-color, var(--accent));
  color: #0A0F1C;
  font-weight: 700; font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-hero .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}

/* Body */
.product-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.product-body section { margin-bottom: 56px; }
.product-body h2 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.product-body p {
  font-size: 16px; color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 720px;
}
.product-body ul {
  margin: 0; padding: 0; list-style: none;
}

/* Features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.feature h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.feature p {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}
.feature::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: var(--brand-color, var(--accent));
  border-radius: 2px;
  margin-bottom: 12px;
}

.cta-row {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 13px; color: var(--text-dim);
  margin-top: auto;
}

@media (max-width: 720px) {
  .product-hero h1 { font-size: 38px; }
  .product-hero .tagline { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-hero, .product-body { padding-left: 24px; padding-right: 24px; }
}


/* Embedded card animation banner at the top of each product detail page. */
.product-animation {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px 8px;
}
.product-animation .anim-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.product-animation .anim-clip {
  position: relative;
  width: 800px;
  max-width: 100%;
  height: 540px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--brand-color, var(--accent));
  background: rgba(10, 15, 28, 0.4);
  transition: width 0.4s ease, height 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
/* Active animation expands while narration plays */
.product-animation .anim-item.is-expanded .anim-clip {
  width: 1200px;
  height: 720px;
  box-shadow: 0 0 60px rgba(245,158,11,0.18), 0 0 0 1px var(--brand-color, var(--accent)) inset;
}
.product-animation .anim-item:not(.is-expanded) {
  transition: opacity 0.3s ease;
}
.product-animation:has(.anim-item.is-expanded) .anim-item:not(.is-expanded) {
  opacity: 0.45;
}
.product-animation iframe,
.product-animation video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  object-fit: cover;
}

/* Each animation + its Listen button live in an .anim-item */
.product-animation .anim-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,15,28,0.55);
  color: var(--text);
  font: 600 13px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.listen-btn:hover {
  border-color: var(--brand-color, var(--accent));
  background: rgba(10,15,28,0.85);
  transform: translateY(-1px);
}
.listen-btn .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  font-size: 11px;
  color: var(--brand-color, var(--accent));
}
.listen-btn.is-playing .icon { color: var(--accent-teal); }

@media (max-width: 720px) {
  /* Edge-to-edge animations on mobile to maximize video size. */
  .product-animation {
    padding-left: 0;
    padding-right: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    max-width: 100%;
  }
  .product-animation .anim-grid { gap: 12px; }
  .product-animation .anim-item { width: 100%; }
  .product-animation .anim-clip {
    width: 100%;
    aspect-ratio: 800 / 540;
    height: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .product-animation video,
  .product-animation iframe {
    object-fit: contain;
  }
  .product-animation .anim-item.is-expanded .anim-clip {
    width: 100%;
    height: auto;
  }
  .product-animation:has(.anim-item.is-expanded) .anim-item:not(.is-expanded) {
    opacity: 1;
  }
}


/* Hero title + primary CTA on one line, tagline below. */
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.hero-title-row h1 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.hero-title-row .cta {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero-title-row { gap: 16px; }
  .hero-title-row .cta { width: 100%; text-align: center; }
}
