/* ============================================================
   YuanNuo CNC — Global Stylesheet
   Brand: Deep navy + steel + industrial orange accent
   ============================================================ */
:root {
  --navy-900: #070C16;
  --navy-800: #0B1220;
  --navy-700: #111B2E;
  --navy-600: #1A2740;
  --steel: #8A97AB;
  --steel-light: #C4CCD9;
  --line: #E4E8EF;
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;
  --accent: #F97316;
  --accent-dark: #C2540C;
  --accent-soft: #FFF1E7;
  --blue: #2E5AAC;
  --text-dark: #16202E;
  --text-mid: #4B5568;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--steel-light);
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px; gap: 16px;
}
.topbar a { color: var(--steel-light); transition: color .2s; }
.topbar a:hover { color: var(--accent); }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.lang-switch { display: flex; gap: 10px; }
.lang-switch a.active { color: var(--accent); font-weight: 600; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,18,32,.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-sub {
  font-size: 10.5px; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-mid); padding-left: 14px; border-left: 1px solid var(--line); max-width: 190px;
}
.logo-img--footer { height: 44px; }
@media (max-width: 1240px) { .logo-sub { display: none; } }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: 1px;
}
.logo-mark span { color: var(--accent); }
.logo-text { line-height: 1.15; }
.logo-text strong {
  display: block; font-family: var(--font-head); font-size: 19px;
  font-weight: 700; color: var(--navy-800); letter-spacing: .5px;
}
.logo-text small { font-size: 11px; color: var(--text-mid); letter-spacing: 1.5px; text-transform: uppercase; }
.main-nav ul { display: flex; list-style: none; gap: 6px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 16px; font-size: 15px; font-weight: 500;
  color: var(--text-dark); border-radius: 8px; transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a.nav-cta {
  background: var(--accent); color: #fff; padding: 10px 22px;
  border-radius: 999px; margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(46,90,172,.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(249,115,22,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative; display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 96px 0 90px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 18px; color: var(--steel-light); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
.hero-badges {
  position: absolute; bottom: -6px; left: 0; display: flex; gap: 10px; flex-wrap: wrap;
}
.badge-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: var(--steel-light);
  backdrop-filter: blur(4px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all .25s; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-600); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-light); }
.section.dark { background: linear-gradient(170deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--navy-800); margin-bottom: 14px; }
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--text-mid); font-size: 16.5px; }
.section.dark .section-head p { color: var(--steel-light); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 34px 16px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.stat b {
  display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700;
  color: var(--accent); line-height: 1.1; margin-bottom: 8px;
}
.stat b sup { font-size: 22px; }
.stat span { font-size: 14px; color: var(--steel-light); letter-spacing: .5px; }

/* ---------- Product cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--bg-white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  position: relative; overflow: hidden;
}
.product-card .thumb svg { width: 82%; height: 82%; }
.product-card .thumb .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600;
  letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.product-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 10px; }
.product-card p { color: var(--text-mid); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.product-card .meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.meta-chip {
  font-size: 12px; color: var(--text-mid); background: var(--bg-light);
  border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px;
}
.link-more {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.link-more:hover { gap: 12px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature {
  padding: 30px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
}
.feature .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: rgba(249,115,22,.14);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 17px; margin-bottom: 10px; color: #fff; }
.feature p { font-size: 14.5px; color: var(--steel-light); }
.feature.light { background: #fff; border-color: var(--line); }
.feature.light h3 { color: var(--navy-800); }
.feature.light p { color: var(--text-mid); }
.feature.light .icon { background: var(--accent-soft); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; color: #fff; padding: 76px 0 66px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 80% 10%, rgba(46,90,172,.3), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 90% at 60% 30%, black 30%, transparent 80%);
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 12px; }
.page-banner p { color: var(--steel-light); font-size: 17px; max-width: 640px; }
.breadcrumb { font-size: 13.5px; color: var(--steel); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--navy-800); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:hover td { background: var(--accent-soft); }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 30px;
  color: var(--accent); display: block; margin-bottom: 12px; opacity: .9;
}
.step h3 { font-size: 16.5px; color: var(--navy-800); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-mid); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin-bottom: 22px;
}
.contact-card h3 { font-size: 17px; color: var(--navy-800); margin-bottom: 8px; }
.contact-card p { color: var(--text-mid); font-size: 15px; }
.contact-card a { color: var(--accent); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 600; color: var(--navy-800); display: block; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: var(--font-body);
  background: var(--bg-light); transition: border .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.14);
  background: #fff;
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { opacity: .92; margin-bottom: 28px; font-size: 16.5px; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--steel); font-size: 14.5px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding: 64px 0 44px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .5px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-brand p { margin-top: 14px; max-width: 300px; color: var(--steel); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px;
}
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 64px; }
  .hero-visual { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .feature-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-left span.hide-m { display: none; }
  .logo-img { height: 36px; }
  .logo-img--footer { height: 38px; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11,18,32,.12);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 14px; gap: 2px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .grid-3, .feature-row, .steps, .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
  .slide-inner { grid-template-columns: 1fr; padding: 50px 0 64px; }
  .slide-img { display: none; }
  .slider-arrow { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Hero banner slider ---------- */
.slider { position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.slide.active { position: relative; opacity: 1; pointer-events: auto; }
.slide-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
  padding: 72px 0 60px; color: #fff;
}
.slide-text h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.slide-text h1 em { font-style: normal; color: var(--accent); }
.slide-text p { color: var(--steel-light); margin-bottom: 26px; max-width: 520px; font-size: 16.5px; }
.slide-text .eyebrow { margin-bottom: 10px; }
.slide-img img { width: 100%; max-width: 470px; display: block; margin: 0 auto; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s;
}
.slider-arrow:hover { background: rgba(249,115,22,.6); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.slider-dots .dot {
  width: 10px; height: 10px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.35); transition: all .3s; border: 0;
}
.slider-dots .dot.active { background: var(--accent); width: 28px; }
.hero-badges {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 20px 26px;
}

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.g-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.g-main img { width: 88%; height: 88%; object-fit: contain; }
.g-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.g-thumbs img {
  width: 84px; height: 64px; object-fit: contain; background: var(--bg-light);
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  padding: 4px; transition: border-color .2s; background-color: #12203A;
}
.g-thumbs img.active, .g-thumbs img:hover { border-color: var(--accent); }
.detail-info h1 { font-size: clamp(26px, 3vw, 36px); color: var(--navy-800); margin-bottom: 12px; }
.detail-info .lede { color: var(--text-mid); font-size: 16px; margin-bottom: 18px; }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fb457; transform: translateY(-2px); }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.adv-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.adv-item .n {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; background: var(--accent-soft);
  color: var(--accent); font-family: var(--font-head); font-weight: 700;
}
.adv-item h3 { font-size: 15.5px; color: var(--navy-800); margin-bottom: 4px; }
.adv-item p { font-size: 13.5px; color: var(--text-mid); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sample-ph {
  aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #12203A, #24334E); color: var(--steel);
  font-size: 13px; letter-spacing: 1px; text-align: center; padding: 10px;
}
.sample-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
