/* ══════════════════════════════════════════════════════════════
   XIHUA HOLDINGS — FIGMA VER 2.0 CANONICAL CORPORATE STYLESHEET
   Faithful 1:1 implementation of Figma Document XIHUA VER 2.0 (Node 1:2)
   ══════════════════════════════════════════════════════════════ */

:root {
  /* FIGMA VER 2.0 COLOR PALETTE */
  --c-navy-dark: #041330;
  --c-navy-primary: #012c71;
  --c-navy-secondary: #102b55;
  --c-navy-section: #021e4c;
  --c-cyan-accent: #0a9aca;
  --c-cyan-bright: #00c2ff;
  --c-ice-bg: rgba(235, 247, 251, 0.88);
  --c-ice-card: rgba(237, 248, 252, 0.92);
  --c-ice-btn: #e2ebf5;
  --c-white: #ffffff;
  
  --c-text-headline: #041330;
  --c-text-body: #102b55;
  --c-text-muted: rgba(16, 43, 85, 0.7);
  --c-text-light: #ffffff;
  --c-text-light-muted: rgba(255, 255, 255, 0.74);
  
  --c-border-divider: rgba(16, 43, 85, 0.18);
  --c-border-primary: rgba(1, 44, 113, 0.35);
  
  /* TYPOGRAPHY */
  --font-roboto: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-inter: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* LAYOUT & HARDWARE SAFE-AREAS */
  --max-width: 1740px;
  --content-padding: 0 100px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --header-base-height: 80px;
  --header-height: calc(var(--header-base-height) + var(--safe-area-top));
  --radius-sm: 4px;
  --radius-md: 8px;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--c-white);
  color: var(--c-text-body);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-roboto);
  background-color: var(--c-white);
  color: var(--c-text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════════════════ HEADER / NAVBAR ═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding-top: var(--safe-area-top);
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(16, 43, 85, 0.12);
  z-index: 1000;
  transform: translateZ(0);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.30);
  box-shadow: 0 4px 20px rgba(4, 19, 48, 0.08);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background-color: rgba(16, 43, 85, 0.25);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-navy-primary);
  letter-spacing: 0.7px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--c-navy-secondary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-navy-secondary);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--c-navy-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-navy-primary);
}

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

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 290px;
  background: #ffffff;
  border: 1px solid rgba(16, 43, 85, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(4, 19, 48, 0.12);
  padding: 8px 0;
  margin-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(235, 247, 251, 0.7);
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-navy-primary);
}

.dropdown-desc {
  font-size: 0.72rem;
  color: var(--c-navy-secondary);
  opacity: 0.8;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector-figma {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 43, 85, 0.35);
  padding: 6px 12px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-roboto);
  font-size: 11px;
  font-weight: 700;
  color: #102b55;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.lang-selector-figma:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--c-navy-primary);
}

.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(16, 43, 85, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(4, 19, 48, 0.12);
  padding: 6px;
  min-width: 140px;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-dropdown-menu.hidden {
  display: none !important;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-roboto);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-navy-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: var(--c-ice-bg);
  color: var(--c-navy-primary);
}

.lang-option.active {
  background: rgba(1, 44, 113, 0.08);
  color: var(--c-navy-primary);
  font-weight: 700;
}

.lang-option .lang-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-navy-primary);
  background: rgba(1, 44, 113, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px;
}

.btn-cms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-navy-primary);
  background: rgba(1, 44, 113, 0.08);
  border: 1px solid rgba(1, 44, 113, 0.25);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-cms-link:hover {
  background: rgba(1, 44, 113, 0.15);
}

.btn-trdflo-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-navy-primary);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-trdflo-nav:hover {
  background: #064f87;
  transform: translateY(-1px);
}

.btn-auth-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--c-navy-secondary);
  padding: 7px 12px;
  border: 1px solid rgba(16, 43, 85, 0.2);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.btn-auth-header:hover {
  border-color: var(--c-navy-primary);
}

.user-profile-menu {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 4px;
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--c-navy-primary);
}

.user-display-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-navy-primary);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(16, 43, 85, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 12px;
  min-width: 200px;
  z-index: 100;
  margin-top: 8px;
}

.user-dropdown-email {
  font-size: 0.75rem;
  color: var(--c-navy-secondary);
  margin-bottom: 8px;
  word-break: break-all;
}

.btn-sign-out {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-size: 0.8rem;
  color: #ef4444;
  padding: 6px 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  z-index: 1010;
}

.hamburger:hover {
  background: rgba(1, 44, 113, 0.08);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--c-navy-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════ MOBILE COLLAPSIBLE MENU ═══════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 19, 48, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(4, 19, 48, 0.2);
  border-bottom: 2px solid var(--c-navy-primary);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: var(--header-height);
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateY(0);
}

.mobile-drawer-inner {
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-roboto);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-navy-dark);
  text-decoration: none;
  background: transparent;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--c-ice-bg);
  color: var(--c-navy-primary);
  border-left-color: var(--c-navy-primary);
}

.mobile-nav-arrow {
  font-size: 14px;
  color: rgba(16, 43, 85, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow {
  transform: translateX(4px);
  color: var(--c-navy-primary);
}

/* Accordion in Mobile Nav */
.mobile-nav-accordion {
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 0.2s ease;
}

.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-family: var(--font-roboto);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-navy-dark);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.mobile-accordion-toggle:hover {
  background: var(--c-ice-bg);
  color: var(--c-navy-primary);
}

.mobile-accordion-icon {
  font-size: 13px;
  transition: transform 0.25s ease;
  color: rgba(16, 43, 85, 0.6);
}

.mobile-nav-accordion.open .mobile-accordion-icon {
  transform: rotate(180deg);
  color: var(--c-navy-primary);
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  padding: 4px 0 8px 16px;
  background: rgba(235, 247, 251, 0.4);
  border-left: 2px solid rgba(1, 44, 113, 0.2);
  margin: 0 8px 8px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mobile-nav-accordion.open .mobile-accordion-content {
  display: flex;
}

.mobile-subnav-link {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.mobile-subnav-link:hover {
  background: #ffffff;
}

.mobile-subnav-title {
  font-family: var(--font-roboto);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy-primary);
}

.mobile-subnav-desc {
  font-size: 11px;
  color: var(--c-navy-secondary);
  opacity: 0.85;
  margin-top: 2px;
}

/* Mobile Drawer Footer Actions */
.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 43, 85, 0.12);
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.mobile-lang-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-navy-secondary);
}

.mobile-lang-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-ice-bg);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 43, 85, 0.15);
}

.mobile-lang-pill {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-family: var(--font-roboto);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-navy-secondary);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-lang-pill.active {
  background: var(--c-navy-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(1, 44, 113, 0.2);
}

.btn-trdflo-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-navy-primary);
  color: #ffffff !important;
  font-family: var(--font-roboto);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(1, 44, 113, 0.2);
}

.btn-cms-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-ice-bg);
  border: 1px solid rgba(1, 44, 113, 0.25);
  color: var(--c-navy-primary) !important;
  font-family: var(--font-roboto);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
}

/* ═══════════════════════════════════════ HERO SECTION (FIGMA 1:6) ═══════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 940px;
  max-height: 1220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: #dceef7;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 40px 40px;
}

.hero-header-block {
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(1, 44, 113, 0.35);
  padding: 6px 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge span {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: 10px;
  color: var(--c-navy-primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
}

.hero-title {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.2vw, 55px);
  line-height: 1.05;
  color: var(--c-navy-dark);
  letter-spacing: 0.2px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-navy-secondary);
  max-width: 700px;
  margin-bottom: 32px;
}

.hero-ctas-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--c-navy-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 13px 22px;
  min-height: 44px;
  text-transform: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(1, 44, 113, 0.25);
}

.btn-hero-primary:hover {
  background-color: #064f87;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(237, 248, 252, 0.92);
  border: 1px solid rgba(1, 44, 113, 0.35);
  color: var(--c-navy-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 13px 22px;
  min-height: 44px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: #ffffff;
  border-color: var(--c-navy-primary);
}

/* ═══════════════════════════════════════ METRICS STRIP (FIGMA 1:28) ═══════════════════════════════════════ */
.metrics-strip-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 40px;
}

.metrics-grid-figma {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  border-top: 3px solid var(--c-navy-primary);
  box-shadow: 0 10px 30px rgba(4, 19, 48, 0.08);
}

.metric-cell-figma {
  background: var(--c-ice-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  position: relative;
  transition: background 0.2s ease;
}

.metric-cell-figma:hover {
  background: rgba(245, 252, 255, 0.96);
}

.metric-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.metric-val-figma {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--c-navy-primary);
}

.metric-id-figma {
  font-size: 11px;
  font-weight: 600;
  color: rgba(16, 43, 85, 0.45);
}

.metric-label-figma {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-navy-primary);
  margin-bottom: 4px;
}

.metric-desc-figma {
  font-size: 11px;
  line-height: 1.45;
  color: var(--c-navy-secondary);
}

/* ═══════════════════════════════════════ COMMON COMPONENTS (DYNAMIC) ═══════════════════════════════════════ */
.common-components-section {
  max-width: 1440px;
  margin: 30px auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-ribbon {
  background: linear-gradient(90deg, #012c71 0%, #064f87 100%);
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(1, 44, 113, 0.15);
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #ffffff;
  color: var(--c-navy-primary);
  padding: 3px 8px;
  border-radius: 2px;
}

.ribbon-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.ribbon-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

.ribbon-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ribbon-link:hover {
  text-decoration: underline;
}

.cta-banner-component {
  background: linear-gradient(135deg, #012c71 0%, #064f87 100%);
  color: #ffffff;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(1, 44, 113, 0.2);
}

.cta-banner-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 720px;
}

.btn-cta-banner {
  background: var(--c-ice-btn);
  color: var(--c-navy-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-cta-banner:hover {
  background: #ffffff;
}

/* ═══════════════════════════════════════ MARITIME SILK ROUTE (FIGMA 1:147) ═══════════════════════════════════════ */
.maritime-section {
  position: relative;
  background-color: var(--c-white);
  border-bottom: 1px solid rgba(16, 43, 85, 0.15);
  padding: 90px 0;
  overflow: hidden;
}

.maritime-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

.maritime-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maritime-grid-figma {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.maritime-header-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tag-line-blue {
  width: 31px;
  height: 2px;
  background-color: var(--c-navy-primary);
}

.tag-text-blue {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: var(--c-navy-primary);
}

.maritime-headline {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 42px);
  line-height: 1.15;
  color: var(--c-navy-primary);
  max-width: 580px;
}

.maritime-right-col {
  padding-left: 50px;
  border-left: 1px solid rgba(16, 43, 85, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.maritime-body-text {
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-navy-secondary);
}

/* ═══════════════════════════════════════ CORPORATE STRUCTURE (FIGMA 1:167) ═══════════════════════════════════════ */
.corp-section-figma {
  background-color: var(--c-navy-section);
  padding: 100px 0 110px;
  color: #ffffff;
}

.corp-header-block {
  max-width: 1440px;
  margin: 0 auto 50px;
  padding: 0 40px;
}

.tag-line-white {
  width: 31px;
  height: 2px;
  background-color: #ffffff;
}

.tag-text-white {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: #ffffff;
}

.corp-subtitle {
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  max-width: 640px;
  margin-top: 14px;
}

.corp-cards-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.corp-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.corp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.card-grad-hainan {
  background: linear-gradient(135deg, rgb(1, 44, 113) 6.17%, rgb(6, 79, 135) 93.83%);
}

.card-grad-sichuan {
  background: linear-gradient(135deg, rgb(6, 71, 120) 6.17%, rgb(10, 154, 202) 93.83%);
}

.card-grad-trdflo {
  background: linear-gradient(135deg, rgb(4, 19, 48) 6.17%, rgb(1, 44, 113) 93.83%);
}

.corp-card-num {
  font-family: var(--font-inter);
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
}

.corp-role-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 120px;
}

.corp-entity-title {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.corp-entity-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 24px;
}

.corp-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.28);
  margin-bottom: 18px;
}

.corp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.corp-bullet-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.square-bullet {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  margin-top: 6px;
  flex-shrink: 0;
}

.corp-card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: #ffffff;
  font-size: 18px;
}

/* ═══════════════════════════════════════ 8 SPECIALIZED OPERATING PILLARS (FIGMA 1:274) ═══════════════════════════════════════ */
.sectors-section-figma {
  background-color: var(--c-white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.sectors-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

.sectors-header-row {
  max-width: 1440px;
  margin: 0 auto 40px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 10;
}

.sectors-heading {
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 38px);
  color: var(--c-navy-primary);
  margin-top: 6px;
}

.carousel-nav-figma {
  display: flex;
  gap: 12px;
}

.btn-carousel-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1210cc;
  border: 1px solid #1210cc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0px 6px 9px rgba(18, 16, 204, 0.28);
}

.btn-carousel-round:hover {
  background: #0d0bb5;
  transform: scale(1.05);
}

.btn-carousel-round:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.sectors-carousel-track-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 10;
}

.sectors-carousel-track-wrapper::-webkit-scrollbar {
  display: none;
}

.sectors-track {
  display: flex;
  gap: 19px;
  width: max-content;
}

.sector-card-figma {
  width: 390px;
  height: 554px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(4, 19, 48, 0.12);
  transition: transform 0.25s ease;
}

.sector-card-figma:hover {
  transform: translateY(-4px);
}

.sector-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 44, 113, 0.05) 0%, rgba(0, 28, 71, 0.104) 6.25%, rgba(0, 23, 58, 0.159) 12.5%, rgba(0, 19, 48, 0.268) 25%, rgba(0, 16, 41, 0.485) 50%, rgba(0, 15, 37, 0.92) 100%);
}

.sector-card-top-content {
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  color: #ffffff;
}

.sector-num-figma {
  font-family: var(--font-inter);
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  display: block;
  line-height: 1;
}

.sector-tag-figma {
  font-family: var(--font-roboto);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 14px;
  display: block;
  letter-spacing: 0.2px;
}

.sector-card-bottom-content {
  position: absolute;
  bottom: 32px;
  left: 28px;
  right: 28px;
  color: #ffffff;
}

.sector-title-figma {
  font-family: var(--font-roboto);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 12px;
}

.sector-desc-figma {
  font-family: var(--font-roboto);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
}

/* ═══════════════════════════════════════ TRDFLO BANNER (FIGMA 1:422) ═══════════════════════════════════════ */
.trdflo-banner-section {
  background-color: var(--c-white);
  padding: 30px 0 100px;
}

.trdflo-banner-card {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #ffffff;
  background: linear-gradient(126.6deg, rgba(1, 44, 113, 0.98) 6.17%, rgba(10, 77, 135, 0.9) 93.83%);
  box-shadow: 0 12px 36px rgba(1, 44, 113, 0.2);
}

.trdflo-banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
}

.trdflo-banner-left {
  position: relative;
  z-index: 10;
  max-width: 760px;
}

.trdflo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  display: block;
}

.trdflo-desc-text {
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 20px;
}

.trdflo-features-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.trdflo-btn-right {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.btn-launch-trdflo-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--c-ice-btn);
  color: var(--c-navy-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-launch-trdflo-large:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════ FOOTER (FIGMA 1:444) ═══════════════════════════════════════ */
.site-footer-figma {
  background-color: var(--c-navy-dark);
  color: #ffffff;
  padding: 76px 0 28px;
}

.footer-inner-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 360px 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-list a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.15s ease;
}

.footer-col-list a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════ MODALS / DRAWERS ═══════════════════════════════════════ */
.detail-modal, .contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 48, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.detail-modal.open, .contact-modal.open {
  display: flex;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.detail-modal-dialog, .contact-modal-dialog {
  background: #ffffff;
  color: var(--c-navy-dark);
  border-radius: var(--radius-sm);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-modal-header, .contact-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(16, 43, 85, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #f8fbfe;
}

.detail-modal-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-navy-primary);
  margin-bottom: 4px;
  display: block;
}

.detail-modal-title, .contact-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-navy-dark);
}

.modal-close-btn {
  font-size: 28px;
  color: var(--c-navy-secondary);
  line-height: 1;
  cursor: pointer;
}

.detail-modal-body, .contact-modal-body {
  padding: 32px;
  overflow-y: auto;
}

/* Contact form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--c-navy-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(16, 43, 85, 0.25);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--c-navy-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-navy-primary);
  box-shadow: 0 0 0 3px rgba(1, 44, 113, 0.1);
}

.btn-primary-form {
  background: var(--c-navy-primary);
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  width: 100%;
  margin-top: 10px;
}

.btn-primary-form:hover {
  background: #064f87;
}

/* Site Toast */
.site-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-navy-dark);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(4, 19, 48, 0.3);
  z-index: 3000;
  display: none;
}

.site-toast.show {
  display: block;
  animation: slideToast 0.25s ease;
}

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

.hidden {
  display: none !important;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .metrics-grid-figma {
    grid-template-columns: repeat(2, 1fr);
  }
  .corp-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-actions .btn-cms-link,
  .header-actions .lang-selector-figma {
    display: none;
  }
  .maritime-grid-figma {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .maritime-right-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(16, 43, 85, 0.2);
    padding-top: 30px;
  }
  .trdflo-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-wrapper {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-divider,
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 0.8rem;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .header-actions .btn-trdflo-nav {
    display: none;
  }
  .btn-auth-header {
    padding: 6px 10px;
    font-size: 11px;
    gap: 5px;
    flex-shrink: 0;
  }
  .hamburger {
    flex-shrink: 0;
  }
  .hero-content-wrapper, .metrics-strip-wrapper,
  .maritime-grid-figma, .corp-header-block, .corp-cards-grid,
  .sectors-header-row, .sectors-carousel-track-wrapper, .trdflo-banner-card,
  .footer-inner-grid, .footer-bottom-bar, .common-components-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mobile-drawer-inner {
    padding: 16px 16px 28px;
  }
  .metrics-grid-figma {
    grid-template-columns: 1fr;
  }
  .sector-card-figma {
    width: 280px;
    height: 420px;
  }
}
