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

html {
  /* Fluid root size: 14px at 320px viewport → 16px at 1100px+ */
  font-size: clamp(14px, 0.875rem + 0.25vw, 16px);
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #1a1d3a;
  color: #f5f5f7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(26, 29, 58, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  color: inherit;
  text-decoration: none;
}

.logo-img {
  order: 0;
  height: clamp(1.5rem, 2.2vw, 2rem);
  width: auto;
  display: block;
  /* If the logo art is dark, this keeps it visible on the dark header.
     Remove the filter line if your logo is already light-colored. */
  filter: brightness(0) invert(1);
}

.logo-text {
  order: 1;
}

.site-header nav a {
  color: #c9c9d1;
  text-decoration: none;
  margin-left: clamp(0.9rem, 2vw, 1.75rem);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 2.5rem 2rem;
  gap: 2rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(80, 140, 255, 0.55), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(255, 70, 180, 0.45), transparent 55%),
    radial-gradient(circle at 60% 110%, rgba(140, 80, 255, 0.40), transparent 60%),
    linear-gradient(135deg, #1a1d3a 0%, #2a1740 100%);
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #b9bccf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: #b1b4c2;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.cta {
  display: inline-block;
  background: #fff;
  color: #0b0d12;
  border: none;
  padding: 0.85rem 1.6rem;
  font-size: clamp(0.95rem, 1.05vw, 1rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.hero-model {
  position: relative;
  height: 70vh;
  width: 100%;
}

#model-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-model {
    height: 45vh;
  }
  .site-header {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.75rem 0.9rem;
  }
  .site-header nav {
    display: flex;
    gap: 0.75rem;
  }
  .site-header nav a {
    margin-left: 0;
    font-size: 0.82rem;
  }
  .hero {
    padding: 5rem 1.25rem 1.5rem;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .hero-content p {
    font-size: 1rem;
  }
  .cta {
    padding: 0.8rem 1.4rem;
  }
}

/* ============================================================
   Shared section helpers
   ============================================================ */
section {
  padding: clamp(3.5rem, 6vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 1100px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-head h2,
.about-text h2,
.final-cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #f5f5f7;
}

.eyebrow {
  display: inline-block;
  font-size: clamp(0.68rem, 0.85vw, 0.75rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a90b0;
  margin-bottom: 0.85rem;
}

.ghost-btn {
  display: inline-block;
  background: transparent;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.65rem 1.25rem;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ============================================================
   2. Trust strip
   ============================================================ */
.trust-strip {
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-strip ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-strip li {
  padding: 0.3rem clamp(0.75rem, 1.8vw, 2rem);
  font-size: clamp(0.7rem, 0.85vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9c9d1;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip li:last-child {
  border-right: none;
}

/* ============================================================
   3. About
   ============================================================ */
.about {
  background: #15182b;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-text p {
  color: #b1b4c2;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 32rem;
}

.about-frame {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 30%, rgba(80, 140, 255, 0.35), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(255, 70, 180, 0.25), transparent 60%),
    linear-gradient(135deg, #1a1d3a 0%, #2a1740 100%);
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   4. Products
   ============================================================ */
.products {
  background: #1a1d3a;
}

.product-carousel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.product-carousel::-webkit-scrollbar {
  height: 8px;
}
.product-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.product-card {
  scroll-snap-align: start;
  background: #20243f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.product-card:hover {
  transform: translateY(-3px);
}

/* Per-card accent colours */
.product-card:nth-child(1) {
  border-top: 3px solid #4a7fff;
}
.product-card:nth-child(1):hover {
  border-color: #4a7fff;
  box-shadow: 0 18px 40px rgba(74, 127, 255, 0.22);
}

.product-card:nth-child(2) {
  border-top: 3px solid #d0d8f0;
}
.product-card:nth-child(2):hover {
  border-color: #d0d8f0;
  box-shadow: 0 18px 40px rgba(208, 216, 240, 0.18);
}

.product-card:nth-child(3) {
  border-top: 3px solid #3ecf6e;
}
.product-card:nth-child(3):hover {
  border-color: #3ecf6e;
  box-shadow: 0 18px 40px rgba(62, 207, 110, 0.2);
}

.product-card:nth-child(4) {
  border-top: 3px solid #e03e3e;
}
.product-card:nth-child(4):hover {
  border-color: #e03e3e;
  box-shadow: 0 18px 40px rgba(224, 62, 62, 0.2);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

/* Per-card image background tints matching the accent */
.product-card:nth-child(1) .product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(74, 127, 255, 0.55), transparent 65%),
    linear-gradient(160deg, #1e2650 0%, #1a1d3a 100%);
  border: 1px solid rgba(74, 127, 255, 0.2);
}
.product-card:nth-child(2) .product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(208, 216, 240, 0.45), transparent 65%),
    linear-gradient(160deg, #2a2d42 0%, #1a1d3a 100%);
  border: 1px solid rgba(208, 216, 240, 0.15);
}
.product-card:nth-child(3) .product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(62, 207, 110, 0.45), transparent 65%),
    linear-gradient(160deg, #1b3028 0%, #1a1d3a 100%);
  border: 1px solid rgba(62, 207, 110, 0.2);
}
.product-card:nth-child(4) .product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(224, 62, 62, 0.45), transparent 65%),
    linear-gradient(160deg, #32181a 0%, #1a1d3a 100%);
  border: 1px solid rgba(224, 62, 62, 0.2);
}

.product-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card img {
  display: block;
}

.product-card h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #f5f5f7;
}

.product-card p {
  color: #a8acc2;
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.55;
  margin-bottom: 0;
  flex: 1;
}

/* ============================================================
   5. Applications
   ============================================================ */
.applications {
  background: #15182b;
}

.app-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.9rem, 1.5vw, 1.1rem) clamp(1rem, 1.6vw, 1.25rem);
  background: #1a1d3a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #d8dae8;
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.app-card:hover {
  border-color: rgba(120, 160, 255, 0.35);
  background: #20243f;
}

.app-marker {
  color: #6a8dff;
  font-size: 0.7rem;
}

/* ============================================================
   6. Why Choose Us
   ============================================================ */
.why {
  background: #1a1d3a;
}

.why-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.why-col h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #f5f5f7;
}

.why-col p {
  color: #a8acc2;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.6;
}

/* ============================================================
   7. Final CTA
   ============================================================ */
.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(80, 140, 255, 0.25), transparent 65%),
    #15182b;
}

.final-cta h2 {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   8. Footer
   ============================================================ */
.site-footer {
  background: #0f1224;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer .logo {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.footer-meta {
  margin-top: 0.75rem;
  color: #8a90b0;
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.footer-right a {
  color: #c9c9d1;
  text-decoration: none;
  font-size: clamp(0.85rem, 1vw, 0.9rem);
  transition: color 0.15s;
}

.footer-right a:hover {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #6f7392;
  font-size: 0.8rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .trust-strip li {
    padding: 0.35rem 0.9rem;
    border-right: none;
  }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
  .site-footer .logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .product-carousel {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .final-cta-actions .cta,
  .final-cta-actions .ghost-btn {
    width: 100%;
    text-align: center;
  }
}
