/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --red-light: #ff1a27;
  --dark: #1a1a1a;
  --dark-soft: #2d2d2d;
  --gray-900: #333;
  --gray-700: #555;
  --gray-500: #888;
  --gray-300: #ccc;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --font: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --header-height: 72px;
  --container-max: 1180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(24px, var(--safe-left));
  padding-right: max(24px, var(--safe-right));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.8125rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: visible;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(16px, var(--safe-left));
  padding-right: max(16px, var(--safe-right));
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  position: relative;
  z-index: 1001;
}

.nav {
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.08em;
}

.logo-icon {
  width: auto;
  height: 24px;
  display: block;
}

.logo-text {
  white-space: nowrap;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 52px;
  overflow: visible;
}

.nav-list > li > a,
.nav-dropdown-toggle {
  color: var(--dark);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-list > li > a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 11px 26px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--red-dark) !important;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #1a3a5c;
  padding: 8px 0;
  list-style: none;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--white) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition);
  cursor: pointer;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--gray-300);
  color: var(--dark);
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  line-height: 1;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-switcher-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  opacity: 0.65;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 112px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1003;
}

.lang-switcher.open .lang-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher-option:hover,
.lang-switcher-option.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--red);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1002;
  -webkit-appearance: none;
  appearance: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--safe-top) + 40px) max(16px, var(--safe-right)) calc(80px + var(--safe-bottom)) max(16px, var(--safe-left));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 40%, #0d2137 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 50%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title--center {
  max-width: 900px;
}

.hero-title .highlight {
  color: var(--red);
}

.hero-title-accent {
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(10, 30, 60, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition), transform var(--transition);
}

.hero-tag:hover {
  border-color: rgba(56, 189, 248, 0.9);
  transform: translateY(-2px);
}

.hero-tag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #38bdf8;
  flex-shrink: 0;
}

.hero-tag-icon svg {
  width: 20px;
  height: 20px;
}

.hero-desc {
  max-width: 640px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .hero-tags {
    gap: 12px;
  }

  .hero-tag {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }

  .hero-tag-icon {
    width: 32px;
    height: 32px;
  }

  .hero-tag-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Section Common ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

/* ===== Systems ===== */
.systems {
  padding: 100px 0;
  background: var(--white);
}

.systems-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.systems-desc {
  color: var(--gray-700);
  font-size: 1.125rem;
  margin: 16px 0 0;
}

.systems-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-card {
  flex: 0 0 calc(33.333% - 16px);
  padding: 40px 32px;
  background: var(--gray-100);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.system-card:hover {
  border-color: var(--red);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.system-card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1;
}

.system-card-icon--svg {
  width: 44px;
  height: 44px;
}

.system-card-icon--svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.system-card:hover .system-card-icon--svg {
  color: var(--red);
}

.system-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.system-card p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--dark);
  background: none;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ===== Future ===== */
.future {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--white);
}

.future-bg {
  display: none;
}

.future-header {
  text-align: center;
  margin-bottom: 48px;
}

.future-header .section-title {
  margin-bottom: 0;
}

.future-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.future-text p {
  color: var(--dark);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.85;
}

.future-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

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

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== About page ===== */
.about-page {
  padding: 64px 0 100px;
  background: var(--white);
}

.about-page-inner {
  max-width: 960px;
}

.about-company-name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #0a3d6b;
  margin-bottom: 24px;
  line-height: 1.35;
}

.about-intro p {
  color: var(--gray-700);
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

.about-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.about-block p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
}

.about-block--team p {
  font-weight: 700;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.about-cta-secondary {
  color: var(--dark);
  border-color: var(--dark);
}

.about-cta-secondary:hover {
  background: var(--dark);
  color: var(--white);
}

@media (max-width: 768px) {
  .about-blocks {
    gap: 24px;
  }
}

.contact {
  padding: 100px 0;
  background: var(--gray-100);
}

.contact .section-title {
  margin-bottom: 40px;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: none;
  margin: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  flex: 1 1 0;
  min-width: 280px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.contact-info-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
}

a.contact-info-value:hover {
  color: var(--red);
}

.contact-page {
  padding-top: 48px;
  padding-bottom: 100px;
}

.contact-page .section-title {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  text-align: left;
  color: #0a3d6b;
}

.contact-info-heading {
  margin-bottom: 0;
  text-align: left;
}

.contact-info-hq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-hq .contact-info-item--inline {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 12px;
}

.contact-info-item--inline .contact-info-label {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--gray-700);
}

.contact-info-item--inline .contact-info-value {
  font-size: 1.5rem;
  white-space: nowrap;
}

.contact-info-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a3d6b;
  text-align: left;
  margin: 0;
}

.contact-info-address {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-visual {
  flex: 1.15 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.contact-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 440px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #fff;
}

.footer-bottom p,
.footer-bottom a {
  color: #fff;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
}

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

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .system-card {
    flex: 0 0 calc(50% - 12px);
  }

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

  .future-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-list {
    gap: 28px;
  }

  .nav-list > li > a,
  .nav-dropdown-toggle {
    font-size: 1rem;
  }

  /* backdrop-filter on header traps position:fixed nav — disable on all header variants */
  .header,
  .header--solid,
  .header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;
  }

  /* Tablet / phone: hamburger nav (ported to body by JS so it is never clipped) */
  .nav {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: auto;
    background: #fff;
    padding: 16px max(20px, var(--safe-right)) calc(24px + var(--safe-bottom)) max(20px, var(--safe-left));
    transform: translate3d(0, -120%, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), visibility var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1100;
  }

  .nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav-list > li > a,
  .header--solid .nav-list > li > a {
    color: var(--dark) !important;
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.0625rem;
    background: transparent;
  }

  .nav-cta,
  .header--solid .nav-cta {
    margin-top: 12px;
    text-align: left;
    display: block;
    background: transparent !important;
    color: var(--dark) !important;
    padding: 16px 0 !important;
  }

  .nav-dropdown {
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-dropdown-toggle,
  .header--solid .nav-dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 0;
    color: var(--dark) !important;
    font-size: 1.0625rem;
    background: transparent;
  }

  .nav-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    min-width: unset;
    width: 100%;
    background: #f0f2f5 !important;
    box-shadow: none;
    display: none;
    overflow: hidden;
    padding: 0;
    z-index: auto;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    padding: 4px 0 8px;
  }

  .nav-dropdown-menu a,
  .header--solid .nav-dropdown-menu a {
    color: var(--dark) !important;
    padding: 12px 16px;
    font-size: 0.9375rem;
    white-space: normal;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a.active,
  .header--solid .nav-dropdown-menu a:hover,
  .header--solid .nav-dropdown-menu a.active {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--dark) !important;
  }

  .menu-toggle {
    display: flex;
  }

  .lang-switcher {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }

  .logo-icon {
    height: 22px;
  }

  .logo-text {
    font-size: 1.1875rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--safe-top) + 28px);
    padding-bottom: calc(56px + var(--safe-bottom));
    align-items: center;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tag {
    font-size: 0.8125rem;
    padding: 8px 12px;
  }

  .future,
  .systems,
  .contact {
    padding: 64px 0;
  }

  .future-text p {
    font-size: 1.0625rem;
  }

  .future-inner {
    gap: 28px;
  }

  .system-card {
    flex: 0 0 100%;
  }

  .contact-layout {
    flex-direction: column;
  }

  .contact-visual img {
    min-height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .contact-info {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 24px;
    min-width: 0;
  }

  .contact-page {
    padding-top: 40px;
    padding-bottom: calc(64px + var(--safe-bottom));
  }

  .contact-info-item--inline .contact-info-label,
  .contact-info-item--inline .contact-info-value,
  .contact-info-subtitle,
  .contact-info-address {
    font-size: 1.0625rem;
  }

  .contact-info-hq .contact-info-item--inline {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .contact-info-item--inline .contact-info-value {
    white-space: normal;
    word-break: break-word;
  }

  .footer {
    padding: 48px 0 calc(28px + var(--safe-bottom));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .about-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta .btn {
    max-width: none;
  }
}

/* ===== Product Pages ===== */
.header--solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.header--solid .logo,
.header--solid .nav-list a,
.header--solid .nav-dropdown-toggle,
.header--solid .lang-btn {
  color: var(--dark);
}

.header--solid .nav-cta {
  color: var(--white) !important;
}

.header--solid .lang-btn {
  border-color: var(--gray-300);
}

.header--solid .menu-toggle span {
  background: var(--dark);
}

.nav-dropdown-menu a.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--safe-top) + 48px) 0 64px;
  overflow: hidden;
}

.page-hero--compact {
  padding: calc(var(--header-height) + var(--safe-top) + 28px) 0 36px;
}

.page-hero--compact .breadcrumb {
  margin-bottom: 14px;
}

.page-hero--compact .page-hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 10px;
}

.page-hero--compact .page-hero-desc {
  font-size: 1rem;
  line-height: 1.55;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-desc {
  max-width: 600px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.page-hero-features {
  max-width: none;
  white-space: nowrap;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-hero-features::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .page-hero-features {
    white-space: normal;
    overflow-x: visible;
    font-size: 0.875rem;
    line-height: 1.7;
  }
}

.product-section {
  padding: 80px 0;
}

.product-section--compact {
  padding: 36px 0;
}

.product-section--compact + .product-section--compact {
  padding-top: 12px;
}

.product-section--tight-bottom {
  padding-bottom: 36px;
}

.product-section--gray {
  background: var(--gray-100);
}

.product-section--dark {
  background: var(--dark);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-eyebrow--light {
  color: var(--red-light);
}

.section-eyebrow--lg {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 8px;
  line-height: 1.2;
}

.section-eyebrow--lg + .section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
}

.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.section-header--compact {
  margin-bottom: 28px;
}

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

.product-overview {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1100px;
  padding-left: 40px;
  padding-right: 40px;
}

.product-overview-header {
  text-align: center;
}

.product-overview-header .section-title {
  margin-bottom: 0;
}

.product-overview-header .section-eyebrow--lg {
  margin-bottom: 20px;
}

.product-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 40px;
  align-items: start;
}

.product-intro-text p:first-child {
  margin-top: 0;
}

.product-intro-text p,
.product-overview-text p {
  color: var(--gray-700);
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.product-intro-text p:last-child {
  margin-bottom: 0;
}

.product-intro-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.product-intro-img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.product-details {
  max-width: 100%;
  margin-top: 8px;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
}

.product-details-col .product-highlights-title {
  margin-top: 24px;
}

/* Feature diamonds diagram */
.feature-diamonds-panel {
  background: #f2f2f2;
  border-radius: 8px;
  padding: 16px 12px 8px;
  margin: 0 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.feature-diamonds {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  padding: 22px 4px 62px;
  margin-top: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: visible;
  scrollbar-width: none;
}

.feature-diamonds::-webkit-scrollbar {
  display: none;
}

.feature-diamond {
  flex-shrink: 0;
  width: 118px;
  height: 118px;
  margin: 0 -4px;
  position: relative;
}

.feature-diamond:first-child {
  margin-left: 0;
}

.feature-diamond:last-child {
  margin-right: 0;
}

.feature-diamond--down {
  margin-top: 58px;
}

.feature-diamond-shape {
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.feature-diamond--blue .feature-diamond-shape {
  background: linear-gradient(145deg, #5a8494 0%, #4a6d7c 100%);
}

.feature-diamond--gold .feature-diamond-shape {
  background: linear-gradient(145deg, #c9a86a 0%, #a88852 100%);
}

.feature-diamond-content {
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--white);
  text-align: center;
  padding: 4px;
  width: 96px;
}

.feature-diamond-content svg {
  width: 30px;
  height: 30px;
  opacity: 0.95;
}

.feature-diamond-content span {
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.product-overview-text .section-title {
  margin-bottom: 24px;
}

.section-title--nowrap {
  white-space: nowrap;
  font-size: clamp(1.125rem, 2vw, 1.875rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-title--nowrap::-webkit-scrollbar {
  display: none;
}

.product-highlights-title {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 1.4375rem;
  font-weight: 700;
  color: var(--dark);
}

.product-highlights-title--section {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 28px;
  text-align: center;
  color: var(--red);
}

.product-features-desc {
  color: var(--gray-700);
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.product-highlights {
  margin-top: 0;
  list-style: none;
}

.product-highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--gray-700);
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

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

.product-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  border: 2px dashed var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-center {
  width: 140px;
  height: 140px;
  padding: 0 10px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  z-index: 2;
  box-sizing: border-box;
}

.diagram-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.diagram-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 36px;
  margin: -18px 0 0 -45px;
  background: #1a3a5c;
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transform: rotate(var(--angle)) translateY(-140px) rotate(calc(-1 * var(--angle)));
}

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

.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

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

.step-card {
  padding: 32px 24px;
  background: var(--gray-100);
  border-left: 3px solid var(--red);
  transition: all var(--transition);
}

.step-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.step-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

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

.app-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.app-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--red);
}

.app-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.app-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.specs-table-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.specs-table th,
.specs-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9375rem;
}

.specs-table th {
  width: 40%;
  font-weight: 600;
  color: var(--dark);
  background: var(--gray-100);
}

.specs-table td {
  color: var(--gray-700);
}

.product-compare-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto 16px;
  max-width: 100%;
}

.product-compare-photo {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 520px;
}

.product-compare-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.compare-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  box-shadow: var(--shadow);
}

.compare-table thead th {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
}

.compare-table thead th:first-child {
  background: var(--gray-100);
  color: var(--gray-700);
  width: 50%;
}

.compare-table thead th:last-child {
  background: #1a3a5c;
  color: var(--white);
  width: 50%;
}

.compare-table tbody td {
  padding: 18px 24px;
  font-size: 0.9375rem;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-100);
}

.compare-table tbody td:first-child {
  background: var(--gray-100);
  color: var(--gray-700);
}

.compare-table tbody td:last-child {
  background: var(--white);
  color: var(--dark);
  font-weight: 500;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.product-cta {
  padding: 64px 0;
  background: var(--red);
}

.product-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.product-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.product-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.product-cta .btn-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  flex-shrink: 0;
}

.product-cta .btn-primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--red-dark);
  box-shadow: none;
}

@media (max-width: 1024px) {
  .feature-grid,
  .steps-grid,
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-intro-visual {
    justify-content: center;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-diamond {
    width: 108px;
    height: 108px;
    margin: 0 -3px;
  }

  .feature-diamond--down {
    margin-top: 54px;
  }

  .feature-diamond-content {
    width: 88px;
    gap: 6px;
  }

  .feature-diamond-content svg {
    width: 28px;
    height: 28px;
  }

  .feature-diamond-content span {
    font-size: 0.75rem;
  }

  .feature-diamonds {
    padding: 20px 4px 58px;
  }
}

@media (max-width: 768px) {
  .product-overview {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-section {
    padding: 48px 0;
  }

  .product-section--compact {
    padding: 28px 0;
  }

  .page-hero,
  .page-hero--compact {
    padding-left: 0;
    padding-right: 0;
  }

  .page-hero-content {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }

  .product-compare-photos {
    flex-direction: column;
    gap: 16px;
  }

  .feature-grid,
  .steps-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .product-diagram {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }

  .diagram-center {
    width: 120px;
    height: 120px;
    padding: 0 8px;
    font-size: 0.625rem;
  }

  .diagram-node {
    transform: rotate(var(--angle)) translateY(-115px) rotate(calc(-1 * var(--angle)));
    width: 76px;
    font-size: 0.625rem;
  }

  .feature-diamonds-panel {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 0;
    padding: 12px 8px;
  }

  .feature-diamonds {
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    padding: 16px 8px 48px;
  }

  .feature-diamond {
    width: 96px;
    height: 96px;
    margin: 0 -2px;
  }

  .feature-diamond--down {
    margin-top: 48px;
  }

  .feature-diamond-content {
    width: 78px;
  }

  .feature-diamond-content span {
    font-size: 0.6875rem;
  }

  .compare-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table {
    min-width: 560px;
    font-size: 0.8125rem;
  }

  .compare-table thead th,
  .compare-table tbody td {
    padding: 10px 12px;
  }

  .product-cta {
    padding: 48px 0 calc(48px + var(--safe-bottom));
  }

  .product-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .product-cta .btn-primary {
    width: 100%;
    max-width: 280px;
  }

  .specs-table th,
  .specs-table td {
    display: block;
    width: 100%;
  }

  .specs-table th {
    padding-bottom: 4px;
  }

  .specs-table td {
    padding-top: 4px;
    padding-bottom: 20px;
  }
}
