/* ==========================================================================
   Fenghe Technology — English site stylesheet
   Static, no build step, no external requests (fonts/icons all local/system)
   ========================================================================== */

:root {
  --ink: #0d1523;
  --ink-2: #16223a;
  --body: #33415c;
  --muted: #6b7a93;
  --line: #e2e7ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --accent: #d9601f;
  --accent-dark: #b84c13;
  --accent-soft: #fdf1e9;
  --steel: #24405f;
  --radius: 10px;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(13, 21, 35, .04), 0 8px 24px rgba(13, 21, 35, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; letter-spacing: .06em; }
.brand-sub { font-size: .66rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--body); font-size: .93rem; font-weight: 550; text-decoration: none;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }

.lang { display: flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang a, .lang span { font-size: .82rem; padding: 3px 7px; border-radius: 4px; font-weight: 600; }
.lang .on { background: var(--ink); color: #fff; }
.lang a { color: var(--muted); }
.lang a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(217, 96, 31, .26), transparent 62%),
    linear-gradient(160deg, #0b1424 0%, #12203a 52%, #16294a 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  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: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px); max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #ffb98d; font-weight: 650;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .lead { font-size: clamp(1rem, 1.5vw, 1.16rem); color: #c2cee0; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 8px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- stats ---------- */
.stats { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(6, 12, 22, .34); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat { padding: 22px 8px; text-align: center; }
.stat b { display: block; font-size: 1.5rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #93a4bd; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head .kicker {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 700; margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: inherit; transition: .18s ease;
}
.card:hover { border-color: #c9d3e2; box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card .tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft); padding: 3px 8px; border-radius: 4px; margin-bottom: 12px;
}
.card h3 { font-size: 1.02rem; margin-bottom: .35em; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 650; color: var(--accent-dark); }

/* ---------- feature list ---------- */
.feature { padding: 22px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- product ---------- */
.product-index {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; padding: 16px;
  background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--line);
}
.product-index a {
  font-size: .82rem; padding: 6px 11px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--body); text-decoration: none;
}
.product-index a:hover { border-color: var(--accent); color: var(--accent-dark); }

.product { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product-head { max-width: 780px; margin-bottom: 26px; }
.product-head h2 { margin-bottom: .35em; }
.product-head .lead { color: var(--muted); }

.prose p { font-size: .96rem; }
.prose h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.5em 0 .5em; }
.prose ul, .spec ul { margin: 0 0 1em; padding-left: 1.15em; }
.prose li, .spec li { font-size: .94rem; margin-bottom: .35em; }

.spec h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.spec-table th, table.spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.spec-table th { width: 42%; font-weight: 600; color: var(--ink); background: var(--bg-alt); }
table.spec-table tr:last-child th, table.spec-table tr:last-child td { border-bottom: 0; }
table.spec-table caption { caption-side: top; text-align: left; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }

.toollist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.toollist div { font-size: .88rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.toollist code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; color: var(--accent-dark); font-weight: 600; }
.toollist span { color: var(--body); }

/* ---------- timeline / news ---------- */
.news-item { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.news-item:first-child { border-top: 0; }
.news-item time { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.news-item h3 { font-size: 1.02rem; margin-bottom: .25em; }
.news-item p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- honors ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.honor { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.honor .yr { flex: 0 0 58px; color: var(--accent-dark); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .86rem; }
.honor .txt { color: var(--body); }

/* ---------- jobs ---------- */
.job { padding: 26px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job h3 { margin-bottom: .2em; }
.job .loc { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.job ul { margin: 0; padding-left: 1.15em; }
.job li { font-size: .93rem; margin-bottom: .35em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.contact-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-box dl { margin: 0; }
.contact-box dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 4px 0 0; font-size: .98rem; color: var(--ink); }

form.enquiry { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: .95rem; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(150deg, #16233c, #0d1523); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 0; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0 0 .25em; }
.cta-inner p { color: #b9c6d8; margin: 0; max-width: 560px; }

/* ---------- footer ---------- */
.site-footer { background: #0b1220; color: #8fa0b8; font-size: .88rem; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #b6c3d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7386a0; }
.footer-links { display: grid; gap: 8px; }
.footer-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .8rem; color: #6f8099;
}

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 960px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .honor-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid rgba(255, 255, 255, .1); }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; border-radius: 8px; }
  .lang { margin: 10px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .cards, .grid-3, .toollist { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 2px; }
  .product { scroll-margin-top: 74px; }
}

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