/* Wuyou Technology — site styles
   Apple-inspired: big type, generous whitespace, soft blur nav, dark hero. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #e60013;        /* logo red */
  --accent-dark: #c4000f;
  --accent-soft: #ff8a94;   /* accent on dark backgrounds */
  --blue: #2f6bff;
  --violet: #7a5cff;
  --teal: #2ad4c9;
  --peach: #ffb08a;
  --dark: #0b0d12;
  --radius: 22px;
  --max: 1120px;
  --nav-h: 52px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
/* eyebrow on dark sections: use the soft accent (rule-based, not inline) */
.hero .eyebrow, .contact-band .eyebrow { color: var(--accent-soft); }
.h-xl { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; }
.h-md { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); line-height: 1.45; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: 16px;
  background: var(--accent); color: #fff; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(230,0,19,.25); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: rgba(0,0,0,.04); box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f0f0f2; box-shadow: none; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.outline-light:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn svg { width: 16px; height: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 14px; padding: 8px 16px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); color: var(--ink-2); cursor: pointer;
}
.lang:hover { color: var(--ink); background: #fff; }
.lang svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px;
  padding: 0 14px 0 0; cursor: pointer; outline: none; max-width: 120px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right center;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; color: #fff; background: var(--dark);
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.55) 0%, rgba(11,13,18,.15) 55%, rgba(11,13,18,0) 100%); }
.hero .wrap { position: relative; padding: 120px 0; }
.hero h1 { max-width: 12ch; }
.hero .lead { color: rgba(255,255,255,.72); max-width: 44ch; margin-top: 24px; }
.hero .actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* Sections */
section { padding: 120px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head .lead { margin-top: 16px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* Services */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff;
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.04); }
.card .body { position: relative; padding: 32px; background: linear-gradient(180deg, rgba(11,13,18,0) 0%, rgba(11,13,18,.75) 100%); }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: rgba(255,255,255,.75); font-size: 15px; max-width: 40ch; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(230,0,19,.08); color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 20px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Values / principles */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: 16px; }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ico svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Stack strip */
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.stack span { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact b { font-weight: 500; color: var(--ink-2); }
.fact span { color: var(--ink); overflow-wrap: anywhere; }

/* Contact */
.contact-band { background: var(--dark); color: #fff; }
.contact-band .lead { color: rgba(255,255,255,.7); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.contact-list { display: grid; gap: 20px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.contact-list svg { width: 22px; height: 22px; flex: none; stroke: var(--accent-soft); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-list small { display: block; color: rgba(255,255,255,.55); font-size: 14px; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
footer { padding: 40px 0; font-size: 13px; color: var(--ink-3); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .links { display: flex; gap: 20px; }
footer .links a:hover { color: var(--ink); }
footer .legal { margin-top: 12px; max-width: 80ch; line-height: 1.6; }

/* Legal pages */
.doc { padding: 80px 0 120px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 48px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p, .doc li { color: #3a3a3c; font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  section { padding: 88px 0; }
  .grid-2, .pillars, .about, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-grid { gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px); padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 17px; color: var(--ink); }
  .hero .wrap { padding: 88px 0; }
  .hero-bg { object-position: 70% center; }
  .hero-fade { background: linear-gradient(180deg, rgba(11,13,18,.55) 0%, rgba(11,13,18,.35) 100%); }
  .steps { grid-template-columns: 1fr; }
  .card { aspect-ratio: 5 / 4; }
  .card .body { padding: 24px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .section-head { margin-bottom: 40px; }
}
