/* ============================================================
   First Mover Technology — landing page styles
   ============================================================ */
:root {
  --navy: #0f1b2d;
  --navy-2: #16243a;
  --navy-3: #1f3050;
  --orange: #ee6c24;
  --orange-2: #ff8a45;
  --ink: #1c2430;
  --muted: #5b6573;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 27, 45, 0.08);
  --font-sans: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1140px, 100% - 2.5rem); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.section-label.light { color: var(--orange-2); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 18px; }
.section-intro { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-intro, .section-contact .section-intro { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(238,108,36,0.35); }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-zh { font-weight: 700; font-size: 1rem; }
.brand-en { font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); text-transform: uppercase; }
html[lang="en"] .brand-zh { display: none; }
html[lang="en"] .brand-en { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: #fff; text-transform: none; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 0.93rem; font-weight: 500; color: rgba(255,255,255,0.8); transition: color .15s; }
.main-nav a:hover { color: #fff; }
.main-nav .nav-cta { padding: 8px 18px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; }
.main-nav .nav-cta:hover { background: var(--orange-2); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.lang-toggle .lang-opt.active { color: #fff; }
.lang-toggle .lang-sep { opacity: 0.4; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--navy);
  padding: clamp(72px, 10vw, 130px) 0 clamp(48px, 6vw, 72px);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 38%, rgba(15,27,45,0.55) 60%, rgba(15,27,45,0.15) 100%),
    url("../assets/img/hero-footprint.jpg") center right / cover no-repeat;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 620px; }
.eyebrow { color: var(--orange-2); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 18px; font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; margin-bottom: 22px; }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pillars {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: clamp(56px, 8vw, 96px);
}
.pillar {
  background: rgba(15, 27, 45, 0.55); color: #fff; border-radius: var(--radius); padding: 24px 22px;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.pillar-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(238,108,36,0.18); color: var(--orange-2); display: grid; place-items: center; margin-bottom: 14px; }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-reverse .split-copy { order: 0; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-copy p + p { margin-top: 14px; }
.split-copy > p { color: var(--muted); }

.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-top: 28px; }
.focus-grid li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.focus-grid .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }

/* ---------- Approach steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.step h3 small { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step::after {
  content: ""; position: absolute; top: 50%; right: -12px; width: 20px; height: 2px; background: var(--line);
}
.step:last-child::after { display: none; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--orange); background: rgba(238,108,36,0.1); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- FCOP ---------- */
.fcop-shot { margin: 0 auto clamp(36px, 5vw, 56px); max-width: 900px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-grid li { padding: 6px 0; }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.feat-icon svg { width: 22px; height: 22px; }
.feature-grid h4 { font-size: 1rem; margin-bottom: 6px; }
.feature-grid p { color: var(--muted); font-size: 0.9rem; }
.fcop-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(36px, 5vw, 52px); }
.fcop-badges span { border: 1px solid var(--line); background: var(--bg-alt); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; }

/* ---------- Showcase ---------- */
.showcase { background: var(--navy); padding: clamp(40px, 6vw, 72px) 0; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.showcase figure { margin: 0; }
.showcase img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); width: 100%; }
.showcase figcaption { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 12px; }

/* ---------- ESG ---------- */
.section-dark {
  color: #fff;
  background: var(--navy-2) url("../assets/img/stars-bg.jpg") center / cover no-repeat;
}
.esg-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.esg-head > div { max-width: 680px; }
.esg-earth { width: clamp(160px, 20vw, 240px); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }
.esg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.esg-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px 26px; backdrop-filter: blur(6px);
}
.esg-num { display: block; font-size: 0.85rem; font-weight: 800; color: var(--orange-2); letter-spacing: 0.1em; margin-bottom: 12px; }
.esg-card h3 { font-size: 1.2rem; margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.esg-card h3 small { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
.esg-card p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ---------- Awards ---------- */
.awards-list { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); }
.awards-list li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 14px 0 14px 22px; position: relative; }
.awards-list li::before {
  content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--orange);
}
.award-year { font-weight: 800; color: var(--navy); font-size: 1rem; padding-top: 1px; }
.awards-list strong { display: block; font-size: 1rem; }
.awards-list div > span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Tech set (inside About) ---------- */
.tech-set { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.tech-set h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; font-size: 0.82rem; font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.section-contact {
  color: #fff; text-align: center;
  background: var(--navy) url("../assets/img/stars-tunnel.jpg") center / cover no-repeat;
  position: relative;
}
.section-contact::before { content: ""; position: absolute; inset: 0; background: rgba(15,27,45,0.78); }
.contact-inner { position: relative; max-width: 680px; }
.contact-inner .section-intro { margin-bottom: 30px; }
.contact-meta { margin-top: 22px; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1220; color: rgba(255,255,255,0.7); padding: 34px 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-tag { color: var(--orange-2); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1rem; }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }

  .hero-bg { background-position: 75% center; }
  .pillars { grid-template-columns: 1fr; margin-top: 44px; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-reverse .split-media { order: -1; }
  .esg-head { grid-template-columns: 1fr; text-align: center; }
  .esg-head > div { margin: 0 auto; }
  .esg-earth { margin: 0 auto; }
  .esg-cards { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase img { aspect-ratio: 16 / 10; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { width: 100%; font-size: 1rem; }
  .awards-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* English mode: the small English sub-labels would duplicate the title */
html[lang="en"] .step h3 small,
html[lang="en"] .esg-card h3 small { display: none; }
