:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --surface-soft: #f0eee7;
  --ink: #10231d;
  --muted: #65736e;
  --line: rgba(16, 35, 29, 0.14);
  --primary: #087157;
  --primary-deep: #07513f;
  --accent: #e5a13b;
  --blue: #267f9a;
  --shadow: 0 24px 70px rgba(24, 45, 37, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #0d1512;
  --surface: #14201c;
  --surface-soft: #1a2924;
  --ink: #f4f4ed;
  --muted: #aab9b3;
  --line: rgba(244, 244, 237, 0.12);
  --primary: #28b78a;
  --primary-deep: #0b6f55;
  --accent: #f0ac45;
  --blue: #4fa9c6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 6%, rgba(229, 161, 59, 0.12), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(8, 113, 87, 0.12), transparent 28%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled { border-color: var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 34px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 46px; height: 46px; padding: 0 7px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 800; letter-spacing: -4px; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; width: 34px; height: 18px; left: 5px; bottom: 5px; border: 2px solid var(--bg); border-top: 0; border-radius: 50%; transform: rotate(-12deg); opacity: .72; }
.brand-mark span { position: relative; z-index: 1; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 18px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language-switch button { min-width: 38px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 760; }
.language-switch button[aria-pressed="true"] { background: var(--primary); color: white; }
.theme-button, .menu-button { display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-button { width: 42px; height: 42px; border-radius: 50%; font-size: 18px; }
.menu-button { display: none; width: 42px; height: 42px; margin-left: auto; border-radius: 13px; }

.hero { padding: 86px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.light { color: #d5f3e9; }
.hero h1 { max-width: 700px; margin: 24px 0 22px; font-size: clamp(50px, 6.1vw, 82px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 16px; font-size: 14px; font-weight: 760; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 12px 30px rgba(8, 113, 87, .2); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: var(--muted); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-visual { position: relative; min-height: 550px; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 42px 28px 54px 38px; z-index: -2; border-radius: 48% 52% 45% 55%; background: linear-gradient(145deg, var(--primary), var(--primary-deep)); transform: rotate(-6deg); box-shadow: var(--shadow); }
.orbit { position: absolute; z-index: -1; border: 1px dashed rgba(255,255,255,.42); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 320px; height: 180px; right: 30px; top: 130px; }
.orbit-two { width: 250px; height: 320px; left: 42px; bottom: 28px; }
.visual-card { position: absolute; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 25px 60px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.visual-main { inset: 115px 88px 122px 85px; display: flex; flex-direction: column; justify-content: center; padding: 48px; border-radius: 30px; background: rgba(255,255,255,.13); color: white; }
.visual-kicker { margin-bottom: 18px; color: #e8c37f; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.visual-main strong { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.visual-main small { margin-top: 22px; color: rgba(255,255,255,.76); font-size: 14px; }
.visual-mini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; }
.visual-mini b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--primary); color: white; }
.mini-one { top: 52px; right: 30px; }
.mini-two { left: 8px; bottom: 80px; }
.mini-three { right: 8px; bottom: 36px; }
.visual-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 9px rgba(229,161,59,.18); }
.dot-one { left: 68px; top: 82px; }
.dot-two { right: 84px; bottom: 105px; width: 10px; height: 10px; }

.metric-strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metrics article { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 120px; padding: 20px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics strong { font-size: 34px; letter-spacing: -.04em; color: var(--primary); }
.metrics span { color: var(--muted); font-size: 13px; font-weight: 650; }

.section { padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 50px; margin-bottom: 48px; }
.section h2 { margin: 16px 0 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 355px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: white; font-size: 24px; font-weight: 800; }
.service-icon.green { background: var(--primary); }
.service-icon.teal { background: #238e78; }
.service-icon.blue { background: var(--blue); }
.service-icon.amber { background: #c88118; }
.service-index { position: absolute; right: 30px; top: 30px; color: var(--line); font-size: 36px; font-weight: 850; }
.service-card h3 { margin: 28px 0 10px; font-size: 25px; }
.service-card p { margin: 0; color: var(--muted); }
.service-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.service-card li { padding: 7px 11px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 700; }

.experience { padding-top: 40px; }
.experience-grid { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--primary-deep); color: white; box-shadow: var(--shadow); }
.experience-panel { position: relative; min-height: 500px; padding: 64px; overflow: hidden; background: linear-gradient(145deg, #087157, #064837); }
.experience-panel::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -130px; border: 1px dashed rgba(255,255,255,.32); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.02); }
.experience-panel h2 { max-width: 570px; }
.experience-panel p { max-width: 570px; color: rgba(255,255,255,.72); }
.language-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.language-pills span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
.steps { display: grid; align-content: center; gap: 0; padding: 44px; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink); }
.steps article { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 28px 8px; border-bottom: 1px solid var(--line); }
.steps article:last-child { border-bottom: 0; }
.steps article > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-soft); color: var(--primary); font-weight: 800; }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }

.about-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 90px; }
.about-copy p { color: var(--muted); font-size: 16px; }
.company-card { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.company-label { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.company-card h3 { margin: 16px 0 30px; font-size: 26px; line-height: 1.35; }
.company-card dl { margin: 0; }
.company-card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.company-card dt { color: var(--muted); font-size: 12px; }
.company-card dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.company-card a:hover { color: var(--primary); }

.contact { padding-top: 30px; }
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 58px 62px; border-radius: var(--radius-lg); background: var(--ink); color: var(--bg); }
.contact-card h2 { margin-top: 14px; }
.contact-card p { margin-bottom: 0; color: color-mix(in srgb, var(--bg) 68%, transparent); }
.contact-email { display: flex; align-items: center; gap: 22px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); border-radius: 16px; color: var(--bg); font-size: 14px; font-weight: 700; }
.contact-email span { color: var(--accent); font-size: 20px; }

.site-footer { padding: 66px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-bottom: 48px; }
.footer-brand { margin-bottom: 20px; }
.footer-grid p { color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 16px 32px; align-content: start; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.icp-link:hover { color: var(--primary); }

.legal-hero { padding: 76px 0 52px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 18px 0 14px; font-size: clamp(42px, 6vw, 68px); line-height: 1.05; letter-spacing: -.05em; }
.legal-hero p { margin: 0; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; padding-block: 70px 110px; }
.legal-toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.legal-toc strong { margin-bottom: 5px; font-size: 12px; color: var(--primary); letter-spacing: .12em; text-transform: uppercase; }
.legal-toc a { color: var(--muted); font-size: 12px; }
.legal-toc a:hover { color: var(--primary); }
.legal-content { max-width: 820px; }
.legal-content section { scroll-margin-top: 112px; padding: 4px 0 34px; }
.legal-content h2 { margin: 0 0 14px; font-size: 25px; letter-spacing: -.02em; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 14px; }
.legal-content ul { padding-left: 20px; }
.legal-note { padding: 22px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
[data-language-content][hidden] { display: none !important; }

.reveal { animation: rise .65s ease both; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
  .header-inner { gap: 16px; }
  .menu-button { display: grid; }
  .site-nav { position: absolute; top: 74px; left: 20px; right: 20px; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; gap: 6px; }
  .site-nav a { padding: 10px; }
  .header-actions { margin-left: 0; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-visual { min-height: 500px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-panel { min-height: auto; }
  .contact-card { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .legal-toc strong { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header .brand-copy { display: none; }
  .header-inner { min-height: 70px; }
  .language-switch button { min-width: 34px; }
  .theme-button { width: 38px; height: 38px; }
  .hero { padding: 44px 0 62px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-visual { min-height: 410px; }
  .hero-visual::before { inset: 24px 4px 42px; }
  .visual-main { inset: 78px 34px 90px; padding: 30px; }
  .visual-main strong { font-size: 36px; }
  .mini-one { top: 24px; right: 4px; }
  .mini-two { left: 0; bottom: 65px; }
  .mini-three { right: 8px; bottom: 20px; }
  .metrics { grid-template-columns: 1fr; padding: 12px 0; }
  .metrics article { min-height: 82px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics article:last-child { border-bottom: 0; }
  .section { padding: 80px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 320px; padding: 28px; }
  .experience { padding-top: 10px; }
  .experience-panel, .steps { padding: 34px 26px; }
  .company-card { padding: 28px; }
  .company-card dl div { grid-template-columns: 1fr; gap: 5px; }
  .contact-card { padding: 38px 28px; }
  .contact-email { font-size: 12px; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .legal-hero { padding-top: 52px; }
  .legal-layout { padding-top: 44px; }
  .legal-toc { grid-template-columns: 1fr; }
}
