/* ============================================================
   WinLong Machinery — Overseas Site
   main.css · Design tokens & base
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --bg-base: #0a0e14;
  --bg-deep: #070a0f;
  --bg-darker: #05070a;
  --surface: #10151d;
  --surface-2: #1a2029;
  --line: #1e242e;
  --line-strong: #2a323e;
  --text-hi: #ffffff;
  --text-body: #c7cbd3;
  --text-mute: #a1a6b0;
  --text-dim: #6b7280;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);

  /* Type */
  --font-display: "Archivo", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Space & radius */
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
  --gutter: 100px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-mute);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 800;
  line-height: 1.15;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title {
  font-size: 40px;
  line-height: 1.15;
}

.section-sub {
  font-size: 16px;
  color: var(--text-mute);
  max-width: 720px;
}

/* ---------- Layout ---------- */
.section {
  padding: 96px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.section--deep {
  background: var(--bg-deep);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 52px;
}

.section-head--row {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.section-head--row .section-head-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-m);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--accent);
  color: #0a0e14;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
}

.btn--ghost {
  border: 1px solid rgba(107, 122, 146, 0.6);
  color: var(--text-hi);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 12px 24px;
  font-size: 13px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s var(--ease-out);
}

.text-link:hover {
  gap: 12px;
}

.text-link--dim {
  color: var(--text-mute);
  font-size: 12px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
