:root {
  --navy: #050b18;
  --navy-soft: #0b1830;
  --navy-light: #122144;
  --blue: #1e5fff;
  --blue-light: #4d8bff;
  --white: #ffffff;
  --grey: #8a93a6;
  --grey-light: #f4f6fb;
  --radius: 16px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-decoration: none;
}

.logo__img {
  height: 48px;
  width: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 14px;
}

.logo__dot { color: var(--blue-light); }

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  opacity: 0.85;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: var(--transition);
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after { width: 100%; }

.header__cta { display: inline-block; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(30, 95, 255, 0.6);
}

.btn--primary:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -10px rgba(30, 95, 255, 0.7);
}

.btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 45%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(30, 95, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(30, 95, 255, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: 100px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-light);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 1px solid rgba(77, 139, 255, 0.35);
  border-radius: 50px;
  background: rgba(77, 139, 255, 0.08);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span { color: var(--blue-light); }

.hero__text {
  color: var(--grey);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50px;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 26px; }
  100% { opacity: 0; top: 8px; }
}

/* ===== SECTION HEADERS ===== */
.section-tag {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.section-tag--light { color: var(--blue-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-title--light { color: var(--white); }

.section-subtitle {
  color: var(--grey);
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.05rem;
}

section .section-tag,
section .section-title {
  text-align: center;
  display: block;
}

.section-subtitle--light { color: rgba(255,255,255,0.6); }

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__highlights {
  display: grid;
  gap: 28px;
}

.about__highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about__icon svg { width: 20px; height: 20px; }

.about__highlight h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about__highlight p {
  color: var(--grey);
  font-size: 0.92rem;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--grey-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 36px;
  transition: var(--transition);
  border: 1px solid #eef1f7;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -30px rgba(5, 11, 24, 0.25);
  border-color: transparent;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--white);
}

.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--grey);
  font-size: 0.97rem;
  margin-bottom: 22px;
}

.service-card__link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-card__link:hover { color: var(--navy); }

/* ===== PRODUCTS ===== */
.products {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--navy-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 139, 255, 0.35);
  box-shadow: 0 30px 60px -30px rgba(30, 95, 255, 0.4);
}

.product-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--white);
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  box-sizing: border-box;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.06);
}

.product-card__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--grey);
  font-size: 0.8rem;
  padding: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px);
  flex-direction: column;
  gap: 6px;
}

.product-card__placeholder span {
  font-size: 0.7rem;
  color: var(--blue-light);
  font-family: monospace;
  word-break: break-all;
}

.product-card__img.no-img .product-card__placeholder {
  display: flex;
}

.product-card__img.no-img img {
  display: none;
}

.product-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 22px 24px 10px;
}

.product-card p {
  color: var(--grey);
  font-size: 0.92rem;
  margin: 0 24px 24px;
}

/* ===== PARTNERS ===== */
.partners {
  padding: 120px 0;
  background: var(--grey-light);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 1px solid #eef1f7;
  transition: var(--transition);
  position: relative;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -25px rgba(5, 11, 24, 0.25);
}

.partner-card img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  transition: var(--transition);
}

.partner-card:hover img {
  transform: scale(1.06);
}

.partner-card__placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--navy-light);
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(30, 95, 255, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 5% 95%, rgba(30, 95, 255, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.contact .container { position: relative; z-index: 1; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.contact__card {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.contact__card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 139, 255, 0.35);
  box-shadow: 0 30px 60px -30px rgba(30, 95, 255, 0.4);
}

.contact__icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 22px;
}

.contact__icon svg { width: 24px; height: 24px; }

.contact__card h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact__card p {
  color: var(--grey);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.contact__action {
  color: var(--blue-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-top: auto;
}

.contact__card:hover .contact__action {
  color: var(--white);
}

.contact__action--muted {
  color: var(--grey);
}

.contact__card--static {
  cursor: default;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__inner p {
  color: var(--grey);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__links a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 11, 24, 0.97);
    padding: 24px;
    gap: 20px;
    backdrop-filter: blur(12px);
  }

  .about__inner { grid-template-columns: 1fr; gap: 50px; }
  .services__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__content { padding-top: 80px; }
}
