/* Dataweavers China — shared stylesheet
   System font stack only (no Google Fonts / no third-party webfonts):
   this keeps the site fast and reliable on mainland connections, avoids
   any question over the Aeonik Pro webfont license, and gives solid
   Simplified Chinese rendering via PingFang SC / Microsoft YaHei. */

:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #5a5a5a;
  --line: #e6e6e6;
  --panel: #f6f6f6;
  --arc: #f50083;
  --fusion: #1a45ff;
  --spark: #ff5100;
  /* Text-safe variants: the brand hexes above are used decoratively
     (top borders, accent bars) where contrast doesn't matter. Arc pink
     and Spark orange fail WCAG AA (4.5:1) as text/button color against
     white, so anywhere the accent color carries text or sits behind
     white text, these slightly darker variants are used instead —
     each verified at ≥4.5:1 against white. Fusion blue already clears
     4.5:1, so its text variant is identical to the brand color. */
  --arc-text: #e4007a;
  --fusion-text: #1a45ff;
  --spark-text: #d34300;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.logo img { height: 26px; width: auto; }
.logo { display: flex; align-items: center; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
}

.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--white);
  padding-bottom: 4px;
}

.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

.lang-switch a {
  text-decoration: none;
  color: var(--white);
  opacity: 0.6;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
}

.lang-switch a.current {
  opacity: 1;
  border-color: var(--white);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero.accent-arc { border-top: 4px solid var(--arc); }
.hero.accent-fusion { border-top: 4px solid var(--fusion); }
.hero.accent-spark { border-top: 4px solid var(--spark); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: var(--white);
}

.eyebrow.arc { background: var(--arc-text); }
.eyebrow.fusion { background: var(--fusion-text); }
.eyebrow.spark { background: var(--spark-text); }

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 20ch;
}

.subhead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 18px;
}

.section p {
  max-width: 72ch;
  margin: 0 0 18px;
}

.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 72ch;
}

/* Product cards on home */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 10px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

.card.arc { border-top-color: var(--arc); }
.card.fusion { border-top-color: var(--fusion); }
.card.spark { border-top-color: var(--spark); }

.card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 0.98rem; }
.card .go { font-weight: 600; font-size: 0.92rem; }
.card.arc .go { color: var(--arc-text); }
.card.fusion .go { color: var(--fusion-text); }
.card.spark .go { color: var(--spark-text); }

/* CTA button */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
}

.btn.arc { background: var(--arc-text); }
.btn.fusion { background: var(--fusion-text); }
.btn.spark { background: var(--spark-text); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 28px;
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.footer-logo img { height: 20px; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; color: inherit; }
.footer-links a:hover { color: var(--white); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-align: center;
  overflow-wrap: anywhere;
}

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

/* Language chooser (root landing) */
.chooser {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.chooser img { height: 34px; margin: 0 auto 32px; }

.chooser-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.chooser-links a {
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 10px 24px;
}
