* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #7C3AED;
  --secondary-color: #FF5722;
  --accent-color: #FFC000;
  --text-dark: #2d3748;
  --text-light: #718096;
  --text-gray: #808080;
  --bg-light: #f7fafc;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

body {
  font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: linear-gradient(135deg, #DCEEFF 0%, #E5DFFA 100%);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 430px) {
  .container {
    padding: 0 var(--space-md);
  }
}


/* Reset glassmorphism rule (main .container) for hero — issue #17 fix */
.hero .container {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* .hero h1, .hero p, .cta-button — removed, replaced by .hero__title / .hero__subtitle / .hero__cta (issue #17) */

.section {
  padding: 4rem 0;
}

/* Issue #16 — Glassmorphism for sections and containers inside main */
main .section,
main .container {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 48px;
  margin-bottom: 12px;
}

/* #30 — accordion section: no extra gap before next section */
main #highlights {
  margin-bottom: 0;
}

.section.with-background {
  background-color: var(--gray-100);
  background-image: url('/images/tech-pattern.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  animation: fadeIn 0.6s ease;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 3rem;
  animation: fadeIn 0.6s ease 0.2s backwards;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 0;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
}

.card .learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.card .learn-more:hover {
  color: var(--primary-color);
}

/* ── Key Highlights Accordion ──────────────────── */
.section#highlights {
  background-color: #f6f8fc;
}

.accordion {
  max-width: 900px;
  margin-inline: auto;
}

.accordion__item {
  border-top: 1px solid rgba(31, 44, 66, 0.12);
}

.accordion__item:last-child {
  border-bottom: 1px solid rgba(31, 44, 66, 0.12);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-sm);
}

.accordion__header:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.accordion__header:hover .accordion__title {
  color: var(--color-accent);
}

.accordion__title {
  font-size: clamp(22px, 3vw, var(--text-xl));
  font-weight: var(--weight-regular);
  color: var(--color-primary);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.accordion__toggle {
  font-size: 28px;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  line-height: 1;
}

.accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.accordion__item.is-open .accordion__body {
  max-height: 300px;
}

.accordion__content {
  padding-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion__content p {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.7;
}

.accordion__link {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.accordion__link:hover {
  color: var(--color-dark-alt);
}

/* Issue #18 — Gradient on active accordion item */
.accordion__item.is-open .accordion__header,
.accordion__item.active .accordion__header,
.accordion__header[aria-expanded="true"] {
  background: linear-gradient(135deg, #1f2c42 0%, #8b2020 100%);
  color: var(--color-white);
}

.accordion__item.is-open .accordion__title,
.accordion__item.active .accordion__title,
.accordion__header[aria-expanded="true"] .accordion__title {
  color: var(--color-white);
}

.accordion__item.is-open .accordion__toggle,
.accordion__item.active .accordion__toggle,
.accordion__header[aria-expanded="true"] .accordion__toggle {
  color: var(--color-white);
}


/* ── Products Page ─────────────────────────────── */

/* Hero */
.products-hero {
  background-color: var(--color-primary);
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.products-hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.products-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(40px, 5vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.15;
}

.products-hero__subtitle {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2vw, var(--text-md));
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Product list */
.products-list {
  background-color: var(--color-white);
}

/* Product row (alternating image + content) */
.product-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid rgba(31, 44, 66, 0.08);
}

.product-row:last-child {
  border-bottom: none;
}

.product-row__image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-dark);
  aspect-ratio: 3 / 2;
}

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

.product-row:hover .product-row__image img {
  transform: scale(1.03);
}

.product-row__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

.product-row__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(103, 95, 143, 0.1);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

.product-row__tag--featured {
  color: var(--color-white);
  background-color: var(--color-accent);
}

.product-row__title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, var(--text-xl));
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  line-height: 1.25;
}

.product-row__desc {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.7;
}

.product-row__features {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-row__features li {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  padding-left: var(--space-md);
  position: relative;
}

.product-row__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.product-row__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  align-self: flex-start;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-highlight);
  border-radius: var(--radius-pill);
  padding: 10px var(--space-lg);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-row__cta:hover {
  background-color: var(--color-accent-bg);
  transform: translateY(-2px);
}

.product-row__cta img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%);
}

.product-row__cta--outline {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.product-row__cta--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.product-row__cta--outline img {
  filter: brightness(0) saturate(100%);
}

.product-row__cta--outline:hover img {
  filter: brightness(0) invert(1);
}

.product-row__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Products CTA section */
.products-cta {
  background-color: var(--color-primary);
  text-align: center;
}

.products-cta__inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.products-cta__title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.25;
}

.products-cta__subtitle {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.products-cta__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-highlight);
  border-radius: var(--radius-pill);
  padding: 12px var(--space-2xl);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.products-cta__btn:hover {
  background-color: var(--color-accent-bg);
  transform: translateY(-2px);
}

/* Desktop: side-by-side alternating layout */
@media (min-width: 768px) {
  .product-row {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-3xl) 0;
  }

  .product-row--reverse {
    flex-direction: row-reverse;
  }

  .product-row__image {
    max-width: 480px;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .product-row__image {
    max-width: 560px;
  }
}

/* Screen-reader only utility (if not already in style.css) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ── Contacts Page ─────────────────────────────── */

/* Hero */
.contacts-hero {
  background: linear-gradient(150deg, var(--color-hero-start) 0%, var(--color-hero-mid1) 40%, var(--color-hero-mid2) 70%, var(--color-hero-end) 100%);
  min-height: max(50vh, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contacts-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.contacts-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.15;
  margin: 0;
}

.contacts-hero__title-gradient {
  background: linear-gradient(90deg, var(--color-highlight) 0%, var(--color-hero-grad2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contacts-hero__subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 2.5vw, var(--text-lg));
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* Combined glassmorphism card */
.contacts-combined {
  padding: var(--space-3xl) 0;
}

.contacts-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(31, 44, 66, 0.12);
  overflow: hidden;
  padding: var(--space-2xl);
}

.contacts-card__form,
.contacts-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-primary);
  background: rgba(194, 215, 255, 0.15);
  border: 1px solid rgba(31, 44, 66, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(94, 111, 141, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(103, 95, 143, 0.1);
}

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

.contact-form__submit {
  display: block;
  width: 100%;
  font-family: var(--font-primary);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(103, 95, 143, 0.3);
}

/* Company info */
.contacts-info-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contacts-info-block__title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-table__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(31, 44, 66, 0.08);
}

.info-table__row:last-child {
  border-bottom: none;
}

.info-table dt {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-secondary);
  text-align: right;
}

.info-table dd {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-primary);
  margin: 0;
}

.info-table dd a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-table dd a:hover {
  color: var(--color-primary);
}

.contacts-hours-note {
  margin-top: var(--space-lg);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
}

.contacts-hours-note a {
  color: var(--color-accent);
  text-decoration: none;
}

.contacts-hours-note a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 430px) {
  .contacts-hero {
    padding: var(--space-2xl) var(--space-md);
    min-height: 60vh;
  }

  .contacts-combined {
    padding: var(--space-2xl) 0;
  }

  .contacts-card {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .info-table__row {
    grid-template-columns: 120px 1fr;
    gap: var(--space-sm);
  }
}

@media (min-width: 768px) {
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-card {
    grid-template-columns: 1fr 1fr;
  }

  .info-table__row {
    grid-template-columns: 160px 1fr;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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


.cta-section {
  background: var(--bg-light);
  text-align: center;
}

.cta-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


.contact-form-section h2,


.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--white);
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}


/* #24 fix — mobile single-column for cards/highlights */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .highlight-item {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }

  .section.with-background {
    padding: 2rem 0;
    background-attachment: scroll;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .service-section,
  .product-card {
    padding: 1.5rem;
  }
}

  

  

  

  

  

  

  

  

  

  

  

  

/* ── Product Detail Pages (pd-*) ───────────────── */

/* Hero */
.pd-hero {
  background-color: var(--color-primary);
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.pd-hero__inner {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.pd-hero__tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-highlight);
  background: rgba(194, 215, 255, 0.12);
  border: 1px solid rgba(194, 215, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
}

.pd-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 5vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.15;
}

.pd-hero__subtitle {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2vw, var(--text-md));
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.pd-hero__cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-sm);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-highlight);
  border-radius: var(--radius-pill);
  padding: 12px var(--space-2xl);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pd-hero__cta:hover {
  background-color: var(--color-accent-bg);
  transform: translateY(-2px);
}

/* Sections */
.pd-section {
  background-color: var(--color-white);
}

.pd-section--alt {
  background-color: #f6f8fc;
}

.pd-section__title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.pd-section__lead {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.5vw, var(--text-md));
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.pd-section__body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.7;
}

.pd-link {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-link:hover {
  color: var(--color-primary);
}

/* Intro: text + images side by side */
.pd-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.pd-intro__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pd-intro__images {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* List */
.pd-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.pd-list li {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-secondary);
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.6;
}

.pd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* Figures */
.pd-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-dark);
}

.pd-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.pd-figure figcaption {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(31, 44, 66, 0.04);
}

.pd-figure--wide {
  max-width: 900px;
  margin-inline: auto;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.pd-figure--inline {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* Problem / Solution grid */
.pd-ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.pd-ps-card {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pd-ps-card--problem {
  background-color: rgba(94, 111, 141, 0.06);
  border-left: 4px solid var(--color-secondary);
}

.pd-ps-card--solution {
  background-color: rgba(103, 95, 143, 0.06);
  border-left: 4px solid var(--color-accent);
}

.pd-ps-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

/* 3-column cards grid */
.pd-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.pd-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 2px 12px rgba(31, 44, 66, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pd-section--alt .pd-card {
  background: var(--color-white);
}

.pd-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

/* Highlight block (Version 2.0 etc) */
.pd-highlight-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-alt) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pd-highlight-block__title {
  font-family: var(--font-primary);
  font-size: clamp(22px, 2.5vw, var(--text-xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
}

.pd-highlight-block .pd-section__body {
  color: rgba(255, 255, 255, 0.8);
}

/* Stats grid (RPA) */
.pd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.pd-stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(31, 44, 66, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.pd-stat__value {
  font-family: var(--font-primary);
  font-size: clamp(32px, 4vw, var(--text-3xl));
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  line-height: 1;
}

.pd-stat__label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.4;
}

/* Benefits grid (RPA) */
.pd-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.pd-benefit {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(31, 44, 66, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.pd-benefit:last-child {
  border-bottom: none;
}

.pd-benefit__title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

/* CTA section */
.pd-cta {
  background-color: var(--color-primary);
  text-align: center;
}

.pd-cta__inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.pd-cta__title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.25;
}

.pd-cta__subtitle {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.7);
}

.pd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.pd-cta__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  padding: 12px var(--space-2xl);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.pd-cta__btn--primary {
  color: var(--color-primary);
  background-color: var(--color-highlight);
}

.pd-cta__btn--primary:hover {
  background-color: var(--color-accent-bg);
  transform: translateY(-2px);
}

.pd-cta__btn--outline {
  color: var(--color-white);
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.pd-cta__btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* Desktop */
@media (min-width: 768px) {
  .pd-intro {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3xl);
  }

  .pd-intro__text {
    flex: 1;
  }

  .pd-intro__images {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pd-intro__images .pd-figure {
    flex: 1;
    min-width: 240px;
  }

  .pd-ps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pd-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pd-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pd-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-benefit {
    border-bottom: none;
    border-right: 1px solid rgba(31, 44, 66, 0.08);
    padding: var(--space-md);
  }

  .pd-benefit:nth-child(2n) {
    border-right: none;
  }
}

/* ── 404 Page ─────────────────────────────────── */

.not-found {
  min-height: calc(100svh - 72px);
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.not-found__inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.not-found__code {
  font-family: var(--font-primary);
  font-size: clamp(96px, 15vw, 200px);
  font-weight: var(--weight-semibold);
  color: rgba(194, 215, 255, 0.15);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.not-found__title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.2;
  margin-top: calc(-1 * var(--space-lg));
}

.not-found__desc {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xs);
}

.not-found__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  padding: 12px var(--space-2xl);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.not-found__btn--primary {
  color: var(--color-primary);
  background-color: var(--color-highlight);
}

.not-found__btn--primary:hover {
  background-color: var(--color-accent-bg);
  transform: translateY(-2px);
}

.not-found__btn--outline {
  color: var(--color-white);
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.not-found__btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.not-found__links {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.not-found__links-label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
}

.not-found__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  list-style: none;
  padding: 0;
}

.not-found__links a {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-highlight);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.not-found__links a:hover {
  opacity: 0.75;
}

/* ── Privacy / Legal Pages ─────────────────────── */

.legal-hero {
  background-color: var(--color-primary);
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.legal-hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.legal-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 5vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.15;
}

.legal-hero__meta {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.5);
}

.legal-section {
  background-color: #f6f8fc;
}

.legal-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* TOC sidebar */
.legal-toc {
  display: none;
}

.legal-toc__heading {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: toc;
}

.legal-toc__list li {
  counter-increment: toc;
}

.legal-toc__list a {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  text-decoration: none;
  display: block;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.legal-toc__list a:hover {
  color: var(--color-primary);
  background-color: rgba(31, 44, 66, 0.05);
}

/* Content */
.legal-content {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  box-shadow: 0 2px 12px rgba(31, 44, 66, 0.06);
}

.legal-content__section {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(31, 44, 66, 0.08);
}

.legal-content__section:first-child {
  padding-top: 0;
  border-top: none;
}

.legal-content__section + .legal-content__section {
  margin-top: var(--space-xl);
}

.legal-content__h2 {
  font-family: var(--font-primary);
  font-size: clamp(20px, 2vw, var(--text-lg));
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  scroll-margin-top: 100px;
}

.legal-content__h3 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.legal-list li {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  line-height: 1.7;
  padding-left: var(--space-md);
  position: relative;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.legal-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--color-primary);
}

.legal-address {
  font-style: normal;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-secondary);
  line-height: 1.9;
  background-color: #f6f8fc;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-sm);
  display: inline-block;
}

/* Desktop: sidebar TOC visible */
@media (min-width: 1024px) {
  .legal-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .legal-toc {
    display: block;
    width: 220px;
    flex-shrink: 0;
    position: -webkit-sticky;
  position: sticky;
    top: 96px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: 0 2px 12px rgba(31, 44, 66, 0.06);
  }

  .legal-content {
    flex: 1;
  }
}

/* ── Cross-browser compatibility fixes ───────── */

/* Safari: -webkit-sticky fallback */
.legal-toc {
  position: -webkit-sticky;
}

/* Safari: -webkit-fill-available for 100svh fallback */
.not-found {
  min-height: -webkit-fill-available;
}

/* Firefox/Safari: ensure gap works in flex */
.pd-cta__actions,
.not-found__actions,
.product-row__cta-group {
  gap: 16px; /* explicit px fallback */
}

/* Safari: smooth scroll */
html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Safari: prevent font-size inflation on mobile */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Safari: button reset for accordion */
.accordion__header,
.contact-form__submit,
.pd-hero__cta,
.products-cta__btn,
.pd-cta__btn,
.not-found__btn,
.product-row__cta {
  -webkit-appearance: none;
  appearance: none;
}

/* Firefox: remove number input arrows */
input[type="number"]::-moz-number-spin-box {
  display: none;
}

/* Safari focus-visible fallback */
a:focus,
button:focus {
  outline: 2px solid rgba(103, 95, 143, 0.5);
  outline-offset: 2px;
}

/* #22 fix — picture must fill container; img fills picture */
picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

picture img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Hero redesign — issue #17
   Dark gradient + animated glows + pill CTA
   All using tokens.css variables, no !important
   ========================================================================== */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(150deg, var(--color-hero-start) 0%, var(--color-hero-mid1) 40%, var(--color-hero-mid2) 70%, var(--color-hero-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px var(--space-xl) var(--space-3xl);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--top {
  top: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194,215,255,0.09) 0%, transparent 70%);
  animation: hero-glow-pulse 9s ease-in-out infinite alternate;
}

.hero__glow--bottom {
  bottom: -10%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,132,176,0.11) 0%, transparent 70%);
  animation: hero-glow-pulse 11s ease-in-out 2s infinite alternate;
}

@keyframes hero-glow-pulse {
  from { transform: scale(1);    opacity: 0.6; }
  to   { transform: scale(1.18); opacity: 1;   }
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' opacity='.15' fill='%23c2d7ff'/%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  animation: hero-wave-drift 28s linear infinite;
  pointer-events: none;
}

@keyframes hero-wave-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2.75rem, 7vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.13;
  margin: 0;
  animation: fadeInUp 0.8s ease;
}

.hero__title-gradient {
  background: linear-gradient(90deg, var(--color-highlight) 0%, var(--color-hero-grad2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.2vw, var(--text-md));
  font-weight: var(--weight-regular);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
  animation: fadeInUp 0.8s ease 0.15s backwards;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-xl);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.15s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero__cta:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.16);
}

@media (max-width: 430px) {
  .hero {
    padding: 120px var(--space-md) var(--space-2xl);
  }
  .hero__title {
    font-size: 2.5rem;
  }
}

/* ── Desktop 1200px+ — expand content constrained for smaller screens (#23) ── */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-2xl);
  }

  /* Text blocks — wider but still readable */
  .section-subtitle {
    max-width: 900px;
  }

  /* Accordion */
  .accordion {
    max-width: 1100px;
  }

  /* Products hero inner */
  .pd-hero__inner {
    max-width: 1100px;
  }

  /* Products figure wide */
  .pd-figure--wide {
    max-width: 1100px;
  }

  /* Products / PD CTA inner */
  .products-cta__inner,
  .pd-cta__inner {
    max-width: 900px;
  }

  /* Hero subtitle */
  .hero__subtitle {
    max-width: 860px;
  }

  /* Contacts hero subtitle */
  .contacts-hero__subtitle {
    max-width: 800px;
  }
}

/* ── Bug #27 fixes ─────────────────────────────────────────── */

/* Products CTA: override glassmorphism that hides white text on white bg */
main .section.products-cta,
main .section.pd-cta {
  background: var(--color-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-3xl) 0;
}

/* Contacts page: hide duplicate "Get in Touch" CTA in navbar */
.page-contacts .site-header__cta {
  display: none;
}

/* Contacts form: prevent grid blowout on narrow columns */
.contact-form__grid .form-group input {
  min-width: 0;
}
