:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  padding: 80px 0 120px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.lede {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.4);
}

.btn.ghost:hover {
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.25);
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 8px;
}

.stat-value {
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 12px;
  line-height: 1.5;
}

.stat-note {
  color: #cbd5e1;
  margin: 0;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--surface);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.card-list {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--surface);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pillars li {
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #312e81;
  padding: 12px 14px;
  border-radius: 10px;
}

.quote {
  background: linear-gradient(145deg, #111827, #0b1224);
  color: #e5e7eb;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

.quote__text {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.quote__attribution {
  margin: 0;
  color: #cbd5e1;
}

.contact-card {
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-card strong {
  color: var(--text);
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 24px 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

/* Product SPA Styles */
#product-spa {
  margin: 0;
  width: 100%;
  padding: 0;
}

.spa-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0;
}

.spa-nav__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.spa-nav__item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.spa-nav__item.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.spa-nav__item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.spa-gallery {
  margin-bottom: 40px;
}

.spa-gallery__container {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  padding: 20px;
}

@media (max-width: 768px) {
  .spa-gallery__container {
    max-width: 70%;
    padding: 12px;
  }
}

@media (min-width: 1024px) {
  #product-spa {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 50px;
    align-items: start;
    max-width: 100%;
    margin: 0;
  }

  .spa-nav {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .spa-gallery {
    margin-bottom: 0;
    position: sticky;
    top: 100px;
  }

  .spa-content {
    margin-top: 0;
  }

  /* Center content when gallery is hidden (FAQ) */
  #product-spa:has(.spa-gallery--empty) {
    grid-template-columns: 1fr;
  }

  #product-spa:has(.spa-gallery--empty) .spa-content {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Hide empty gallery */
.spa-gallery--empty {
  display: none;
}

/* Center content when gallery is hidden on mobile */
@media (max-width: 1023px) {
  .spa-gallery--empty + .spa-content {
    max-width: 800px;
    margin: 40px auto 0;
  }
}

.spa-gallery__item {
  display: none;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spa-gallery__item.active {
  display: block;
  opacity: 1;
}

.spa-gallery__item.loaded img {
  opacity: 1;
}

.spa-gallery__item img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.spa-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(247, 248, 251, 0.8);
  backdrop-filter: blur(8px);
}

.spa-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.spa-gallery__dot:hover {
  background: var(--accent);
  transform: scale(1.2);
}

.spa-gallery__dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.spa-content {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0;
}

/* Center content when no gallery */
.spa-gallery:empty + .spa-content {
  max-width: 800px;
  margin: 40px auto 0;
}

.spa-content__inner {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spa-content__title {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text);
}

.spa-content__description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--muted);
}

.spa-content__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.spa-content__highlights li {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  position: relative;
  padding-left: 40px;
  transition: all 0.2s ease;
}

.spa-content__highlights li:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateX(4px);
}

.spa-content__highlights li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 64px 0 96px;
  }

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

  .section {
    padding: 64px 0;
  }

  .spa-nav {
    gap: 6px;
    padding: 0;
  }

  .spa-content {
    padding: 0 10px;
  }

  .spa-nav__item {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .spa-content__title {
    font-size: 1.6rem;
  }

  .spa-content__description {
    font-size: 1rem;
  }

  .spa-gallery__container {
    border-radius: 12px;
    max-width: 100%;
  }

  .spa-gallery__item img {
    max-height: 500px;
  }

  .spa-content {
    margin-top: 30px;
  }
}

/* FAQ Styles */
.spa-faq {
  margin-top: 24px;
}

.spa-faq__category {
  margin-bottom: 32px;
}

.spa-faq__category-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.spa-faq__item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.spa-faq__question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}

.spa-faq__question:hover {
  background: var(--bg);
}

.spa-faq__question:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.spa-faq__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.spa-faq__answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.spa-faq__answer:not([hidden]) {
  padding: 0 20px 20px;
  max-height: 1000px;
}

.spa-faq__answer-content {
  color: var(--muted);
  line-height: 1.7;
  padding-top: 8px;
}

@media (max-width: 768px) {
  .spa-faq__question {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .spa-faq__answer:not([hidden]) {
    padding: 0 16px 16px;
  }

  .spa-faq__category-title {
    font-size: 1.1rem;
  }
}

/* Overview Content Styles */
.spa-overview__sections {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.spa-overview__section {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.spa-overview__section:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.spa-overview__section h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

.spa-overview__section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .spa-overview__sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

