/* =============================================
   UNITED - GLOBAL STYLESHEET
   Design Tokens from Figma
   ============================================= */

:root {
  --blue: #155dfc;
  --blue-dark: #1c398e;
  --cyan: #00d3f3;
  --dark: #101828;
  --gray: #4a5565;
  --light: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --gradient-blue: linear-gradient(143deg, rgb(28,57,142) 0%, rgb(20,71,230) 50%, rgb(0,184,219) 100%);
  --gradient-dark: linear-gradient(162deg, rgb(16,24,40) 0%, rgb(30,41,57) 100%);
  --gradient-light: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.12); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); background: rgba(21,93,252,0.06); }
.nav-link.active { color: var(--blue); font-weight: 600; background: rgba(21,93,252,0.08); }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
}
.dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  transition: background 0.15s;
}
.dropdown-item:hover { background: rgba(21,93,252,0.06); color: var(--blue); }

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(21,93,252,0.3); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  color: var(--dark);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: rgba(21,93,252,0.04); }
.lang-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* PAGE BANNER (for inner pages) */
.page-banner {
  margin-top: 80px;
  background: var(--gradient-blue);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.page-banner h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.page-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}
.banner-breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.banner-breadcrumb a:hover { color: var(--white); }

/* SECTION COMMON */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before, .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.section-header h2 { font-size: 40px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.section-header p { font-size: 16px; color: var(--gray); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* FOOTER */
.footer {
  background: var(--gradient-dark);
  padding: 64px 40px 0;
  color: rgba(255,255,255,0.75);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cyan); }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.contact-list li img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.6; flex-shrink: 0; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* CARD STYLES */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* BADGE */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.badge-blue { background: rgba(21,93,252,0.1); color: var(--blue); }
.badge-green { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-cyan { background: rgba(0,211,243,0.1); color: #0891b2; }

/* RESPONSIVE HEADER */
@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; gap: 16px; }
  .nav { gap: 2px; }
  .nav-link { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    gap: 4px;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav-link { font-size: 15px; padding: 12px 16px; }
  .header-actions .btn-ghost,
  .header-actions .btn-primary,
  .header-actions .lang-btn { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-header h2 { font-size: 30px; }
  .page-banner h1 { font-size: 36px; }
  .page-banner { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 48px 20px 0; }
  .section-header h2 { font-size: 26px; }
  .page-banner h1 { font-size: 28px; }
}
