:root {
  --primary: #0d47a1;
  --primary-dark: #082e6c;
  --accent: #ff6f00;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1200px;
  /* Marketing section dark theme colors */
  --content-bg: #0a1a3a;
  --content-bg-light: #102d5e;
  --content-card: #15315f;
  --content-border: #1e4076;
  --content-text: #c7d6ee;
  --content-text-bright: #ffffff;
  --content-accent: #ff8c2e;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  font-size: 24px;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

/* Trilingual language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 12px;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.lang-divider {
  color: var(--text-light);
  font-size: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1a3a 0%, #0d2847 30%, #103a6b 60%, #0d4d7a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(0,212,255,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 70%, rgba(0,150,255,0.06) 0%, transparent 50%);
}

.hero-circuit-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%2300d4ff' stroke-width='1.5'%3E%3Cpath d='M0 50 L80 50 L100 30 L180 30 L200 50 L280 50 L300 70 L400 70'/%3E%3Cpath d='M0 150 L60 150 L80 130 L160 130 L180 150 L260 150 L280 170 L400 170'/%3E%3Cpath d='M0 250 L100 250 L120 230 L200 230 L220 250 L320 250 L340 270 L400 270'/%3E%3Cpath d='M0 350 L80 350 L100 330 L180 330 L200 350 L300 350 L320 370 L400 370'/%3E%3Ccircle cx='100' cy='30' r='4' fill='%2300d4ff'/%3E%3Ccircle cx='200' cy='50' r='4' fill='%2300d4ff'/%3E%3Ccircle cx='120' cy='230' r='4' fill='%2300d4ff'/%3E%3Ccircle cx='220' cy='250' r='4' fill='%2300d4ff'/%3E%3Ccircle cx='100' cy='330' r='4' fill='%2300d4ff'/%3E%3Ccircle cx='200' cy='350' r='4' fill='%2300d4ff'/%3E%3Crect x='75' y='95' width='50' height='30' rx='3'/%3E%3Crect x='175' y='195' width='50' height='30' rx='3'/%3E%3Crect x='275' y='295' width='50' height='30' rx='3'/%3E%3Crect x='75' y='295' width='50' height='30' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 400px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,111,0,0.3);
}

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

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 15px;
  opacity: 0.9;
}

/* ==================== INTRO ==================== */
.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text);
}

.intro-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 16px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 500;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.intro-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==================== PRODUCTS ==================== */
.products {
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.product-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.product-specs {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.product-specs li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: #e0e7ff;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.product-btn {
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.product-btn:hover {
  background: var(--primary-dark);
}

/* ==================== APPLICATIONS ==================== */
.applications {
  background: var(--white);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.app-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.app-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.app-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* ==================== MARKETING CONTENT SECTION (NEW) ==================== */
.content-section {
  background: var(--content-bg);
  color: var(--content-text-bright);
  position: relative;
}

.content-section .section-tag {
  color: var(--content-accent);
}

.content-section .section-header h2 {
  color: var(--content-text-bright);
}

.content-section .section-header p {
  color: var(--content-text);
}

/* Subsection styling */
.content-subsection {
  margin-bottom: 56px;
}

.content-subsection:last-child {
  margin-bottom: 0;
}

.content-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--content-text-bright);
  margin-bottom: 8px;
}

.content-subdesc {
  color: var(--content-text);
  font-size: 15px;
  margin-bottom: 28px;
}

/* Video script & knowledge card grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Individual content cards */
.content-card {
  background: var(--content-card);
  border: 1px solid var(--content-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--content-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  border-color: var(--content-accent);
}

.content-card:hover::before {
  opacity: 1;
}

.content-card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.content-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--content-text-bright);
  margin-bottom: 10px;
  line-height: 1.4;
}

.content-card-desc {
  color: var(--content-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.content-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-card-tag {
  background: rgba(255,140,46,0.15);
  color: var(--content-accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA section inside marketing content */
.cta-section {
  background: linear-gradient(135deg, var(--content-bg-light) 0%, #1a3d7a 100%);
  border: 1px solid var(--content-border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin-top: 16px;
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--content-text-bright);
  margin-bottom: 12px;
}

.cta-text {
  font-size: 18px;
  color: var(--content-text);
  margin-bottom: 28px;
}

.btn-accent {
  background: var(--content-accent);
  color: var(--white);
}

.btn-accent:hover {
  background: #e6761e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,140,46,0.3);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* ==================== MARKETS ==================== */
.markets {
  background: var(--bg);
}

.markets-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

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

.markets-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.markets-table tr:hover td {
  background: #f8fafc;
}

.markets-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

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

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

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

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

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 10px;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item p {
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
}

.contact-form {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,71,161,0.1);
}

.btn-block {
  width: 100%;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.footer-content p {
  opacity: 0.8;
  font-size: 14px;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 48px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-image {
    order: -1;
  }

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

  .hero-subtitle {
    font-size: 18px;
  }

  .main-nav {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    min-height: 600px;
  }

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

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 26px;
  }

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

  .contact-form {
    padding: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  /* Marketing content responsive */
  .content-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 32px 20px;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-text {
    font-size: 16px;
  }

  .content-subtitle {
    font-size: 20px;
  }
}