@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* =====================================================
   B&D Technologies - Professional Corporate Styles
   ===================================================== */

:root {
  /* Primary Colors */
  --primary-900: #0a2540;
  --primary-800: #0d3a5c;
  --primary-700: #0f4c75;
  --primary-600: #1565a0;
  --primary-500: #1976d2;
  --primary-400: #42a5f5;
  --primary-300: #90caf9;
  --primary-200: #bbdefb;
  --primary-100: #e3f2fd;
  --primary-50: #f5faff;

  /* Neutral Colors */
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;

  /* Accent Colors */
  --accent-teal: #0d9488;
  --accent-teal-light: #99f6e4;
  --accent-amber: #d97706;
  --accent-amber-light: #fde68a;

  /* Semantic */
  --bg: var(--neutral-50);
  --surface: #ffffff;
  --text: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --muted: var(--neutral-500);
  --accent: var(--primary-600);
  --accent-soft: var(--primary-100);
  --border: var(--neutral-200);
  --border-light: var(--neutral-100);

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(21, 101, 160, 0.15);

  /* Spacing & Layout */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Typography */
  --font-primary: 'Inter', 'Noto Sans TC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Noto Sans TC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
}

/* =====================================================
   Reset & Base
   ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--primary-700);
}

/* =====================================================
   Layout
   ===================================================== */

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrapper-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   Header
   ===================================================== */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}

.logo-block:hover {
  text-decoration: none;
}

.logo-block img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

.logo-title {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  max-width: 240px;
}

.logo-title .name {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-title .tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  flex: 0 0 auto;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--neutral-100);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Language Switcher - Globe Dropdown */
.lang-switcher {
  position: relative;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--neutral-100);
  border-color: var(--accent);
}

.lang-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.lang-toggle:hover svg {
  color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 200;
  overflow: hidden;
}

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

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.lang-dropdown a:hover {
  background: var(--neutral-100);
  color: var(--text);
}

.lang-dropdown a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-dropdown a.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--neutral-100);
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
  padding: 48px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(21, 101, 160, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 148, 136, 0.05), transparent);
  pointer-events: none;
}

.hero-surface {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 64px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.hero-surface::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(21, 101, 160, 0.06), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(13, 148, 136, 0.04), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.hero p {
  max-width: 600px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.8;
}

/* Tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--primary-200);
}

.tag svg {
  width: 14px;
  height: 14px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--accent-teal) 100%);
  aspect-ratio: 21 / 9;
  min-height: 320px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Animated Globe */
.globe-container {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.15;
}

.globe {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  animation: rotate 30s linear infinite;
}

.globe::before,
.globe::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.globe::before {
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
}

.globe::after {
  top: 25%;
  left: 25%;
  right: 25%;
  bottom: 25%;
}

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

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

/* Legacy banner slot (for backward compatibility) */
.banner-slot {
  display: none;
}

/* =====================================================
   Sections
   ===================================================== */

.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: var(--primary-900);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.8);
}

.section h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section .lead {
  margin: 0 0 40px;
  color: var(--text-secondary);
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .lead {
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   Grid System
   ===================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 768px) {

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Cards
   ===================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.card-icon-sm {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.card-icon-sm svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* Feature Cards */
.feature-card {
  padding: 40px;
  text-align: center;
}

.feature-card .card-icon {
  margin: 0 auto 24px;
  width: 72px;
  height: 72px;
}

.feature-card .card-icon svg {
  width: 36px;
  height: 36px;
}

/* Stat Cards */
.stat-card {
  text-align: center;
  padding: 32px;
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Highlight Card */
.highlight {
  background: linear-gradient(135deg, var(--primary-50), var(--surface));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(21, 101, 160, 0.08), transparent 60%);
  pointer-events: none;
}

.highlight h2 {
  margin-bottom: 16px;
}

/* =====================================================
   CTA Buttons
   ===================================================== */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary-700));
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(21, 101, 160, 0.35);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 101, 160, 0.4);
}

.cta svg {
  width: 18px;
  height: 18px;
}

.cta-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cta-secondary:hover {
  background: var(--neutral-100);
  color: var(--text);
  box-shadow: var(--shadow);
}

.cta-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  padding: 12px 20px;
}

.cta-ghost:hover {
  background: var(--accent-soft);
  box-shadow: none;
}

/* =====================================================
   Lists
   ===================================================== */

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

.list-check li::before {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  color: var(--accent-teal);
  font-weight: 600;
  margin-top: 0;
}

/* =====================================================
   Badges & Chips
   ===================================================== */

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

/* =====================================================
   Region Map / Global Section
   ===================================================== */

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

.region-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.region-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-soft);
}

.region-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent-soft), var(--primary-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.region-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.region-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* =====================================================
   Placeholder Visuals
   ===================================================== */

.placeholder-visual {
  height: 200px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* World Map Placeholder */
.world-map {
  height: 300px;
  background:
    linear-gradient(135deg, var(--primary-100), var(--primary-50)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cpath fill='%231565a0' fill-opacity='0.1' d='M40,80 Q60,60 80,80 T120,80 Q140,60 160,80 T200,80 Q220,60 240,80 T280,80 Q300,60 320,80 T360,80'/%3E%3C/svg%3E");
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* =====================================================
   Forms
   ===================================================== */

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

.contact-form button {
  width: fit-content;
  border: none;
  cursor: pointer;
}

/* =====================================================
   Tables
   ===================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: var(--neutral-100);
  font-weight: 600;
  color: var(--text);
}

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

.table tr:hover td {
  background: var(--neutral-50);
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
  margin-top: 80px;
}

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

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

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

.footer-brand p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer .list li::before {
  display: none;
}

.footer .list li {
  gap: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

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

.footer .legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer .icp-filing {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer .icp-filing a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Legacy footer grid support */
.footer .grid.cols-3 {
  grid-template-columns: 2fr 1fr 1fr;
}

/* =====================================================
   Animations
   ===================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* =====================================================
   Utility Classes
   ===================================================== */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }

  .lang-switcher {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-surface {
    padding: 32px;
    border-radius: var(--radius-xl);
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 24px;
  }

  .highlight {
    padding: 32px;
  }

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

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 16px 0;
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
  }
}

/* =====================================================
   Print Styles
   ===================================================== */

@media print {

  .site-header,
  .footer,
  .cta {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero-surface,
  .card,
  .highlight {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* =====================================================
   Manufacturing Page - Supply Chain Styles
   ===================================================== */

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-support {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-200), var(--accent-teal-light), var(--primary-200));
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.process-step:hover .process-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.process-icon svg {
  color: var(--accent);
}

.process-step h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.process-step p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

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

  .process-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .process-icon {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
  }

  .process-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* KPI Cards */
.kpi-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--surface), var(--neutral-50));
}

.kpi-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.kpi-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  margin-bottom: 24px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table th:first-child {
  background: var(--neutral-800);
}

.comparison-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
  background: var(--neutral-50);
}

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

.comparison-table tr:hover td {
  background: var(--primary-50);
}

.comparison-table tr:hover td:first-child {
  background: var(--neutral-100);
}

.comparison-summary {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  background: var(--neutral-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

/* Project Content Layout */
.project-content {
  position: relative;
}

.project-info h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-info h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.project-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--surface), var(--primary-50));
  border: 2px solid var(--primary-200);
}

.cta-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-card h3 {
  color: var(--text);
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Section CTA */
.section-cta {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: white;
  padding: 80px 0;
}

.section-cta h2 {
  color: white;
}

.section-cta .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.section-cta .card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.section-cta .card h3 {
  color: white;
}

.section-cta .card p {
  color: rgba(255, 255, 255, 0.8);
}

.section-cta .btn-primary {
  background: white;
  color: var(--primary-900);
}

.section-cta .btn-primary:hover {
  background: var(--neutral-100);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* List Styling */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .kpi-value {
    font-size: 28px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* =====================================================
   GDPR Cookie Consent Banner
   ===================================================== */

.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gdpr-banner.show {
  transform: translateY(0);
}

.gdpr-banner.hide {
  transform: translateY(100%);
}

.gdpr-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gdpr-banner-text {
  flex: 1;
  min-width: 280px;
}

.gdpr-banner-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gdpr-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdpr-banner-text a:hover {
  color: var(--primary-700);
}

.gdpr-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.gdpr-btn {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.gdpr-btn-accept {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.gdpr-btn-accept:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.gdpr-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.gdpr-btn-decline:hover {
  background: var(--neutral-100);
  color: var(--text);
  border-color: var(--neutral-300);
}

@media (max-width: 768px) {
  .gdpr-banner {
    padding: 16px 20px;
  }

  .gdpr-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .gdpr-banner-text {
    min-width: 100%;
  }

  .gdpr-banner-actions {
    width: 100%;
    justify-content: center;
  }

  .gdpr-btn {
    flex: 1;
    padding: 12px 20px;
  }
}