/* ================================================================
   shared.css — Markforged GCR | www.markforged.tw
   Brand: #FFC500 yellow / #000 black / #FFF white / #404040 gray
   Font: Helvetica Neue, Helvetica, Arial, sans-serif
   Updated: 2026-03-25 — Full mobile-first responsive overhaul
   ================================================================ */

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

:root {
  --yellow:  #FFC500;
  --black:   #000000;
  --white:   #FFFFFF;
  --gray1:   #404040;
  --gray2:   #595959;
  --gray3:   #C0C0C0;
  --gray4:   #E4E4E4;
  --font: 'Helvetica Neue', Helvetica, Arial, 'PingFang TC', 'Noto Sans TC', sans-serif;
  --nav-h: 64px;
  /* Spacing scale */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-2xl: 96px;
  /* Section padding (desktop → tablet → mobile) */
  --sec-px: 32px;
  --sec-py: 80px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #fff;
  color: var(--gray1);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: #000; height: var(--nav-h);
  display: flex; align-items: center; padding: 0 24px;
  border-bottom: 2px solid var(--yellow);
}
.nav-logo {
  flex-shrink: 0; text-decoration: none;
  display: flex; align-items: center; margin-right: 16px;
}
.nav-logo svg { display: block; }
.nav-links {
  display: flex; gap: 0; list-style: none;
  margin: 0 auto; padding: 0; flex-shrink: 1; min-width: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: #ccc; text-decoration: none; font-size: 13px;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color .2s; padding: 0 14px; height: var(--nav-h);
  display: flex; align-items: center; white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--yellow); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #111; border: 1px solid #222; min-width: 220px;
  padding: 8px 0; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  border-top: 2px solid var(--yellow);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 24px;
  color: #aaa; text-decoration: none;
  font-size: 13px; font-weight: 500; transition: all .15s;
  letter-spacing: 0.3px;
}
.dropdown a:hover { background: #1a1a1a; color: var(--yellow); padding-left: 28px; }

/* Right side */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta {
  background: var(--yellow); color: #000; text-decoration: none;
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 9px 18px; white-space: nowrap; transition: background .2s;
}
.nav-cta:hover { background: #e6b000; }

/* Language toggle */
.lang-toggle {
  display: flex; border: 1.5px solid #444; overflow: hidden;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; user-select: none;
}
.lang-toggle span {
  padding: 7px 12px; color: #888; transition: all .2s;
}
.lang-toggle span.active { background: var(--yellow); color: #000; }
.lang-toggle span:hover:not(.active) { color: var(--yellow); }
.lang-sep { padding: 7px 0; color: #333; line-height: 1; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; flex-shrink: 0;
  /* min touch target */
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 5px 0; transition: .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); }

@media (max-width: 960px) {
  nav { padding: 0 16px; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #111; flex-direction: column; padding: 16px; gap: 0;
    overflow-y: auto; z-index: 998; margin: 0;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; order: 3; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown {
    display: block; position: static; box-shadow: none;
    border: none; padding: 0 0 0 16px; background: #0a0a0a;
  }
  .nav-links > li > a { height: 52px; padding: 0 10px; font-size: 14px; }
  .nav-right { order: 2; margin-left: auto; gap: 8px; }
  .nav-cta { display: none; }
  .lang-toggle { border-width: 1.5px; }
  .lang-toggle span { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
  .nav-logo svg { width: 130px !important; height: 22px !important; }
  .lang-toggle span { padding: 7px 8px; font-size: 11px; }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; background: var(--yellow); color: #000;
  padding: 15px 36px; font-weight: 800; font-size: 13px;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  border: none; cursor: pointer; transition: all .2s; font-family: var(--font);
  /* min touch target */
  min-height: 48px; line-height: 1.3;
}
.btn-primary:hover { background: #e6b000; transform: translateY(-2px); }
.btn-outline {
  display: inline-block; background: transparent;
  border: 2px solid rgba(255,255,255,.6); color: #fff;
  padding: 13px 32px; font-weight: 700; font-size: 13px;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: all .2s; min-height: 48px; line-height: 1.3;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark {
  display: inline-block; background: #000; color: #fff;
  padding: 15px 36px; font-weight: 800; font-size: 13px;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  border: 2px solid #000; transition: all .2s; min-height: 48px; line-height: 1.3;
}
.btn-dark:hover { background: #1a1a1a; }

/* ─── SECTIONS ─── */
section { padding: var(--sec-py) var(--sec-px); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 11px; letter-spacing: 3px; color: var(--yellow);
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 4vw, 48px); font-weight: 900;
  color: #000; line-height: 1.1; margin-bottom: 16px;
}
.section-title .hl { color: var(--yellow); }
.section-desc {
  font-size: 16px; color: var(--gray2);
  max-width: 620px; margin-bottom: 48px; line-height: 1.7;
}
.yellow-bar { width: 48px; height: 4px; background: var(--yellow); margin: 16px 0 36px; }
.yellow-bar.center { margin-left: auto; margin-right: auto; }

/* Responsive section padding */
@media (max-width: 768px) { section { padding: 64px 20px; } }
@media (max-width: 480px) { section { padding: 48px 16px; } }

/* ─── DARK SECTION ─── */
.dark-section { background: #000; }
.dark-section .section-title { color: #fff; }
.dark-section .section-desc { color: #aaa; }

/* ─── HERO (HOME) ─── */
.hero {
  min-height: 100vh; background: #000; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--nav-h);
}
.hero-content { max-width: 680px; padding: 80px 32px; z-index: 2; position: relative; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 3px; color: var(--yellow);
  text-transform: uppercase; font-weight: 700; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 68px); font-weight: 900;
  color: #fff; line-height: 1.05; margin-bottom: 24px; letter-spacing: -1px;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p { font-size: clamp(15px, 2vw, 18px); color: #aaa; margin-bottom: 36px; max-width: 520px; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-bg {
  position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
  object-fit: cover; opacity: 0.4;
}
.hero-gradient {
  position: absolute; left: 0; top: 0; bottom: 0; width: 55%;
  background: linear-gradient(90deg, #000 55%, transparent);
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-bg { width: 100%; opacity: 0.25; }
  .hero-gradient { width: 100%; background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.75) 100%); }
  .hero-content { padding: 60px 20px; max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-content { padding: 48px 16px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons a { text-align: center; }
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: #000; padding: 120px 32px 60px;
  border-bottom: 3px solid var(--yellow);
}
.page-hero .section-inner { max-width: 1200px; margin: 0 auto; }
.page-hero .breadcrumb { font-size: 12px; color: #555; margin-bottom: 16px; }
.page-hero .breadcrumb a { color: var(--yellow); text-decoration: none; }
.page-hero .breadcrumb a::after { content: ' / '; color: #333; }
.page-hero h1 {
  font-size: clamp(26px, 4.5vw, 56px); font-weight: 900;
  color: #fff; margin-bottom: 14px; line-height: 1.1;
}
.page-hero h1 em { color: var(--yellow); font-style: normal; }
.page-hero p { font-size: clamp(14px, 2vw, 17px); color: #aaa; max-width: 600px; line-height: 1.7; }
@media (max-width: 768px) { .page-hero { padding: 106px 20px 48px; } }
@media (max-width: 480px) { .page-hero { padding: 96px 16px 40px; } }

/* ─── STAT BAR ─── */
.stat-bar { display: flex; flex-wrap: wrap; }
.stat-item {
  flex: 1; min-width: 140px; padding: 40px 24px;
  border-right: 1px solid #222; text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(32px, 4vw, 52px); font-weight: 900;
  color: var(--yellow); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: #aaa; line-height: 1.4; }
@media (max-width: 768px) {
  .stat-item { min-width: 50%; flex: none; width: 50%; padding: 28px 16px; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid #222; }
}
@media (max-width: 480px) {
  .stat-item { min-width: 100%; width: 100%; border-right: none; border-bottom: 1px solid #222; padding: 24px 16px; }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ─── FEATURE GRID ─── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: #f7f7f7; padding: 32px 24px;
  border-top: 3px solid var(--yellow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 800; color: #000; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray2); line-height: 1.65; }

/* ─── PRODUCT GRID ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  border: 1px solid var(--gray4); transition: all .25s;
  overflow: hidden; background: #fff;
}
.product-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.product-card-img {
  width: 100%; height: 220px; object-fit: contain;
  background: #f5f5f5; padding: 24px; display: flex;
  align-items: center; justify-content: center;
}
.product-card-img img { max-height: 170px; width: auto; margin: auto; }
.product-card-body { padding: 24px; }
.product-tag {
  display: inline-block; background: var(--yellow); color: #000;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 4px 10px; text-transform: uppercase; margin-bottom: 12px;
}
.product-card h3 { font-size: 22px; font-weight: 900; color: #000; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--gray2); margin-bottom: 16px; line-height: 1.6; }
.product-card a.learn-more {
  color: var(--yellow); font-weight: 700; font-size: 13px;
  text-decoration: none; letter-spacing: 0.5px;
}
.product-card a.learn-more:hover { text-decoration: underline; }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

/* ─── SPEC GRID (product pages) ─── */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr; gap: 32px; } }
.spec-img { width: 100%; display: block; background: #f5f5f5; padding: 32px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.spec-table tr { border-bottom: 1px solid var(--gray4); }
.spec-table td { padding: 12px 0; font-size: 14px; }
.spec-table td:first-child { color: var(--gray2); width: 50%; }
.spec-table td:last-child { font-weight: 700; color: #000; }

/* ─── BUNDLE / TECH GRIDS (inline overrides) ─── */
.bundle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tech-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .bundle-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .tech-grid   { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr !important; }
}

/* ─── SOLUTION GRID ─── */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.solution-card {
  background: #000; color: #fff; padding: 36px 24px;
  border: 1px solid #222; border-left: 4px solid var(--yellow);
  transition: all .2s;
}
.solution-card:hover { background: #0d0d0d; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.solution-card .icon { font-size: 40px; margin-bottom: 16px; }
.solution-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; color: var(--yellow); }
.solution-card p { font-size: 14px; color: #aaa; line-height: 1.65; }

/* ─── INDUSTRY GRID (solutions.html) ─── */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #e4e4e4;
}
.ind-card {
  position: relative; overflow: hidden; height: 280px;
  background: #000; display: block; text-decoration: none;
}
.ind-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: 0.5;
  transition: opacity .4s, transform .4s;
}
.ind-card:hover img { opacity: 0.7; transform: scale(1.05); }
.ind-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
}
.ind-card-body .ind-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--yellow); font-weight: 700; margin-bottom: 4px;
}
.ind-card-body h3 { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 4px; line-height: 1.1; }
.ind-card-body p { font-size: 11px; color: #ccc; line-height: 1.5; margin: 0; }
.ind-card .arrow {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; opacity: 0; transition: opacity .3s;
}
.ind-card:hover .arrow { opacity: 1; }
@media (max-width: 900px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-card { height: 220px; }
}
@media (max-width: 480px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-card { height: 180px; }
}

/* ─── CASE CARDS ─── */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.case-card {
  background: #000; border: 1px solid #1e1e1e;
  padding: 32px 24px; border-top: 3px solid var(--yellow);
  transition: box-shadow .2s;
}
.case-card:hover { box-shadow: 0 8px 32px rgba(255,197,0,.12); }
.case-card .quote { font-size: 40px; color: var(--yellow); line-height: 1; margin-bottom: 12px; }
.case-card blockquote { font-size: 15px; color: #ccc; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.case-card .author { font-size: 13px; font-weight: 700; color: #fff; }
.case-card .company { font-size: 12px; color: var(--yellow); letter-spacing: 0.8px; margin-top: 4px; }
.case-tag {
  display: inline-block; border: 1px solid #333; color: #666;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  padding: 3px 8px; text-transform: uppercase; margin-bottom: 16px;
}

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px; color: var(--gray2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #ddd;
  font-family: var(--font); font-size: 15px; color: #000;
  background: #fff; transition: border-color .2s; outline: none;
  border-radius: 0; -webkit-appearance: none;
  /* min height for touch */
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255,197,0,.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ─── INFO CARD ─── */
.info-card {
  background: #000; color: #fff; padding: 32px 24px;
  border: 1px solid #1e1e1e; border-top: 3px solid var(--yellow);
}
.info-card h3 { font-size: 16px; font-weight: 800; color: var(--yellow); margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.info-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.info-item .info-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.info-item .info-text { font-size: 14px; color: #ccc; line-height: 1.5; }
.info-item .info-text a { color: var(--yellow); text-decoration: none; }
.info-item .info-text a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer { background: #000; color: #aaa; padding: 60px 32px 32px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .logo {
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  color: var(--yellow); margin-bottom: 14px;
}
.footer-brand p { font-size: 13px; color: #555; line-height: 1.7; }
.footer-col h4 {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #555; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid #1a1a1a; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #3a3a3a; }
.footer-bottom a { color: #3a3a3a; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--yellow); }
@media (max-width: 480px) {
  footer { padding: 48px 16px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── CTA BAND ─── */
.cta-band { background: var(--yellow); padding: 64px 32px; text-align: center; }
.cta-band .eyebrow {
  font-size: 11px; letter-spacing: 3px; font-weight: 800;
  text-transform: uppercase; margin-bottom: 12px; color: #000;
}
.cta-band h2 {
  font-size: clamp(22px, 4vw, 44px); font-weight: 900;
  color: #000; margin-bottom: 16px; line-height: 1.1;
}
.cta-band p {
  font-size: clamp(14px, 2vw, 16px); color: #1a1a1a; margin-bottom: 32px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
@media (max-width: 480px) { .cta-band { padding: 48px 16px; } }

/* ─── UTILS ─── */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── DOWNLOAD BUTTONS ─── */
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff; padding: 12px 20px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1px solid #333; transition: all .2s; min-height: 48px;
}
.dl-btn:hover { background: #1a1a1a; border-color: var(--yellow); color: var(--yellow); }
.dl-wrap { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
