:root {
  --navy: #1B2A4A;
  --navy-dark: #0d1b2a;
  --navy-light: #eef1f8;
  --orange: #F28C28;
  --orange-dark: #e67e22;
  --orange-light: #fdf1e3;
  --blue: #2BA4E0;
  --blue-light: #e3f4fc;
  --blue-light-dark: #4A90C2;
  --access: #14b8a6;
  --access-dark: #0d9488;
  --text: #2c3e50;
  --text-light: #6b7a90;
  --white: #ffffff;
  --gray-bg: #f7f9fc;
  --shadow-sm: 0 4px 14px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 12px 40px rgba(27, 42, 74, 0.14);
  --shadow-lg: 0 24px 60px rgba(27, 42, 74, 0.2);
  --radius: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

img {
  max-width: 100%;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.03);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.header-cta {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #ffffff 0%, var(--navy-light) 50%, #eaf6fd 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--blue));
  height: 2px;
  opacity: 0.15;
  border-radius: 2px;
}

.line1 {
  width: 40%;
  top: 20%;
  left: -5%;
  animation: slideLine 14s linear infinite;
}

.line2 {
  width: 30%;
  top: 65%;
  right: -5%;
  background: linear-gradient(90deg, var(--orange), transparent);
  animation: slideLine 11s linear infinite reverse;
}

.line3 {
  width: 25%;
  top: 40%;
  left: 30%;
  background: linear-gradient(90deg, transparent, var(--navy));
  opacity: 0.1;
  animation: slideLine 9s linear infinite;
}

.circuit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.dot1 {
  background: var(--orange);
  top: 20%;
  left: 30%;
}

.dot2 {
  background: var(--blue);
  top: 62%;
  right: 28%;
  animation-delay: 0.8s;
}

.dot3 {
  background: var(--navy);
  top: 38%;
  left: 60%;
  animation-delay: 1.6s;
}

@keyframes slideLine {
  0% {
    transform: translateX(0);
    opacity: 0.05;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    transform: translateX(40px);
    opacity: 0.05;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

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

.highlight {
  color: var(--orange);
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(242, 140, 40, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(242, 140, 40, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(27, 42, 74, 0.2);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hub-circle {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-center {
  width: 150px;
  height: 150px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.hub-orbit {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  --orbit-r: 130px;
  animation: rotate 24s linear infinite;
}

.hub-orbit span {
  font-size: 1.6rem;
  position: absolute;
  background: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transform: translateY(calc(-1 * var(--orbit-r)));
  animation: counterRotate 24s linear infinite;
}

.orbit1 {
  width: 240px;
  height: 240px;
  border: 2px dashed var(--orange);
  opacity: 0.7;
  --orbit-r: 120px;
}

.orbit2 {
  width: 340px;
  height: 340px;
  border: 2px dashed var(--blue);
  opacity: 0.5;
  --orbit-r: 170px;
  animation-duration: 32s;
}

.orbit2 span {
  animation-duration: 32s;
}

.orbit3 {
  width: 190px;
  height: 190px;
  border: 2px dashed var(--navy);
  opacity: 0.4;
  --orbit-r: 95px;
  animation-duration: 18s;
}

.orbit3 span {
  animation-duration: 18s;
}

.orbit4 {
  width: 290px;
  height: 290px;
  border: 2px dashed var(--access);
  opacity: 0.5;
  --orbit-r: 145px;
  animation-duration: 28s;
}

.orbit4 span {
  animation-duration: 28s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes counterRotate {
  from {
    transform: translateY(calc(-1 * var(--orbit-r))) rotate(0deg);
  }

  to {
    transform: translateY(calc(-1 * var(--orbit-r))) rotate(-360deg);
  }
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

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

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

.about-card {
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--gray-bg);
  border: 1px solid rgba(27, 42, 74, 0.06);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.about-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-light);
  font-size: 0.98rem;
}

/* ===== PRODUCTS ===== */
.products {
  background: linear-gradient(180deg, var(--gray-bg), var(--navy-light));
}

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

.product-group {
  margin-bottom: 56px;
}

.product-group:last-child {
  margin-bottom: 0;
}

.product-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.product-group-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.product-group-mark.mark-muted {
  background: linear-gradient(135deg, var(--navy), var(--blue-light-dark));
}

.product-group-mark.mark-access {
  background: linear-gradient(135deg, var(--access), var(--access-dark));
}

.product-group-title h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.product-group-title p {
  color: var(--text-light);
  font-size: 0.92rem;
}

.product-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.product-card-lg {
  padding: 36px 30px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid rgba(27, 42, 74, 0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-card:hover::before {
  height: 6px;
}

.product-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.product-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-link {
  color: var(--card-accent);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.product-card:hover .product-link {
  letter-spacing: 0.5px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-text p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.contact-item svg {
  flex-shrink: 0;
}

.contact-form {
  background: var(--gray-bg);
  border: 1px solid rgba(27, 42, 74, 0.06);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 164, 224, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
}

.footer-logo {
  height: 44px;
  margin-bottom: 16px;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 6px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--orange);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
  }

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

  .product-group-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hub-circle {
    width: 260px;
    height: 260px;
  }

  .orbit1 {
    width: 180px;
    height: 180px;
    --orbit-r: 90px;
  }

  .orbit2 {
    width: 260px;
    height: 260px;
    --orbit-r: 130px;
  }

  .orbit3 {
    width: 140px;
    height: 140px;
    --orbit-r: 70px;
  }

  .orbit4 {
    width: 220px;
    height: 220px;
    --orbit-r: 110px;
  }

  .hub-orbit span {
    transform: translateY(calc(-1 * var(--orbit-r)));
  }

  @keyframes counterRotate {
    from {
      transform: translateY(calc(-1 * var(--orbit-r))) rotate(0deg);
    }

    to {
      transform: translateY(calc(-1 * var(--orbit-r))) rotate(-360deg);
    }
  }
}