/* ============================================
   BEAUDIN ENVIRONMENT — DESIGN SYSTEM
   Industrial B2B • Thermal Desorption Equipment
   ============================================ */

:root {
  /* Color tokens */
  --bg:        oklch(0.975 0.004 85);
  --bg-elev:   #ffffff;
  --surface:   oklch(0.945 0.005 85);
  --surface-2: oklch(0.92 0.006 85);

  --ink:       oklch(0.18 0.015 240);
  --ink-2:     oklch(0.36 0.018 240);
  --ink-3:     oklch(0.52 0.014 240);
  --ink-4:     oklch(0.68 0.010 240);

  --line:      oklch(0.88 0.008 240);
  --line-2:    oklch(0.82 0.010 240);

  --brand:     oklch(0.28 0.04 240);
  --brand-2:   oklch(0.36 0.05 235);
  --brand-ink: oklch(0.96 0.005 240);

  --ember:     oklch(0.65 0.14 50);   /* 热脱附的"热" — used sparingly */
  --ember-2:   oklch(0.72 0.13 55);
  --ember-tint:oklch(0.95 0.025 60);

  --ok:        oklch(0.55 0.08 145);

  /* Type */
  --sans: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "IBM Plex Mono", ui-monospace,
          Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container: 1320px;
  --container-wide: 1480px;
  --gutter: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: var(--sans);
  font-feature-settings: "ss01", "tnum";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ember);
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
}
.h-1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 500;
  margin: 0;
}
.h-2 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0;
}
.h-3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.008em;
  font-weight: 500;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 64ch;
}
.body { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.wide { max-width: var(--container-wide); }

.section {
  padding: clamp(72px, 9vw, 140px) 0;
  position: relative;
}
.section.tight { padding: clamp(48px, 5vw, 80px) 0; }
.section.surface { background: var(--surface); }
.section.dark {
  background: var(--brand);
  color: var(--brand-ink);
}
.section.dark .eyebrow { color: rgba(255,255,255,0.55); }
.section.dark .lead, .section.dark .body { color: rgba(255,255,255,0.78); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .left { display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.78);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand .word {
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.brand .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 2px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links li.active a {
  color: var(--ink);
  position: relative;
}
.nav-links li.active a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 6px;
  height: 1px;
  background: var(--ember);
}

.nav-aside {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang {
  display: inline-flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.lang a { padding: 4px 6px; }
.lang a.on { color: var(--ink); border-bottom: 1px solid var(--ember); }
.lang span { color: var(--ink-4); }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 18px 0 18px;
  background: var(--ink);
  color: var(--bg-elev);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cta-pill:hover { background: var(--brand); transform: translateY(-1px); }
.cta-pill .arrow {
  width: 14px; height: 14px;
  display: grid; place-items: center;
}

.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-aside .lang { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line);
    background: transparent;
  }
  .menu-toggle span {
    display: block; width: 16px; height: 1px;
    background: var(--ink); position: relative;
  }
  .menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink);
  }
  .menu-toggle span::before { top: -5px; }
  .menu-toggle span::after  { top: 5px; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--bg-elev);
  font-size: 14px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn:hover { background: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg-elev); }
.btn.ember { background: var(--ember); }
.btn.ember:hover { background: var(--ember-2); }
.btn .arrow {
  display: grid; place-items: center;
  width: 14px; height: 14px;
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   PLACEHOLDER IMAGES (striped tech placeholders)
   ============================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.88 0.012 240) 0 1px,
      transparent 1px 8px),
    linear-gradient(180deg, oklch(0.92 0.008 240), oklch(0.86 0.012 240));
  color: var(--ink-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 8px),
    linear-gradient(180deg, oklch(0.30 0.03 240), oklch(0.22 0.03 240));
  color: rgba(255,255,255,0.55);
}
.ph.ember {
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.78 0.10 55) 0 1px,
      transparent 1px 8px),
    linear-gradient(180deg, var(--ember-tint), oklch(0.86 0.05 55));
  color: oklch(0.40 0.10 50);
}
.ph .ph-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ph .ph-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-top: 1px dashed currentColor;
  opacity: 0.7;
}
.ph .ph-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.55;
}

/* ============================================
   CARDS, CHIPS, KPI
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
}
.chip.ember { color: var(--ember); border-color: oklch(0.85 0.07 55); background: var(--ember-tint); }
.chip.dark { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }

.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kpi .num {
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.kpi .num .unit {
  font-size: 0.42em;
  letter-spacing: 0.02em;
  margin-left: 4px;
  color: var(--ink-3);
  font-weight: 400;
}
.kpi .num .plus {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--ember);
  margin-left: 2px;
}
.kpi .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--brand);
  color: var(--brand-ink);
  padding: 80px 0 0;
}
.footer a { color: rgba(255,255,255,0.78); }
.footer a:hover { color: var(--brand-ink); }
.footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
}
.footer ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  font-size: 14px;
}
.footer .legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.footer .legal a { color: inherit; }

.footer .lockup {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer .lockup .name {
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.footer .lockup .name .em {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-left: 12px;
  text-transform: uppercase;
}
.footer .lockup p { color: rgba(255,255,255,0.7); margin: 0; font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer .grid { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
   ============================================ */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; }
.grow { flex: 1; }
.hide-md { display: initial; }
@media (max-width: 880px) { .hide-md { display: none !important; } }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.divider.thick { height: 2px; background: var(--ink); }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg-elev);
}
.marquee .track {
  display: flex;
  gap: 56px;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee .item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee .item::after {
  content: "/";
  color: var(--ink-4);
  margin-left: 24px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll-snap row */
.snap-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.snap-row > * { scroll-snap-align: start; flex: 0 0 auto; }
.snap-row::-webkit-scrollbar { height: 6px; }
.snap-row::-webkit-scrollbar-thumb { background: var(--line-2); }

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field.error input, .field.error textarea {
  border-color: oklch(0.55 0.18 25);
}
.field .hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: oklch(0.55 0.18 25);
  text-transform: uppercase;
}
